fix: use pnpm when installing rln contracts

This commit is contained in:
Arseniy Klempner 2025-12-01 12:12:49 -08:00
parent 354dc65ccc
commit dd38f2df47
No known key found for this signature in database
GPG Key ID: 51653F18863BD24B
2 changed files with 37 additions and 1 deletions

View File

@ -40,7 +40,7 @@ async function main() {
// Install dependencies
console.log("📦 Installing dependencies...");
exec("npm install", { cwd: CONTRACT_DIR });
exec("pnpm i", { cwd: CONTRACT_DIR });
// Build contracts with Foundry
console.log("🔨 Building contracts with Foundry...");

View File

@ -351,6 +351,13 @@ export const membershipUpgradeableAbi = [
export const wakuRlnV2Abi = [
{ type: "constructor", inputs: [], stateMutability: "nonpayable" },
{
type: "function",
inputs: [],
name: "HISTORY_SIZE",
outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
stateMutability: "view"
},
{
type: "function",
inputs: [],
@ -461,6 +468,22 @@ export const wakuRlnV2Abi = [
outputs: [{ name: "", internalType: "uint256[]", type: "uint256[]" }],
stateMutability: "view"
},
{
type: "function",
inputs: [],
name: "getRecentRoots",
outputs: [
{ name: "ordered", internalType: "uint256[5]", type: "uint256[5]" }
],
stateMutability: "view"
},
{
type: "function",
inputs: [{ name: "position", internalType: "uint8", type: "uint8" }],
name: "getRootAt",
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
stateMutability: "view"
},
{
type: "function",
inputs: [],
@ -909,6 +932,19 @@ export const wakuRlnV2Abi = [
],
name: "OwnershipTransferred"
},
{
type: "event",
anonymous: false,
inputs: [
{
name: "newRoot",
internalType: "uint256",
type: "uint256",
indexed: false
}
],
name: "RootStored"
},
{
type: "event",
anonymous: false,