From 51dd7a10a6df130095750cd86d2fc40bf388dfba Mon Sep 17 00:00:00 2001 From: cedoor Date: Fri, 26 Jan 2024 20:18:15 +0000 Subject: [PATCH] fix(data): update semaphore contract abi Former-commit-id: eb47cc62ef0bf0607a9c0ac05c66231de28bc8d1 --- packages/data/src/semaphoreABI.json | 143 +++++++++++++++++----------- 1 file changed, 88 insertions(+), 55 deletions(-) diff --git a/packages/data/src/semaphoreABI.json b/packages/data/src/semaphoreABI.json index 80cd80dcb..191a49ecf 100644 --- a/packages/data/src/semaphoreABI.json +++ b/packages/data/src/semaphoreABI.json @@ -315,7 +315,7 @@ { "indexed": false, "internalType": "uint256[8]", - "name": "proof", + "name": "points", "type": "uint256[8]" } ], @@ -399,6 +399,25 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "groupId", + "type": "uint256" + } + ], + "name": "getGroupAdmin", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { @@ -618,34 +637,41 @@ "type": "uint256" }, { - "internalType": "uint256", - "name": "merkleTreeDepth", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "merkleTreeRoot", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "nullifier", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "message", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "scope", - "type": "uint256" - }, - { - "internalType": "uint256[8]", + "components": [ + { + "internalType": "uint256", + "name": "merkleTreeDepth", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "merkleTreeRoot", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "nullifier", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "message", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "scope", + "type": "uint256" + }, + { + "internalType": "uint256[8]", + "name": "points", + "type": "uint256[8]" + } + ], + "internalType": "struct ISemaphore.SemaphoreProof", "name": "proof", - "type": "uint256[8]" + "type": "tuple" } ], "name": "validateProof", @@ -674,34 +700,41 @@ "type": "uint256" }, { - "internalType": "uint256", - "name": "merkleTreeDepth", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "merkleTreeRoot", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "nullifier", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "message", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "scope", - "type": "uint256" - }, - { - "internalType": "uint256[8]", + "components": [ + { + "internalType": "uint256", + "name": "merkleTreeDepth", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "merkleTreeRoot", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "nullifier", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "message", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "scope", + "type": "uint256" + }, + { + "internalType": "uint256[8]", + "name": "points", + "type": "uint256[8]" + } + ], + "internalType": "struct ISemaphore.SemaphoreProof", "name": "proof", - "type": "uint256[8]" + "type": "tuple" } ], "name": "verifyProof",