tornado-relayer/abis/tornadoABI.json

499 lines
9.1 KiB
JSON
Raw Permalink Normal View History

2019-07-18 15:43:26 +03:00
[
2019-11-14 16:24:01 +03:00
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "_newOperator",
"type": "address"
}
],
"name": "changeOperator",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
2019-11-09 15:21:02 +03:00
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"name": "nullifierHashes",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
2019-11-14 16:24:01 +03:00
{
"constant": false,
"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": [],
"payable": true,
"stateMutability": "payable",
"type": "function"
},
2019-07-18 15:43:26 +03:00
{
"constant": true,
"inputs": [],
2019-11-09 15:21:02 +03:00
"name": "verifier",
2019-07-18 15:43:26 +03:00
"outputs": [
{
2019-11-09 15:21:02 +03:00
"internalType": "contract IVerifier",
2019-07-18 15:43:26 +03:00
"name": "",
2019-11-09 15:21:02 +03:00
"type": "address"
2019-07-18 15:43:26 +03:00
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
2019-07-25 17:09:42 +03:00
{
"constant": true,
"inputs": [
2019-11-09 15:21:02 +03:00
{
"internalType": "bytes32",
"name": "_left",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "_right",
"type": "bytes32"
}
],
"name": "hashLeftRight",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "pure",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "FIELD_SIZE",
"outputs": [
2019-07-25 17:09:42 +03:00
{
2019-09-16 19:22:16 +03:00
"internalType": "uint256",
2019-07-25 17:09:42 +03:00
"name": "",
"type": "uint256"
}
],
2019-11-09 15:21:02 +03:00
"payable": false,
"stateMutability": "view",
"type": "function"
},
2019-07-18 15:43:26 +03:00
{
"constant": true,
"inputs": [],
2019-11-09 15:21:02 +03:00
"name": "levels",
2019-07-18 15:43:26 +03:00
"outputs": [
{
2019-11-09 15:21:02 +03:00
"internalType": "uint32",
2019-07-18 15:43:26 +03:00
"name": "",
2019-11-09 15:21:02 +03:00
"type": "uint32"
2019-07-18 15:43:26 +03:00
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
2019-11-09 15:21:02 +03:00
"name": "operator",
2019-07-18 15:43:26 +03:00
"outputs": [
{
2019-11-09 15:21:02 +03:00
"internalType": "address",
2019-07-18 15:43:26 +03:00
"name": "",
2019-11-09 15:21:02 +03:00
"type": "address"
2019-07-18 15:43:26 +03:00
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
2019-11-09 15:21:02 +03:00
"internalType": "bytes32",
"name": "_root",
"type": "bytes32"
2019-07-18 15:43:26 +03:00
}
],
2019-11-09 15:21:02 +03:00
"name": "isKnownRoot",
2019-07-18 15:43:26 +03:00
"outputs": [
{
2019-09-16 19:22:16 +03:00
"internalType": "bool",
2019-07-18 15:43:26 +03:00
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
2019-11-09 15:21:02 +03:00
"inputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"name": "commitments",
2019-07-18 15:43:26 +03:00
"outputs": [
{
2019-11-09 15:21:02 +03:00
"internalType": "bool",
2019-07-18 15:43:26 +03:00
"name": "",
2019-11-09 15:21:02 +03:00
"type": "bool"
2019-07-18 15:43:26 +03:00
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
2019-11-09 15:21:02 +03:00
"name": "denomination",
2019-07-18 15:43:26 +03:00
"outputs": [
{
2019-09-16 19:22:16 +03:00
"internalType": "uint256",
2019-07-18 15:43:26 +03:00
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
2019-09-16 19:22:16 +03:00
{
"constant": true,
"inputs": [],
2019-11-09 15:21:02 +03:00
"name": "currentRootIndex",
2019-09-16 19:22:16 +03:00
"outputs": [
{
2019-11-09 15:21:02 +03:00
"internalType": "uint32",
2019-09-16 19:22:16 +03:00
"name": "",
2019-11-09 15:21:02 +03:00
"type": "uint32"
2019-09-16 19:22:16 +03:00
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
2019-11-14 16:24:01 +03:00
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "_newVerifier",
"type": "address"
}
],
"name": "updateVerifier",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "_commitment",
"type": "bytes32"
}
],
"name": "deposit",
"outputs": [],
"payable": true,
"stateMutability": "payable",
"type": "function"
},
2019-09-16 19:22:16 +03:00
{
"constant": true,
"inputs": [],
2019-11-09 15:21:02 +03:00
"name": "getLastRoot",
2019-09-16 19:22:16 +03:00
"outputs": [
{
2019-11-09 15:21:02 +03:00
"internalType": "bytes32",
2019-09-16 19:22:16 +03:00
"name": "",
2019-11-09 15:21:02 +03:00
"type": "bytes32"
2019-09-16 19:22:16 +03:00
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
2019-07-18 15:43:26 +03:00
{
"constant": true,
"inputs": [
{
2019-09-16 19:22:16 +03:00
"internalType": "uint256",
2019-11-09 15:21:02 +03:00
"name": "",
2019-07-18 15:43:26 +03:00
"type": "uint256"
}
],
2019-11-09 15:21:02 +03:00
"name": "roots",
2019-07-18 15:43:26 +03:00
"outputs": [
{
2019-11-09 15:21:02 +03:00
"internalType": "bytes32",
"name": "",
"type": "bytes32"
2019-07-18 15:43:26 +03:00
}
],
"payable": false,
2019-11-09 15:21:02 +03:00
"stateMutability": "view",
2019-07-18 15:43:26 +03:00
"type": "function"
},
{
"constant": true,
"inputs": [],
2019-11-09 15:21:02 +03:00
"name": "ROOT_HISTORY_SIZE",
2019-07-18 15:43:26 +03:00
"outputs": [
{
2019-09-16 19:22:16 +03:00
"internalType": "uint32",
2019-07-18 15:43:26 +03:00
"name": "",
"type": "uint32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
2019-11-09 15:21:02 +03:00
"inputs": [
2019-07-18 15:43:26 +03:00
{
2019-11-14 16:24:01 +03:00
"internalType": "bytes32",
"name": "_nullifierHash",
"type": "bytes32"
2019-07-18 15:43:26 +03:00
}
],
2019-11-14 16:24:01 +03:00
"name": "isSpent",
2019-11-09 15:21:02 +03:00
"outputs": [
{
2019-11-14 16:24:01 +03:00
"internalType": "bool",
2019-11-09 15:21:02 +03:00
"name": "",
2019-11-14 16:24:01 +03:00
"type": "bool"
2019-11-09 15:21:02 +03:00
}
],
2019-07-18 15:43:26 +03:00
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
2019-11-14 16:24:01 +03:00
"inputs": [
2019-07-18 15:43:26 +03:00
{
2019-09-16 19:22:16 +03:00
"internalType": "uint256",
2019-11-09 15:21:02 +03:00
"name": "",
2019-07-18 15:43:26 +03:00
"type": "uint256"
}
],
2019-11-14 16:24:01 +03:00
"name": "zeros",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
2019-11-09 15:21:02 +03:00
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
2019-11-14 16:24:01 +03:00
"name": "ZERO_VALUE",
2019-07-18 15:43:26 +03:00
"outputs": [
{
2019-11-14 16:24:01 +03:00
"internalType": "uint256",
2019-07-18 15:43:26 +03:00
"name": "",
2019-11-14 16:24:01 +03:00
"type": "uint256"
2019-07-18 15:43:26 +03:00
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
2019-11-09 15:21:02 +03:00
"inputs": [
2019-07-18 15:43:26 +03:00
{
2019-09-16 19:22:16 +03:00
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
2019-11-09 15:21:02 +03:00
"name": "filledSubtrees",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
2019-09-16 19:22:16 +03:00
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
2019-11-09 15:21:02 +03:00
"name": "nextIndex",
2019-09-16 19:22:16 +03:00
"outputs": [
{
2019-11-09 15:21:02 +03:00
"internalType": "uint32",
2019-07-18 15:43:26 +03:00
"name": "",
2019-11-09 15:21:02 +03:00
"type": "uint32"
2019-07-18 15:43:26 +03:00
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
2019-11-09 15:21:02 +03:00
"internalType": "contract IVerifier",
2019-07-18 15:43:26 +03:00
"name": "_verifier",
"type": "address"
},
{
2019-09-16 19:22:16 +03:00
"internalType": "uint256",
2019-11-09 15:21:02 +03:00
"name": "_denomination",
2019-07-18 15:43:26 +03:00
"type": "uint256"
},
{
2019-11-09 15:21:02 +03:00
"internalType": "uint32",
2019-07-18 15:43:26 +03:00
"name": "_merkleTreeHeight",
2019-11-09 15:21:02 +03:00
"type": "uint32"
2019-09-16 19:22:16 +03:00
},
{
2019-11-09 15:21:02 +03:00
"internalType": "address",
2019-09-16 19:22:16 +03:00
"name": "_operator",
"type": "address"
2019-07-18 15:43:26 +03:00
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
2019-07-22 14:22:47 +03:00
"indexed": true,
2019-11-09 15:21:02 +03:00
"internalType": "bytes32",
2019-07-22 14:22:47 +03:00
"name": "commitment",
2019-11-09 15:21:02 +03:00
"type": "bytes32"
2019-07-18 15:43:26 +03:00
},
{
"indexed": false,
2019-11-09 15:21:02 +03:00
"internalType": "uint32",
2019-07-22 14:22:47 +03:00
"name": "leafIndex",
2019-11-09 15:21:02 +03:00
"type": "uint32"
2019-07-25 17:09:42 +03:00
},
{
"indexed": false,
2019-09-16 19:22:16 +03:00
"internalType": "uint256",
2019-07-25 17:09:42 +03:00
"name": "timestamp",
"type": "uint256"
2019-07-18 15:43:26 +03:00
}
],
"name": "Deposit",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
2019-09-16 19:22:16 +03:00
"internalType": "address",
2019-07-18 15:43:26 +03:00
"name": "to",
"type": "address"
},
{
"indexed": false,
2019-11-09 15:21:02 +03:00
"internalType": "bytes32",
2019-07-25 17:09:42 +03:00
"name": "nullifierHash",
2019-11-09 15:21:02 +03:00
"type": "bytes32"
2019-07-18 15:43:26 +03:00
},
2019-09-16 19:22:16 +03:00
{
"indexed": true,
"internalType": "address",
"name": "relayer",
"type": "address"
},
2019-07-18 15:43:26 +03:00
{
"indexed": false,
2019-09-16 19:22:16 +03:00
"internalType": "uint256",
2019-07-18 15:43:26 +03:00
"name": "fee",
"type": "uint256"
}
],
2019-11-09 15:21:02 +03:00
"name": "Withdrawal",
2019-07-18 15:43:26 +03:00
"type": "event"
}
2019-11-14 16:24:01 +03:00
]