UNPKG

@etherisc/gif-contracts

Version:

This repository holds the GIF core contracts and tools to develop, test and deploy GIF instances.

1,662 lines (1,661 loc) 169 kB
{ "abi": [ { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "premiumAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "sumInsuredAmount", "type": "uint256" } ], "name": "LogApplicationCreated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "name": "LogApplicationDeclined", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "premiumAmountOld", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "premiumAmount", "type": "uint256" } ], "name": "LogApplicationPremiumAdjusted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "name": "LogApplicationRevoked", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "sumInsuredAmountOld", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "sumInsuredAmount", "type": "uint256" } ], "name": "LogApplicationSumInsuredAdjusted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "name": "LogApplicationUnderwritten", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "claimId", "type": "uint256" } ], "name": "LogClaimClosed", "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": "confirmedAmount", "type": "uint256" } ], "name": "LogClaimConfirmed", "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": "claimAmount", "type": "uint256" } ], "name": "LogClaimCreated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "claimId", "type": "uint256" } ], "name": "LogClaimDeclined", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "productId", "type": "uint256" }, { "indexed": false, "internalType": "enum IPolicy.PolicyFlowState", "name": "state", "type": "uint8" } ], "name": "LogMetadataCreated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "indexed": false, "internalType": "enum IPolicy.PolicyFlowState", "name": "state", "type": "uint8" } ], "name": "LogMetadataStateChanged", "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": "amount", "type": "uint256" } ], "name": "LogPayoutCreated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "payoutId", "type": "uint256" } ], "name": "LogPayoutProcessed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "name": "LogPolicyClosed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "name": "LogPolicyCreated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "name": "LogPolicyExpired", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "premiumExpectedAmountOld", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "premiumExpectedAmount", "type": "uint256" } ], "name": "LogPolicyPremiumAdjusted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "LogPremiumCollected", "type": "event" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "expectedPremiumAmount", "type": "uint256" }, { "internalType": "uint256", "name": "sumInsuredAmount", "type": "uint256" } ], "name": "adjustPremiumSumInsured", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "claimId", "type": "uint256" } ], "name": "closeClaim", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "name": "closePolicy", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "collectPremium", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "claimId", "type": "uint256" }, { "internalType": "uint256", "name": "confirmedAmount", "type": "uint256" } ], "name": "confirmClaim", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "premiumAmount", "type": "uint256" }, { "internalType": "uint256", "name": "sumInsuredAmount", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "createApplication", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "claimAmount", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "createClaim", "outputs": [ { "internalType": "uint256", "name": "claimId", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "claimId", "type": "uint256" }, { "internalType": "uint256", "name": "payoutAmount", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "createPayout", "outputs": [ { "internalType": "uint256", "name": "payoutId", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "name": "createPolicy", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "uint256", "name": "productId", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "createPolicyFlow", "outputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "name": "declineApplication", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "claimId", "type": "uint256" } ], "name": "declineClaim", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "name": "expirePolicy", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" }, { "internalType": "uint256", "name": "payoutId", "type": "uint256" } ], "name": "processPayout", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "name": "revokeApplication", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "processId", "type": "bytes32" } ], "name": "underwriteApplication", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "allSourcePaths": { "41": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IPolicy.sol" }, "ast": { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IPolicy.sol", "exportedSymbols": { "IPolicy": [ 20837 ] }, "id": 20838, "license": "Apache-2.0", "nodeType": "SourceUnit", "nodes": [ { "id": 20493, "literals": [ "solidity", "0.8", ".2" ], "nodeType": "PragmaDirective", "src": "39:22:41" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "fullyImplemented": false, "id": 20837, "linearizedBaseContracts": [ 20837 ], "name": "IPolicy", "nameLocation": "73:7:41", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "id": 20504, "name": "LogMetadataCreated", "nameLocation": "108:18:41", "nodeType": "EventDefinition", "parameters": { "id": 20503, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20495, "indexed": false, "mutability": "mutable", "name": "owner", "nameLocation": "144:5:41", "nodeType": "VariableDeclaration", "scope": 20504, "src": "136:13:41", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 20494, "name": "address", "nodeType": "ElementaryTypeName", "src": "136:7:41", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 20497, "indexed": false, "mutability": "mutable", "name": "processId", "nameLocation": "167:9:41", "nodeType": "VariableDeclaration", "scope": 20504, "src": "159:17:41", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 20496, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "159:7:41", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 20499, "indexed": false, "mutability": "mutable", "name": "productId", "nameLocation": "194:9:41", "nodeType": "VariableDeclaration", "scope": 20504, "src": "186:17:41", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 20498, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "186:7:41", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 20502, "indexed": false, "mutability": "mutable", "name": "state", "nameLocation": "230:5:41", "nodeType": "VariableDeclaration", "scope": 20504, "src": "214:21:41", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_enum$_PolicyFlowState_$20621", "typeString": "enum IPolicy.PolicyFlowState" }, "typeName": { "id": 20501, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 20500, "name": "PolicyFlowState", "nodeType": "IdentifierPath", "referencedDeclaration": 20621, "src": "214:15:41" }, "referencedDeclaration": 20621, "src": "214:15:41", "typeDescriptions": { "typeIdentifier": "t_enum$_PolicyFlowState_$20621", "typeString": "enum IPolicy.PolicyFlowState" } }, "visibility": "internal" } ], "src": "126:115:41" }, "src": "102:140:41" }, { "anonymous": false, "id": 20511, "name": "LogMetadataStateChanged", "nameLocation": "254:23:41", "nodeType": "EventDefinition", "parameters": { "id": 20510, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20506, "indexed": false, "mutability": "mutable", "name": "processId", "nameLocation": "295:9:41", "nodeType": "VariableDeclaration", "scope": 20511, "src": "287:17:41", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 20505, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "287:7:41", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 20509, "indexed": false, "mutability": "mutable", "name": "state", "nameLocation": "331:5:41", "nodeType": "VariableDeclaration", "scope": 20511, "src": "315:21:41", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_enum$_PolicyFlowState_$20621", "typeString": "enum IPolicy.PolicyFlowState" }, "typeName": { "id": 20508, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 20507, "name": "PolicyFlowState", "nodeType": "IdentifierPath", "referencedDeclaration": 20621, "src": "315:15:41" }, "referencedDeclaration": 20621, "src": "315:15:41", "typeDescriptions": { "typeIdentifier": "t_enum$_PolicyFlowState_$20621", "typeString": "enum IPolicy.PolicyFlowState" } }, "visibility": "internal" } ], "src": "277:65:41" }, "src": "248:95:41" }, { "anonymous": false, "id": 20519, "name": "LogApplicationCreated", "nameLocation": "355:21:41", "nodeType": "EventDefinition", "parameters": { "id": 20518, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20513, "indexed": false, "mutability": "mutable", "name": "processId", "nameLocation": "394:9:41", "nodeType": "VariableDeclaration", "scope": 20519, "src": "386:17:41", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 20512, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "386:7:41", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 20515, "indexed": false, "mutability": "mutable", "name": "premiumAmount", "nameLocation": "422:13:41", "nodeType": "VariableDeclaration", "scope": 20519, "src": "414:21:41", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 20514, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "414:7:41", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 20517, "indexed": false, "mutability": "mutable", "name": "sumInsuredAmount", "nameLocation": "454:16:41", "nodeType": "VariableDeclaration", "scope": 20519, "src": "446:24:41", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 20516, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "446:7:41", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "376:100:41" }, "src": "349:128:41" }, { "anonymous": false, "id": 20523, "name": "LogApplicationRevoked", "nameLocation": "489:21:41", "nodeType": "EventDefinition", "parameters": { "id": 20522, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20521, "indexed": false, "mutability": "mutable", "name": "processId", "nameLocation": "519:9:41", "nodeType": "VariableDeclaration", "scope": 20523, "src": "511:17:41", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 20520, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "511:7:41", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "510:19:41" }, "src": "483:47:41" }, { "anonymous": false, "id": 20527, "name": "LogApplicationUnderwritten", "nameLocation": "541:26:41", "nodeType": "EventDefinition", "parameters": { "id": 20526, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20525, "indexed": false, "mutability": "mutable", "name": "processId", "nameLocation": "576:9:41", "nodeType": "VariableDeclaration", "scope": 20527, "src": "568:17:41", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 20524, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "568:7:41", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "567:19:41" }, "src": "535:52:41" }, { "anonymous": false, "id": 20531, "name": "LogApplicationDeclined", "nameLocation": "598:22:41", "nodeType": "EventDefinition", "parameters": { "id": 20530, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20529, "indexed": false, "mutability": "mutable", "name": "processId", "nameLocation": "629:9:41", "nodeType": "VariableDeclaration", "scope": 20531, "src": "621:17:41", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 20528, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "621:7:41", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "620:19:41" }, "src": "592:48:41" }, { "anonymous": false, "id": 20535, "name": "LogPolicyCreated", "nameLocation": "652:16:41", "nodeType": "EventDefinition", "parameters": { "id": 20534, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20533, "indexed": false, "mutability": "mutable", "name": "processId", "nameLocation": "677:9:41", "nodeType": "VariableDeclaration", "scope": 20535, "src": "669:17:41", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 20532, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "669:7:41", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "668:19:41" }, "src": "646:42:41" }, { "anonymous": false, "id": 20539, "name": "LogPolicyExpired", "nameLocation": "699:16:41", "nodeType": "EventDefinition", "parameters": { "id": 20538, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20537, "indexed": false, "mutability": "mutable", "name": "processId", "nameLocation": "724:9:41", "nodeType": "VariableDeclaration", "scope": 20539, "src": "716:17:41", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 20536, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "716:7:41", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "715:19:41" }, "src": "693:42:41" }, { "anonymous": false, "id": 20543, "name": "LogPolicyClosed", "nameLocation": "746:15:41", "nodeType": "EventDefinition", "parameters": { "id": 20542, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20541, "indexed": false, "mutability": "mutable", "name": "processId", "nameLocation": "770:9:41", "nodeType": "VariableDeclaration", "scope": 20543, "src": "762:17:41", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 20540, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "762:7:41", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "761:19:41" }, "src": "740:41:41" }, { "anonymous": false, "id": 20549, "name": "LogPremiumCollected", "nameLocation": "793:19:41", "nodeType": "EventDefinition", "parameters": { "id": 20548, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20545, "indexed": false, "mutability": "mutable", "name": "processId", "nameLocation": "821:9:41", "nodeType": "VariableDeclaration", "scope": 20549, "src": "813:17:41", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 20544, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "813:7:41", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 20547, "indexed": false, "mutability": "mutable", "name": "amount", "nameLocation": "840:6:41", "nodeType": "VariableDeclaration", "scope": 20549, "src": "832:14:41", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 20546, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "832:7:41", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "812:35:41" }, "src": "787:61:41" }, { "anonymous": false, "id": 20557, "name": "LogApplicationSumInsuredAdjusted", "nameLocation": "864:32:41", "nodeType": "EventDefinition", "parameters": { "id": 20556, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20551, "indexed": false, "mutability": "mutable", "name": "processId", "nameLocation": "905:9:41", "nodeType": "VariableDeclaration", "scope": 20557, "src": "897:17:41", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 20550, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "897:7:41", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 20553, "indexed": false, "mutability": "mutable", "name": "sumInsuredAmountOld", "nameLocation": "924:19:41", "nodeType": "VariableDeclaration", "scope": 20557, "src": "916:27:41", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 20552, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "916:7:41", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 20555, "indexed": false, "mutability": "mutable", "name": "sumInsuredAmount", "nameLocation": "953:16:41", "nodeType": "VariableDeclaration", "scope": 20557, "src": "945:24:41", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 20554, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "945:7:41", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "896:74:41" }, "src": "858:113:41" }, { "anonymous": false, "id": 20565, "name": "LogApplicationPremiumAdjusted", "nameLocation": "982:29:41", "nodeType": "EventDefinition", "parameters": { "id": 20564, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20559, "indexed": false, "mutability": "mutable", "name": "processId", "nameLocation": "1020:9:41", "nodeType": "VariableDeclaration", "scope": 20565, "src": "1012:17:41", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 20558, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1012:7:41", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 20561, "indexed": false, "mutability": "mutable", "name": "premiumAmountOld", "nameLocation": "1039:16:41", "nodeType": "VariableDeclaration", "scope": 20565, "src": "1031:24:41", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 20560, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1031:7:41", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 20563, "indexed": false, "mutability": "mutable", "name": "premiumAmount", "nameLocation": "1065:13:41", "nodeType": "VariableDeclaration", "scope": 20565, "src": "1057:21:41", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 20562, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1057:7:41", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1011:68:41" }, "src": "976:104:41" }, { "anonymous": false, "id": 20573, "name": "LogPolicyPremiumAdjusted", "nameLocation": "1091:24:41", "nodeType": "EventDefinition", "parameters": { "id": 20572, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 20567, "indexed": false, "mutability": "mutable", "name": "processId", "nameLocation": "1124:9:41", "nodeType": "VariableDeclaration", "scope": 20573, "src": "1116:17:41", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 20566, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1116:7:41", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 20569, "indexed": false, "mutability": "mutable", "name": "premiumExpectedAmountOld", "nameLocation": "1143:24:41", "nodeType": "VariableDeclaration", "scope": 20573, "src": "1135:32:41", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 20568, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1135:7:41", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 20571, "indexed": false, "mutability": "mutable", "name": "premiumExpectedAmount", "nameLocation": "1177:21:41", "nodeType": "VariableDeclaration", "scope": 20573, "src": "1169:29:41", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256",