449 lines
7.5 KiB
JSON
449 lines
7.5 KiB
JSON
[
|
|
{
|
|
"anonymous":false,
|
|
"inputs":[
|
|
{
|
|
"indexed":true,
|
|
"internalType":"bytes32",
|
|
"name":"commitment",
|
|
"type":"bytes32"
|
|
},
|
|
{
|
|
"indexed":false,
|
|
"internalType":"uint32",
|
|
"name":"leafIndex",
|
|
"type":"uint32"
|
|
},
|
|
{
|
|
"indexed":false,
|
|
"internalType":"uint256",
|
|
"name":"timestamp",
|
|
"type":"uint256"
|
|
}
|
|
],
|
|
"name":"Deposit",
|
|
"type":"event"
|
|
},
|
|
{
|
|
"anonymous":false,
|
|
"inputs":[
|
|
{
|
|
"indexed":false,
|
|
"internalType":"address",
|
|
"name":"to",
|
|
"type":"address"
|
|
},
|
|
{
|
|
"indexed":false,
|
|
"internalType":"bytes32",
|
|
"name":"nullifierHash",
|
|
"type":"bytes32"
|
|
},
|
|
{
|
|
"indexed":true,
|
|
"internalType":"address",
|
|
"name":"relayer",
|
|
"type":"address"
|
|
},
|
|
{
|
|
"indexed":false,
|
|
"internalType":"uint256",
|
|
"name":"fee",
|
|
"type":"uint256"
|
|
}
|
|
],
|
|
"name":"Withdrawal",
|
|
"type":"event"
|
|
},
|
|
{
|
|
"inputs":[
|
|
|
|
],
|
|
"name":"FIELD_SIZE",
|
|
"outputs":[
|
|
{
|
|
"internalType":"uint256",
|
|
"name":"",
|
|
"type":"uint256"
|
|
}
|
|
],
|
|
"stateMutability":"view",
|
|
"type":"function"
|
|
},
|
|
{
|
|
"inputs":[
|
|
|
|
],
|
|
"name":"ROOT_HISTORY_SIZE",
|
|
"outputs":[
|
|
{
|
|
"internalType":"uint32",
|
|
"name":"",
|
|
"type":"uint32"
|
|
}
|
|
],
|
|
"stateMutability":"view",
|
|
"type":"function"
|
|
},
|
|
{
|
|
"inputs":[
|
|
|
|
],
|
|
"name":"ZERO_VALUE",
|
|
"outputs":[
|
|
{
|
|
"internalType":"uint256",
|
|
"name":"",
|
|
"type":"uint256"
|
|
}
|
|
],
|
|
"stateMutability":"view",
|
|
"type":"function"
|
|
},
|
|
{
|
|
"inputs":[
|
|
{
|
|
"internalType":"bytes32",
|
|
"name":"",
|
|
"type":"bytes32"
|
|
}
|
|
],
|
|
"name":"commitments",
|
|
"outputs":[
|
|
{
|
|
"internalType":"bool",
|
|
"name":"",
|
|
"type":"bool"
|
|
}
|
|
],
|
|
"stateMutability":"view",
|
|
"type":"function"
|
|
},
|
|
{
|
|
"inputs":[
|
|
|
|
],
|
|
"name":"currentRootIndex",
|
|
"outputs":[
|
|
{
|
|
"internalType":"uint32",
|
|
"name":"",
|
|
"type":"uint32"
|
|
}
|
|
],
|
|
"stateMutability":"view",
|
|
"type":"function"
|
|
},
|
|
{
|
|
"inputs":[
|
|
|
|
],
|
|
"name":"denomination",
|
|
"outputs":[
|
|
{
|
|
"internalType":"uint256",
|
|
"name":"",
|
|
"type":"uint256"
|
|
}
|
|
],
|
|
"stateMutability":"view",
|
|
"type":"function"
|
|
},
|
|
{
|
|
"inputs":[
|
|
{
|
|
"internalType":"bytes32",
|
|
"name":"_commitment",
|
|
"type":"bytes32"
|
|
}
|
|
],
|
|
"name":"deposit",
|
|
"outputs":[
|
|
|
|
],
|
|
"stateMutability":"payable",
|
|
"type":"function"
|
|
},
|
|
{
|
|
"inputs":[
|
|
{
|
|
"internalType":"uint256",
|
|
"name":"",
|
|
"type":"uint256"
|
|
}
|
|
],
|
|
"name":"filledSubtrees",
|
|
"outputs":[
|
|
{
|
|
"internalType":"bytes32",
|
|
"name":"",
|
|
"type":"bytes32"
|
|
}
|
|
],
|
|
"stateMutability":"view",
|
|
"type":"function"
|
|
},
|
|
{
|
|
"inputs":[
|
|
|
|
],
|
|
"name":"getLastRoot",
|
|
"outputs":[
|
|
{
|
|
"internalType":"bytes32",
|
|
"name":"",
|
|
"type":"bytes32"
|
|
}
|
|
],
|
|
"stateMutability":"view",
|
|
"type":"function"
|
|
},
|
|
{
|
|
"inputs":[
|
|
{
|
|
"internalType":"contract IHasher",
|
|
"name":"_hasher",
|
|
"type":"address"
|
|
},
|
|
{
|
|
"internalType":"bytes32",
|
|
"name":"_left",
|
|
"type":"bytes32"
|
|
},
|
|
{
|
|
"internalType":"bytes32",
|
|
"name":"_right",
|
|
"type":"bytes32"
|
|
}
|
|
],
|
|
"name":"hashLeftRight",
|
|
"outputs":[
|
|
{
|
|
"internalType":"bytes32",
|
|
"name":"",
|
|
"type":"bytes32"
|
|
}
|
|
],
|
|
"stateMutability":"pure",
|
|
"type":"function"
|
|
},
|
|
{
|
|
"inputs":[
|
|
|
|
],
|
|
"name":"hasher",
|
|
"outputs":[
|
|
{
|
|
"internalType":"contract IHasher",
|
|
"name":"",
|
|
"type":"address"
|
|
}
|
|
],
|
|
"stateMutability":"view",
|
|
"type":"function"
|
|
},
|
|
{
|
|
"inputs":[
|
|
{
|
|
"internalType":"bytes32",
|
|
"name":"_root",
|
|
"type":"bytes32"
|
|
}
|
|
],
|
|
"name":"isKnownRoot",
|
|
"outputs":[
|
|
{
|
|
"internalType":"bool",
|
|
"name":"",
|
|
"type":"bool"
|
|
}
|
|
],
|
|
"stateMutability":"view",
|
|
"type":"function"
|
|
},
|
|
{
|
|
"inputs":[
|
|
{
|
|
"internalType":"bytes32",
|
|
"name":"_nullifierHash",
|
|
"type":"bytes32"
|
|
}
|
|
],
|
|
"name":"isSpent",
|
|
"outputs":[
|
|
{
|
|
"internalType":"bool",
|
|
"name":"",
|
|
"type":"bool"
|
|
}
|
|
],
|
|
"stateMutability":"view",
|
|
"type":"function"
|
|
},
|
|
{
|
|
"inputs":[
|
|
{
|
|
"internalType":"bytes32[]",
|
|
"name":"_nullifierHashes",
|
|
"type":"bytes32[]"
|
|
}
|
|
],
|
|
"name":"isSpentArray",
|
|
"outputs":[
|
|
{
|
|
"internalType":"bool[]",
|
|
"name":"spent",
|
|
"type":"bool[]"
|
|
}
|
|
],
|
|
"stateMutability":"view",
|
|
"type":"function"
|
|
},
|
|
{
|
|
"inputs":[
|
|
|
|
],
|
|
"name":"levels",
|
|
"outputs":[
|
|
{
|
|
"internalType":"uint32",
|
|
"name":"",
|
|
"type":"uint32"
|
|
}
|
|
],
|
|
"stateMutability":"view",
|
|
"type":"function"
|
|
},
|
|
{
|
|
"inputs":[
|
|
|
|
],
|
|
"name":"nextIndex",
|
|
"outputs":[
|
|
{
|
|
"internalType":"uint32",
|
|
"name":"",
|
|
"type":"uint32"
|
|
}
|
|
],
|
|
"stateMutability":"view",
|
|
"type":"function"
|
|
},
|
|
{
|
|
"inputs":[
|
|
{
|
|
"internalType":"bytes32",
|
|
"name":"",
|
|
"type":"bytes32"
|
|
}
|
|
],
|
|
"name":"nullifierHashes",
|
|
"outputs":[
|
|
{
|
|
"internalType":"bool",
|
|
"name":"",
|
|
"type":"bool"
|
|
}
|
|
],
|
|
"stateMutability":"view",
|
|
"type":"function"
|
|
},
|
|
{
|
|
"inputs":[
|
|
{
|
|
"internalType":"uint256",
|
|
"name":"",
|
|
"type":"uint256"
|
|
}
|
|
],
|
|
"name":"roots",
|
|
"outputs":[
|
|
{
|
|
"internalType":"bytes32",
|
|
"name":"",
|
|
"type":"bytes32"
|
|
}
|
|
],
|
|
"stateMutability":"view",
|
|
"type":"function"
|
|
},
|
|
{
|
|
"inputs":[
|
|
|
|
],
|
|
"name":"verifier",
|
|
"outputs":[
|
|
{
|
|
"internalType":"contract IVerifier",
|
|
"name":"",
|
|
"type":"address"
|
|
}
|
|
],
|
|
"stateMutability":"view",
|
|
"type":"function"
|
|
},
|
|
{
|
|
"inputs":[
|
|
{
|
|
"internalType":"bytes",
|
|
"name":"_proof",
|
|
"type":"bytes"
|
|
},
|
|
{
|
|
"internalType":"bytes32",
|
|
"name":"_root",
|
|
"type":"bytes32"
|
|
},
|
|
{
|
|
"internalType":"bytes32",
|
|
"name":"_nullifierHash",
|
|
"type":"bytes32"
|
|
},
|
|
{
|
|
"internalType":"address payable",
|
|
"name":"_recipient",
|
|
"type":"address"
|
|
},
|
|
{
|
|
"internalType":"address payable",
|
|
"name":"_relayer",
|
|
"type":"address"
|
|
},
|
|
{
|
|
"internalType":"uint256",
|
|
"name":"_fee",
|
|
"type":"uint256"
|
|
},
|
|
{
|
|
"internalType":"uint256",
|
|
"name":"_refund",
|
|
"type":"uint256"
|
|
}
|
|
],
|
|
"name":"withdraw",
|
|
"outputs":[
|
|
|
|
],
|
|
"stateMutability":"payable",
|
|
"type":"function"
|
|
},
|
|
{
|
|
"inputs":[
|
|
{
|
|
"internalType":"uint256",
|
|
"name":"",
|
|
"type":"uint256"
|
|
}
|
|
],
|
|
"name":"zeros",
|
|
"outputs":[
|
|
{
|
|
"internalType":"bytes32",
|
|
"name":"",
|
|
"type":"bytes32"
|
|
}
|
|
],
|
|
"stateMutability":"view",
|
|
"type":"function"
|
|
}
|
|
] |