mirror of
https://github.com/vacp2p/rln-interep-contract.git
synced 2025-03-01 06:30:33 +00:00
448 lines
111 KiB
JSON
448 lines
111 KiB
JSON
|
{
|
||
|
"address": "0xCd41a0aC28c5c025779eAC3208D0bF23baa3a5b6",
|
||
|
"abi": [
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "membershipDeposit",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "depth",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "address",
|
||
|
"name": "_poseidonHasher",
|
||
|
"type": "address"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "address",
|
||
|
"name": "_validGroupStorage",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "nonpayable",
|
||
|
"type": "constructor"
|
||
|
},
|
||
|
{
|
||
|
"anonymous": false,
|
||
|
"inputs": [
|
||
|
{
|
||
|
"indexed": false,
|
||
|
"internalType": "uint256",
|
||
|
"name": "idCommitment",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"indexed": false,
|
||
|
"internalType": "uint256",
|
||
|
"name": "index",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"name": "MemberRegistered",
|
||
|
"type": "event"
|
||
|
},
|
||
|
{
|
||
|
"anonymous": false,
|
||
|
"inputs": [
|
||
|
{
|
||
|
"indexed": false,
|
||
|
"internalType": "uint256",
|
||
|
"name": "idCommitment",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"name": "MemberWithdrawn",
|
||
|
"type": "event"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "DEPTH",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "MEMBERSHIP_DEPOSIT",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "SET_SIZE",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "idCommitmentIndex",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "interep",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "contract IInterep",
|
||
|
"name": "",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"name": "members",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "bool",
|
||
|
"name": "",
|
||
|
"type": "bool"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "poseidonHasher",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "contract IPoseidonHasher",
|
||
|
"name": "",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "groupId",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "bytes32",
|
||
|
"name": "signal",
|
||
|
"type": "bytes32"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "nullifierHash",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "externalNullifier",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256[8]",
|
||
|
"name": "proof",
|
||
|
"type": "uint256[8]"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "idCommitment",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"name": "register",
|
||
|
"outputs": [],
|
||
|
"stateMutability": "nonpayable",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "idCommitment",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"name": "register",
|
||
|
"outputs": [],
|
||
|
"stateMutability": "payable",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "uint256[]",
|
||
|
"name": "idCommitments",
|
||
|
"type": "uint256[]"
|
||
|
}
|
||
|
],
|
||
|
"name": "registerBatch",
|
||
|
"outputs": [],
|
||
|
"stateMutability": "payable",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"name": "stakedAmounts",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "validGroupStorage",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "contract IValidGroupStorage",
|
||
|
"name": "",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "secret",
|
||
|
"type": "uint256"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "address payable",
|
||
|
"name": "receiver",
|
||
|
"type": "address"
|
||
|
}
|
||
|
],
|
||
|
"name": "withdraw",
|
||
|
"outputs": [],
|
||
|
"stateMutability": "nonpayable",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "secret",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"name": "withdraw",
|
||
|
"outputs": [],
|
||
|
"stateMutability": "nonpayable",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [
|
||
|
{
|
||
|
"internalType": "uint256[]",
|
||
|
"name": "secrets",
|
||
|
"type": "uint256[]"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "address payable[]",
|
||
|
"name": "receivers",
|
||
|
"type": "address[]"
|
||
|
}
|
||
|
],
|
||
|
"name": "withdrawBatch",
|
||
|
"outputs": [],
|
||
|
"stateMutability": "nonpayable",
|
||
|
"type": "function"
|
||
|
}
|
||
|
],
|
||
|
"transactionHash": "0x58b4c35d37d31fbd64999039d66e1d0bdf04e9c3bdd064336ee508279724202d",
|
||
|
"receipt": {
|
||
|
"to": null,
|
||
|
"from": "0x1071c86d15D0a0602bdcb12c583ED6d7e57D2AC5",
|
||
|
"contractAddress": "0xCd41a0aC28c5c025779eAC3208D0bF23baa3a5b6",
|
||
|
"transactionIndex": 46,
|
||
|
"gasUsed": "1837827",
|
||
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||
|
"blockHash": "0xd60079c8fa3e028a5bded1af6bd2599c7eb7d92031a064116646338d1db52506",
|
||
|
"transactionHash": "0x58b4c35d37d31fbd64999039d66e1d0bdf04e9c3bdd064336ee508279724202d",
|
||
|
"logs": [],
|
||
|
"blockNumber": 8059744,
|
||
|
"cumulativeGasUsed": "7611748",
|
||
|
"status": 1,
|
||
|
"byzantium": true
|
||
|
},
|
||
|
"args": [
|
||
|
1000000000000000,
|
||
|
20,
|
||
|
"0x8bE14ea375F20f433109fC71A8d8F6F0f9145Ea2",
|
||
|
"0xbBB4EF168D6d7c3090C19cC1027FC5F06C9Fa6E6"
|
||
|
],
|
||
|
"numDeployments": 1,
|
||
|
"solcInputHash": "8b4ce4f50b3f4c16f7b5cbd084d87412",
|
||
|
"metadata": "{\"compiler\":{\"version\":\"0.8.15+commit.e14f2714\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"membershipDeposit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"depth\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_poseidonHasher\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_validGroupStorage\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"idCommitment\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"MemberRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"idCommitment\",\"type\":\"uint256\"}],\"name\":\"MemberWithdrawn\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEPTH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MEMBERSHIP_DEPOSIT\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"SET_SIZE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"idCommitmentIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"interep\",\"outputs\":[{\"internalType\":\"contract IInterep\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"members\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poseidonHasher\",\"outputs\":[{\"internalType\":\"contract IPoseidonHasher\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"groupId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"signal\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"nullifierHash\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"externalNullifier\",\"type\":\"uint256\"},{\"internalType\":\"uint256[8]\",\"name\":\"proof\",\"type\":\"uint256[8]\"},{\"internalType\":\"uint256\",\"name\":\"idCommitment\",\"type\":\"uint256\"}],\"name\":\"register\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"idCommitment\",\"type\":\"uint256\"}],\"name\":\"register\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"idCommitments\",\"type\":\"uint256[]\"}],\"name\":\"registerBatch\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"stakedAmounts\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"validGroupStorage\",\"outputs\":[{\"internalType\":\"contract IValidGroupStorage\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"secret\",\"type\":\"uint256\"},{\"internalType\":\"address payable\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"secret\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"i
|
||
|
"bytecode": "0x60e06040523480156200001157600080fd5b506040516200223938038062002239833981810160405281019062000037919062000258565b83608081815250508260a08181525050826001901b60c0818152505081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635d0a8dc26040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000143573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001699190620002ca565b600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050620002fc565b600080fd5b6000819050919050565b620001cd81620001b8565b8114620001d957600080fd5b50565b600081519050620001ed81620001c2565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200022082620001f3565b9050919050565b620002328162000213565b81146200023e57600080fd5b50565b600081519050620002528162000227565b92915050565b60008060008060808587031215620002755762000274620001b3565b5b60006200028587828801620001dc565b94505060206200029887828801620001dc565b9350506040620002ab8782880162000241565b9250506060620002be8782880162000241565b91505092959194509250565b600060208284031215620002e357620002e2620001b3565b5b6000620002f38482850162000241565b91505092915050565b60805160a05160c051611ef162000348600039600081816105440152818161085e0152610d13015260006106730152600081816105b50152818161088201526108f10152611ef16000f3fe6080604052600436106100e75760003560e01c806398366e351161008a578063bc49912811610059578063bc499128146102c0578063d0383d68146102fd578063f207564e14610328578063f220b9ec14610344576100e7565b806398366e3514610216578063a19aaee814610241578063ae74552a1461026c578063baa8d18914610297576100e7565b806340070712116100c657806340070712146101695780635d0a8dc2146101925780635daf08ca146101bd57806369e4863f146101fa576100e7565b8062f714ce146100ec5780632e1a7d4d14610115578063331b6ab31461013e575b600080fd5b3480156100f857600080fd5b50610113600480360381019061010e9190610fa7565b61036f565b005b34801561012157600080fd5b5061013c60048036038101906101379190610fe7565b61037d565b005b34801561014a57600080fd5b50610153610389565b6040516101609190611073565b60405180910390f35b34801561017557600080fd5b50610190600480360381019061018b9190611149565b6103af565b005b34801561019e57600080fd5b506101a76104f4565b6040516101b491906111eb565b60405180910390f35b3480156101c957600080fd5b506101e460048036038101906101df9190610fe7565b61051a565b6040516101f19190611221565b60405180910390f35b610214600480360381019061020f919061123c565b61053a565b005b34801561022257600080fd5b5061022b610671565b6040516102389190611298565b60405180910390f35b34801561024d57600080fd5b50610256610695565b60405161026391906112d4565b60405180910390f35b34801561027857600080fd5b506102816106bb565b60405161028e9190611298565b60405180910390f35b3480156102a357600080fd5b506102be60048036038101906102b99190611347565b6106c1565b005b3480156102cc57600080fd5b506102e760048036038101906102e29190610fe7565b610844565b6040516102f49190611298565b60405180910390f35b34801561030957600080fd5b5061031261085c565b60405161031f9190611298565b60405180910390f35b610342600480360381019061033d9190610fe7565b610880565b005b34801561035057600080fd5b506103596108ef565b6040516103669190611298565b60405180910390f35b6103798282610913565b5050565b61038681610b86565b50565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000848490509050600081036103fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f190611459565b60405180910390fd5b84849050811461043f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610436906114eb565b60405180910390fd5b828290508114610484576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161047b9061157d565b60405180910390fd5b60005b818110156104ec576104d98686838181106104a5576104a461159d565b5b905060200201358585
|
||
|
"deployedBytecode": "0x6080604052600436106100e75760003560e01c806398366e351161008a578063bc49912811610059578063bc499128146102c0578063d0383d68146102fd578063f207564e14610328578063f220b9ec14610344576100e7565b806398366e3514610216578063a19aaee814610241578063ae74552a1461026c578063baa8d18914610297576100e7565b806340070712116100c657806340070712146101695780635d0a8dc2146101925780635daf08ca146101bd57806369e4863f146101fa576100e7565b8062f714ce146100ec5780632e1a7d4d14610115578063331b6ab31461013e575b600080fd5b3480156100f857600080fd5b50610113600480360381019061010e9190610fa7565b61036f565b005b34801561012157600080fd5b5061013c60048036038101906101379190610fe7565b61037d565b005b34801561014a57600080fd5b50610153610389565b6040516101609190611073565b60405180910390f35b34801561017557600080fd5b50610190600480360381019061018b9190611149565b6103af565b005b34801561019e57600080fd5b506101a76104f4565b6040516101b491906111eb565b60405180910390f35b3480156101c957600080fd5b506101e460048036038101906101df9190610fe7565b61051a565b6040516101f19190611221565b60405180910390f35b610214600480360381019061020f919061123c565b61053a565b005b34801561022257600080fd5b5061022b610671565b6040516102389190611298565b60405180910390f35b34801561024d57600080fd5b50610256610695565b60405161026391906112d4565b60405180910390f35b34801561027857600080fd5b506102816106bb565b60405161028e9190611298565b60405180910390f35b3480156102a357600080fd5b506102be60048036038101906102b99190611347565b6106c1565b005b3480156102cc57600080fd5b506102e760048036038101906102e29190610fe7565b610844565b6040516102f49190611298565b60405180910390f35b34801561030957600080fd5b5061031261085c565b60405161031f9190611298565b60405180910390f35b610342600480360381019061033d9190610fe7565b610880565b005b34801561035057600080fd5b506103596108ef565b6040516103669190611298565b60405180910390f35b6103798282610913565b5050565b61038681610b86565b50565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000848490509050600081036103fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103f190611459565b60405180910390fd5b84849050811461043f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610436906114eb565b60405180910390fd5b828290508114610484576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161047b9061157d565b60405180910390fd5b60005b818110156104ec576104d98686838181106104a5576104a461159d565b5b905060200201358585848181106104bf576104be61159d565b5b90506020020160208101906104d491906115cc565b610913565b80806104e490611628565b915050610487565b505050505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60026020528060005260406000206000915054906101000a900460ff1681565b60008282905090507f0000000000000000000000000000000000000000000000000000000000000000816000546105719190611670565b11156105b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105a990611712565b60405180910390fd5b807f00000000000000000000000000000000000000000000000000000000000000006105de9190611732565b341461061f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610616906117fe565b60405180910390fd5b60005b8181101561066b576106588484838181106106405761063f61159d565b5b905060200201358334610653919061184d565b610cb0565b808061066390611628565b915050610622565b50505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60005481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b655ee34876040518263ffffffff1660e01b815260040161071c9190611298565b602060405180830381865afa158015610739573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075d91906118aa565b61079c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161079390611949565b60405180910390fd5b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636673e84987878787876040518663ffffffff1660e01b815260040161
|
||
|
"devdoc": {
|
||
|
"kind": "dev",
|
||
|
"methods": {
|
||
|
"register(uint256,bytes32,uint256,uint256,uint256[8],uint256)": {
|
||
|
"details": "Registers a member via a valid Interep Semaphore group.",
|
||
|
"params": {
|
||
|
"externalNullifier": ": External nullifier.",
|
||
|
"groupId": ": Id of the group.",
|
||
|
"idCommitment": ": ID Commitment of the member.",
|
||
|
"nullifierHash": ": Nullifier hash.",
|
||
|
"proof": ": Zero-knowledge proof.",
|
||
|
"signal": ": Semaphore signal."
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"version": 1
|
||
|
},
|
||
|
"userdoc": {
|
||
|
"kind": "user",
|
||
|
"methods": {},
|
||
|
"version": 1
|
||
|
},
|
||
|
"storageLayout": {
|
||
|
"storage": [
|
||
|
{
|
||
|
"astId": 1106,
|
||
|
"contract": "contracts/Rln.sol:RLN",
|
||
|
"label": "idCommitmentIndex",
|
||
|
"offset": 0,
|
||
|
"slot": "0",
|
||
|
"type": "t_uint256"
|
||
|
},
|
||
|
{
|
||
|
"astId": 1110,
|
||
|
"contract": "contracts/Rln.sol:RLN",
|
||
|
"label": "stakedAmounts",
|
||
|
"offset": 0,
|
||
|
"slot": "1",
|
||
|
"type": "t_mapping(t_uint256,t_uint256)"
|
||
|
},
|
||
|
{
|
||
|
"astId": 1114,
|
||
|
"contract": "contracts/Rln.sol:RLN",
|
||
|
"label": "members",
|
||
|
"offset": 0,
|
||
|
"slot": "2",
|
||
|
"type": "t_mapping(t_uint256,t_bool)"
|
||
|
},
|
||
|
{
|
||
|
"astId": 1117,
|
||
|
"contract": "contracts/Rln.sol:RLN",
|
||
|
"label": "poseidonHasher",
|
||
|
"offset": 0,
|
||
|
"slot": "3",
|
||
|
"type": "t_contract(IPoseidonHasher)648"
|
||
|
},
|
||
|
{
|
||
|
"astId": 1120,
|
||
|
"contract": "contracts/Rln.sol:RLN",
|
||
|
"label": "validGroupStorage",
|
||
|
"offset": 0,
|
||
|
"slot": "4",
|
||
|
"type": "t_contract(IValidGroupStorage)1578"
|
||
|
},
|
||
|
{
|
||
|
"astId": 1123,
|
||
|
"contract": "contracts/Rln.sol:RLN",
|
||
|
"label": "interep",
|
||
|
"offset": 0,
|
||
|
"slot": "5",
|
||
|
"type": "t_contract(IInterep)236"
|
||
|
}
|
||
|
],
|
||
|
"types": {
|
||
|
"t_bool": {
|
||
|
"encoding": "inplace",
|
||
|
"label": "bool",
|
||
|
"numberOfBytes": "1"
|
||
|
},
|
||
|
"t_contract(IInterep)236": {
|
||
|
"encoding": "inplace",
|
||
|
"label": "contract IInterep",
|
||
|
"numberOfBytes": "20"
|
||
|
},
|
||
|
"t_contract(IPoseidonHasher)648": {
|
||
|
"encoding": "inplace",
|
||
|
"label": "contract IPoseidonHasher",
|
||
|
"numberOfBytes": "20"
|
||
|
},
|
||
|
"t_contract(IValidGroupStorage)1578": {
|
||
|
"encoding": "inplace",
|
||
|
"label": "contract IValidGroupStorage",
|
||
|
"numberOfBytes": "20"
|
||
|
},
|
||
|
"t_mapping(t_uint256,t_bool)": {
|
||
|
"encoding": "mapping",
|
||
|
"key": "t_uint256",
|
||
|
"label": "mapping(uint256 => bool)",
|
||
|
"numberOfBytes": "32",
|
||
|
"value": "t_bool"
|
||
|
},
|
||
|
"t_mapping(t_uint256,t_uint256)": {
|
||
|
"encoding": "mapping",
|
||
|
"key": "t_uint256",
|
||
|
"label": "mapping(uint256 => uint256)",
|
||
|
"numberOfBytes": "32",
|
||
|
"value": "t_uint256"
|
||
|
},
|
||
|
"t_uint256": {
|
||
|
"encoding": "inplace",
|
||
|
"label": "uint256",
|
||
|
"numberOfBytes": "32"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|