@etherisc/depeg-contracts
Version:
Etherisc's smart contracts for a depeg insurance for stable coins.
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": {
"34": "/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": [
13382
]
},
"id": 13383,
"license": "Apache-2.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 13200,
"literals": [
"solidity",
"0.8",
".2"
],
"nodeType": "PragmaDirective",
"src": "39:22:34"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 13382,
"linearizedBaseContracts": [
13382
],
"name": "IBundle",
"nameLocation": "73:7:34",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"id": 13213,
"name": "LogBundleCreated",
"nameLocation": "94:16:34",
"nodeType": "EventDefinition",
"parameters": {
"id": 13212,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13202,
"indexed": false,
"mutability": "mutable",
"name": "bundleId",
"nameLocation": "128:8:34",
"nodeType": "VariableDeclaration",
"scope": 13213,
"src": "120:16:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13201,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "120:7:34",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13204,
"indexed": false,
"mutability": "mutable",
"name": "riskpoolId",
"nameLocation": "155:10:34",
"nodeType": "VariableDeclaration",
"scope": 13213,
"src": "147:18:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13203,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "147:7:34",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13206,
"indexed": false,
"mutability": "mutable",
"name": "owner",
"nameLocation": "184:5:34",
"nodeType": "VariableDeclaration",
"scope": 13213,
"src": "176:13:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 13205,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "176:7:34",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13209,
"indexed": false,
"mutability": "mutable",
"name": "state",
"nameLocation": "211:5:34",
"nodeType": "VariableDeclaration",
"scope": 13213,
"src": "199:17:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_BundleState_$13276",
"typeString": "enum IBundle.BundleState"
},
"typeName": {
"id": 13208,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 13207,
"name": "BundleState",
"nodeType": "IdentifierPath",
"referencedDeclaration": 13276,
"src": "199:11:34"
},
"referencedDeclaration": 13276,
"src": "199:11:34",
"typeDescriptions": {
"typeIdentifier": "t_enum$_BundleState_$13276",
"typeString": "enum IBundle.BundleState"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13211,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "234:6:34",
"nodeType": "VariableDeclaration",
"scope": 13213,
"src": "226:14:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13210,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "226:7:34",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "110:136:34"
},
"src": "88:159:34"
},
{
"anonymous": false,
"id": 13223,
"name": "LogBundleStateChanged",
"nameLocation": "259:21:34",
"nodeType": "EventDefinition",
"parameters": {
"id": 13222,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13215,
"indexed": false,
"mutability": "mutable",
"name": "bundleId",
"nameLocation": "289:8:34",
"nodeType": "VariableDeclaration",
"scope": 13223,
"src": "281:16:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13214,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "281:7:34",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13218,
"indexed": false,
"mutability": "mutable",
"name": "oldState",
"nameLocation": "311:8:34",
"nodeType": "VariableDeclaration",
"scope": 13223,
"src": "299:20:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_BundleState_$13276",
"typeString": "enum IBundle.BundleState"
},
"typeName": {
"id": 13217,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 13216,
"name": "BundleState",
"nodeType": "IdentifierPath",
"referencedDeclaration": 13276,
"src": "299:11:34"
},
"referencedDeclaration": 13276,
"src": "299:11:34",
"typeDescriptions": {
"typeIdentifier": "t_enum$_BundleState_$13276",
"typeString": "enum IBundle.BundleState"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13221,
"indexed": false,
"mutability": "mutable",
"name": "newState",
"nameLocation": "333:8:34",
"nodeType": "VariableDeclaration",
"scope": 13223,
"src": "321:20:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_BundleState_$13276",
"typeString": "enum IBundle.BundleState"
},
"typeName": {
"id": 13220,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 13219,
"name": "BundleState",
"nodeType": "IdentifierPath",
"referencedDeclaration": 13276,
"src": "321:11:34"
},
"referencedDeclaration": 13276,
"src": "321:11:34",
"typeDescriptions": {
"typeIdentifier": "t_enum$_BundleState_$13276",
"typeString": "enum IBundle.BundleState"
}
},
"visibility": "internal"
}
],
"src": "280:62:34"
},
"src": "253:90:34"
},
{
"anonymous": false,
"id": 13233,
"name": "LogBundleCapitalProvided",
"nameLocation": "355:24:34",
"nodeType": "EventDefinition",
"parameters": {
"id": 13232,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13225,
"indexed": false,
"mutability": "mutable",
"name": "bundleId",
"nameLocation": "388:8:34",
"nodeType": "VariableDeclaration",
"scope": 13233,
"src": "380:16:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13224,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "380:7:34",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13227,
"indexed": false,
"mutability": "mutable",
"name": "sender",
"nameLocation": "406:6:34",
"nodeType": "VariableDeclaration",
"scope": 13233,
"src": "398:14:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 13226,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "398:7:34",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13229,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "422:6:34",
"nodeType": "VariableDeclaration",
"scope": 13233,
"src": "414:14:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13228,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "414:7:34",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13231,
"indexed": false,
"mutability": "mutable",
"name": "capacity",
"nameLocation": "438:8:34",
"nodeType": "VariableDeclaration",
"scope": 13233,
"src": "430:16:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13230,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "430:7:34",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "379:68:34"
},
"src": "349:99:34"
},
{
"anonymous": false,
"id": 13243,
"name": "LogBundleCapitalWithdrawn",
"nameLocation": "459:25:34",
"nodeType": "EventDefinition",
"parameters": {
"id": 13242,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13235,
"indexed": false,
"mutability": "mutable",
"name": "bundleId",
"nameLocation": "493:8:34",
"nodeType": "VariableDeclaration",
"scope": 13243,
"src": "485:16:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13234,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "485:7:34",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13237,
"indexed": false,
"mutability": "mutable",
"name": "recipient",
"nameLocation": "511:9:34",
"nodeType": "VariableDeclaration",
"scope": 13243,
"src": "503:17:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 13236,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "503:7:34",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13239,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "530:6:34",
"nodeType": "VariableDeclaration",
"scope": 13243,
"src": "522:14:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13238,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "522:7:34",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13241,
"indexed": false,
"mutability": "mutable",
"name": "capacity",
"nameLocation": "546:8:34",
"nodeType": "VariableDeclaration",
"scope": 13243,
"src": "538:16:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13240,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "538:7:34",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "484:71:34"
},
"src": "453:103:34"
},
{
"anonymous": false,
"id": 13253,
"name": "LogBundlePolicyCollateralized",
"nameLocation": "568:29:34",
"nodeType": "EventDefinition",
"parameters": {
"id": 13252,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13245,
"indexed": false,
"mutability": "mutable",
"name": "bundleId",
"nameLocation": "606:8:34",
"nodeType": "VariableDeclaration",
"scope": 13253,
"src": "598:16:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13244,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "598:7:34",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13247,
"indexed": false,
"mutability": "mutable",
"name": "processId",
"nameLocation": "624:9:34",
"nodeType": "VariableDeclaration",
"scope": 13253,
"src": "616:17:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 13246,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "616:7:34",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13249,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "643:6:34",
"nodeType": "VariableDeclaration",
"scope": 13253,
"src": "635:14:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13248,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "635:7:34",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13251,
"indexed": false,
"mutability": "mutable",
"name": "capacity",
"nameLocation": "659:8:34",
"nodeType": "VariableDeclaration",
"scope": 13253,
"src": "651:16:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13250,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "651:7:34",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "597:71:34"
},
"src": "562:107:34"
},
{
"anonymous": false,
"id": 13261,
"name": "LogBundlePayoutProcessed",
"nameLocation": "680:24:34",
"nodeType": "EventDefinition",
"parameters": {
"id": 13260,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13255,
"indexed": false,
"mutability": "mutable",
"name": "bundleId",
"nameLocation": "713:8:34",
"nodeType": "VariableDeclaration",
"scope": 13261,
"src": "705:16:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13254,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "705:7:34",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13257,
"indexed": false,
"mutability": "mutable",
"name": "processId",
"nameLocation": "731:9:34",
"nodeType": "VariableDeclaration",
"scope": 13261,
"src": "723:17:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 13256,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "723:7:34",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13259,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "750:6:34",
"nodeType": "VariableDeclaration",
"scope": 13261,
"src": "742:14:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13258,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "742:7:34",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "704:53:34"
},
"src": "674:84:34"
},
{
"anonymous": false,
"id": 13271,
"name": "LogBundlePolicyReleased",
"nameLocation": "769:23:34",
"nodeType": "EventDefinition",
"parameters": {
"id": 13270,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13263,
"indexed": false,
"mutability": "mutable",
"name": "bundleId",
"nameLocation": "801:8:34",
"nodeType": "VariableDeclaration",
"scope": 13271,
"src": "793:16:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13262,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "793:7:34",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13265,
"indexed": false,
"mutability": "mutable",
"name": "processId",
"nameLocation": "819:9:34",
"nodeType": "VariableDeclaration",
"scope": 13271,
"src": "811:17:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 13264,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "811:7:34",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13267,
"indexed": false,
"mutability": "mutable",
"name": "amount",
"nameLocation": "838:6:34",
"nodeType": "VariableDeclaration",
"scope": 13271,
"src": "830:14:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13266,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "830:7:34",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13269,
"indexed": false,
"mutability": "mutable",
"name": "capacity",
"nameLocation": "854:8:34",
"nodeType": "VariableDeclaration",
"scope": 13271,
"src": "846:16:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13268,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "846:7:34",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "792:71:34"
},
"src": "763:101:34"
},
{
"canonicalName": "IBundle.BundleState",
"id": 13276,
"members": [
{
"id": 13272,
"name": "Active",
"nameLocation": "897:6:34",
"nodeType": "EnumValue",
"src": "897:6:34"
},
{
"id": 13273,
"name": "Locked",
"nameLocation": "913:6:34",
"nodeType": "EnumValue",
"src": "913:6:34"
},
{
"id": 13274,
"name": "Closed",
"nameLocation": "929:6:34",
"nodeType": "EnumValue",
"src": "929:6:34"
},
{
"id": 13275,
"name": "Burned",
"nameLocation": "945:6:34",
"nodeType": "EnumValue",
"src": "945:6:34"
}
],
"name": "BundleState",
"nameLocation": "875:11:34",
"nodeType": "EnumDefinition",
"src": "870:87:34"
},
{
"canonicalName": "IBundle.Bundle",
"id": 13298,
"members": [
{
"constant": false,
"id": 13278,
"mutability": "mutable",
"name": "id",
"nameLocation": "995:2:34",
"nodeType": "VariableDeclaration",
"scope": 13298,
"src": "987:10:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13277,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "987:7:34",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13280,
"mutability": "mutable",
"name": "riskpoolId",
"nameLocation": "1015:10:34",
"nodeType": "VariableDeclaration",
"scope": 13298,
"src": "1007:18:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13279,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1007:7:34",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13282,
"mutability": "mutable",
"name": "tokenId",
"nameLocation": "1043:7:34",
"nodeType": "VariableDeclaration",
"scope": 13298,
"src": "1035:15:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13281,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1035:7:34",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13285,
"mutability": "mutable",
"name": "state",
"nameLocation": "1072:5:34",
"nodeType": "VariableDeclaration",
"scope": 13298,
"src": "1060:17:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_BundleState_$13276",
"typeString": "enum IBundle.BundleState"
},
"typeName": {
"id": 13284,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 13283,
"name": "BundleState",
"nodeType": "IdentifierPath",
"referencedDeclaration": 13276,
"src": "1060:11:34"
},
"referencedDeclaration": 13276,
"src": "1060:11:34",
"typeDescriptions": {
"typeIdentifier": "t_enum$_BundleState_$13276",
"typeString": "enum IBundle.BundleState"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13287,
"mutability": "mutable",
"name": "filter",
"nameLocation": "1093:6:34",
"nodeType": "VariableDeclaration",
"scope": 13298,
"src": "1087:12:34",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 13286,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "1087:5:34",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13289,
"mutab