UNPKG

@etherisc/terraguard-poc-contracts

Version:

Etherisc's smart contracts for the terraguard poc

1,553 lines 74.3 kB
{ "abi": [ { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "expectedPremiumAmount", "type": "uint256" }, { "internalType": "uint256", "name": "sumInsuredAmount", "type": "uint256" } ], "name": "adjustPremiumSumInsured", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "requestId", "type": "uint256" } ], "name": "cancelRequest", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "name": "close", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "claimId", "type": "uint256" } ], "name": "closeClaim", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "collectPremium", "outputs": [ { "internalType": "bool", "name": "success", "type": "bool" }, { "internalType": "uint256", "name": "feeAmount", "type": "uint256" }, { "internalType": "uint256", "name": "netPremiumAmount", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "claimId", "type": "uint256" }, { "internalType": "uint256", "name": "confirmedAmount", "type": "uint256" } ], "name": "confirmClaim", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "name": "decline", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "claimId", "type": "uint256" } ], "name": "declineClaim", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "name": "expire", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "uint256", "name": "premiumAmount", "type": "uint256" }, { "internalType": "uint256", "name": "sumInsuredAmount", "type": "uint256" }, { "internalType": "bytes", "name": "metaData", "type": "bytes" }, { "internalType": "bytes", "name": "applicationData", "type": "bytes" } ], "name": "newApplication", "outputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "claimAmount", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "newClaim", "outputs": [ { "internalType": "uint256", "name": "claimId", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "claimId", "type": "uint256" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "newPayout", "outputs": [ { "internalType": "uint256", "name": "payoutId", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "payoutId", "type": "uint256" } ], "name": "processPayout", "outputs": [ { "internalType": "uint256", "name": "feeAmount", "type": "uint256" }, { "internalType": "uint256", "name": "netPayoutAmount", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "string", "name": "callbackMethodName", "type": "string" }, { "internalType": "address", "name": "callbackContractAddress", "type": "address" }, { "internalType": "uint256", "name": "responsibleOracleId", "type": "uint256" } ], "name": "request", "outputs": [ { "internalType": "uint256", "name": "requestId", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "name": "revoke", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "name": "underwrite", "outputs": [ { "internalType": "bool", "name": "success", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" } ], "allSourcePaths": { "27": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IProductService.sol" }, "ast": { "absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IProductService.sol", "exportedSymbols": { "IProductService": [ 5813 ] }, "id": 5814, "license": "Apache-2.0", "nodeType": "SourceUnit", "nodes": [ { "id": 5670, "literals": [ "solidity", "0.8", ".2" ], "nodeType": "PragmaDirective", "src": "39:22:27" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "fullyImplemented": false, "id": 5813, "linearizedBaseContracts": [ 5813 ], "name": "IProductService", "nameLocation": "73:15:27", "nodeType": "ContractDefinition", "nodes": [ { "functionSelector": "93b8414a", "id": 5685, "implemented": false, "kind": "function", "modifiers": [], "name": "newApplication", "nameLocation": "105:14:27", "nodeType": "FunctionDefinition", "parameters": { "id": 5681, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5672, "mutability": "mutable", "name": "owner", "nameLocation": "137:5:27", "nodeType": "VariableDeclaration", "scope": 5685, "src": "129:13:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5671, "name": "address", "nodeType": "ElementaryTypeName", "src": "129:7:27", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 5674, "mutability": "mutable", "name": "premiumAmount", "nameLocation": "160:13:27", "nodeType": "VariableDeclaration", "scope": 5685, "src": "152:21:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5673, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "152:7:27", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 5676, "mutability": "mutable", "name": "sumInsuredAmount", "nameLocation": "191:16:27", "nodeType": "VariableDeclaration", "scope": 5685, "src": "183:24:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5675, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "183:7:27", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 5678, "mutability": "mutable", "name": "metaData", "nameLocation": "232:8:27", "nodeType": "VariableDeclaration", "scope": 5685, "src": "217:23:27", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes" }, "typeName": { "id": 5677, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "217:5:27", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" }, { "constant": false, "id": 5680, "mutability": "mutable", "name": "applicationData", "nameLocation": "266:15:27", "nodeType": "VariableDeclaration", "scope": 5685, "src": "251:30:27", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes" }, "typeName": { "id": 5679, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "251:5:27", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" } ], "src": "119:169:27" }, "returnParameters": { "id": 5684, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5683, "mutability": "mutable", "name": "processId", "nameLocation": "314:9:27", "nodeType": "VariableDeclaration", "scope": 5685, "src": "306:17:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 5682, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "306:7:27", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "305:19:27" }, "scope": 5813, "src": "96:229:27", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "e3ebdea5", "id": 5698, "implemented": false, "kind": "function", "modifiers": [], "name": "collectPremium", "nameLocation": "340:14:27", "nodeType": "FunctionDefinition", "parameters": { "id": 5690, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5687, "mutability": "mutable", "name": "processId", "nameLocation": "363:9:27", "nodeType": "VariableDeclaration", "scope": 5698, "src": "355:17:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 5686, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "355:7:27", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 5689, "mutability": "mutable", "name": "amount", "nameLocation": "382:6:27", "nodeType": "VariableDeclaration", "scope": 5698, "src": "374:14:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5688, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "374:7:27", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "354:35:27" }, "returnParameters": { "id": 5697, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5692, "mutability": "mutable", "name": "success", "nameLocation": "433:7:27", "nodeType": "VariableDeclaration", "scope": 5698, "src": "428:12:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 5691, "name": "bool", "nodeType": "ElementaryTypeName", "src": "428:4:27", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" }, { "constant": false, "id": 5694, "mutability": "mutable", "name": "feeAmount", "nameLocation": "462:9:27", "nodeType": "VariableDeclaration", "scope": 5698, "src": "454:17:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5693, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "454:7:27", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 5696, "mutability": "mutable", "name": "netPremiumAmount", "nameLocation": "493:16:27", "nodeType": "VariableDeclaration", "scope": 5698, "src": "485:24:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5695, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "485:7:27", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "414:105:27" }, "scope": 5813, "src": "331:189:27", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "30a73da5", "id": 5707, "implemented": false, "kind": "function", "modifiers": [], "name": "adjustPremiumSumInsured", "nameLocation": "539:23:27", "nodeType": "FunctionDefinition", "parameters": { "id": 5705, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5700, "mutability": "mutable", "name": "processId", "nameLocation": "580:9:27", "nodeType": "VariableDeclaration", "scope": 5707, "src": "572:17:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 5699, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "572:7:27", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 5702, "mutability": "mutable", "name": "expectedPremiumAmount", "nameLocation": "608:21:27", "nodeType": "VariableDeclaration", "scope": 5707, "src": "600:29:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5701, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "600:7:27", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 5704, "mutability": "mutable", "name": "sumInsuredAmount", "nameLocation": "647:16:27", "nodeType": "VariableDeclaration", "scope": 5707, "src": "639:24:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5703, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "639:7:27", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "562:107:27" }, "returnParameters": { "id": 5706, "nodeType": "ParameterList", "parameters": [], "src": "678:0:27" }, "scope": 5813, "src": "530:149:27", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "b75c7dc6", "id": 5712, "implemented": false, "kind": "function", "modifiers": [], "name": "revoke", "nameLocation": "694:6:27", "nodeType": "FunctionDefinition", "parameters": { "id": 5710, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5709, "mutability": "mutable", "name": "processId", "nameLocation": "709:9:27", "nodeType": "VariableDeclaration", "scope": 5712, "src": "701:17:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 5708, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "701:7:27", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "700:19:27" }, "returnParameters": { "id": 5711, "nodeType": "ParameterList", "parameters": [], "src": "728:0:27" }, "scope": 5813, "src": "685:44:27", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "1b07b17f", "id": 5719, "implemented": false, "kind": "function", "modifiers": [], "name": "underwrite", "nameLocation": "743:10:27", "nodeType": "FunctionDefinition", "parameters": { "id": 5715, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5714, "mutability": "mutable", "name": "processId", "nameLocation": "762:9:27", "nodeType": "VariableDeclaration", "scope": 5719, "src": "754:17:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 5713, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "754:7:27", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "753:19:27" }, "returnParameters": { "id": 5718, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5717, "mutability": "mutable", "name": "success", "nameLocation": "795:7:27", "nodeType": "VariableDeclaration", "scope": 5719, "src": "790:12:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 5716, "name": "bool", "nodeType": "ElementaryTypeName", "src": "790:4:27", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "789:14:27" }, "scope": 5813, "src": "734:70:27", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "8cc7d3d1", "id": 5724, "implemented": false, "kind": "function", "modifiers": [], "name": "decline", "nameLocation": "818:7:27", "nodeType": "FunctionDefinition", "parameters": { "id": 5722, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5721, "mutability": "mutable", "name": "processId", "nameLocation": "834:9:27", "nodeType": "VariableDeclaration", "scope": 5724, "src": "826:17:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 5720, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "826:7:27", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "825:19:27" }, "returnParameters": { "id": 5723, "nodeType": "ParameterList", "parameters": [], "src": "853:0:27" }, "scope": 5813, "src": "809:45:27", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "c6441798", "id": 5729, "implemented": false, "kind": "function", "modifiers": [], "name": "expire", "nameLocation": "868:6:27", "nodeType": "FunctionDefinition", "parameters": { "id": 5727, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5726, "mutability": "mutable", "name": "processId", "nameLocation": "883:9:27", "nodeType": "VariableDeclaration", "scope": 5729, "src": "875:17:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 5725, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "875:7:27", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "874:19:27" }, "returnParameters": { "id": 5728, "nodeType": "ParameterList", "parameters": [], "src": "902:0:27" }, "scope": 5813, "src": "859:44:27", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "39c79e0c", "id": 5734, "implemented": false, "kind": "function", "modifiers": [], "name": "close", "nameLocation": "917:5:27", "nodeType": "FunctionDefinition", "parameters": { "id": 5732, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5731, "mutability": "mutable", "name": "processId", "nameLocation": "931:9:27", "nodeType": "VariableDeclaration", "scope": 5734, "src": "923:17:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 5730, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "923:7:27", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "922:19:27" }, "returnParameters": { "id": 5733, "nodeType": "ParameterList", "parameters": [], "src": "950:0:27" }, "scope": 5813, "src": "908:43:27", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "fae43d15", "id": 5745, "implemented": false, "kind": "function", "modifiers": [], "name": "newClaim", "nameLocation": "966:8:27", "nodeType": "FunctionDefinition", "parameters": { "id": 5741, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5736, "mutability": "mutable", "name": "processId", "nameLocation": "992:9:27", "nodeType": "VariableDeclaration", "scope": 5745, "src": "984:17:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 5735, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "984:7:27", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 5738, "mutability": "mutable", "name": "claimAmount", "nameLocation": "1020:11:27", "nodeType": "VariableDeclaration", "scope": 5745, "src": "1012:19:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5737, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1012:7:27", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 5740, "mutability": "mutable", "name": "data", "nameLocation": "1056:4:27", "nodeType": "VariableDeclaration", "scope": 5745, "src": "1041:19:27", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes" }, "typeName": { "id": 5739, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "1041:5:27", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" } ], "src": "974:92:27" }, "returnParameters": { "id": 5744, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5743, "mutability": "mutable", "name": "claimId", "nameLocation": "1092:7:27", "nodeType": "VariableDeclaration", "scope": 5745, "src": "1084:15:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5742, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1084:7:27", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1083:17:27" }, "scope": 5813, "src": "957:144:27", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "4e02c63f", "id": 5754, "implemented": false, "kind": "function", "modifiers": [], "name": "confirmClaim", "nameLocation": "1116:12:27", "nodeType": "FunctionDefinition", "parameters": { "id": 5752, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5747, "mutability": "mutable", "name": "processId", "nameLocation": "1146:9:27", "nodeType": "VariableDeclaration", "scope": 5754, "src": "1138:17:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 5746, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1138:7:27", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 5749, "mutability": "mutable", "name": "claimId", "nameLocation": "1174:7:27", "nodeType": "VariableDeclaration", "scope": 5754, "src": "1166:15:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5748, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1166:7:27", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 5751, "mutability": "mutable", "name": "confirmedAmount", "nameLocation": "1200:15:27", "nodeType": "VariableDeclaration", "scope": 5754, "src": "1192:23:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5750, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1192:7:27", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1128:93:27" }, "returnParameters": { "id": 5753, "nodeType": "ParameterList", "parameters": [], "src": "1230:0:27" }, "scope": 5813, "src": "1107:124:27", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "4cda0de9", "id": 5761, "implemented": false, "kind": "function", "modifiers": [], "name": "declineClaim", "nameLocation": "1246:12:27", "nodeType": "FunctionDefinition", "parameters": { "id": 5759, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5756, "mutability": "mutable", "name": "processId", "nameLocation": "1267:9:27", "nodeType": "VariableDeclaration", "scope": 5761, "src": "1259:17:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 5755, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1259:7:27", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 5758, "mutability": "mutable", "name": "claimId", "nameLocation": "1286:7:27", "nodeType": "VariableDeclaration", "scope": 5761, "src": "1278:15:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5757, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1278:7:27", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1258:36:27" }, "returnParameters": { "id": 5760, "nodeType": "ParameterList", "parameters": [], "src": "1303:0:27" }, "scope": 5813, "src": "1237:67:27", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "7f29dba2", "id": 5768, "implemented": false, "kind": "function", "modifiers": [], "name": "closeClaim", "nameLocation": "1318:10:27", "nodeType": "FunctionDefinition", "parameters": { "id": 5766, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5763, "mutability": "mutable", "name": "processId", "nameLocation": "1337:9:27", "nodeType": "VariableDeclaration", "scope": 5768, "src": "1329:17:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 5762, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1329:7:27", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 5765, "mutability": "mutable", "name": "claimId", "nameLocation"