UNPKG

@etherisc/terraguard-poc-contracts

Version:

Etherisc's smart contracts for the terraguard poc

1,852 lines 925 kB
{ "abi": [ { "inputs": [ { "internalType": "bytes32", "name": "productName", "type": "bytes32" }, { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "oracleId", "type": "uint256" }, { "internalType": "uint256", "name": "riskpoolId", "type": "uint256" }, { "internalType": "address", "name": "registry", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "LogComponentApproved", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "LogComponentArchived", "type": "event" }, { "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": "LogComponentDeclined", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "LogComponentPaused", "type": "event" }, { "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": "uint256", "name": "id", "type": "uint256" } ], "name": "LogComponentProposed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "LogComponentResumed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "enum IComponent.ComponentState", "name": "stateOld", "type": "uint8" }, { "indexed": false, "internalType": "enum IComponent.ComponentState", "name": "stateNew", "type": "uint8" } ], "name": "LogComponentStateChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "LogComponentSuspended", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "LogComponentUnpaused", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "claimId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "payoutAmount", "type": "uint256" } ], "name": "LogFireClaimConfirmed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "requestId", "type": "uint256" }, { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "indexed": false, "internalType": "bytes", "name": "fireCategory", "type": "bytes" } ], "name": "LogFireOracleCallbackReceived", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "claimId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "payoutId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "payoutAmount", "type": "uint256" } ], "name": "LogFirePayoutExecuted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "indexed": false, "internalType": "address", "name": "policyHolder", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "sumInsured", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "objectName", "type": "string" } ], "name": "LogFirePolicyCreated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "string", "name": "objectName", "type": "string" }, { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "name": "LogFirePolicyExpired", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "componentId", "type": "uint256" } ], "name": "LogProductApproved", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "productAddress", "type": "address" } ], "name": "LogProductCreated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "componentId", "type": "uint256" } ], "name": "LogProductDeclined", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "componentId", "type": "uint256" } ], "name": "LogProductProposed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" }, { "inputs": [], "name": "CALLBACK_METHOD_NAME", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "OBJECT_VALUE_DIVISOR", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "PAYOUT_FACTOR_LARGE", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "PAYOUT_FACTOR_MEDIUM", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "POLICY_FLOW", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "VERSION", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "_oracleId", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "", "type": "string" } ], "name": "activePolicy", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "applications", "outputs": [ { "internalType": "uint256", "name": "numberOfApplications", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "objectName", "type": "string" }, { "internalType": "uint256", "name": "objectValue", "type": "uint256" } ], "name": "applyForPolicy", "outputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "requestId", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "approvalCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "archiveCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "objectValue", "type": "uint256" } ], "name": "calculatePremium", "outputs": [ { "internalType": "uint256", "name": "premiumAmount", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "declineCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "decodeApplicationParameterFromData", "outputs": [ { "internalType": "string", "name": "objectName", "type": "string" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "objectName", "type": "string" } ], "name": "encodeApplicationParametersToData", "outputs": [ { "internalType": "bytes", "name": "data", "type": "bytes" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "name": "expirePolicy", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "getApplicationDataStructure", "outputs": [ { "internalType": "string", "name": "dataStructure", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "idx", "type": "uint256" } ], "name": "getApplicationId", "outputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getClaimDataStructure", "outputs": [ { "internalType": "string", "name": "dataStructure", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getId", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getName", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getOracleId", "outputs": [ { "internalType": "uint256", "name": "oracleId", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getOwner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getPayoutDataStructure", "outputs": [ { "internalType": "string", "name": "dataStructure", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getPolicyFlow", "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": "getRiskpoolId", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getState", "outputs": [ { "internalType": "enum IComponent.ComponentState", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getToken", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getType", "outputs": [ { "internalType": "enum IComponent.ComponentType", "name": "", "type": "uint8" } ], "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": "requestId", "type": "uint256" }, { "internalType": "bytes32", "name": "policyId", "type": "bytes32" }, { "internalType": "bytes", "name": "response", "type": "bytes" } ], "name": "oracleCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "pauseCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "proposalCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "resumeCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "capacity", "type": "uint256" } ], "name": "riskPoolCapacityCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "setId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "suspendCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "unpauseCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "allSourcePaths": { "0": "/home/runner/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/access/Ownable.sol", "11": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IProduct.sol", "14": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/Product.sol", "16": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IAccess.sol", "18": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IComponentEvents.sol", "2": "/home/runner/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/token/ERC20/IERC20.sol", "21": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IRegistry.sol", "23": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IComponentOwnerService.sol", "24": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceOperatorService.sol", "25": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceService.sol", "26": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IOracleService.sol", "27": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IProductService.sol", "28": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IRiskpoolService.sol", "29": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/tokens/IBundleToken.sol", "32": "contracts/fire/FireProduct.sol", "4": "/home/runner/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/token/ERC721/IERC721.sol", "5": "/home/runner/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/utils/Context.sol", "6": "/home/runner/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/utils/introspection/IERC165.sol", "8": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/Component.sol", "9": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol" }, "ast": { "absolutePath": "contracts/fire/FireProduct.sol", "exportedSymbols": { "Component": [ 5114 ], "Context": [ 6682 ], "FireOracle": [ 138 ], "FireProduct": [ 647 ], "IAccess": [ 6858 ], "IBundle": [ 3612 ], "IBundleToken": [ 4029 ], "IComponent": [ 5218 ], "IComponentEvents": [ 6911 ], "IComponentOwnerService": [ 7044 ], "IERC165": [ 7662 ], "IERC20": [ 4694 ], "IERC721": [ 6660 ], "IInstanceOperatorService": [ 7311 ], "IInstanceService": [ 5668 ], "IOracle": [ 5252 ], "IOracleService": [ 5262 ], "IPolicy": [ 3958 ], "IPool": [ 7160 ], "IProduct": [ 5319 ], "IProductService": [ 5813 ], "IRegistry": [ 7009 ], "IRiskpoolService": [ 7417 ], "ITreasury": [ 2409 ], "Oracle": [ 2511 ], "Ownable": [ 6795 ], "Product": [ 3139 ] }, "id": 648, "license": "Apache-2.0", "nodeType": "SourceUnit", "nodes": [ { "id": 140, "literals": [ "solidity", "^", "0.8", ".2" ], "nodeType": "PragmaDirective", "src": "39:23:32" }, { "absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/Product.sol", "file": "@etherisc/gif-interface/contracts/components/Product.sol", "id": 141, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 648, "sourceUnit": 3140, "src": "64:66:32", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "contracts/fire/FireOracle.sol", "file": "./FireOracle.sol", "id": 142, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 648, "sourceUnit": 139, "src": "132:26:32", "symbolAliases": [], "unitAlias": "" }, { "abstract": false, "baseContracts": [ { "baseName": { "id": 143, "name": "Product", "nodeType": "IdentifierPath", "referencedDeclaration": 3139, "src": "184:7:32" }, "id": 144, "nodeType": "InheritanceSpecifier", "src": "184:7:32" } ], "contractDependencies": [ 3139, 5114, 5218, 5319, 6682, 6795, 6911 ], "contractKind": "contract", "fullyImplemented": true, "id": 647, "linearizedBaseContracts": [ 647, 3139, 5114, 6795, 6682, 6911, 5319, 5218 ], "name": "FireProduct", "nameLocation": "169:11:32", "nodeType": "ContractDefinition", "nodes": [ { "constant": true, "functionSelector": "ffa1ad74", "id": 147, "mutability": "constant", "name": "VERSION", "nameLocation": "239:7:32", "nodeType": "VariableDeclaration", "scope": 647, "src": "215:41:32", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 145, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "215:7:32", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": { "hexValue": "302e302e31", "id": 146, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "249:7:32", "typeDescriptions": { "typeIdentifier": "t_stringliteral_ae209a0b48f21c054280f2455d32cf309387644879d9acbd8ffc199163811885", "typeString": "literal_string \"0.0.1\"" }, "value": "0.0.1" }, "visibility": "public" }, { "constant": true, "functionSelector": "09128d83", "id": 150, "mutability": "constant", "name": "POLICY_FLOW", "nameLocation": "286:11:32", "nodeType": "VariableDeclaration", "scope": 647, "src": "262:57:32", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 148, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "262:7:32", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": { "hexValue": "506f6c69637944656661756c74466c6f77", "id": 149, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "300:19:32", "typeDescriptions": { "typeIdentifier": "t_stringliteral_4c6194c52a3447410e4616772f780a88c4ac5f0b731d2fc7e7979c603182714e", "typeString": "literal_string \"PolicyDefaultFlow\"" }, "value": "PolicyDefaultFlow" }, "visibility": "public" }, { "constant": true, "functionSelector": "1d6f7ca6", "id": 153, "mutability": "constant", "name": "OBJECT_VALUE_DIVISOR", "nameLocation": "394:20:32", "nodeType": "VariableDeclaration", "scope": 647, "src": "370:49:32", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 151, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "370:7:32", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": { "hexValue": "3230", "id": 152, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "417:2:32", "typeDescriptions": { "typeIdentifier": "t_rational_20_by_1", "typeString": "int_const 20" }, "value": "20" }, "visibility": "public" }, { "constant": true, "functionSelector": "809faf12", "id": 156, "mutability": "constant", "name": "PAYOUT_FACTOR_MEDIUM", "nameLocation": "470:20:32", "nodeType": "VariableDeclaration", "scope": 647, "src": "446:49:32", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 154, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "446:7:32", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": { "hexValue": "3230", "id": 155, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "493:2:32", "typeDescriptions": { "typeIdentifier": "t_rational_20_by_1", "typeString": "int_const 20" }, "value": "20" }, "visibility": "public" }, { "constant": true, "functionSelector": "95bb88db", "id": 159, "mutability": "constant", "name": "PAYOUT_FACTOR_LARGE", "nameLocation": "525:19:32", "nodeType": "VariableDeclaration", "scope": 647, "src": "501:49:32", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 157, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "501:7:32", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": { "hexValue": "313030", "id": 158, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", "src": "547:3:32", "typeDescriptions": { "typeIdentifier": "t_rational_100_by_1", "typeString": "int_const 100" }, "value": "100" }, "visibility": "public" }, { "constant": true, "functionSelector": "0e5b3c9d", "id": 162, "mutability": "constant", "name": "CALLBACK_METHOD_NAME", "nameLocation": "580:20:32", "nodeType": "VariableDeclaration", "scope": 647, "src": "557:62:32", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 160, "name": "string", "nodeType": "ElementaryTypeName", "src": "557:6:32", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": { "hexValue": "6f7261636c6543616c6c6261636b", "id": 161, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "603:16:32", "typeDescriptions": { "typeIdentifier": "t_stringliteral_2aafc7d392265772ce577bc392adfed2dc64b60acfcc2d5e2ce66fbfe088b79b", "typeString": "literal_string \"oracleCallback\"" }, "value": "oracleCallback" }, "visibility": "public" }, { "constant": false, "id": 165, "mutability": "mutable", "name": "_applications", "nameLocation": "701:13:32", "nodeType": "VariableDeclaration", "scope": 647, "src": "683:31:32", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_storage", "typeString": "bytes32[]" }, "typeName": { "baseType": { "id": 163, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "683:7:32", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "id": 164, "nodeType": "ArrayTypeName", "src": "683:9:32", "typeDescriptions": { "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr", "typeString": "bytes32[]" } }, "visibility": "private" }, { "constant": false, "functionSelector": "47f71b46", "id": 167, "mutability": "mutable", "name": "_oracleId", "nameLocation": "790:9:32", "nodeType": "VariableDeclaration", "scope": 647, "src": "775:24:32", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 166, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "775:7:32", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "public" }, { "constant": false, "functionSelector": "0afeb6f0", "id": 171, "mutability": "mutable", "name": "activePolicy", "nameLocation": "837:12:32", "nodeType": "VariableDeclaration", "scope": 647, "src": "806:43:32", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_string_memory_ptr_$_t_bool_$", "typeString": "mapping(string => bool)" }, "typeName": { "id": 170, "keyType": { "id": 168, "name": "string", "nodeType": "ElementaryTypeName", "src": "814:6:32", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "nodeType": "Mapping", "src": "806:23:32", "typeDescriptions": { "typeIdentifier": "t_mapping$_t_string_memory_ptr_$_t_bool_$", "typeString": "mapping(string => bool)" }, "valueType": { "id": 169, "name": "bool", "nodeType": "ElementaryTypeName", "src": "824:4:32", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } } }, "visibility": "public" }, { "anonymous": false, "id": 181, "name": "LogFirePolicyCreated", "nameLocation": "876:20:32", "nodeType": "EventDefinition", "parameters": { "id": 180, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 173, "indexed": false, "mutability": "mutable", "name": "processId", "nameLocation": "914:9:32", "nodeType": "VariableDeclaration", "scope": 181, "src": "906:17:32", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 172, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "906:7:32", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 175, "indexed": false, "mutability": "mutable", "name": "policyHolder", "nameLocation": "941:12:32", "nodeType": "VariableDeclaration", "scope": 181, "src": "933:20:32", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 174, "name": "address", "nodeType": "ElementaryTypeName", "src": "933:7:32", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 177, "indexed": false, "mutability": "mutable", "name": "sumInsured", "nameLocation": "971:10:32", "nodeType": "VariableDeclaration", "scope": 181, "src": "963:18:32", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 176, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "963:7:32", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 179, "indexed": false, "mutability": "mutable", "name": "objectName", "nameLocation": "998:10:32", "nodeType": "VariableDeclaration", "scope": 181, "src": "991:17:32", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 178, "name": "string", "nodeType": "ElementaryTypeName", "src": "991:6:32", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" } ], "src": "896:118:32" }, "src": "870:145:32" }, { "anonymous": false, "id": 187, "name": "LogFirePolicyExpired", "nameLocation": "1026:20:32", "nodeType": "EventDefinition", "parameters": { "id": 186, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 183, "indexed": false, "mutability": "mutable", "name": "objectName", "nameLocation": "1054:10:32", "nodeType": "VariableDeclaration", "scope": 187, "src": "1047:17:32", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 182, "name": "string", "nodeType": "ElementaryTypeName", "src": "1047:6:32", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 185, "indexed": false, "mutability": "mutable", "name": "processId", "nameLocation": "1074:9:32", "nodeType": "VariableDeclaration", "scope": 187, "src": "1066:17:32", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 184, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1066:7:32", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "1046:38:32" }, "src": "1020:65:32" }, { "anonymous": false, "id": 195, "name": "LogFireOracleCallbackReceived", "nameLocation": "1096:29:32", "nodeType": "EventDefinition", "parameters": { "id": 194, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 189, "indexed": false, "mutability": "mutable", "name": "requestId", "nameLocation": "1143:9:32", "nodeType": "VariableDeclaration", "scope": 195, "src": "1135:17:32", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 188, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1135:7:32", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 191, "indexed": false, "mutability": "mutable", "name": "processId", "nameLocation": "1170:9:32", "nodeType": "VariableDeclaration", "scope": 195, "src": "1162:17:32", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 190, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1162:7:32", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 193, "indexed": false, "mutability": "mutable", "name": "fireCategory", "nameLocation": "1195:12:32", "nodeType": "VariableDeclaration", "scope": 195, "src": "1189:18:32", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes_memory_ptr", "typeString": "bytes" }, "typeName": { "id": 192, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "1189:5:32", "typeDescriptions": { "type