update abi

This commit is contained in:
poma 2019-11-09 15:21:02 +03:00
parent ff2202e2b0
commit 945a5945f8

@ -1,26 +1,11 @@
[ [
{
"constant": true,
"inputs": [],
"name": "filled_subtrees",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{ {
"constant": true, "constant": true,
"inputs": [ "inputs": [
{ {
"internalType": "uint256", "internalType": "bytes32",
"name": "", "name": "",
"type": "uint256" "type": "bytes32"
} }
], ],
"name": "nullifierHashes", "name": "nullifierHashes",
@ -52,13 +37,84 @@
}, },
{ {
"constant": true, "constant": true,
"inputs": [], "inputs": [
"name": "roots", {
"internalType": "bytes32",
"name": "_left",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "_right",
"type": "bytes32"
}
],
"name": "hashLeftRight",
"outputs": [ "outputs": [
{ {
"internalType": "uint256[]", "internalType": "bytes32",
"name": "", "name": "",
"type": "uint256[]" "type": "bytes32"
}
],
"payable": false,
"stateMutability": "pure",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "FIELD_SIZE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "isVerifierUpdateDisabled",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "levels",
"outputs": [
{
"internalType": "uint32",
"name": "",
"type": "uint32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "operator",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
} }
], ],
"payable": false, "payable": false,
@ -69,9 +125,30 @@
"constant": true, "constant": true,
"inputs": [ "inputs": [
{ {
"internalType": "uint256", "internalType": "bytes32",
"name": "_root",
"type": "bytes32"
}
],
"name": "isKnownRoot",
"outputs": [
{
"internalType": "bool",
"name": "", "name": "",
"type": "uint256" "type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
} }
], ],
"name": "commitments", "name": "commitments",
@ -89,22 +166,7 @@
{ {
"constant": true, "constant": true,
"inputs": [], "inputs": [],
"name": "zeros", "name": "denomination",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "levels",
"outputs": [ "outputs": [
{ {
"internalType": "uint256", "internalType": "uint256",
@ -119,63 +181,7 @@
{ {
"constant": true, "constant": true,
"inputs": [], "inputs": [],
"name": "operator", "name": "currentRootIndex",
"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"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
"name": "left",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "right",
"type": "uint256"
}
],
"name": "hashLeftRight",
"outputs": [
{
"internalType": "uint256",
"name": "mimc_hash",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "pure",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "next_index",
"outputs": [ "outputs": [
{ {
"internalType": "uint32", "internalType": "uint32",
@ -190,7 +196,79 @@
{ {
"constant": true, "constant": true,
"inputs": [], "inputs": [],
"name": "current_root", "name": "getLastRoot",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "roots",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "ROOT_HISTORY_SIZE",
"outputs": [
{
"internalType": "uint32",
"name": "",
"type": "uint32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "zeros",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "ZERO_VALUE",
"outputs": [ "outputs": [
{ {
"internalType": "uint256", "internalType": "uint256",
@ -204,14 +282,8 @@
}, },
{ {
"constant": true, "constant": true,
"inputs": [ "inputs": [],
{ "name": "isDepositsDisabled",
"internalType": "uint256",
"name": "root",
"type": "uint256"
}
],
"name": "isKnownRoot",
"outputs": [ "outputs": [
{ {
"internalType": "bool", "internalType": "bool",
@ -225,15 +297,21 @@
}, },
{ {
"constant": true, "constant": true,
"inputs": [], "inputs": [
"name": "getLastRoot",
"outputs": [
{ {
"internalType": "uint256", "internalType": "uint256",
"name": "", "name": "",
"type": "uint256" "type": "uint256"
} }
], ],
"name": "filledSubtrees",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false, "payable": false,
"stateMutability": "view", "stateMutability": "view",
"type": "function" "type": "function"
@ -241,12 +319,12 @@
{ {
"constant": true, "constant": true,
"inputs": [], "inputs": [],
"name": "mixDenomination", "name": "nextIndex",
"outputs": [ "outputs": [
{ {
"internalType": "uint256", "internalType": "uint32",
"name": "", "name": "",
"type": "uint256" "type": "uint32"
} }
], ],
"payable": false, "payable": false,
@ -256,27 +334,22 @@
{ {
"inputs": [ "inputs": [
{ {
"internalType": "address", "internalType": "contract IVerifier",
"name": "_verifier", "name": "_verifier",
"type": "address" "type": "address"
}, },
{ {
"internalType": "uint256", "internalType": "uint256",
"name": "_mixDenomination", "name": "_denomination",
"type": "uint256" "type": "uint256"
}, },
{ {
"internalType": "uint8", "internalType": "uint32",
"name": "_merkleTreeHeight", "name": "_merkleTreeHeight",
"type": "uint8" "type": "uint32"
}, },
{ {
"internalType": "uint256", "internalType": "address",
"name": "_emptyElement",
"type": "uint256"
},
{
"internalType": "address payable",
"name": "_operator", "name": "_operator",
"type": "address" "type": "address"
} }
@ -290,15 +363,15 @@
"inputs": [ "inputs": [
{ {
"indexed": true, "indexed": true,
"internalType": "uint256", "internalType": "bytes32",
"name": "commitment", "name": "commitment",
"type": "uint256" "type": "bytes32"
}, },
{ {
"indexed": false, "indexed": false,
"internalType": "uint256", "internalType": "uint32",
"name": "leafIndex", "name": "leafIndex",
"type": "uint256" "type": "uint32"
}, },
{ {
"indexed": false, "indexed": false,
@ -321,9 +394,9 @@
}, },
{ {
"indexed": false, "indexed": false,
"internalType": "uint256", "internalType": "bytes32",
"name": "nullifierHash", "name": "nullifierHash",
"type": "uint256" "type": "bytes32"
}, },
{ {
"indexed": true, "indexed": true,
@ -338,16 +411,16 @@
"type": "uint256" "type": "uint256"
} }
], ],
"name": "Withdraw", "name": "Withdrawal",
"type": "event" "type": "event"
}, },
{ {
"constant": false, "constant": false,
"inputs": [ "inputs": [
{ {
"internalType": "uint256", "internalType": "bytes32",
"name": "commitment", "name": "_commitment",
"type": "uint256" "type": "bytes32"
} }
], ],
"name": "deposit", "name": "deposit",
@ -360,63 +433,54 @@
"constant": false, "constant": false,
"inputs": [ "inputs": [
{ {
"internalType": "uint256[2]", "internalType": "bytes",
"name": "a", "name": "_proof",
"type": "uint256[2]" "type": "bytes"
}, },
{ {
"internalType": "uint256[2][2]", "internalType": "bytes32",
"name": "b", "name": "_root",
"type": "uint256[2][2]" "type": "bytes32"
}, },
{ {
"internalType": "uint256[2]", "internalType": "bytes32",
"name": "c", "name": "_nullifierHash",
"type": "uint256[2]" "type": "bytes32"
}, },
{ {
"internalType": "uint256[5]", "internalType": "address payable",
"name": "input", "name": "_recipient",
"type": "uint256[5]" "type": "address"
},
{
"internalType": "address payable",
"name": "_relayer",
"type": "address"
},
{
"internalType": "uint256",
"name": "_fee",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_refund",
"type": "uint256"
} }
], ],
"name": "withdraw", "name": "withdraw",
"outputs": [], "outputs": [],
"payable": false, "payable": true,
"stateMutability": "nonpayable", "stateMutability": "payable",
"type": "function"
},
{
"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" "type": "function"
}, },
{ {
"constant": true, "constant": true,
"inputs": [ "inputs": [
{ {
"internalType": "uint256", "internalType": "bytes32",
"name": "nullifier", "name": "_nullifierHash",
"type": "uint256" "type": "bytes32"
} }
], ],
"name": "isSpent", "name": "isSpent",
@ -430,5 +494,59 @@
"payable": false, "payable": false,
"stateMutability": "view", "stateMutability": "view",
"type": "function" "type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bool",
"name": "_state",
"type": "bool"
}
],
"name": "toggleDeposits",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "_newVerifier",
"type": "address"
}
],
"name": "updateVerifier",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "disableVerifierUpdate",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "_newOperator",
"type": "address"
}
],
"name": "changeOperator",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
} }
] ]