UNPKG

@etherisc/gif-interface

Version:

This repository holds the necessary interfaces and base contracts to interact with an existing GIF instance. The repository is not intended to be used on its own.

1,556 lines 74.1 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": "contracts/services/IProductService.sol" }, "ast": { "absolutePath": "contracts/services/IProductService.sol", "exportedSymbols": { "IProductService": [ 4488 ] }, "id": 4489, "license": "Apache-2.0", "nodeType": "SourceUnit", "nodes": [ { "id": 4345, "literals": [ "solidity", "0.8", ".2" ], "nodeType": "PragmaDirective", "src": "39:22:27" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "fullyImplemented": false, "id": 4488, "linearizedBaseContracts": [ 4488 ], "name": "IProductService", "nameLocation": "73:15:27", "nodeType": "ContractDefinition", "nodes": [ { "functionSelector": "93b8414a", "id": 4360, "implemented": false, "kind": "function", "modifiers": [], "name": "newApplication", "nameLocation": "105:14:27", "nodeType": "FunctionDefinition", "parameters": { "id": 4356, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4347, "mutability": "mutable", "name": "owner", "nameLocation": "137:5:27", "nodeType": "VariableDeclaration", "scope": 4360, "src": "129:13:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4346, "name": "address", "nodeType": "ElementaryTypeName", "src": "129:7:27", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 4349, "mutability": "mutable", "name": "premiumAmount", "nameLocation": "160:13:27", "nodeType": "VariableDeclaration", "scope": 4360, "src": "152:21:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4348, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "152:7:27", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 4351, "mutability": "mutable", "name": "sumInsuredAmount", "nameLocation": "191:16:27", "nodeType": "VariableDeclaration", "scope": 4360, "src": "183:24:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4350, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "183:7:27", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 4353, "mutability": "mutable", "name": "metaData", "nameLocation": "232:8:27", "nodeType": "VariableDeclaration", "scope": 4360, "src": "217:23:27", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes" }, "typeName": { "id": 4352, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "217:5:27", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" }, { "constant": false, "id": 4355, "mutability": "mutable", "name": "applicationData", "nameLocation": "266:15:27", "nodeType": "VariableDeclaration", "scope": 4360, "src": "251:30:27", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes" }, "typeName": { "id": 4354, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "251:5:27", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" } ], "src": "119:169:27" }, "returnParameters": { "id": 4359, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4358, "mutability": "mutable", "name": "processId", "nameLocation": "314:9:27", "nodeType": "VariableDeclaration", "scope": 4360, "src": "306:17:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 4357, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "306:7:27", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "305:19:27" }, "scope": 4488, "src": "96:229:27", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "e3ebdea5", "id": 4373, "implemented": false, "kind": "function", "modifiers": [], "name": "collectPremium", "nameLocation": "340:14:27", "nodeType": "FunctionDefinition", "parameters": { "id": 4365, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4362, "mutability": "mutable", "name": "processId", "nameLocation": "363:9:27", "nodeType": "VariableDeclaration", "scope": 4373, "src": "355:17:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 4361, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "355:7:27", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 4364, "mutability": "mutable", "name": "amount", "nameLocation": "382:6:27", "nodeType": "VariableDeclaration", "scope": 4373, "src": "374:14:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4363, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "374:7:27", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "354:35:27" }, "returnParameters": { "id": 4372, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4367, "mutability": "mutable", "name": "success", "nameLocation": "433:7:27", "nodeType": "VariableDeclaration", "scope": 4373, "src": "428:12:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 4366, "name": "bool", "nodeType": "ElementaryTypeName", "src": "428:4:27", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" }, { "constant": false, "id": 4369, "mutability": "mutable", "name": "feeAmount", "nameLocation": "462:9:27", "nodeType": "VariableDeclaration", "scope": 4373, "src": "454:17:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4368, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "454:7:27", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 4371, "mutability": "mutable", "name": "netPremiumAmount", "nameLocation": "493:16:27", "nodeType": "VariableDeclaration", "scope": 4373, "src": "485:24:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4370, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "485:7:27", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "414:105:27" }, "scope": 4488, "src": "331:189:27", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "30a73da5", "id": 4382, "implemented": false, "kind": "function", "modifiers": [], "name": "adjustPremiumSumInsured", "nameLocation": "539:23:27", "nodeType": "FunctionDefinition", "parameters": { "id": 4380, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4375, "mutability": "mutable", "name": "processId", "nameLocation": "580:9:27", "nodeType": "VariableDeclaration", "scope": 4382, "src": "572:17:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 4374, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "572:7:27", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 4377, "mutability": "mutable", "name": "expectedPremiumAmount", "nameLocation": "608:21:27", "nodeType": "VariableDeclaration", "scope": 4382, "src": "600:29:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4376, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "600:7:27", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 4379, "mutability": "mutable", "name": "sumInsuredAmount", "nameLocation": "647:16:27", "nodeType": "VariableDeclaration", "scope": 4382, "src": "639:24:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4378, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "639:7:27", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "562:107:27" }, "returnParameters": { "id": 4381, "nodeType": "ParameterList", "parameters": [], "src": "678:0:27" }, "scope": 4488, "src": "530:149:27", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "b75c7dc6", "id": 4387, "implemented": false, "kind": "function", "modifiers": [], "name": "revoke", "nameLocation": "694:6:27", "nodeType": "FunctionDefinition", "parameters": { "id": 4385, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4384, "mutability": "mutable", "name": "processId", "nameLocation": "709:9:27", "nodeType": "VariableDeclaration", "scope": 4387, "src": "701:17:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 4383, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "701:7:27", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "700:19:27" }, "returnParameters": { "id": 4386, "nodeType": "ParameterList", "parameters": [], "src": "728:0:27" }, "scope": 4488, "src": "685:44:27", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "1b07b17f", "id": 4394, "implemented": false, "kind": "function", "modifiers": [], "name": "underwrite", "nameLocation": "743:10:27", "nodeType": "FunctionDefinition", "parameters": { "id": 4390, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4389, "mutability": "mutable", "name": "processId", "nameLocation": "762:9:27", "nodeType": "VariableDeclaration", "scope": 4394, "src": "754:17:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 4388, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "754:7:27", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "753:19:27" }, "returnParameters": { "id": 4393, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4392, "mutability": "mutable", "name": "success", "nameLocation": "795:7:27", "nodeType": "VariableDeclaration", "scope": 4394, "src": "790:12:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 4391, "name": "bool", "nodeType": "ElementaryTypeName", "src": "790:4:27", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "789:14:27" }, "scope": 4488, "src": "734:70:27", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "8cc7d3d1", "id": 4399, "implemented": false, "kind": "function", "modifiers": [], "name": "decline", "nameLocation": "818:7:27", "nodeType": "FunctionDefinition", "parameters": { "id": 4397, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4396, "mutability": "mutable", "name": "processId", "nameLocation": "834:9:27", "nodeType": "VariableDeclaration", "scope": 4399, "src": "826:17:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 4395, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "826:7:27", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "825:19:27" }, "returnParameters": { "id": 4398, "nodeType": "ParameterList", "parameters": [], "src": "853:0:27" }, "scope": 4488, "src": "809:45:27", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "c6441798", "id": 4404, "implemented": false, "kind": "function", "modifiers": [], "name": "expire", "nameLocation": "868:6:27", "nodeType": "FunctionDefinition", "parameters": { "id": 4402, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4401, "mutability": "mutable", "name": "processId", "nameLocation": "883:9:27", "nodeType": "VariableDeclaration", "scope": 4404, "src": "875:17:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 4400, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "875:7:27", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "874:19:27" }, "returnParameters": { "id": 4403, "nodeType": "ParameterList", "parameters": [], "src": "902:0:27" }, "scope": 4488, "src": "859:44:27", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "39c79e0c", "id": 4409, "implemented": false, "kind": "function", "modifiers": [], "name": "close", "nameLocation": "917:5:27", "nodeType": "FunctionDefinition", "parameters": { "id": 4407, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4406, "mutability": "mutable", "name": "processId", "nameLocation": "931:9:27", "nodeType": "VariableDeclaration", "scope": 4409, "src": "923:17:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 4405, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "923:7:27", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "922:19:27" }, "returnParameters": { "id": 4408, "nodeType": "ParameterList", "parameters": [], "src": "950:0:27" }, "scope": 4488, "src": "908:43:27", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "fae43d15", "id": 4420, "implemented": false, "kind": "function", "modifiers": [], "name": "newClaim", "nameLocation": "966:8:27", "nodeType": "FunctionDefinition", "parameters": { "id": 4416, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4411, "mutability": "mutable", "name": "processId", "nameLocation": "992:9:27", "nodeType": "VariableDeclaration", "scope": 4420, "src": "984:17:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 4410, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "984:7:27", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 4413, "mutability": "mutable", "name": "claimAmount", "nameLocation": "1020:11:27", "nodeType": "VariableDeclaration", "scope": 4420, "src": "1012:19:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4412, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1012:7:27", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 4415, "mutability": "mutable", "name": "data", "nameLocation": "1056:4:27", "nodeType": "VariableDeclaration", "scope": 4420, "src": "1041:19:27", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes" }, "typeName": { "id": 4414, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "1041:5:27", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" } ], "src": "974:92:27" }, "returnParameters": { "id": 4419, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4418, "mutability": "mutable", "name": "claimId", "nameLocation": "1092:7:27", "nodeType": "VariableDeclaration", "scope": 4420, "src": "1084:15:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4417, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1084:7:27", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1083:17:27" }, "scope": 4488, "src": "957:144:27", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "4e02c63f", "id": 4429, "implemented": false, "kind": "function", "modifiers": [], "name": "confirmClaim", "nameLocation": "1116:12:27", "nodeType": "FunctionDefinition", "parameters": { "id": 4427, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4422, "mutability": "mutable", "name": "processId", "nameLocation": "1146:9:27", "nodeType": "VariableDeclaration", "scope": 4429, "src": "1138:17:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 4421, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1138:7:27", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 4424, "mutability": "mutable", "name": "claimId", "nameLocation": "1174:7:27", "nodeType": "VariableDeclaration", "scope": 4429, "src": "1166:15:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4423, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1166:7:27", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 4426, "mutability": "mutable", "name": "confirmedAmount", "nameLocation": "1200:15:27", "nodeType": "VariableDeclaration", "scope": 4429, "src": "1192:23:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4425, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1192:7:27", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1128:93:27" }, "returnParameters": { "id": 4428, "nodeType": "ParameterList", "parameters": [], "src": "1230:0:27" }, "scope": 4488, "src": "1107:124:27", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "4cda0de9", "id": 4436, "implemented": false, "kind": "function", "modifiers": [], "name": "declineClaim", "nameLocation": "1246:12:27", "nodeType": "FunctionDefinition", "parameters": { "id": 4434, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4431, "mutability": "mutable", "name": "processId", "nameLocation": "1267:9:27", "nodeType": "VariableDeclaration", "scope": 4436, "src": "1259:17:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 4430, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1259:7:27", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 4433, "mutability": "mutable", "name": "claimId", "nameLocation": "1286:7:27", "nodeType": "VariableDeclaration", "scope": 4436, "src": "1278:15:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4432, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1278:7:27", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1258:36:27" }, "returnParameters": { "id": 4435, "nodeType": "ParameterList", "parameters": [], "src": "1303:0:27" }, "scope": 4488, "src": "1237:67:27", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "7f29dba2", "id": 4443, "implemented": false, "kind": "function", "modifiers": [], "name": "closeClaim", "nameLocation": "1318:10:27", "nodeType": "FunctionDefinition", "parameters": { "id": 4441, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4438, "mutability": "mutable", "name": "processId", "nameLocation": "1337:9:27", "nodeType": "VariableDeclaration", "scope": 4443, "src": "1329:17:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 4437, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1329:7:27", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 4440, "mutability": "mutable", "name": "claimId", "nameLocation": "1356:7:27", "nodeType": "VariableDeclaration", "scope": 4443, "src"