UNPKG

@etherisc/gif-contracts

Version:

This repository holds the GIF core contracts and tools to develop, test and deploy GIF instances.

1,792 lines (1,791 loc) 119 kB
{ "abi": [ { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "componentName", "type": "bytes32" }, { "indexed": false, "internalType": "enum IComponent.ComponentType", "name": "componentType", "type": "uint8" }, { "indexed": false, "internalType": "address", "name": "componentAddress", "type": "address" }, { "indexed": false, "internalType": "address", "name": "registryAddress", "type": "address" } ], "name": "LogComponentCreated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "LogRiskpoolApproved", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "bundleId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "LogRiskpoolBundleCreated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "bundleId", "type": "uint256" }, { "indexed": false, "internalType": "bool", "name": "isMatching", "type": "bool" } ], "name": "LogRiskpoolBundleMatchesPolicy", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "collateralAmount", "type": "uint256" }, { "indexed": false, "internalType": "bool", "name": "isSecured", "type": "bool" } ], "name": "LogRiskpoolCollateralLocked", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "collateralAmount", "type": "uint256" } ], "name": "LogRiskpoolCollateralReleased", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "riskpoolAddress", "type": "address" } ], "name": "LogRiskpoolCreated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "LogRiskpoolDeclined", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "LogRiskpoolPayoutProcessed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "LogRiskpoolPremiumProcessed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "LogRiskpoolProposed", "type": "event" }, { "inputs": [], "name": "activeBundles", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "approvalCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "archiveCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "uint256", "name": "riskpoolId", "type": "uint256" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "internalType": "enum IBundle.BundleState", "name": "state", "type": "uint8" }, { "internalType": "bytes", "name": "filter", "type": "bytes" }, { "internalType": "uint256", "name": "capital", "type": "uint256" }, { "internalType": "uint256", "name": "lockedCapital", "type": "uint256" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "createdAt", "type": "uint256" }, { "internalType": "uint256", "name": "updatedAt", "type": "uint256" } ], "internalType": "struct IBundle.Bundle", "name": "bundle", "type": "tuple" }, { "components": [ { "internalType": "enum IPolicy.ApplicationState", "name": "state", "type": "uint8" }, { "internalType": "uint256", "name": "premiumAmount", "type": "uint256" }, { "internalType": "uint256", "name": "sumInsuredAmount", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "uint256", "name": "createdAt", "type": "uint256" }, { "internalType": "uint256", "name": "updatedAt", "type": "uint256" } ], "internalType": "struct IPolicy.Application", "name": "application", "type": "tuple" } ], "name": "bundleMatchesApplication", "outputs": [ { "internalType": "bool", "name": "isMatching", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "bundles", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "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": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "collateralAmount", "type": "uint256" } ], "name": "collateralizePolicy", "outputs": [ { "internalType": "bool", "name": "isSecured", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes", "name": "filter", "type": "bytes" }, { "internalType": "uint256", "name": "initialAmount", "type": "uint256" } ], "name": "createBundle", "outputs": [ { "internalType": "uint256", "name": "bundleId", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "declineCallback", "outputs": [], "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": "idx", "type": "uint256" } ], "name": "getActiveBundleId", "outputs": [ { "internalType": "uint256", "name": "bundleId", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getBalance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "idx", "type": "uint256" } ], "name": "getBundle", "outputs": [ { "components": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "uint256", "name": "riskpoolId", "type": "uint256" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "internalType": "enum IBundle.BundleState", "name": "state", "type": "uint8" }, { "internalType": "bytes", "name": "filter", "type": "bytes" }, { "internalType": "uint256", "name": "capital", "type": "uint256" }, { "internalType": "uint256", "name": "lockedCapital", "type": "uint256" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "createdAt", "type": "uint256" }, { "internalType": "uint256", "name": "updatedAt", "type": "uint256" } ], "internalType": "struct IBundle.Bundle", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getCapacity", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getCapital", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getCollateralizationLevel", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getErc20Token", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getFilterDataStructure", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getFullCollateralizationLevel", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getId", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getMaximumNumberOfActiveBundles", "outputs": [ { "internalType": "uint256", "name": "maximumNumberOfActiveBundles", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getName", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getOwner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getRegistry", "outputs": [ { "internalType": "contract IRegistry", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getState", "outputs": [ { "internalType": "enum IComponent.ComponentState", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getSumOfSumInsuredCap", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getTotalValueLocked", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getType", "outputs": [ { "internalType": "enum IComponent.ComponentType", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getWallet", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "isOracle", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "isProduct", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "isRiskpool", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "bundleId", "type": "uint256" } ], "name": "lockBundle", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "pauseCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "processPolicyPayout", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "processPolicyPremium", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "proposalCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "name": "releasePolicy", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "resumeCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "setId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "maximumNumberOfActiveBundles", "type": "uint256" } ], "name": "setMaximumNumberOfActiveBundles", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "suspendCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "bundleId", "type": "uint256" } ], "name": "unlockBundle", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "unpauseCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "allSourcePaths": { "30": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol", "33": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IRiskpool.sol", "44": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IRegistry.sol" }, "ast": { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IRiskpool.sol", "exportedSymbols": { "IBundle": [ 20491 ], "IComponent": [ 22099 ], "IPolicy": [ 20837 ], "IRegistry": [ 21750 ], "IRiskpool": [ 22366 ] }, "id": 22367, "license": "Apache-2.0", "nodeType": "SourceUnit", "nodes": [ { "id": 22135, "literals": [ "solidity", "0.8", ".2" ], "nodeType": "PragmaDirective", "src": "39:22:33" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol", "file": "./IComponent.sol", "id": 22136, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 22367, "sourceUnit": 22100, "src": "63:26:33", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IBundle.sol", "file": "../modules/IBundle.sol", "id": 22137, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 22367, "sourceUnit": 20492, "src": "90:32:33", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IPolicy.sol", "file": "../modules/IPolicy.sol", "id": 22138, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 22367, "sourceUnit": 20838, "src": "123:32:33", "symbolAliases": [], "unitAlias": "" }, { "abstract": false, "baseContracts": [ { "baseName": { "id": 22139, "name": "IComponent", "nodeType": "IdentifierPath", "referencedDeclaration": 22099, "src": "180:10:33" }, "id": 22140, "nodeType": "InheritanceSpecifier", "src": "180:10:33" } ], "contractDependencies": [ 22099 ], "contractKind": "interface", "fullyImplemented": false, "id": 22366, "linearizedBaseContracts": [ 22366, 22099 ], "name": "IRiskpool", "nameLocation": "167:9:33", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "id": 22144, "name": "LogRiskpoolCreated", "nameLocation": "204:18:33", "nodeType": "EventDefinition", "parameters": { "id": 22143, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 22142, "indexed": false, "mutability": "mutable", "name": "riskpoolAddress", "nameLocation": "232:15:33", "nodeType": "VariableDeclaration", "scope": 22144, "src": "224:23:33", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 22141, "name": "address", "nodeType": "ElementaryTypeName", "src": "224:7:33", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "223:25:33" }, "src": "198:51:33" }, { "anonymous": false, "id": 22148, "name": "LogRiskpoolProposed", "nameLocation": "260:19:33", "nodeType": "EventDefinition", "parameters": { "id": 22147, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 22146, "indexed": false, "mutability": "mutable", "name": "id", "nameLocation": "289:2:33", "nodeType": "VariableDeclaration", "scope": 22148, "src": "281:10:33", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 22145, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "281:7:33", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "280:12:33" }, "src": "254:39:33" }, { "anonymous": false, "id": 22152, "name": "LogRiskpoolApproved", "nameLocation": "304:19:33", "nodeType": "EventDefinition", "parameters": { "id": 22151, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 22150, "indexed": false, "mutability": "mutable", "name": "id", "nameLocation": "333:2:33", "nodeType": "VariableDeclaration", "scope": 22152, "src": "325:10:33", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 22149, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "325:7:33", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "324:12:33" }, "src": "298:39:33" }, { "anonymous": false, "id": 22156, "name": "LogRiskpoolDeclined", "nameLocation": "348:19:33", "nodeType": "EventDefinition", "parameters": { "id": 22155, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 22154, "indexed": false, "mutability": "mutable", "name": "id", "nameLocation": "377:2:33", "nodeType": "VariableDeclaration", "scope": 22156, "src": "369:10:33", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 22153, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "369:7:33", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "368:12:33" }, "src": "342:39:33" }, { "anonymous": false, "id": 22162, "name": "LogRiskpoolBundleCreated", "nameLocation": "393:24:33", "nodeType": "EventDefinition", "parameters": { "id": 22161, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 22158, "indexed": false, "mutability": "mutable", "name": "bundleId", "nameLocation": "426:8:33", "nodeType": "VariableDeclaration", "scope": 22162, "src": "418:16:33", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 22157, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "418:7:33", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 22160, "indexed": false, "mutability": "mutable", "name": "amount", "nameLocation": "444:6:33", "nodeType": "VariableDeclaration", "scope": 22162, "src": "436:14:33", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 22159, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "436:7:33", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "417:34:33" }, "src": "387:65:33" }, { "anonymous": false, "id": 22168, "name": "LogRiskpoolBundleMatchesPolicy", "nameLocation": "463:30:33", "nodeType": "EventDefinition", "parameters": { "id": 22167, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 22164, "indexed": false, "mutability": "mutable", "name": "bundleId", "nameLocation": "502:8:33", "nodeType": "VariableDeclaration", "scope": 22168, "src": "494:16:33", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 22163, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "494:7:33", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 22166, "indexed": false, "mutability": "mutable", "name": "isMatching", "nameLocation": "517:10:33", "nodeType": "VariableDeclaration", "scope": 22168, "src": "512:15:33", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 22165, "name": "bool", "nodeType": "ElementaryTypeName", "src": "512:4:33", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "493:35:33" }, "src": "457:72:33" }, { "anonymous": false, "id": 22176, "name": "LogRiskpoolCollateralLocked", "nameLocation": "540:27:33", "nodeType": "EventDefinition", "parameters": { "id": 22175, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 22170, "indexed": false, "mutability": "mutable", "name": "processId", "nameLocation": "576:9:33", "nodeType": "VariableDeclaration", "scope": 22176, "src": "568:17:33", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 22169, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "568:7:33", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 22172, "indexed": false, "mutability": "mutable", "name": "collateralAmount", "nameLocation": "595:16:33", "nodeType": "VariableDeclaration", "scope": 22176, "src": "587:24:33", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 22171, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "587:7:33", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 22174, "indexed": false, "mutability": "mutable", "name": "isSecured", "nameLocation": "618:9:33", "nodeType": "VariableDeclaration", "scope": 22176, "src": "613:14:33", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 22173, "name": "bool", "nodeType": "ElementaryTypeName", "src": "613:4:33", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "567:61:33" }, "src": "534:95:33" }, { "anonymous": false, "id": 22182, "name": "LogRiskpoolPremiumProcessed", "nameLocation": "641:27:33", "nodeType": "EventDefinition", "parameters": { "id": 22181, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 22178, "indexed": false, "mutability": "mutable", "name": "processId", "nameLocation": "677:9:33", "nodeType": "VariableDeclaration", "scope": 22182, "src": "669:17:33", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 22177, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "669:7:33", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 22180, "indexed": false, "mutability": "mutable", "name": "amount", "nameLocation": "696:6:33", "nodeType": "VariableDeclaration", "scope": 22182, "src": "688:14:33", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 22179, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "688:7:33", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "668:35:33" }, "src": "635:69:33" }, { "anonymous": false, "id": 22188, "name": "LogRiskpoolPayoutProcessed", "nameLocation": "715:26:33", "nodeType": "EventDefinition", "parameters": { "id": 22187, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 22184, "indexed": false, "mutability": "mutable", "name": "processId", "nameLocation": "750:9:33", "nodeType": "VariableDeclaration", "scope": 22188, "src": "742:17:33", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 22183, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "742:7:33", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 22186, "indexed": false, "mutability": "mutable", "name": "amount", "nameLocation": "769:6:33", "nodeType": "VariableDeclaration", "scope": 22188, "src": "761:14:33", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 22185, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "761:7:33", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "741:35:33" }, "src": "709:68:33" }, { "anonymous": false, "id": 22194, "name": "LogRiskpoolCollateralReleased", "nameLocation": "788:29:33", "nodeType": "EventDefinition", "parameters": { "id": 22193, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 22190, "indexed": false, "mutability": "mutable", "name": "processId", "nameLocation": "826:9:33", "nodeType": "VariableDeclaration", "scope": 22194, "src": "818:17:33", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 22189, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "818:7:33", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 22192, "indexed": false, "mutability": "mutable", "name": "collateralAmount", "nameLocation": "845:16:33", "nodeType": "VariableDeclaration", "scope": 22194, "src": "837:24:33", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 22191, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "837:7:33", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "817:45:33" }, "src": "782:81:33" }, { "functionSelector": "7888a2ff", "id": 22203, "implemented": false, "kind": "function", "modifiers": [], "name": "createBundle", "nameLocation": "879:12:33", "nodeType": "FunctionDefinition", "parameters": { "id": 22199, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 22196, "mutability": "mutable", "name": "filter", "nameLocation": "905:6:33", "nodeType": "VariableDeclaration", "scope": 22203, "src": "892:19:33", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 22195, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "892:5:33", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" }, { "constant": false, "id": 22198, "mutability": "mutable", "name": "initialAmount", "nameLocation": "921:13:33", "nodeType": "VariableDeclaration", "scope": 22203, "src": "913:21:33", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 22197, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "913:7:33", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "891:44:33" }, "returnParameters": { "id": 22202, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 22201, "mutability": "mutable", "name": "bundleId", "nameLocation": "961:8:33", "nodeType": "VariableDeclaration", "scope": 22203, "src": "953:16:33", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 22200,