From dd38f2df473765f16b295c71b1908827a924b3fe Mon Sep 17 00:00:00 2001 From: Arseniy Klempner Date: Mon, 1 Dec 2025 12:12:49 -0800 Subject: [PATCH] fix: use pnpm when installing rln contracts --- packages/rln/generate_contract_abi.js | 2 +- packages/rln/src/contract/wagmi/generated.ts | 36 ++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/packages/rln/generate_contract_abi.js b/packages/rln/generate_contract_abi.js index d547345101..6cc041a21f 100644 --- a/packages/rln/generate_contract_abi.js +++ b/packages/rln/generate_contract_abi.js @@ -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..."); diff --git a/packages/rln/src/contract/wagmi/generated.ts b/packages/rln/src/contract/wagmi/generated.ts index f13fa0c2ce..707e889e51 100644 --- a/packages/rln/src/contract/wagmi/generated.ts +++ b/packages/rln/src/contract/wagmi/generated.ts @@ -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,