tornado-relayer/abis/mixerABI.json

435 lines
8.0 KiB
JSON
Raw Normal View History

2019-07-18 14:43:26 +02:00
[
{
"constant": true,
"inputs": [],
"name": "filled_subtrees",
"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-07-25 16:09:42 +02:00
{
"constant": true,
"inputs": [
{
2019-09-16 18:22:16 +02:00
"internalType": "uint256",
2019-07-25 16:09:42 +02:00
"name": "",
"type": "uint256"
}
],
"name": "nullifierHashes",
"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-09-16 18:22:16 +02:00
"name": "verifier",
2019-07-18 14:43:26 +02:00
"outputs": [
{
2019-09-16 18:22:16 +02:00
"internalType": "contract IVerifier",
2019-07-18 14:43:26 +02:00
"name": "",
2019-09-16 18:22:16 +02:00
"type": "address"
2019-07-18 14:43:26 +02:00
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "roots",
"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"
},
{
"constant": true,
"inputs": [
{
2019-09-16 18:22:16 +02:00
"internalType": "uint256",
2019-07-18 14:43:26 +02:00
"name": "",
"type": "uint256"
}
],
"name": "commitments",
"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,
"inputs": [],
"name": "zeros",
"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"
},
{
"constant": true,
"inputs": [],
"name": "levels",
"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": [],
"name": "operator",
"outputs": [
{
"internalType": "address payable",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "isDepositsEnabled",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"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-07-18 14:43:26 +02:00
"name": "left",
"type": "uint256"
},
{
2019-09-16 18:22:16 +02:00
"internalType": "uint256",
2019-07-18 14:43:26 +02:00
"name": "right",
"type": "uint256"
}
],
"name": "hashLeftRight",
"outputs": [
{
2019-09-16 18:22:16 +02:00
"internalType": "uint256",
2019-07-18 14:43:26 +02:00
"name": "mimc_hash",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "pure",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "next_index",
"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,
"inputs": [],
"name": "current_root",
"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"
},
{
"constant": true,
"inputs": [
{
2019-09-16 18:22:16 +02:00
"internalType": "uint256",
2019-07-18 14:43:26 +02:00
"name": "root",
"type": "uint256"
}
],
"name": "isKnownRoot",
"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,
"inputs": [],
"name": "getLastRoot",
"outputs": [
{
2019-09-16 18:22:16 +02:00
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "mixDenomination",
"outputs": [
{
"internalType": "uint256",
2019-07-18 14:43:26 +02:00
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
2019-09-16 18:22:16 +02:00
"internalType": "address",
2019-07-18 14:43:26 +02:00
"name": "_verifier",
"type": "address"
},
{
2019-09-16 18:22:16 +02:00
"internalType": "uint256",
"name": "_mixDenomination",
2019-07-18 14:43:26 +02:00
"type": "uint256"
},
{
2019-09-16 18:22:16 +02:00
"internalType": "uint8",
2019-07-18 14:43:26 +02:00
"name": "_merkleTreeHeight",
"type": "uint8"
},
{
2019-09-16 18:22:16 +02:00
"internalType": "uint256",
2019-07-18 14:43:26 +02:00
"name": "_emptyElement",
"type": "uint256"
2019-09-16 18:22:16 +02:00
},
{
"internalType": "address payable",
"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-09-16 18:22:16 +02:00
"internalType": "uint256",
2019-07-22 13:22:47 +02:00
"name": "commitment",
"type": "uint256"
2019-07-18 14:43:26 +02:00
},
{
"indexed": false,
2019-09-16 18:22:16 +02:00
"internalType": "uint256",
2019-07-22 13:22:47 +02:00
"name": "leafIndex",
2019-07-18 14:43:26 +02:00
"type": "uint256"
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-09-16 18:22:16 +02:00
"internalType": "uint256",
2019-07-25 16:09:42 +02:00
"name": "nullifierHash",
2019-07-18 14:43:26 +02:00
"type": "uint256"
},
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"
}
],
"name": "Withdraw",
"type": "event"
},
{
"constant": false,
"inputs": [
{
2019-09-16 18:22:16 +02:00
"internalType": "uint256",
2019-07-18 14:43:26 +02:00
"name": "commitment",
"type": "uint256"
}
],
"name": "deposit",
"outputs": [],
"payable": true,
"stateMutability": "payable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
2019-09-16 18:22:16 +02:00
"internalType": "uint256[2]",
2019-07-18 14:43:26 +02:00
"name": "a",
"type": "uint256[2]"
},
{
2019-09-16 18:22:16 +02:00
"internalType": "uint256[2][2]",
2019-07-18 14:43:26 +02:00
"name": "b",
"type": "uint256[2][2]"
},
{
2019-09-16 18:22:16 +02:00
"internalType": "uint256[2]",
2019-07-18 14:43:26 +02:00
"name": "c",
"type": "uint256[2]"
},
{
2019-09-16 18:22:16 +02:00
"internalType": "uint256[5]",
2019-07-18 14:43:26 +02:00
"name": "input",
2019-09-16 18:22:16 +02:00
"type": "uint256[5]"
2019-07-18 14:43:26 +02:00
}
],
"name": "withdraw",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
2019-09-16 18:22:16 +02:00
{
"constant": false,
"inputs": [],
"name": "toggleDeposits",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address payable",
"name": "_newAccount",
"type": "address"
}
],
"name": "changeOperator",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
2019-07-18 14:43:26 +02:00
{
"constant": true,
"inputs": [
{
2019-09-16 18:22:16 +02:00
"internalType": "uint256",
2019-07-18 14:43:26 +02:00
"name": "nullifier",
"type": "uint256"
}
],
"name": "isSpent",
"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"
}
2019-09-16 18:22:16 +02:00
]