UNPKG

@etherisc/terraguard-poc-contracts

Version:

Etherisc's smart contracts for the terraguard poc

1,512 lines 53.3 kB
{ "abi": [ { "inputs": [ { "internalType": "uint256", "name": "bundleId", "type": "uint256" } ], "name": "burnBundle", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "bundleId", "type": "uint256" } ], "name": "closeBundle", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "bundleId", "type": "uint256" }, { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "collateralAmount", "type": "uint256" } ], "name": "collateralizePolicy", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "owner_", "type": "address" }, { "internalType": "bytes", "name": "filter_", "type": "bytes" }, { "internalType": "uint256", "name": "amount_", "type": "uint256" } ], "name": "createBundle", "outputs": [ { "internalType": "uint256", "name": "bundleId", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "bundleId", "type": "uint256" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "defundBundle", "outputs": [ { "internalType": "uint256", "name": "netAmount", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "bundleId", "type": "uint256" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "fundBundle", "outputs": [ { "internalType": "uint256", "name": "netAmount", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "bundleId", "type": "uint256" } ], "name": "lockBundle", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "bundleId", "type": "uint256" }, { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "processPayout", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "bundleId", "type": "uint256" }, { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "processPremium", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "wallet", "type": "address" }, { "internalType": "address", "name": "erc20Token", "type": "address" }, { "internalType": "uint256", "name": "collateralization", "type": "uint256" }, { "internalType": "uint256", "name": "sumOfSumInsuredCap", "type": "uint256" } ], "name": "registerRiskpool", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "bundleId", "type": "uint256" }, { "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "name": "releasePolicy", "outputs": [ { "internalType": "uint256", "name": "collateralAmount", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "riskpoolId", "type": "uint256" }, { "internalType": "uint256", "name": "maxNumberOfActiveBundles", "type": "uint256" } ], "name": "setMaximumNumberOfActiveBundles", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "bundleId", "type": "uint256" } ], "name": "unlockBundle", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "allSourcePaths": { "28": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IRiskpoolService.sol" }, "ast": { "absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IRiskpoolService.sol", "exportedSymbols": { "IRiskpoolService": [ 7417 ] }, "id": 7418, "license": "Apache-2.0", "nodeType": "SourceUnit", "nodes": [ { "id": 7313, "literals": [ "solidity", "0.8", ".2" ], "nodeType": "PragmaDirective", "src": "39:22:28" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "fullyImplemented": false, "id": 7417, "linearizedBaseContracts": [ 7417 ], "name": "IRiskpoolService", "nameLocation": "73:16:28", "nodeType": "ContractDefinition", "nodes": [ { "functionSelector": "bf2e3546", "id": 7324, "implemented": false, "kind": "function", "modifiers": [], "name": "registerRiskpool", "nameLocation": "106:16:28", "nodeType": "FunctionDefinition", "parameters": { "id": 7322, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7315, "mutability": "mutable", "name": "wallet", "nameLocation": "140:6:28", "nodeType": "VariableDeclaration", "scope": 7324, "src": "132:14:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7314, "name": "address", "nodeType": "ElementaryTypeName", "src": "132:7:28", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 7317, "mutability": "mutable", "name": "erc20Token", "nameLocation": "164:10:28", "nodeType": "VariableDeclaration", "scope": 7324, "src": "156:18:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7316, "name": "address", "nodeType": "ElementaryTypeName", "src": "156:7:28", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 7319, "mutability": "mutable", "name": "collateralization", "nameLocation": "192:17:28", "nodeType": "VariableDeclaration", "scope": 7324, "src": "184:25:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7318, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "184:7:28", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 7321, "mutability": "mutable", "name": "sumOfSumInsuredCap", "nameLocation": "228:18:28", "nodeType": "VariableDeclaration", "scope": 7324, "src": "220:26:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7320, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "220:7:28", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "122:130:28" }, "returnParameters": { "id": 7323, "nodeType": "ParameterList", "parameters": [], "src": "261:0:28" }, "scope": 7417, "src": "97:165:28", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "15fc1e74", "id": 7335, "implemented": false, "kind": "function", "modifiers": [], "name": "createBundle", "nameLocation": "277:12:28", "nodeType": "FunctionDefinition", "parameters": { "id": 7331, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7326, "mutability": "mutable", "name": "owner_", "nameLocation": "298:6:28", "nodeType": "VariableDeclaration", "scope": 7335, "src": "290:14:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 7325, "name": "address", "nodeType": "ElementaryTypeName", "src": "290:7:28", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 7328, "mutability": "mutable", "name": "filter_", "nameLocation": "321:7:28", "nodeType": "VariableDeclaration", "scope": 7335, "src": "306:22:28", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes" }, "typeName": { "id": 7327, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "306:5:28", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" }, { "constant": false, "id": 7330, "mutability": "mutable", "name": "amount_", "nameLocation": "338:7:28", "nodeType": "VariableDeclaration", "scope": 7335, "src": "330:15:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7329, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "330:7:28", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "289:57:28" }, "returnParameters": { "id": 7334, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7333, "mutability": "mutable", "name": "bundleId", "nameLocation": "372:8:28", "nodeType": "VariableDeclaration", "scope": 7335, "src": "364:16:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7332, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "364:7:28", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "363:18:28" }, "scope": 7417, "src": "268:114:28", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "89002da5", "id": 7344, "implemented": false, "kind": "function", "modifiers": [], "name": "fundBundle", "nameLocation": "396:10:28", "nodeType": "FunctionDefinition", "parameters": { "id": 7340, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7337, "mutability": "mutable", "name": "bundleId", "nameLocation": "415:8:28", "nodeType": "VariableDeclaration", "scope": 7344, "src": "407:16:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7336, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "407:7:28", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 7339, "mutability": "mutable", "name": "amount", "nameLocation": "433:6:28", "nodeType": "VariableDeclaration", "scope": 7344, "src": "425:14:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7338, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "425:7:28", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "406:34:28" }, "returnParameters": { "id": 7343, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7342, "mutability": "mutable", "name": "netAmount", "nameLocation": "466:9:28", "nodeType": "VariableDeclaration", "scope": 7344, "src": "458:17:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7341, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "458:7:28", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "457:19:28" }, "scope": 7417, "src": "387:90:28", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "36153f3a", "id": 7353, "implemented": false, "kind": "function", "modifiers": [], "name": "defundBundle", "nameLocation": "491:12:28", "nodeType": "FunctionDefinition", "parameters": { "id": 7349, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7346, "mutability": "mutable", "name": "bundleId", "nameLocation": "512:8:28", "nodeType": "VariableDeclaration", "scope": 7353, "src": "504:16:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7345, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "504:7:28", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 7348, "mutability": "mutable", "name": "amount", "nameLocation": "530:6:28", "nodeType": "VariableDeclaration", "scope": 7353, "src": "522:14:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7347, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "522:7:28", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "503:34:28" }, "returnParameters": { "id": 7352, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7351, "mutability": "mutable", "name": "netAmount", "nameLocation": "563:9:28", "nodeType": "VariableDeclaration", "scope": 7353, "src": "555:17:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7350, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "555:7:28", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "554:19:28" }, "scope": 7417, "src": "482:92:28", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "a17030d5", "id": 7358, "implemented": false, "kind": "function", "modifiers": [], "name": "lockBundle", "nameLocation": "589:10:28", "nodeType": "FunctionDefinition", "parameters": { "id": 7356, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7355, "mutability": "mutable", "name": "bundleId", "nameLocation": "608:8:28", "nodeType": "VariableDeclaration", "scope": 7358, "src": "600:16:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7354, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "600:7:28", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "599:18:28" }, "returnParameters": { "id": 7357, "nodeType": "ParameterList", "parameters": [], "src": "626:0:28" }, "scope": 7417, "src": "580:47:28", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "316c5348", "id": 7363, "implemented": false, "kind": "function", "modifiers": [], "name": "unlockBundle", "nameLocation": "641:12:28", "nodeType": "FunctionDefinition", "parameters": { "id": 7361, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7360, "mutability": "mutable", "name": "bundleId", "nameLocation": "662:8:28", "nodeType": "VariableDeclaration", "scope": 7363, "src": "654:16:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7359, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "654:7:28", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "653:18:28" }, "returnParameters": { "id": 7362, "nodeType": "ParameterList", "parameters": [], "src": "680:0:28" }, "scope": 7417, "src": "632:49:28", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "8c483e5a", "id": 7368, "implemented": false, "kind": "function", "modifiers": [], "name": "closeBundle", "nameLocation": "695:11:28", "nodeType": "FunctionDefinition", "parameters": { "id": 7366, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7365, "mutability": "mutable", "name": "bundleId", "nameLocation": "715:8:28", "nodeType": "VariableDeclaration", "scope": 7368, "src": "707:16:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7364, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "707:7:28", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "706:18:28" }, "returnParameters": { "id": 7367, "nodeType": "ParameterList", "parameters": [], "src": "733:0:28" }, "scope": 7417, "src": "686:48:28", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "587e59d0", "id": 7373, "implemented": false, "kind": "function", "modifiers": [], "name": "burnBundle", "nameLocation": "748:10:28", "nodeType": "FunctionDefinition", "parameters": { "id": 7371, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7370, "mutability": "mutable", "name": "bundleId", "nameLocation": "767:8:28", "nodeType": "VariableDeclaration", "scope": 7373, "src": "759:16:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7369, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "759:7:28", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "758:18:28" }, "returnParameters": { "id": 7372, "nodeType": "ParameterList", "parameters": [], "src": "785:0:28" }, "scope": 7417, "src": "739:47:28", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "4d03f9b7", "id": 7382, "implemented": false, "kind": "function", "modifiers": [], "name": "collateralizePolicy", "nameLocation": "801:19:28", "nodeType": "FunctionDefinition", "parameters": { "id": 7380, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7375, "mutability": "mutable", "name": "bundleId", "nameLocation": "829:8:28", "nodeType": "VariableDeclaration", "scope": 7382, "src": "821:16:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7374, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "821:7:28", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 7377, "mutability": "mutable", "name": "processId", "nameLocation": "847:9:28", "nodeType": "VariableDeclaration", "scope": 7382, "src": "839:17:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 7376, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "839:7:28", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 7379, "mutability": "mutable", "name": "collateralAmount", "nameLocation": "866:16:28", "nodeType": "VariableDeclaration", "scope": 7382, "src": "858:24:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7378, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "858:7:28", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "820:63:28" }, "returnParameters": { "id": 7381, "nodeType": "ParameterList", "parameters": [], "src": "892:0:28" }, "scope": 7417, "src": "792:101:28", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "b7267420", "id": 7391, "implemented": false, "kind": "function", "modifiers": [], "name": "processPremium", "nameLocation": "907:14:28", "nodeType": "FunctionDefinition", "parameters": { "id": 7389, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7384, "mutability": "mutable", "name": "bundleId", "nameLocation": "930:8:28", "nodeType": "VariableDeclaration", "scope": 7391, "src": "922:16:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7383, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "922:7:28", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 7386, "mutability": "mutable", "name": "processId", "nameLocation": "948:9:28", "nodeType": "VariableDeclaration", "scope": 7391, "src": "940:17:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 7385, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "940:7:28", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 7388, "mutability": "mutable", "name": "amount", "nameLocation": "967:6:28", "nodeType": "VariableDeclaration", "scope": 7391, "src": "959:14:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7387, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "959:7:28", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "921:53:28" }, "returnParameters": { "id": 7390, "nodeType": "ParameterList", "parameters": [], "src": "983:0:28" }, "scope": 7417, "src": "898:86:28", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "b299cc26", "id": 7400, "implemented": false, "kind": "function", "modifiers": [], "name": "processPayout", "nameLocation": "998:13:28", "nodeType": "FunctionDefinition", "parameters": { "id": 7398, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7393, "mutability": "mutable", "name": "bundleId", "nameLocation": "1020:8:28", "nodeType": "VariableDeclaration", "scope": 7400, "src": "1012:16:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7392, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1012:7:28", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 7395, "mutability": "mutable", "name": "processId", "nameLocation": "1038:9:28", "nodeType": "VariableDeclaration", "scope": 7400, "src": "1030:17:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 7394, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1030:7:28", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 7397, "mutability": "mutable", "name": "amount", "nameLocation": "1057:6:28", "nodeType": "VariableDeclaration", "scope": 7400, "src": "1049:14:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7396, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1049:7:28", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1011:53:28" }, "returnParameters": { "id": 7399, "nodeType": "ParameterList", "parameters": [], "src": "1073:0:28" }, "scope": 7417, "src": "989:85:28", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "bb540df6", "id": 7409, "implemented": false, "kind": "function", "modifiers": [], "name": "releasePolicy", "nameLocation": "1088:13:28", "nodeType": "FunctionDefinition", "parameters": { "id": 7405, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7402, "mutability": "mutable", "name": "bundleId", "nameLocation": "1110:8:28", "nodeType": "VariableDeclaration", "scope": 7409, "src": "1102:16:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7401, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1102:7:28", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 7404, "mutability": "mutable", "name": "processId", "nameLocation": "1128:9:28", "nodeType": "VariableDeclaration", "scope": 7409, "src": "1120:17:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 7403, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1120:7:28", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "1101:37:28" }, "returnParameters": { "id": 7408, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7407, "mutability": "mutable", "name": "collateralAmount", "nameLocation": "1164:16:28", "nodeType": "VariableDeclaration", "scope": 7409, "src": "1156:24:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7406, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1156:7:28", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1155:26:28" }, "scope": 7417, "src": "1079:103:28", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "2127fd48", "id": 7416, "implemented": false, "kind": "function", "modifiers": [], "name": "setMaximumNumberOfActiveBundles", "nameLocation": "1197:31:28", "nodeType": "FunctionDefinition", "parameters": { "id": 7414, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 7411, "mutability": "mutable", "name": "riskpoolId", "nameLocation": "1237:10:28", "nodeType": "VariableDeclaration", "scope": 7416, "src": "1229:18:28", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 7410, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1229:7:28", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 7413, "mutability": "mutable", "name": "maxNumberOfActiveBundles", "nameLocation": "1257:24:28", "nodeType": "VariableDeclaration", "scope": 7416, "src": "1249:32:28", "stateVariable":