chore: updated deployments

This commit is contained in:
rymnc 2023-05-31 13:07:48 +05:30
parent 429a3ff404
commit 2dd8d56d5f
No known key found for this signature in database
GPG Key ID: AAA088D5C68ECD34
5 changed files with 393 additions and 169 deletions

View File

@ -29,7 +29,7 @@
] ]
}, },
"RLN": { "RLN": {
"address": "0x9C09146844C1326c2dBC41c451766C7138F88155", "address": "0xB8144E3214080f179D037bbb4dcaaa6B87f224E4",
"abi": [ "abi": [
{ {
"inputs": [ "inputs": [
@ -47,6 +47,11 @@
"internalType": "address", "internalType": "address",
"name": "_poseidonHasher", "name": "_poseidonHasher",
"type": "address" "type": "address"
},
{
"internalType": "address",
"name": "_verifier",
"type": "address"
} }
], ],
"stateMutability": "nonpayable", "stateMutability": "nonpayable",
@ -59,12 +64,12 @@
}, },
{ {
"inputs": [], "inputs": [],
"name": "EmptyBatch", "name": "FullTree",
"type": "error" "type": "error"
}, },
{ {
"inputs": [], "inputs": [],
"name": "FullBatch", "name": "InsufficientContractBalance",
"type": "error" "type": "error"
}, },
{ {
@ -83,6 +88,16 @@
"name": "InsufficientDeposit", "name": "InsufficientDeposit",
"type": "error" "type": "error"
}, },
{
"inputs": [],
"name": "InsufficientWithdrawalBalance",
"type": "error"
},
{
"inputs": [],
"name": "InvalidProof",
"type": "error"
},
{ {
"inputs": [ "inputs": [
{ {
@ -91,7 +106,7 @@
"type": "address" "type": "address"
} }
], ],
"name": "InvalidWithdrawalAddress", "name": "InvalidReceiverAddress",
"type": "error" "type": "error"
}, },
{ {
@ -116,22 +131,6 @@
"name": "MemberNotRegistered", "name": "MemberNotRegistered",
"type": "error" "type": "error"
}, },
{
"inputs": [
{
"internalType": "uint256",
"name": "givenSecretsLen",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "givenReceiversLen",
"type": "uint256"
}
],
"name": "MismatchedBatchSize",
"type": "error"
},
{ {
"anonymous": false, "anonymous": false,
"inputs": [ "inputs": [
@ -159,6 +158,12 @@
"internalType": "uint256", "internalType": "uint256",
"name": "idCommitment", "name": "idCommitment",
"type": "uint256" "type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "index",
"type": "uint256"
} }
], ],
"name": "MemberWithdrawn", "name": "MemberWithdrawn",
@ -227,9 +232,9 @@
"name": "members", "name": "members",
"outputs": [ "outputs": [
{ {
"internalType": "bool", "internalType": "uint256",
"name": "", "name": "",
"type": "bool" "type": "uint256"
} }
], ],
"stateMutability": "view", "stateMutability": "view",
@ -264,14 +269,24 @@
{ {
"inputs": [ "inputs": [
{ {
"internalType": "uint256[]", "internalType": "uint256",
"name": "idCommitments", "name": "idCommitment",
"type": "uint256[]" "type": "uint256"
},
{
"internalType": "address payable",
"name": "receiver",
"type": "address"
},
{
"internalType": "uint256[8]",
"name": "proof",
"type": "uint256[8]"
} }
], ],
"name": "registerBatch", "name": "slash",
"outputs": [], "outputs": [],
"stateMutability": "payable", "stateMutability": "nonpayable",
"type": "function" "type": "function"
}, },
{ {
@ -294,18 +309,20 @@
"type": "function" "type": "function"
}, },
{ {
"inputs": [ "inputs": [],
"name": "verifier",
"outputs": [
{ {
"internalType": "uint256", "internalType": "contract IVerifier",
"name": "secret", "name": "",
"type": "uint256"
},
{
"internalType": "address payable",
"name": "receiver",
"type": "address" "type": "address"
} }
], ],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "withdraw", "name": "withdraw",
"outputs": [], "outputs": [],
"stateMutability": "nonpayable", "stateMutability": "nonpayable",
@ -314,19 +331,59 @@
{ {
"inputs": [ "inputs": [
{ {
"internalType": "uint256[]", "internalType": "address",
"name": "secrets", "name": "",
"type": "uint256[]" "type": "address"
},
{
"internalType": "address payable[]",
"name": "receivers",
"type": "address[]"
} }
], ],
"name": "withdrawBatch", "name": "withdrawalBalance",
"outputs": [], "outputs": [
"stateMutability": "nonpayable", {
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
]
},
"Verifier": {
"address": "0xb81Faa6F0126dedB55A45eb63E8430B270A00303",
"abi": [
{
"inputs": [
{
"internalType": "uint256[2]",
"name": "a",
"type": "uint256[2]"
},
{
"internalType": "uint256[2][2]",
"name": "b",
"type": "uint256[2][2]"
},
{
"internalType": "uint256[2]",
"name": "c",
"type": "uint256[2]"
},
{
"internalType": "uint256[2]",
"name": "input",
"type": "uint256[2]"
}
],
"name": "verifyProof",
"outputs": [
{
"internalType": "bool",
"name": "r",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function" "type": "function"
} }
] ]

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long