tornado-relayer/abis/mixerABI.json

552 lines
10 KiB
JSON
Raw Normal View History

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