@etherisc/gif-contracts
Version:
This repository holds the GIF core contracts and tools to develop, test and deploy GIF instances.
1,540 lines • 93.7 kB
JSON
{
"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": {
"38": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IBundle.sol"
},
"ast": {
"absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IBundle.sol",
"exportedSymbols": {
"IBundle": [
20491
]
},
"id": 20492,
"license": "Apache-2.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 20309,
"literals": [
"solidity",
"0.8",
".2"
],
"nodeType": "PragmaDirective",
"src": "39:22:38"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 20491,
"linearizedBaseContracts": [
20491
],
"name": "IBundle",
"nameLocation": "73:7:38",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"id": 20322,
"name": "LogBundleCreated",
"nameLocation": "94:16:38",
"nodeType": "EventDefinition",
"parameters": {
"id": 20321,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20311,
"indexed": false,
"mutability": "mutable",
"name": "bundleId",
"nameLocation": "128:8:38",
"nodeType": "VariableDeclaration",
"scope": 20322,
"src": "120:16:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20310,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "120:7:38",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20313,
"indexed": false,
"mutability": "mutable",
"name": "riskpoolId",
"nameLocation": "155:10:38",
"nodeType": "VariableDeclaration",
"scope": 20322,
"src": "147:18:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20312,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "147:7:38",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20315,
"indexed": false,
"mutability": "mutable",
"name": "owner",
"nameLocation": "184:5:38",
"nodeType": "VariableDeclaration",
"scope": 20322,
"src": "176:13:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20314,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "176:7:38",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20318,
"indexed": false,
"mutability": "mutable",
"name": "state",
"nameLocation": "211:5:38",
"nodeType": "VariableDeclaration",
"scope": 20322,
"src": "199:17:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_BundleState_$20385",
"typeString": "enum IBundle.BundleState"
},
"typeName": {
"id": 20317,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 20316,
"name": "BundleState",
"nodeType": "IdentifierPath",
"referencedDeclaration": 20385,
"src": "199:11:38"
},
"referencedDeclaration": 20385,
"src": "199:11:38",
"typeDescriptions": {
"typeIdentifier": "t_enum$_BundleState_$20385",
"typeString": "enum IBundle.BundleState"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20320,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "234:6:38",
"nodeType": "VariableDeclaration",
"scope": 20322,
"src": "226:14:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20319,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "226:7:38",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "110:136:38"
},
"src": "88:159:38"
},
{
"anonymous": false,
"id": 20332,
"name": "LogBundleStateChanged",
"nameLocation": "259:21:38",
"nodeType": "EventDefinition",
"parameters": {
"id": 20331,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20324,
"indexed": false,
"mutability": "mutable",
"name": "bundleId",
"nameLocation": "289:8:38",
"nodeType": "VariableDeclaration",
"scope": 20332,
"src": "281:16:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20323,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "281:7:38",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20327,
"indexed": false,
"mutability": "mutable",
"name": "oldState",
"nameLocation": "311:8:38",
"nodeType": "VariableDeclaration",
"scope": 20332,
"src": "299:20:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_BundleState_$20385",
"typeString": "enum IBundle.BundleState"
},
"typeName": {
"id": 20326,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 20325,
"name": "BundleState",
"nodeType": "IdentifierPath",
"referencedDeclaration": 20385,
"src": "299:11:38"
},
"referencedDeclaration": 20385,
"src": "299:11:38",
"typeDescriptions": {
"typeIdentifier": "t_enum$_BundleState_$20385",
"typeString": "enum IBundle.BundleState"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20330,
"indexed": false,
"mutability": "mutable",
"name": "newState",
"nameLocation": "333:8:38",
"nodeType": "VariableDeclaration",
"scope": 20332,
"src": "321:20:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_BundleState_$20385",
"typeString": "enum IBundle.BundleState"
},
"typeName": {
"id": 20329,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 20328,
"name": "BundleState",
"nodeType": "IdentifierPath",
"referencedDeclaration": 20385,
"src": "321:11:38"
},
"referencedDeclaration": 20385,
"src": "321:11:38",
"typeDescriptions": {
"typeIdentifier": "t_enum$_BundleState_$20385",
"typeString": "enum IBundle.BundleState"
}
},
"visibility": "internal"
}
],
"src": "280:62:38"
},
"src": "253:90:38"
},
{
"anonymous": false,
"id": 20342,
"name": "LogBundleCapitalProvided",
"nameLocation": "355:24:38",
"nodeType": "EventDefinition",
"parameters": {
"id": 20341,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20334,
"indexed": false,
"mutability": "mutable",
"name": "bundleId",
"nameLocation": "388:8:38",
"nodeType": "VariableDeclaration",
"scope": 20342,
"src": "380:16:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20333,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "380:7:38",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20336,
"indexed": false,
"mutability": "mutable",
"name": "sender",
"nameLocation": "406:6:38",
"nodeType": "VariableDeclaration",
"scope": 20342,
"src": "398:14:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20335,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "398:7:38",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20338,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "422:6:38",
"nodeType": "VariableDeclaration",
"scope": 20342,
"src": "414:14:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20337,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "414:7:38",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20340,
"indexed": false,
"mutability": "mutable",
"name": "capacity",
"nameLocation": "438:8:38",
"nodeType": "VariableDeclaration",
"scope": 20342,
"src": "430:16:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20339,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "430:7:38",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "379:68:38"
},
"src": "349:99:38"
},
{
"anonymous": false,
"id": 20352,
"name": "LogBundleCapitalWithdrawn",
"nameLocation": "459:25:38",
"nodeType": "EventDefinition",
"parameters": {
"id": 20351,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20344,
"indexed": false,
"mutability": "mutable",
"name": "bundleId",
"nameLocation": "493:8:38",
"nodeType": "VariableDeclaration",
"scope": 20352,
"src": "485:16:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20343,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "485:7:38",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20346,
"indexed": false,
"mutability": "mutable",
"name": "recipient",
"nameLocation": "511:9:38",
"nodeType": "VariableDeclaration",
"scope": 20352,
"src": "503:17:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 20345,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "503:7:38",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20348,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "530:6:38",
"nodeType": "VariableDeclaration",
"scope": 20352,
"src": "522:14:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20347,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "522:7:38",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20350,
"indexed": false,
"mutability": "mutable",
"name": "capacity",
"nameLocation": "546:8:38",
"nodeType": "VariableDeclaration",
"scope": 20352,
"src": "538:16:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20349,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "538:7:38",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "484:71:38"
},
"src": "453:103:38"
},
{
"anonymous": false,
"id": 20362,
"name": "LogBundlePolicyCollateralized",
"nameLocation": "568:29:38",
"nodeType": "EventDefinition",
"parameters": {
"id": 20361,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20354,
"indexed": false,
"mutability": "mutable",
"name": "bundleId",
"nameLocation": "606:8:38",
"nodeType": "VariableDeclaration",
"scope": 20362,
"src": "598:16:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20353,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "598:7:38",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20356,
"indexed": false,
"mutability": "mutable",
"name": "processId",
"nameLocation": "624:9:38",
"nodeType": "VariableDeclaration",
"scope": 20362,
"src": "616:17:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20355,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "616:7:38",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20358,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "643:6:38",
"nodeType": "VariableDeclaration",
"scope": 20362,
"src": "635:14:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20357,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "635:7:38",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20360,
"indexed": false,
"mutability": "mutable",
"name": "capacity",
"nameLocation": "659:8:38",
"nodeType": "VariableDeclaration",
"scope": 20362,
"src": "651:16:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20359,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "651:7:38",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "597:71:38"
},
"src": "562:107:38"
},
{
"anonymous": false,
"id": 20370,
"name": "LogBundlePayoutProcessed",
"nameLocation": "680:24:38",
"nodeType": "EventDefinition",
"parameters": {
"id": 20369,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20364,
"indexed": false,
"mutability": "mutable",
"name": "bundleId",
"nameLocation": "713:8:38",
"nodeType": "VariableDeclaration",
"scope": 20370,
"src": "705:16:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20363,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "705:7:38",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20366,
"indexed": false,
"mutability": "mutable",
"name": "processId",
"nameLocation": "731:9:38",
"nodeType": "VariableDeclaration",
"scope": 20370,
"src": "723:17:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20365,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "723:7:38",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20368,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "750:6:38",
"nodeType": "VariableDeclaration",
"scope": 20370,
"src": "742:14:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20367,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "742:7:38",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "704:53:38"
},
"src": "674:84:38"
},
{
"anonymous": false,
"id": 20380,
"name": "LogBundlePolicyReleased",
"nameLocation": "769:23:38",
"nodeType": "EventDefinition",
"parameters": {
"id": 20379,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20372,
"indexed": false,
"mutability": "mutable",
"name": "bundleId",
"nameLocation": "801:8:38",
"nodeType": "VariableDeclaration",
"scope": 20380,
"src": "793:16:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20371,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "793:7:38",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20374,
"indexed": false,
"mutability": "mutable",
"name": "processId",
"nameLocation": "819:9:38",
"nodeType": "VariableDeclaration",
"scope": 20380,
"src": "811:17:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20373,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "811:7:38",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20376,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "838:6:38",
"nodeType": "VariableDeclaration",
"scope": 20380,
"src": "830:14:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20375,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "830:7:38",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20378,
"indexed": false,
"mutability": "mutable",
"name": "capacity",
"nameLocation": "854:8:38",
"nodeType": "VariableDeclaration",
"scope": 20380,
"src": "846:16:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20377,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "846:7:38",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "792:71:38"
},
"src": "763:101:38"
},
{
"canonicalName": "IBundle.BundleState",
"id": 20385,
"members": [
{
"id": 20381,
"name": "Active",
"nameLocation": "897:6:38",
"nodeType": "EnumValue",
"src": "897:6:38"
},
{
"id": 20382,
"name": "Locked",
"nameLocation": "913:6:38",
"nodeType": "EnumValue",
"src": "913:6:38"
},
{
"id": 20383,
"name": "Closed",
"nameLocation": "929:6:38",
"nodeType": "EnumValue",
"src": "929:6:38"
},
{
"id": 20384,
"name": "Burned",
"nameLocation": "945:6:38",
"nodeType": "EnumValue",
"src": "945:6:38"
}
],
"name": "BundleState",
"nameLocation": "875:11:38",
"nodeType": "EnumDefinition",
"src": "870:87:38"
},
{
"canonicalName": "IBundle.Bundle",
"id": 20407,
"members": [
{
"constant": false,
"id": 20387,
"mutability": "mutable",
"name": "id",
"nameLocation": "995:2:38",
"nodeType": "VariableDeclaration",
"scope": 20407,
"src": "987:10:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20386,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "987:7:38",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20389,
"mutability": "mutable",
"name": "riskpoolId",
"nameLocation": "1015:10:38",
"nodeType": "VariableDeclaration",
"scope": 20407,
"src": "1007:18:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20388,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1007:7:38",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20391,
"mutability": "mutable",
"name": "tokenId",
"nameLocation": "1043:7:38",
"nodeType": "VariableDeclaration",
"scope": 20407,
"src": "1035:15:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 20390,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1035:7:38",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20394,
"mutability": "mutable",
"name": "state",
"nameLocation": "1072:5:38",
"nodeType": "VariableDeclaration",
"scope": 20407,
"src": "1060:17:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_BundleState_$20385",
"typeString": "enum IBundle.BundleState"
},
"typeName": {
"id": 20393,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 20392,
"name": "BundleState",
"nodeType": "IdentifierPath",
"referencedDeclaration": 20385,
"src": "1060:11:38"
},
"referencedDeclaration": 20385,
"src": "1060:11:38",
"typeDescriptions": {
"typeIdentifier": "t_enum$_BundleState_$20385",
"typeString": "enum IBundle.BundleState"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20396,
"mutability": "mutable",
"name": "filter",
"nameLocation": "1093:6:38",
"nodeType": "VariableDeclaration",
"scope": 20407,
"src": "1087:12:38",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 20395,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "1087:5:38",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 20398,
"mutab