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,547 lines (1,546 loc) 93.2 kB
{ "abi": [ { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "bundleId", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "sender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "capacity", "type": "uint256" } ], "name": "LogBundleCapitalProvided", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "bundleId", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "recipient", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "capacity", "type": "uint256" } ], "name": "LogBundleCapitalWithdrawn", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "bundleId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "riskpoolId", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": false, "internalType": "enum IBundle.BundleState", "name": "state", "type": "uint8" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "LogBundleCreated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "bundleId", "type": "uint256" }, { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "LogBundlePayoutProcessed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "bundleId", "type": "uint256" }, { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "capacity", "type": "uint256" } ], "name": "LogBundlePolicyCollateralized", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "bundleId", "type": "uint256" }, { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "capacity", "type": "uint256" } ], "name": "LogBundlePolicyReleased", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "bundleId", "type": "uint256" }, { "indexed": false, "internalType": "enum IBundle.BundleState", "name": "oldState", "type": "uint8" }, { "indexed": false, "internalType": "enum IBundle.BundleState", "name": "newState", "type": "uint8" } ], "name": "LogBundleStateChanged", "type": "event" }, { "inputs": [ { "internalType": "uint256", "name": "bundleId", "type": "uint256" } ], "name": "burn", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "bundleId", "type": "uint256" } ], "name": "close", "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": "uint256", "name": "riskpoolId_", "type": "uint256" }, { "internalType": "bytes", "name": "filter_", "type": "bytes" }, { "internalType": "uint256", "name": "amount_", "type": "uint256" } ], "name": "create", "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": "defund", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "bundleId", "type": "uint256" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "fund", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "bundleId", "type": "uint256" } ], "name": "lock", "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": "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": "bundleId", "type": "uint256" } ], "name": "unlock", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "allSourcePaths": { "15": "contracts/modules/IBundle.sol" }, "ast": { "absolutePath": "contracts/modules/IBundle.sol", "exportedSymbols": { "IBundle": [ 2844 ] }, "id": 2845, "license": "Apache-2.0", "nodeType": "SourceUnit", "nodes": [ { "id": 2662, "literals": [ "solidity", "0.8", ".2" ], "nodeType": "PragmaDirective", "src": "39:22:15" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "fullyImplemented": false, "id": 2844, "linearizedBaseContracts": [ 2844 ], "name": "IBundle", "nameLocation": "73:7:15", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "id": 2675, "name": "LogBundleCreated", "nameLocation": "94:16:15", "nodeType": "EventDefinition", "parameters": { "id": 2674, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2664, "indexed": false, "mutability": "mutable", "name": "bundleId", "nameLocation": "128:8:15", "nodeType": "VariableDeclaration", "scope": 2675, "src": "120:16:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2663, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "120:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2666, "indexed": false, "mutability": "mutable", "name": "riskpoolId", "nameLocation": "155:10:15", "nodeType": "VariableDeclaration", "scope": 2675, "src": "147:18:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2665, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "147:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2668, "indexed": false, "mutability": "mutable", "name": "owner", "nameLocation": "184:5:15", "nodeType": "VariableDeclaration", "scope": 2675, "src": "176:13:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2667, "name": "address", "nodeType": "ElementaryTypeName", "src": "176:7:15", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 2671, "indexed": false, "mutability": "mutable", "name": "state", "nameLocation": "211:5:15", "nodeType": "VariableDeclaration", "scope": 2675, "src": "199:17:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_enum$_BundleState_$2738", "typeString": "enum IBundle.BundleState" }, "typeName": { "id": 2670, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 2669, "name": "BundleState", "nodeType": "IdentifierPath", "referencedDeclaration": 2738, "src": "199:11:15" }, "referencedDeclaration": 2738, "src": "199:11:15", "typeDescriptions": { "typeIdentifier": "t_enum$_BundleState_$2738", "typeString": "enum IBundle.BundleState" } }, "visibility": "internal" }, { "constant": false, "id": 2673, "indexed": false, "mutability": "mutable", "name": "amount", "nameLocation": "234:6:15", "nodeType": "VariableDeclaration", "scope": 2675, "src": "226:14:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2672, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "226:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "110:136:15" }, "src": "88:159:15" }, { "anonymous": false, "id": 2685, "name": "LogBundleStateChanged", "nameLocation": "259:21:15", "nodeType": "EventDefinition", "parameters": { "id": 2684, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2677, "indexed": false, "mutability": "mutable", "name": "bundleId", "nameLocation": "289:8:15", "nodeType": "VariableDeclaration", "scope": 2685, "src": "281:16:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2676, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "281:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2680, "indexed": false, "mutability": "mutable", "name": "oldState", "nameLocation": "311:8:15", "nodeType": "VariableDeclaration", "scope": 2685, "src": "299:20:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_enum$_BundleState_$2738", "typeString": "enum IBundle.BundleState" }, "typeName": { "id": 2679, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 2678, "name": "BundleState", "nodeType": "IdentifierPath", "referencedDeclaration": 2738, "src": "299:11:15" }, "referencedDeclaration": 2738, "src": "299:11:15", "typeDescriptions": { "typeIdentifier": "t_enum$_BundleState_$2738", "typeString": "enum IBundle.BundleState" } }, "visibility": "internal" }, { "constant": false, "id": 2683, "indexed": false, "mutability": "mutable", "name": "newState", "nameLocation": "333:8:15", "nodeType": "VariableDeclaration", "scope": 2685, "src": "321:20:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_enum$_BundleState_$2738", "typeString": "enum IBundle.BundleState" }, "typeName": { "id": 2682, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 2681, "name": "BundleState", "nodeType": "IdentifierPath", "referencedDeclaration": 2738, "src": "321:11:15" }, "referencedDeclaration": 2738, "src": "321:11:15", "typeDescriptions": { "typeIdentifier": "t_enum$_BundleState_$2738", "typeString": "enum IBundle.BundleState" } }, "visibility": "internal" } ], "src": "280:62:15" }, "src": "253:90:15" }, { "anonymous": false, "id": 2695, "name": "LogBundleCapitalProvided", "nameLocation": "355:24:15", "nodeType": "EventDefinition", "parameters": { "id": 2694, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2687, "indexed": false, "mutability": "mutable", "name": "bundleId", "nameLocation": "388:8:15", "nodeType": "VariableDeclaration", "scope": 2695, "src": "380:16:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2686, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "380:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2689, "indexed": false, "mutability": "mutable", "name": "sender", "nameLocation": "406:6:15", "nodeType": "VariableDeclaration", "scope": 2695, "src": "398:14:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2688, "name": "address", "nodeType": "ElementaryTypeName", "src": "398:7:15", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 2691, "indexed": false, "mutability": "mutable", "name": "amount", "nameLocation": "422:6:15", "nodeType": "VariableDeclaration", "scope": 2695, "src": "414:14:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2690, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "414:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2693, "indexed": false, "mutability": "mutable", "name": "capacity", "nameLocation": "438:8:15", "nodeType": "VariableDeclaration", "scope": 2695, "src": "430:16:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2692, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "430:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "379:68:15" }, "src": "349:99:15" }, { "anonymous": false, "id": 2705, "name": "LogBundleCapitalWithdrawn", "nameLocation": "459:25:15", "nodeType": "EventDefinition", "parameters": { "id": 2704, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2697, "indexed": false, "mutability": "mutable", "name": "bundleId", "nameLocation": "493:8:15", "nodeType": "VariableDeclaration", "scope": 2705, "src": "485:16:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2696, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "485:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2699, "indexed": false, "mutability": "mutable", "name": "recipient", "nameLocation": "511:9:15", "nodeType": "VariableDeclaration", "scope": 2705, "src": "503:17:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2698, "name": "address", "nodeType": "ElementaryTypeName", "src": "503:7:15", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 2701, "indexed": false, "mutability": "mutable", "name": "amount", "nameLocation": "530:6:15", "nodeType": "VariableDeclaration", "scope": 2705, "src": "522:14:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2700, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "522:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2703, "indexed": false, "mutability": "mutable", "name": "capacity", "nameLocation": "546:8:15", "nodeType": "VariableDeclaration", "scope": 2705, "src": "538:16:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2702, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "538:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "484:71:15" }, "src": "453:103:15" }, { "anonymous": false, "id": 2715, "name": "LogBundlePolicyCollateralized", "nameLocation": "568:29:15", "nodeType": "EventDefinition", "parameters": { "id": 2714, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2707, "indexed": false, "mutability": "mutable", "name": "bundleId", "nameLocation": "606:8:15", "nodeType": "VariableDeclaration", "scope": 2715, "src": "598:16:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2706, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "598:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2709, "indexed": false, "mutability": "mutable", "name": "processId", "nameLocation": "624:9:15", "nodeType": "VariableDeclaration", "scope": 2715, "src": "616:17:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 2708, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "616:7:15", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 2711, "indexed": false, "mutability": "mutable", "name": "amount", "nameLocation": "643:6:15", "nodeType": "VariableDeclaration", "scope": 2715, "src": "635:14:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2710, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "635:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2713, "indexed": false, "mutability": "mutable", "name": "capacity", "nameLocation": "659:8:15", "nodeType": "VariableDeclaration", "scope": 2715, "src": "651:16:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2712, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "651:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "597:71:15" }, "src": "562:107:15" }, { "anonymous": false, "id": 2723, "name": "LogBundlePayoutProcessed", "nameLocation": "680:24:15", "nodeType": "EventDefinition", "parameters": { "id": 2722, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2717, "indexed": false, "mutability": "mutable", "name": "bundleId", "nameLocation": "713:8:15", "nodeType": "VariableDeclaration", "scope": 2723, "src": "705:16:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2716, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "705:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2719, "indexed": false, "mutability": "mutable", "name": "processId", "nameLocation": "731:9:15", "nodeType": "VariableDeclaration", "scope": 2723, "src": "723:17:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 2718, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "723:7:15", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 2721, "indexed": false, "mutability": "mutable", "name": "amount", "nameLocation": "750:6:15", "nodeType": "VariableDeclaration", "scope": 2723, "src": "742:14:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2720, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "742:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "704:53:15" }, "src": "674:84:15" }, { "anonymous": false, "id": 2733, "name": "LogBundlePolicyReleased", "nameLocation": "769:23:15", "nodeType": "EventDefinition", "parameters": { "id": 2732, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2725, "indexed": false, "mutability": "mutable", "name": "bundleId", "nameLocation": "801:8:15", "nodeType": "VariableDeclaration", "scope": 2733, "src": "793:16:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2724, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "793:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2727, "indexed": false, "mutability": "mutable", "name": "processId", "nameLocation": "819:9:15", "nodeType": "VariableDeclaration", "scope": 2733, "src": "811:17:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 2726, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "811:7:15", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 2729, "indexed": false, "mutability": "mutable", "name": "amount", "nameLocation": "838:6:15", "nodeType": "VariableDeclaration", "scope": 2733, "src": "830:14:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2728, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "830:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2731, "indexed": false, "mutability": "mutable", "name": "capacity", "nameLocation": "854:8:15", "nodeType": "VariableDeclaration", "scope": 2733, "src": "846:16:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2730, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "846:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "792:71:15" }, "src": "763:101:15" }, { "canonicalName": "IBundle.BundleState", "id": 2738, "members": [ { "id": 2734, "name": "Active", "nameLocation": "897:6:15", "nodeType": "EnumValue", "src": "897:6:15" }, { "id": 2735, "name": "Locked", "nameLocation": "913:6:15", "nodeType": "EnumValue", "src": "913:6:15" }, { "id": 2736, "name": "Closed", "nameLocation": "929:6:15", "nodeType": "EnumValue", "src": "929:6:15" }, { "id": 2737, "name": "Burned", "nameLocation": "945:6:15", "nodeType": "EnumValue", "src": "945:6:15" } ], "name": "BundleState", "nameLocation": "875:11:15", "nodeType": "EnumDefinition", "src": "870:87:15" }, { "canonicalName": "IBundle.Bundle", "id": 2760, "members": [ { "constant": false, "id": 2740, "mutability": "mutable", "name": "id", "nameLocation": "995:2:15", "nodeType": "VariableDeclaration", "scope": 2760, "src": "987:10:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2739, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "987:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2742, "mutability": "mutable", "name": "riskpoolId", "nameLocation": "1015:10:15", "nodeType": "VariableDeclaration", "scope": 2760, "src": "1007:18:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2741, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1007:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2744, "mutability": "mutable", "name": "tokenId", "nameLocation": "1043:7:15", "nodeType": "VariableDeclaration", "scope": 2760, "src": "1035:15:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2743, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1035:7:15", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2747, "mutability": "mutable", "name": "state", "nameLocation": "1072:5:15", "nodeType": "VariableDeclaration", "scope": 2760, "src": "1060:17:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_enum$_BundleState_$2738", "typeString": "enum IBundle.BundleState" }, "typeName": { "id": 2746, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 2745, "name": "BundleState", "nodeType": "IdentifierPath", "referencedDeclaration": 2738, "src": "1060:11:15" }, "referencedDeclaration": 2738, "src": "1060:11:15", "typeDescriptions": { "typeIdentifier": "t_enum$_BundleState_$2738", "typeString": "enum IBundle.BundleState" } }, "visibility": "internal" }, { "constant": false, "id": 2749, "mutability": "mutable", "name": "filter", "nameLocation": "1093:6:15", "nodeType": "VariableDeclaration", "scope": 2760, "src": "1087:12:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" }, "typeName": { "id": 2748, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "1087:5:15", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" }, { "constant": false, "id": 2751, "mutability": "mutable", "name": "capital", "nameLocation": "1211:7:15", "nodeType": "VariableDeclaration", "scope": 2760, "src": "1203:15:15", "stateVariable": false,