forked from tornadocash/tornado-cli
1. Add relayer autoselection and command to get available registered relayer list 2. Add RPC and subgraph autoselection by chain ID for user-provided action 3. Fix bug in graph events fetching, now it cannot skip events in corner case 4. Rewrite half of CLI code, remove redundant functions, move global variables to specific object, add typings 5. Create tornado-cli.exe, deterministic and reproducible CLi executable build 6. Update config.json with working RPC and subgraphs for all chains 7. Update all events to actual state
238 lines
4.5 KiB
JSON
238 lines
4.5 KiB
JSON
[
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "_tornadoTrees",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "_governance",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"internalType": "bytes32[]",
|
|
"name": "_instances",
|
|
"type": "bytes32[]"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "constructor"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"internalType": "address",
|
|
"name": "sender",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"internalType": "bytes",
|
|
"name": "encryptedNote",
|
|
"type": "bytes"
|
|
}
|
|
],
|
|
"name": "EncryptedNote",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "bytes32[]",
|
|
"name": "domains",
|
|
"type": "bytes32[]"
|
|
}
|
|
],
|
|
"name": "bulkResolve",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address[]",
|
|
"name": "result",
|
|
"type": "address[]"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "governance",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "contract ITornadoInstance",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "instances",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bool",
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "node",
|
|
"type": "bytes32"
|
|
}
|
|
],
|
|
"name": "resolve",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "tornadoTrees",
|
|
"outputs": [
|
|
{
|
|
"internalType": "contract ITornadoTrees",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "contract ITornadoInstance",
|
|
"name": "_tornado",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "_commitment",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"internalType": "bytes",
|
|
"name": "_encryptedNote",
|
|
"type": "bytes"
|
|
}
|
|
],
|
|
"name": "deposit",
|
|
"outputs": [],
|
|
"stateMutability": "payable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "contract ITornadoInstance",
|
|
"name": "_instance",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "bool",
|
|
"name": "_update",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"name": "updateInstance",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "contract ITornadoInstance",
|
|
"name": "_tornado",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"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": "contract IERC20",
|
|
"name": "_token",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address payable",
|
|
"name": "_to",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "_balance",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "rescueTokens",
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
}
|
|
]
|