Skip to content

Instantly share code, notes, and snippets.

@banteg
Created May 3, 2021 01:57
Show Gist options
  • Save banteg/e0fe96c6909fd3eb762df54369f4cb16 to your computer and use it in GitHub Desktop.
Save banteg/e0fe96c6909fd3eb762df54369f4cb16 to your computer and use it in GitHub Desktop.
{
"WAIT_TIME": 14000,
"fileSystem": {
"address": "0x74342D38D317f2D53D3025E229c3e368639449d6",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "root",
"type": "bytes32"
}
],
"name": "CreatedFile",
"type": "event"
},
{
"constant": false,
"inputs": [
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "uint256",
"name": "size",
"type": "uint256"
},
{
"internalType": "address",
"name": "_address",
"type": "address"
},
{
"internalType": "bytes32",
"name": "root",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "nonce",
"type": "uint256"
}
],
"name": "addContractFile",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "uint256",
"name": "size",
"type": "uint256"
},
{
"internalType": "string",
"name": "hash",
"type": "string"
},
{
"internalType": "bytes32",
"name": "root",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "nonce",
"type": "uint256"
}
],
"name": "addIpfsFile",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "uint256",
"name": "nonce",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "fid",
"type": "bytes32"
}
],
"name": "addToBundle",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"name": "bundles",
"outputs": [
{
"internalType": "bytes32",
"name": "codeFileId",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "init",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
"name": "nonce",
"type": "uint256"
}
],
"name": "calculateId",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "bid",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "hash",
"type": "bytes32"
}
],
"name": "containsNameHash",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "uint256",
"name": "nonce",
"type": "uint256"
},
{
"internalType": "bytes32[]",
"name": "arr",
"type": "bytes32[]"
},
{
"internalType": "uint256",
"name": "sz",
"type": "uint256"
}
],
"name": "createFileFromArray",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "uint256",
"name": "nonce",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "arr",
"type": "bytes"
}
],
"name": "createFileFromBytes",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "uint256",
"name": "nonce",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "codeFileID",
"type": "bytes32"
}
],
"name": "finalizeBundle",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
},
{
"internalType": "address",
"name": "a",
"type": "address"
}
],
"name": "forwardData",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
}
],
"name": "getBytesData",
"outputs": [
{
"internalType": "bytes32[]",
"name": "",
"type": "bytes32[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "bid",
"type": "bytes32"
}
],
"name": "getCodeFileId",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
}
],
"name": "getCodeType",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
}
],
"name": "getContractAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
}
],
"name": "getContractCode",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "bid",
"type": "bytes32"
}
],
"name": "getFileList",
"outputs": [
{
"internalType": "bytes32[]",
"name": "",
"type": "bytes32[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
}
],
"name": "getFileType",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
}
],
"name": "getFormattedBytesData",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "bid",
"type": "bytes32"
}
],
"name": "getInitialHash",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
}
],
"name": "getIpfsHash",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
}
],
"name": "getName",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
}
],
"name": "getNameHash",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
}
],
"name": "getRoot",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
}
],
"name": "getSize",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "string",
"name": "name",
"type": "string"
}
],
"name": "hashName",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "pure",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "initialize",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "uint256",
"name": "nonce",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "codeRoot",
"type": "bytes32"
},
{
"internalType": "uint8",
"name": "codeType",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "stackSize",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "memorySize",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "globalsSize",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "tableSize",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "callSize",
"type": "uint8"
}
],
"name": "setCodeRoot",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"name": "vmParameters",
"outputs": [
{
"internalType": "bytes32",
"name": "codeRoot",
"type": "bytes32"
},
{
"internalType": "uint8",
"name": "codeType",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "stackSize",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "memorySize",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "globalsSize",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "tableSize",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "callSize",
"type": "uint8"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
]
},
"judge": {
"address": "0x43C65d1234EddE9C9bC638F1FB284E1Eb0c7CA1d",
"abi": [
{
"constant": true,
"inputs": [
{
"internalType": "bytes32[10]",
"name": "roots",
"type": "bytes32[10]"
}
],
"name": "calcIOHash",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "pure",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32[10]",
"name": "roots",
"type": "bytes32[10]"
},
{
"internalType": "uint256[4]",
"name": "pointers",
"type": "uint256[4]"
}
],
"name": "calcStateHash",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "state",
"type": "bytes32"
},
{
"internalType": "bytes32[10]",
"name": "roots",
"type": "bytes32[10]"
},
{
"internalType": "uint256[4]",
"name": "pointers",
"type": "uint256[4]"
},
{
"internalType": "bytes32[]",
"name": "_proof",
"type": "bytes32[]"
},
{
"internalType": "uint256",
"name": "loc",
"type": "uint256"
}
],
"name": "checkFileProof",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "hash",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "root",
"type": "bytes32"
},
{
"internalType": "bytes32[]",
"name": "_proof",
"type": "bytes32[]"
},
{
"internalType": "uint256",
"name": "loc",
"type": "uint256"
}
],
"name": "checkProof",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32[13]",
"name": "res",
"type": "bytes32[13]"
},
{
"internalType": "uint256",
"name": "q",
"type": "uint256"
},
{
"internalType": "bytes32[]",
"name": "_proof",
"type": "bytes32[]"
},
{
"internalType": "bytes32[]",
"name": "_proof2",
"type": "bytes32[]"
},
{
"internalType": "bytes32",
"name": "vm_",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "op",
"type": "bytes32"
},
{
"internalType": "uint256[4]",
"name": "regs",
"type": "uint256[4]"
},
{
"internalType": "bytes32[10]",
"name": "roots",
"type": "bytes32[10]"
},
{
"internalType": "uint256[4]",
"name": "pointers",
"type": "uint256[4]"
}
],
"name": "debug_judge",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "initialize",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32[13]",
"name": "res",
"type": "bytes32[13]"
},
{
"internalType": "uint256",
"name": "q",
"type": "uint256"
},
{
"internalType": "bytes32[]",
"name": "_proof",
"type": "bytes32[]"
},
{
"internalType": "bytes32[]",
"name": "_proof2",
"type": "bytes32[]"
},
{
"internalType": "bytes32",
"name": "vm_",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "op",
"type": "bytes32"
},
{
"internalType": "uint256[4]",
"name": "regs",
"type": "uint256[4]"
},
{
"internalType": "bytes32[10]",
"name": "roots",
"type": "bytes32[10]"
},
{
"internalType": "uint256[4]",
"name": "pointers",
"type": "uint256[4]"
}
],
"name": "judge",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "start",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "next",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "ex_state",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "ex_size",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "op",
"type": "bytes32"
},
{
"internalType": "uint256[4]",
"name": "regs",
"type": "uint256[4]"
},
{
"internalType": "bytes32[10]",
"name": "roots",
"type": "bytes32[10]"
},
{
"internalType": "uint256[4]",
"name": "pointers",
"type": "uint256[4]"
},
{
"internalType": "bytes32[]",
"name": "_proof",
"type": "bytes32[]"
}
],
"name": "judgeCustom",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
]
},
"interactive": {
"address": "0x2E6535e1CcD6EFb6B40d3DA3A6C6DAc773622803",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "idx1",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bytes32[13]",
"name": "arr",
"type": "bytes32[13]"
}
],
"name": "PostedPhases",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "idx1",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "idx2",
"type": "uint256"
}
],
"name": "Queried",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "idx1",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "idx2",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bytes32[]",
"name": "arr",
"type": "bytes32[]"
}
],
"name": "Reported",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "idx1",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "phase",
"type": "uint256"
}
],
"name": "SelectedPhase",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "p",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "c",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "s",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "e",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "par",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "to",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
}
],
"name": "StartChallenge",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint64",
"name": "judge",
"type": "uint64"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "init_data",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "init_size",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "ret_data",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "ret_size",
"type": "uint256"
}
],
"name": "SubGoal",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
}
],
"name": "WinnerSelected",
"type": "event"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
}
],
"name": "blockedTime",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32[10]",
"name": "roots",
"type": "bytes32[10]"
},
{
"internalType": "uint256[4]",
"name": "pointers",
"type": "uint256[4]"
}
],
"name": "calcStateHash",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "i1",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "op",
"type": "bytes32"
},
{
"internalType": "uint256[4]",
"name": "regs",
"type": "uint256[4]"
},
{
"internalType": "bytes32",
"name": "custom_result",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "custom_size",
"type": "uint256"
},
{
"internalType": "bytes32[]",
"name": "custom_proof",
"type": "bytes32[]"
},
{
"internalType": "bytes32[10]",
"name": "roots",
"type": "bytes32[10]"
},
{
"internalType": "uint256[4]",
"name": "pointers",
"type": "uint256[4]"
}
],
"name": "callCustomJudge",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "i1",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "q",
"type": "uint256"
},
{
"internalType": "bytes32[]",
"name": "proof",
"type": "bytes32[]"
},
{
"internalType": "bytes32[]",
"name": "proof2",
"type": "bytes32[]"
},
{
"internalType": "bytes32",
"name": "vmHash",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "op",
"type": "bytes32"
},
{
"internalType": "uint256[4]",
"name": "regs",
"type": "uint256[4]"
},
{
"internalType": "bytes32[10]",
"name": "roots",
"type": "bytes32[10]"
},
{
"internalType": "uint256[4]",
"name": "pointers",
"type": "uint256[4]"
}
],
"name": "callJudge",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32[10]",
"name": "roots",
"type": "bytes32[10]"
},
{
"internalType": "uint256[4]",
"name": "pointers",
"type": "uint256[4]"
}
],
"name": "ccStateHash",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "state",
"type": "bytes32"
},
{
"internalType": "bytes32[10]",
"name": "roots",
"type": "bytes32[10]"
},
{
"internalType": "uint256[4]",
"name": "pointers",
"type": "uint256[4]"
},
{
"internalType": "bytes32[]",
"name": "proof",
"type": "bytes32[]"
},
{
"internalType": "uint256",
"name": "loc",
"type": "uint256"
}
],
"name": "checkFileProof",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "hash",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "root",
"type": "bytes32"
},
{
"internalType": "bytes32[]",
"name": "proof",
"type": "bytes32[]"
},
{
"internalType": "uint256",
"name": "loc",
"type": "uint256"
}
],
"name": "checkProof",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
}
],
"name": "clock",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
}
],
"name": "deleteChallenge",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
}
],
"name": "gameOver",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
}
],
"name": "getChallenger",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
}
],
"name": "getDescription",
"outputs": [
{
"internalType": "bytes32",
"name": "init",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "steps",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "last",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
}
],
"name": "getIndices",
"outputs": [
{
"internalType": "uint256",
"name": "idx1",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "idx2",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
}
],
"name": "getPhase",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
}
],
"name": "getProver",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
}
],
"name": "getResult",
"outputs": [
{
"internalType": "bytes32[13]",
"name": "",
"type": "bytes32[13]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
}
],
"name": "getState",
"outputs": [
{
"internalType": "enum Interactive.State",
"name": "",
"type": "uint8"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "loc",
"type": "uint256"
}
],
"name": "getStateAt",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "idx",
"type": "uint256"
}
],
"name": "getStep",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
}
],
"name": "getTask",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
}
],
"name": "getWinner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "addr",
"type": "address"
}
],
"name": "initialize",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
},
{
"internalType": "bytes32[10]",
"name": "s_roots",
"type": "bytes32[10]"
},
{
"internalType": "uint256[4]",
"name": "s_pointers",
"type": "uint256[4]"
},
{
"internalType": "uint256",
"name": "_steps",
"type": "uint256"
},
{
"internalType": "bytes32[10]",
"name": "e_roots",
"type": "bytes32[10]"
},
{
"internalType": "uint256[4]",
"name": "e_pointers",
"type": "uint256[4]"
}
],
"name": "initializeGame",
"outputs": [
{
"internalType": "bytes32[10]",
"name": "",
"type": "bytes32[10]"
},
{
"internalType": "uint256[4]",
"name": "",
"type": "uint256[4]"
},
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
}
],
"name": "isRejected",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
},
{
"internalType": "address",
"name": "solver",
"type": "address"
},
{
"internalType": "address",
"name": "verifier",
"type": "address"
},
{
"internalType": "bytes32",
"name": "startStateHash",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "endStateHash",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "size",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "timeout",
"type": "uint256"
}
],
"name": "make",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "i1",
"type": "uint256"
},
{
"internalType": "bytes32[13]",
"name": "arr",
"type": "bytes32[13]"
}
],
"name": "postPhases",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "i1",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "i2",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "num",
"type": "uint256"
}
],
"name": "query",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "uint64",
"name": "id",
"type": "uint64"
},
{
"internalType": "address",
"name": "addr",
"type": "address"
}
],
"name": "registerJudge",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "i1",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "i2",
"type": "uint256"
},
{
"internalType": "bytes32[]",
"name": "arr",
"type": "bytes32[]"
}
],
"name": "report",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
}
],
"name": "resolveCustom",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "i1",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "st",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "q",
"type": "uint256"
}
],
"name": "selectPhase",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
}
],
"name": "status",
"outputs": [
{
"internalType": "enum IDispute.Status",
"name": "",
"type": "uint8"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
}
],
"name": "timeoutBlock",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
]
},
"incentiveLayer": {
"address": "0x388a3bD8f54F305266898e77B126609Ec6265f1e",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
}
],
"name": "BlockLimitError",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
}
],
"name": "EndCommitChallengePeriod",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "numVerifiers",
"type": "uint256"
}
],
"name": "EndRevealIntentPeriod",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
}
],
"name": "JackpotTriggered",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "address",
"name": "receiver",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "intended",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "ReceivedJackpot",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "solverAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "ownerAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "solver",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "RewardPaid",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "opponent",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "SlashedDeposit",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
}
],
"name": "SolutionCommitted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "solution0",
"type": "bytes32"
}
],
"name": "SolutionRevealed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "address",
"name": "solver",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "randomBitsHash",
"type": "bytes32"
}
],
"name": "SolverSelected",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "minDeposit",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "reward",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "tax",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "blockLimit",
"type": "uint256"
}
],
"name": "TaskCreated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "bytes32[]",
"name": "files",
"type": "bytes32[]"
}
],
"name": "TaskFinalized",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "refund",
"type": "uint256"
}
],
"name": "TaskTimeout",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "gameID",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "solver",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "currentChallenger",
"type": "address"
}
],
"name": "VerificationGame",
"type": "event"
},
{
"constant": true,
"inputs": [],
"name": "BASIC_TIMEOUT",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "BURN_RATE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "LICENSE_FEE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "PLATFORM_FEE_SOLVER",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "PLATFORM_FEE_TASK_GIVER",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "SLASH_RATE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "TASKS_PER_LICENSE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "TRUburnBox",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "bonusTable",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "buyLicense",
"outputs": [],
"payable": true,
"stateMutability": "payable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
}
],
"name": "canClaimAbandonedJackpots",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
}
],
"name": "canRunVerificationGame",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"name": "challenges",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "hash",
"type": "bytes32"
}
],
"name": "commitChallenge",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "solutionHash0",
"type": "bytes32"
}
],
"name": "commitSolution",
"outputs": [],
"payable": true,
"stateMutability": "payable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "bundleId",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "minDeposit",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "solverReward",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "verifierTax",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ownerFee",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "blockLimit",
"type": "uint256"
}
],
"name": "createTaskId",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
}
],
"name": "endCommitChallengePeriod",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
}
],
"name": "endRevealIntentPeriod",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
}
],
"name": "endSolverSelectionPeriod",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
}
],
"name": "finalizeTask",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "getBondedDeposit",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
}
],
"name": "getSolverUploads",
"outputs": [
{
"internalType": "bytes32[]",
"name": "",
"type": "bytes32[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "getUnbondedDeposit",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
}
],
"name": "getUploadNames",
"outputs": [
{
"internalType": "bytes32[]",
"name": "",
"type": "bytes32[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
}
],
"name": "getUploadTypes",
"outputs": [
{
"internalType": "enum IncentiveStructs.FileType[]",
"name": "",
"type": "uint8[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "getVerifierInfo",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "bool",
"name": "",
"type": "bool"
},
{
"internalType": "bool",
"name": "",
"type": "bool"
},
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
}
],
"name": "getVerifierList",
"outputs": [
{
"internalType": "address[]",
"name": "",
"type": "address[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "_tru",
"type": "address"
},
{
"internalType": "address",
"name": "_Purchase",
"type": "address"
},
{
"internalType": "address",
"name": "_disputeResolutionLayer",
"type": "address"
},
{
"internalType": "address",
"name": "_fs",
"type": "address"
}
],
"name": "initialize",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "uint256",
"name": "_deposit",
"type": "uint256"
}
],
"name": "makeDeposit",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "numLicenses",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "numTasks",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "originalRandomBits",
"type": "uint256"
}
],
"name": "prematureReveal",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "receiveJackpotPayment",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "randomBitsHash",
"type": "bytes32"
}
],
"name": "registerForTask",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
},
{
"internalType": "uint8",
"name": "v",
"type": "uint8"
},
{
"internalType": "bytes32",
"name": "r",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "s",
"type": "bytes32"
}
],
"name": "reportBlockLimitError",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "hash",
"type": "bytes32"
},
{
"internalType": "enum IncentiveStructs.FileType",
"name": "fileType",
"type": "uint8"
}
],
"name": "requireFile",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "solution",
"type": "bytes32"
}
],
"name": "revealIntent",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "originalRandomBits",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "codeHash",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "sizeHash",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "nameHash",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "dataHash",
"type": "bytes32"
}
],
"name": "revealSolution",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "runVerificationGame",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "setParameters",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
}
],
"name": "solverLoses",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
"name": "x",
"type": "uint256"
}
],
"name": "sqrt",
"outputs": [
{
"internalType": "uint256",
"name": "y",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "pure",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
}
],
"name": "submitTask",
"outputs": [],
"payable": true,
"stateMutability": "payable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "subsidyPool",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"name": "taskParameters",
"outputs": [
{
"internalType": "bytes32",
"name": "bundleId",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "minDeposit",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "reward",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "tax",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ownerFee",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "blockLimit",
"type": "uint256"
},
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "submitter",
"type": "address"
},
{
"internalType": "address",
"name": "selectedSolver",
"type": "address"
},
{
"internalType": "bytes32",
"name": "currentGame",
"type": "bytes32"
},
{
"internalType": "enum IncentiveStructs.State",
"name": "state",
"type": "uint8"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
}
],
"name": "taskTimeout",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "taskID",
"type": "bytes32"
}
],
"name": "unbondDeposit",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "num",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "file_id",
"type": "bytes32"
},
{
"internalType": "bytes32[]",
"name": "name_proof",
"type": "bytes32[]"
},
{
"internalType": "bytes32[]",
"name": "data_proof",
"type": "bytes32[]"
},
{
"internalType": "uint256",
"name": "file_num",
"type": "uint256"
}
],
"name": "uploadFile",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "withdrawDeposit",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "withdrawEth",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
]
},
"IPFSnodeManager": {
"address": "0xE9F2e05ceac9FAf98A974b565A8Ad1f72537A9a1",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "addr",
"type": "string"
},
{
"indexed": false,
"internalType": "address",
"name": "eaddr",
"type": "address"
}
],
"name": "Register",
"type": "event"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes",
"name": "ipfsAddress",
"type": "bytes"
}
],
"name": "addNode",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "getNodes",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "_purchase",
"type": "address"
}
],
"name": "initialize",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "string",
"name": "addr",
"type": "string"
}
],
"name": "register",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "resetNodes",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
]
},
"tru": {
"address": "0xf65B5C5104c4faFD4b709d9D60a185eAE063276c",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "Paused",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "RoleGranted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "RoleRevoked",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "Unpaused",
"type": "event"
},
{
"inputs": [],
"name": "DEFAULT_ADMIN_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MINTER_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "PAUSER_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "spender",
"type": "address"
}
],
"name": "allowance",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "approve",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "burn",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "burnFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "decimals",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"internalType": "uint256",
"name": "subtractedValue",
"type": "uint256"
}
],
"name": "decreaseAllowance",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
}
],
"name": "getRoleAdmin",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "getRoleMember",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
}
],
"name": "getRoleMemberCount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "grantRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "hasRole",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"internalType": "uint256",
"name": "addedValue",
"type": "uint256"
}
],
"name": "increaseAllowance",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "string",
"name": "symbol",
"type": "string"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "mint",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "pause",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "paused",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "renounceRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "revokeRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "recipient",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newAdmin",
"type": "address"
}
],
"name": "transferAdmin",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"internalType": "address",
"name": "recipient",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "unpause",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
},
"purchase": {
"address": "0x764C64b2A09b09Acb100B80d8c505Aa6a0302EF2",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "RoleGranted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "RoleRevoked",
"type": "event"
},
{
"inputs": [],
"name": "DEFAULT_ADMIN_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "IPFS_ADMIN",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "OPEX_COST",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "SOLVER",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "SOLVER_ADMIN",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "THETA",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "addSolver",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "numTRU",
"type": "uint256"
}
],
"name": "buyTRU",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "donateToReserve",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "numTRU",
"type": "uint256"
}
],
"name": "getPurchasePrice",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "numTRU",
"type": "uint256"
}
],
"name": "getRetirePrice",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
}
],
"name": "getRoleAdmin",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "getRoleMember",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
}
],
"name": "getRoleMemberCount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "grantRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "hasRole",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_tru",
"type": "address"
},
{
"internalType": "address",
"name": "_admin",
"type": "address"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "opex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "renounceRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "reserve",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "revokeRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "numTRU",
"type": "uint256"
}
],
"name": "sellTRU",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newCost",
"type": "uint256"
}
],
"name": "setOpexCost",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "setParameters",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "withdrawETH",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
}
}
@banteg
Copy link
Author

banteg commented May 3, 2021

Load contracts into Brownie:

globals().update({
    name: Contract.from_abi(name, data['address'], data['abi'])
    for name, data in json.load(open('truebit.json')).items() if isinstance(data, dict)
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment