@etherisc/terraguard-poc-contracts
Version:
Etherisc's smart contracts for the terraguard poc
1,794 lines • 119 kB
JSON
{
"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": {
"12": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IRiskpool.sol",
"21": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IRegistry.sol",
"9": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol"
},
"ast": {
"absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IRiskpool.sol",
"exportedSymbols": {
"IBundle": [
3612
],
"IComponent": [
5218
],
"IPolicy": [
3958
],
"IRegistry": [
7009
],
"IRiskpool": [
7650
]
},
"id": 7651,
"license": "Apache-2.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 7419,
"literals": [
"solidity",
"0.8",
".2"
],
"nodeType": "PragmaDirective",
"src": "39:22:12"
},
{
"absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol",
"file": "./IComponent.sol",
"id": 7420,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 7651,
"sourceUnit": 5219,
"src": "63:26:12",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IBundle.sol",
"file": "../modules/IBundle.sol",
"id": 7421,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 7651,
"sourceUnit": 3613,
"src": "90:32:12",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IPolicy.sol",
"file": "../modules/IPolicy.sol",
"id": 7422,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 7651,
"sourceUnit": 3959,
"src": "123:32:12",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [
{
"baseName": {
"id": 7423,
"name": "IComponent",
"nodeType": "IdentifierPath",
"referencedDeclaration": 5218,
"src": "180:10:12"
},
"id": 7424,
"nodeType": "InheritanceSpecifier",
"src": "180:10:12"
}
],
"contractDependencies": [
5218
],
"contractKind": "interface",
"fullyImplemented": false,
"id": 7650,
"linearizedBaseContracts": [
7650,
5218
],
"name": "IRiskpool",
"nameLocation": "167:9:12",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"id": 7428,
"name": "LogRiskpoolCreated",
"nameLocation": "204:18:12",
"nodeType": "EventDefinition",
"parameters": {
"id": 7427,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7426,
"indexed": false,
"mutability": "mutable",
"name": "riskpoolAddress",
"nameLocation": "232:15:12",
"nodeType": "VariableDeclaration",
"scope": 7428,
"src": "224:23:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 7425,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "224:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "223:25:12"
},
"src": "198:51:12"
},
{
"anonymous": false,
"id": 7432,
"name": "LogRiskpoolProposed",
"nameLocation": "260:19:12",
"nodeType": "EventDefinition",
"parameters": {
"id": 7431,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7430,
"indexed": false,
"mutability": "mutable",
"name": "id",
"nameLocation": "289:2:12",
"nodeType": "VariableDeclaration",
"scope": 7432,
"src": "281:10:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 7429,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "281:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "280:12:12"
},
"src": "254:39:12"
},
{
"anonymous": false,
"id": 7436,
"name": "LogRiskpoolApproved",
"nameLocation": "304:19:12",
"nodeType": "EventDefinition",
"parameters": {
"id": 7435,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7434,
"indexed": false,
"mutability": "mutable",
"name": "id",
"nameLocation": "333:2:12",
"nodeType": "VariableDeclaration",
"scope": 7436,
"src": "325:10:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 7433,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "325:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "324:12:12"
},
"src": "298:39:12"
},
{
"anonymous": false,
"id": 7440,
"name": "LogRiskpoolDeclined",
"nameLocation": "348:19:12",
"nodeType": "EventDefinition",
"parameters": {
"id": 7439,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7438,
"indexed": false,
"mutability": "mutable",
"name": "id",
"nameLocation": "377:2:12",
"nodeType": "VariableDeclaration",
"scope": 7440,
"src": "369:10:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 7437,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "369:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "368:12:12"
},
"src": "342:39:12"
},
{
"anonymous": false,
"id": 7446,
"name": "LogRiskpoolBundleCreated",
"nameLocation": "393:24:12",
"nodeType": "EventDefinition",
"parameters": {
"id": 7445,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7442,
"indexed": false,
"mutability": "mutable",
"name": "bundleId",
"nameLocation": "426:8:12",
"nodeType": "VariableDeclaration",
"scope": 7446,
"src": "418:16:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 7441,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "418:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 7444,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "444:6:12",
"nodeType": "VariableDeclaration",
"scope": 7446,
"src": "436:14:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 7443,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "436:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "417:34:12"
},
"src": "387:65:12"
},
{
"anonymous": false,
"id": 7452,
"name": "LogRiskpoolBundleMatchesPolicy",
"nameLocation": "463:30:12",
"nodeType": "EventDefinition",
"parameters": {
"id": 7451,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7448,
"indexed": false,
"mutability": "mutable",
"name": "bundleId",
"nameLocation": "502:8:12",
"nodeType": "VariableDeclaration",
"scope": 7452,
"src": "494:16:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 7447,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "494:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 7450,
"indexed": false,
"mutability": "mutable",
"name": "isMatching",
"nameLocation": "517:10:12",
"nodeType": "VariableDeclaration",
"scope": 7452,
"src": "512:15:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 7449,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "512:4:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "493:35:12"
},
"src": "457:72:12"
},
{
"anonymous": false,
"id": 7460,
"name": "LogRiskpoolCollateralLocked",
"nameLocation": "540:27:12",
"nodeType": "EventDefinition",
"parameters": {
"id": 7459,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7454,
"indexed": false,
"mutability": "mutable",
"name": "processId",
"nameLocation": "576:9:12",
"nodeType": "VariableDeclaration",
"scope": 7460,
"src": "568:17:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 7453,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "568:7:12",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 7456,
"indexed": false,
"mutability": "mutable",
"name": "collateralAmount",
"nameLocation": "595:16:12",
"nodeType": "VariableDeclaration",
"scope": 7460,
"src": "587:24:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 7455,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "587:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 7458,
"indexed": false,
"mutability": "mutable",
"name": "isSecured",
"nameLocation": "618:9:12",
"nodeType": "VariableDeclaration",
"scope": 7460,
"src": "613:14:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 7457,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "613:4:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "567:61:12"
},
"src": "534:95:12"
},
{
"anonymous": false,
"id": 7466,
"name": "LogRiskpoolPremiumProcessed",
"nameLocation": "641:27:12",
"nodeType": "EventDefinition",
"parameters": {
"id": 7465,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7462,
"indexed": false,
"mutability": "mutable",
"name": "processId",
"nameLocation": "677:9:12",
"nodeType": "VariableDeclaration",
"scope": 7466,
"src": "669:17:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 7461,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "669:7:12",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 7464,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "696:6:12",
"nodeType": "VariableDeclaration",
"scope": 7466,
"src": "688:14:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 7463,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "688:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "668:35:12"
},
"src": "635:69:12"
},
{
"anonymous": false,
"id": 7472,
"name": "LogRiskpoolPayoutProcessed",
"nameLocation": "715:26:12",
"nodeType": "EventDefinition",
"parameters": {
"id": 7471,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7468,
"indexed": false,
"mutability": "mutable",
"name": "processId",
"nameLocation": "750:9:12",
"nodeType": "VariableDeclaration",
"scope": 7472,
"src": "742:17:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 7467,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "742:7:12",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 7470,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "769:6:12",
"nodeType": "VariableDeclaration",
"scope": 7472,
"src": "761:14:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 7469,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "761:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "741:35:12"
},
"src": "709:68:12"
},
{
"anonymous": false,
"id": 7478,
"name": "LogRiskpoolCollateralReleased",
"nameLocation": "788:29:12",
"nodeType": "EventDefinition",
"parameters": {
"id": 7477,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7474,
"indexed": false,
"mutability": "mutable",
"name": "processId",
"nameLocation": "826:9:12",
"nodeType": "VariableDeclaration",
"scope": 7478,
"src": "818:17:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 7473,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "818:7:12",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 7476,
"indexed": false,
"mutability": "mutable",
"name": "collateralAmount",
"nameLocation": "845:16:12",
"nodeType": "VariableDeclaration",
"scope": 7478,
"src": "837:24:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 7475,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "837:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "817:45:12"
},
"src": "782:81:12"
},
{
"functionSelector": "7888a2ff",
"id": 7487,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "createBundle",
"nameLocation": "879:12:12",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 7483,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7480,
"mutability": "mutable",
"name": "filter",
"nameLocation": "905:6:12",
"nodeType": "VariableDeclaration",
"scope": 7487,
"src": "892:19:12",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 7479,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "892:5:12",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 7482,
"mutability": "mutable",
"name": "initialAmount",
"nameLocation": "921:13:12",
"nodeType": "VariableDeclaration",
"scope": 7487,
"src": "913:21:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 7481,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "913:7:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "891:44:12"
},
"returnParameters": {
"id": 7486,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7485,
"mutability": "mutable",
"name": "bundleId",
"nameLocation": "961:8:12",
"nodeType": "VariableDeclaration",
"scope": 7487,
"src": "953:16:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 7484,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"sr