{
  "abi": [
    {
      "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": "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": "approvalCallback",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "archiveCallback",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "declineCallback",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "getApplicationDataStructure",
      "outputs": [
        {
          "internalType": "string",
          "name": "dataStructure",
          "type": "string"
        }
      ],
      "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": "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": [],
      "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": {
    "13": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC20/IERC20.sol",
    "18": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC721/IERC721.sol",
    "22": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/utils/Context.sol",
    "26": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/utils/introspection/IERC165.sol",
    "29": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/Component.sol",
    "30": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol",
    "32": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IProduct.sol",
    "35": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/Product.sol",
    "37": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IAccess.sol",
    "39": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IComponentEvents.sol",
    "4": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/access/Ownable.sol",
    "44": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IRegistry.sol",
    "46": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IComponentOwnerService.sol",
    "47": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceOperatorService.sol",
    "48": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceService.sol",
    "49": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IOracleService.sol",
    "50": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IProductService.sol",
    "51": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IRiskpoolService.sol",
    "53": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/tokens/IBundleToken.sol"
  },
  "ast": {
    "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/Product.sol",
    "exportedSymbols": {
      "Component": [
        25407
      ],
      "Context": [
        24074
      ],
      "IAccess": [
        21938
      ],
      "IBundle": [
        20491
      ],
      "IBundleToken": [
        24052
      ],
      "IComponent": [
        22099
      ],
      "IComponentEvents": [
        22419
      ],
      "IComponentOwnerService": [
        23478
      ],
      "IERC165": [
        27203
      ],
      "IERC20": [
        18510
      ],
      "IERC721": [
        23745
      ],
      "IInstanceOperatorService": [
        23629
      ],
      "IInstanceService": [
        22849
      ],
      "IOracleService": [
        23755
      ],
      "IPolicy": [
        20837
      ],
      "IPool": [
        21652
      ],
      "IProduct": [
        21995
      ],
      "IProductService": [
        23900
      ],
      "IRegistry": [
        21750
      ],
      "IRiskpoolService": [
        24006
      ],
      "ITreasury": [
        23443
      ],
      "Ownable": [
        20950
      ],
      "Product": [
        20018
      ]
    },
    "id": 20019,
    "license": "Apache-2.0",
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 19392,
        "literals": [
          "solidity",
          "0.8",
          ".2"
        ],
        "nodeType": "PragmaDirective",
        "src": "39:22:35"
      },
      {
        "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IProduct.sol",
        "file": "./IProduct.sol",
        "id": 19393,
        "nameLocation": "-1:-1:-1",
        "nodeType": "ImportDirective",
        "scope": 20019,
        "sourceUnit": 21996,
        "src": "63:24:35",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/Component.sol",
        "file": "./Component.sol",
        "id": 19394,
        "nameLocation": "-1:-1:-1",
        "nodeType": "ImportDirective",
        "scope": 20019,
        "sourceUnit": 25408,
        "src": "88:25:35",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IPolicy.sol",
        "file": "../modules/IPolicy.sol",
        "id": 19395,
        "nameLocation": "-1:-1:-1",
        "nodeType": "ImportDirective",
        "scope": 20019,
        "sourceUnit": 20838,
        "src": "114:32:35",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceService.sol",
        "file": "../services/IInstanceService.sol",
        "id": 19396,
        "nameLocation": "-1:-1:-1",
        "nodeType": "ImportDirective",
        "scope": 20019,
        "sourceUnit": 22850,
        "src": "147:42:35",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IProductService.sol",
        "file": "../services/IProductService.sol",
        "id": 19397,
        "nameLocation": "-1:-1:-1",
        "nodeType": "ImportDirective",
        "scope": 20019,
        "sourceUnit": 23901,
        "src": "190:41:35",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "abstract": true,
        "baseContracts": [
          {
            "baseName": {
              "id": 19398,
              "name": "IProduct",
              "nodeType": "IdentifierPath",
              "referencedDeclaration": 21995,
              "src": "266:8:35"
            },
            "id": 19399,
            "nodeType": "InheritanceSpecifier",
            "src": "266:8:35"
          },
          {
            "baseName": {
              "id": 19400,
              "name": "Component",
              "nodeType": "IdentifierPath",
              "referencedDeclaration": 25407,
              "src": "281:9:35"
            },
            "id": 19401,
            "nodeType": "InheritanceSpecifier",
            "src": "281:9:35"
          }
        ],
        "contractDependencies": [
          20950,
          21995,
          22099,
          22419,
          24074,
          25407
        ],
        "contractKind": "contract",
        "fullyImplemented": true,
        "id": 20018,
        "linearizedBaseContracts": [
          20018,
          25407,
          20950,
          24074,
          22419,
          21995,
          22099
        ],
        "name": "Product",
        "nameLocation": "251:7:35",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "constant": false,
            "id": 19403,
            "mutability": "mutable",
            "name": "_policyFlow",
            "nameLocation": "318:11:35",
            "nodeType": "VariableDeclaration",
            "scope": 20018,
            "src": "302:27:35",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_address",
              "typeString": "address"
            },
            "typeName": {
              "id": 19402,
              "name": "address",
              "nodeType": "ElementaryTypeName",
              "src": "302:7:35",
              "stateMutability": "nonpayable",
              "typeDescriptions": {
                "typeIdentifier": "t_address",
                "typeString": "address"
              }
            },
            "visibility": "private"
          },
          {
            "constant": false,
            "id": 19405,
            "mutability": "mutable",
            "name": "_token",
            "nameLocation": "398:6:35",
            "nodeType": "VariableDeclaration",
            "scope": 20018,
            "src": "382:22:35",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_address",
              "typeString": "address"
            },
            "typeName": {
              "id": 19404,
              "name": "address",
              "nodeType": "ElementaryTypeName",
              "src": "382:7:35",
              "stateMutability": "nonpayable",
              "typeDescriptions": {
                "typeIdentifier": "t_address",
                "typeString": "address"
              }
            },
            "visibility": "private"
          },
          {
            "constant": false,
            "id": 19407,
            "mutability": "mutable",
            "name": "_riskpoolId",
            "nameLocation": "465:11:35",
            "nodeType": "VariableDeclaration",
            "scope": 20018,
            "src": "449:27:35",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_uint256",
              "typeString": "uint256"
            },
            "typeName": {
              "id": 19406,
              "name": "uint256",
              "nodeType": "ElementaryTypeName",
              "src": "449:7:35",
              "typeDescriptions": {
                "typeIdentifier": "t_uint256",
                "typeString": "uint256"
              }
            },
            "visibility": "private"
          },
          {
            "constant": false,
            "id": 19410,
            "mutability": "mutable",
            "name": "_productService",
            "nameLocation": "555:15:35",
            "nodeType": "VariableDeclaration",
            "scope": 20018,
            "src": "530:40:35",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_IProductService_$23900",
              "typeString": "contract IProductService"
            },
            "typeName": {
              "id": 19409,
              "nodeType": "UserDefinedTypeName",
              "pathNode": {
                "id": 19408,
                "name": "IProductService",
                "nodeType": "IdentifierPath",
                "referencedDeclaration": 23900,
                "src": "530:15:35"
              },
              "referencedDeclaration": 23900,
              "src": "530:15:35",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_IProductService_$23900",
                "typeString": "contract IProductService"
              }
            },
            "visibility": "internal"
          },
          {
            "constant": false,
            "id": 19413,
            "mutability": "mutable",
            "name": "_instanceService",
            "nameLocation": "602:16:35",
            "nodeType": "VariableDeclaration",
            "scope": 20018,
            "src": "576:42:35",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_IInstanceService_$22849",
              "typeString": "contract IInstanceService"
            },
            "typeName": {
              "id": 19412,
              "nodeType": "UserDefinedTypeName",
              "pathNode": {
                "id": 19411,
                "name": "IInstanceService",
                "nodeType": "IdentifierPath",
                "referencedDeclaration": 22849,
                "src": "576:16:35"
              },
              "referencedDeclaration": 22849,
              "src": "576:16:35",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_IInstanceService_$22849",
                "typeString": "contract IInstanceService"
              }
            },
            "visibility": "internal"
          },
          {
            "body": {
              "id": 19434,
              "nodeType": "Block",
              "src": "669:219:35",
              "statements": [
                {
                  "assignments": [
                    19418
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 19418,
                      "mutability": "mutable",
                      "name": "policyHolder",
                      "nameLocation": "687:12:35",
                      "nodeType": "VariableDeclaration",
                      "scope": 19434,
                      "src": "679:20:35",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      },
                      "typeName": {
                        "id": 19417,
                        "name": "address",
                        "nodeType": "ElementaryTypeName",
                        "src": "679:7:35",
                        "stateMutability": "nonpayable",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "visibility": "internal"
                    }
                  ],
                  "id": 19424,
                  "initialValue": {
                    "expression": {
                      "arguments": [
                        {
                          "id": 19421,
                          "name": "policyId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19415,
                          "src": "731:8:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        ],
                        "expression": {
                          "id": 19419,
                          "name": "_instanceService",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19413,
                          "src": "702:16:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IInstanceService_$22849",
                            "typeString": "contract IInstanceService"
                          }
                        },
                        "id": 19420,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "getMetadata",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 22768,
                        "src": "702:28:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_external_view$_t_bytes32_$returns$_t_struct$_Metadata_$20652_memory_ptr_$",
                          "typeString": "function (bytes32) view external returns (struct IPolicy.Metadata memory)"
                        }
                      },
                      "id": 19422,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "702:38:35",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Metadata_$20652_memory_ptr",
                        "typeString": "struct IPolicy.Metadata memory"
                      }
                    },
                    "id": 19423,
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "memberName": "owner",
                    "nodeType": "MemberAccess",
                    "referencedDeclaration": 20640,
                    "src": "702:44:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "679:67:35"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        "id": 19429,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "arguments": [],
                          "expression": {
                            "argumentTypes": [],
                            "id": 19426,
                            "name": "_msgSender",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 24064,
                            "src": "777:10:35",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
                              "typeString": "function () view returns (address)"
                            }
                          },
                          "id": 19427,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "777:12:35",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 19428,
                          "name": "policyHolder",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19418,
                          "src": "793:12:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "src": "777:28:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "4552524f523a5052442d3030313a504f4c4943595f4f525f484f4c4445525f494e56414c4944",
                        "id": 19430,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "820:40:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_8c751e03794b568011bdacc7506cfc24e9e6da1a04bd63102218013a02fcc8b2",
                          "typeString": "literal_string \"ERROR:PRD-001:POLICY_OR_HOLDER_INVALID\""
                        },
                        "value": "ERROR:PRD-001:POLICY_OR_HOLDER_INVALID"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_8c751e03794b568011bdacc7506cfc24e9e6da1a04bd63102218013a02fcc8b2",
                          "typeString": "literal_string \"ERROR:PRD-001:POLICY_OR_HOLDER_INVALID\""
                        }
                      ],
                      "id": 19425,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "756:7:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 19431,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "756:114:35",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 19432,
                  "nodeType": "ExpressionStatement",
                  "src": "756:114:35"
                },
                {
                  "id": 19433,
                  "nodeType": "PlaceholderStatement",
                  "src": "880:1:35"
                }
              ]
            },
            "id": 19435,
            "name": "onlyPolicyHolder",
            "nameLocation": "634:16:35",
            "nodeType": "ModifierDefinition",
            "parameters": {
              "id": 19416,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19415,
                  "mutability": "mutable",
                  "name": "policyId",
                  "nameLocation": "659:8:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19435,
                  "src": "651:16:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 19414,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "651:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "650:18:35"
            },
            "src": "625:263:35",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 19448,
              "nodeType": "Block",
              "src": "915:149:35",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        "id": 19443,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "arguments": [],
                          "expression": {
                            "argumentTypes": [],
                            "id": 19438,
                            "name": "_msgSender",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 24064,
                            "src": "947:10:35",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
                              "typeString": "function () view returns (address)"
                            }
                          },
                          "id": 19439,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "947:12:35",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "arguments": [
                            {
                              "hexValue": "4c6963656e6365",
                              "id": 19441,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "string",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "983:9:35",
                              "typeDescriptions": {
                                "typeIdentifier": "t_stringliteral_6ca2c06beb422d975cd2070710bcde13ae6539489c77a2eac3d019f18f8a11bd",
                                "typeString": "literal_string \"Licence\""
                              },
                              "value": "Licence"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_stringliteral_6ca2c06beb422d975cd2070710bcde13ae6539489c77a2eac3d019f18f8a11bd",
                                "typeString": "literal_string \"Licence\""
                              }
                            ],
                            "id": 19440,
                            "name": "_getContractAddress",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 25406,
                            "src": "963:19:35",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_address_$",
                              "typeString": "function (bytes32) view returns (address)"
                            }
                          },
                          "id": 19442,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "963:30:35",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "src": "947:46:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "4552524f523a5052442d3030323a4143434553535f44454e494544",
                        "id": 19444,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1007:29:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_c303e58a1c0410c1101cc429b23d15274514a5237e202175e3c0976550224f8a",
                          "typeString": "literal_string \"ERROR:PRD-002:ACCESS_DENIED\""
                        },
                        "value": "ERROR:PRD-002:ACCESS_DENIED"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_c303e58a1c0410c1101cc429b23d15274514a5237e202175e3c0976550224f8a",
                          "typeString": "literal_string \"ERROR:PRD-002:ACCESS_DENIED\""
                        }
                      ],
                      "id": 19437,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "925:7:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 19445,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "925:121:35",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 19446,
                  "nodeType": "ExpressionStatement",
                  "src": "925:121:35"
                },
                {
                  "id": 19447,
                  "nodeType": "PlaceholderStatement",
                  "src": "1056:1:35"
                }
              ]
            },
            "id": 19449,
            "name": "onlyLicence",
            "nameLocation": "903:11:35",
            "nodeType": "ModifierDefinition",
            "parameters": {
              "id": 19436,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "915:0:35"
            },
            "src": "894:170:35",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 19462,
              "nodeType": "Block",
              "src": "1090:147:35",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        "id": 19457,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "arguments": [],
                          "expression": {
                            "argumentTypes": [],
                            "id": 19452,
                            "name": "_msgSender",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 24064,
                            "src": "1122:10:35",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
                              "typeString": "function () view returns (address)"
                            }
                          },
                          "id": 19453,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "1122:12:35",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "arguments": [
                            {
                              "hexValue": "5175657279",
                              "id": 19455,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "string",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "1158:7:35",
                              "typeDescriptions": {
                                "typeIdentifier": "t_stringliteral_de27146501ae3a78760bc5f3cf670e34e42f94d4009fee9f620352506ade7ceb",
                                "typeString": "literal_string \"Query\""
                              },
                              "value": "Query"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_stringliteral_de27146501ae3a78760bc5f3cf670e34e42f94d4009fee9f620352506ade7ceb",
                                "typeString": "literal_string \"Query\""
                              }
                            ],
                            "id": 19454,
                            "name": "_getContractAddress",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 25406,
                            "src": "1138:19:35",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_address_$",
                              "typeString": "function (bytes32) view returns (address)"
                            }
                          },
                          "id": 19456,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "1138:28:35",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "src": "1122:44:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "4552524f523a5052442d3030333a4143434553535f44454e494544",
                        "id": 19458,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1180:29:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_2d47153b44a132de51be507c0cde899d6ab2b1668d3efae9650b7c79b6fd010f",
                          "typeString": "literal_string \"ERROR:PRD-003:ACCESS_DENIED\""
                        },
                        "value": "ERROR:PRD-003:ACCESS_DENIED"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_2d47153b44a132de51be507c0cde899d6ab2b1668d3efae9650b7c79b6fd010f",
                          "typeString": "literal_string \"ERROR:PRD-003:ACCESS_DENIED\""
                        }
                      ],
                      "id": 19451,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "1100:7:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 19459,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1100:119:35",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 19460,
                  "nodeType": "ExpressionStatement",
                  "src": "1100:119:35"
                },
                {
                  "id": 19461,
                  "nodeType": "PlaceholderStatement",
                  "src": "1229:1:35"
                }
              ]
            },
            "id": 19463,
            "name": "onlyOracle",
            "nameLocation": "1079:10:35",
            "nodeType": "ModifierDefinition",
            "parameters": {
              "id": 19450,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1090:0:35"
            },
            "src": "1070:167:35",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 19519,
              "nodeType": "Block",
              "src": "1449:383:35",
              "statements": [
                {
                  "expression": {
                    "id": 19484,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 19482,
                      "name": "_token",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 19405,
                      "src": "1459:6:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "id": 19483,
                      "name": "token",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 19467,
                      "src": "1468:5:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "src": "1459:14:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "id": 19485,
                  "nodeType": "ExpressionStatement",
                  "src": "1459:14:35"
                },
                {
                  "expression": {
                    "id": 19488,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 19486,
                      "name": "_riskpoolId",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 19407,
                      "src": "1483:11:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "id": 19487,
                      "name": "riskpoolId",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 19471,
                      "src": "1497:10:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "1483:24:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "id": 19489,
                  "nodeType": "ExpressionStatement",
                  "src": "1483:24:35"
                },
                {
                  "expression": {
                    "id": 19494,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 19490,
                      "name": "_policyFlow",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 19403,
                      "src": "1565:11:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 19492,
                          "name": "policyFlow",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19469,
                          "src": "1599:10:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        ],
                        "id": 19491,
                        "name": "_getContractAddress",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 25406,
                        "src": "1579:19:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_address_$",
                          "typeString": "function (bytes32) view returns (address)"
                        }
                      },
                      "id": 19493,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "1579:31:35",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "src": "1565:45:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "id": 19495,
                  "nodeType": "ExpressionStatement",
                  "src": "1565:45:35"
                },
                {
                  "expression": {
                    "id": 19502,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 19496,
                      "name": "_productService",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 19410,
                      "src": "1620:15:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IProductService_$23900",
                        "typeString": "contract IProductService"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "arguments": [
                            {
                              "hexValue": "50726f6475637453657276696365",
                              "id": 19499,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "string",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "1674:16:35",
                              "typeDescriptions": {
                                "typeIdentifier": "t_stringliteral_a0656cfcc1bc970b947aca201a5cc1b43cf3c3649a4b2d6f82968797074fe0b8",
                                "typeString": "literal_string \"ProductService\""
                              },
                              "value": "ProductService"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_stringliteral_a0656cfcc1bc970b947aca201a5cc1b43cf3c3649a4b2d6f82968797074fe0b8",
                                "typeString": "literal_string \"ProductService\""
                              }
                            ],
                            "id": 19498,
                            "name": "_getContractAddress",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 25406,
                            "src": "1654:19:35",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_address_$",
                              "typeString": "function (bytes32) view returns (address)"
                            }
                          },
                          "id": 19500,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "1654:37:35",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        ],
                        "id": 19497,
                        "name": "IProductService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 23900,
                        "src": "1638:15:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_contract$_IProductService_$23900_$",
                          "typeString": "type(contract IProductService)"
                        }
                      },
                      "id": 19501,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "1638:54:35",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IProductService_$23900",
                        "typeString": "contract IProductService"
                      }
                    },
                    "src": "1620:72:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IProductService_$23900",
                      "typeString": "contract IProductService"
                    }
                  },
                  "id": 19503,
                  "nodeType": "ExpressionStatement",
                  "src": "1620:72:35"
                },
                {
                  "expression": {
                    "id": 19510,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 19504,
                      "name": "_instanceService",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 19413,
                      "src": "1702:16:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IInstanceService_$22849",
                        "typeString": "contract IInstanceService"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "arguments": [
                            {
                              "hexValue": "496e7374616e636553657276696365",
                              "id": 19507,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "string",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "1758:17:35",
                              "typeDescriptions": {
                                "typeIdentifier": "t_stringliteral_9d0370d7b33c0a7e946fd67f2013156c598b4d6a70b1490bc73aacf4dc1a6f52",
                                "typeString": "literal_string \"InstanceService\""
                              },
                              "value": "InstanceService"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_stringliteral_9d0370d7b33c0a7e946fd67f2013156c598b4d6a70b1490bc73aacf4dc1a6f52",
                                "typeString": "literal_string \"InstanceService\""
                              }
                            ],
                            "id": 19506,
                            "name": "_getContractAddress",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 25406,
                            "src": "1738:19:35",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_address_$",
                              "typeString": "function (bytes32) view returns (address)"
                            }
                          },
                          "id": 19508,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "1738:38:35",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        ],
                        "id": 19505,
                        "name": "IInstanceService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 22849,
                        "src": "1721:16:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_contract$_IInstanceService_$22849_$",
                          "typeString": "type(contract IInstanceService)"
                        }
                      },
                      "id": 19509,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "1721:56:35",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IInstanceService_$22849",
                        "typeString": "contract IInstanceService"
                      }
                    },
                    "src": "1702:75:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IInstanceService_$22849",
                      "typeString": "contract IInstanceService"
                    }
                  },
                  "id": 19511,
                  "nodeType": "ExpressionStatement",
                  "src": "1702:75:35"
                },
                {
                  "eventCall": {
                    "arguments": [
                      {
                        "arguments": [
                          {
                            "id": 19515,
                            "name": "this",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": -28,
                            "src": "1819:4:35",
                            "typeDescriptions": {
                              "typeIdentifier": "t_contract$_Product_$20018",
                              "typeString": "contract Product"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_contract$_Product_$20018",
                              "typeString": "contract Product"
                            }
                          ],
                          "id": 19514,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "1811:7:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_address_$",
                            "typeString": "type(address)"
                          },
                          "typeName": {
                            "id": 19513,
                            "name": "address",
                            "nodeType": "ElementaryTypeName",
                            "src": "1811:7:35",
                            "typeDescriptions": {}
                          }
                        },
                        "id": 19516,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "1811:13:35",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 19512,
                      "name": "LogProductCreated",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 21947,
                      "src": "1793:17:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$",
                        "typeString": "function (address)"
                      }
                    },
                    "id": 19517,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1793:32:35",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 19518,
                  "nodeType": "EmitStatement",
                  "src": "1788:37:35"
                }
              ]
            },
            "id": 19520,
            "implemented": true,
            "kind": "constructor",
            "modifiers": [
              {
                "arguments": [
                  {
                    "id": 19476,
                    "name": "name",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 19465,
                    "src": "1406:4:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  {
                    "expression": {
                      "id": 19477,
                      "name": "ComponentType",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 22002,
                      "src": "1412:13:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_enum$_ComponentType_$22002_$",
                        "typeString": "type(enum IComponent.ComponentType)"
                      }
                    },
                    "id": 19478,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "lValueRequested": false,
                    "memberName": "Product",
                    "nodeType": "MemberAccess",
                    "referencedDeclaration": 22000,
                    "src": "1412:21:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_enum$_ComponentType_$22002",
                      "typeString": "enum IComponent.ComponentType"
                    }
                  },
                  {
                    "id": 19479,
                    "name": "registry",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 19473,
                    "src": "1435:8:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 19480,
                "modifierName": {
                  "id": 19475,
                  "name": "Component",
                  "nodeType": "IdentifierPath",
                  "referencedDeclaration": 25407,
                  "src": "1396:9:35"
                },
                "nodeType": "ModifierInvocation",
                "src": "1396:48:35"
              }
            ],
            "name": "",
            "nameLocation": "-1:-1:-1",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 19474,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19465,
                  "mutability": "mutable",
                  "name": "name",
                  "nameLocation": "1272:4:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19520,
                  "src": "1264:12:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 19464,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1264:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19467,
                  "mutability": "mutable",
                  "name": "token",
                  "nameLocation": "1294:5:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19520,
                  "src": "1286:13:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 19466,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1286:7:35",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19469,
                  "mutability": "mutable",
                  "name": "policyFlow",
                  "nameLocation": "1317:10:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19520,
                  "src": "1309:18:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 19468,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1309:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19471,
                  "mutability": "mutable",
                  "name": "riskpoolId",
                  "nameLocation": "1345:10:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19520,
                  "src": "1337:18:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19470,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1337:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19473,
                  "mutability": "mutable",
                  "name": "registry",
                  "nameLocation": "1373:8:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19520,
                  "src": "1365:16:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 19472,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1365:7:35",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1254:133:35"
            },
            "returnParameters": {
              "id": 19481,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1449:0:35"
            },
            "scope": 20018,
            "src": "1243:589:35",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "baseFunctions": [
              21964
            ],
            "body": {
              "id": 19528,
              "nodeType": "Block",
              "src": "1896:30:35",
              "statements": [
                {
                  "expression": {
                    "id": 19526,
                    "name": "_token",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 19405,
                    "src": "1913:6:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "functionReturnParameters": 19525,
                  "id": 19527,
                  "nodeType": "Return",
                  "src": "1906:13:35"
                }
              ]
            },
            "functionSelector": "21df0da7",
            "id": 19529,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getToken",
            "nameLocation": "1847:8:35",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 19522,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "1865:8:35"
            },
            "parameters": {
              "id": 19521,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1855:2:35"
            },
            "returnParameters": {
              "id": 19525,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19524,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 19529,
                  "src": "1887:7:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 19523,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1887:7:35",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1886:9:35"
            },
            "scope": 20018,
            "src": "1838:88:35",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "public"
          },
          {
            "baseFunctions": [
              21969
            ],
            "body": {
              "id": 19537,
              "nodeType": "Block",
              "src": "1995:35:35",
              "statements": [
                {
                  "expression": {
                    "id": 19535,
                    "name": "_policyFlow",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 19403,
                    "src": "2012:11:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "functionReturnParameters": 19534,
                  "id": 19536,
                  "nodeType": "Return",
                  "src": "2005:18:35"
                }
              ]
            },
            "functionSelector": "637d08f4",
            "id": 19538,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getPolicyFlow",
            "nameLocation": "1941:13:35",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 19531,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "1969:8:35"
            },
            "parameters": {
              "id": 19530,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1954:2:35"
            },
            "returnParameters": {
              "id": 19534,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19533,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 19538,
                  "src": "1986:7:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 19532,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1986:7:35",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1985:9:35"
            },
            "scope": 20018,
            "src": "1932:98:35",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "public"
          },
          {
            "baseFunctions": [
              21974
            ],
            "body": {
              "id": 19546,
              "nodeType": "Block",
              "src": "2099:35:35",
              "statements": [
                {
                  "expression": {
                    "id": 19544,
                    "name": "_riskpoolId",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 19407,
                    "src": "2116:11:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "functionReturnParameters": 19543,
                  "id": 19545,
                  "nodeType": "Return",
                  "src": "2109:18:35"
                }
              ]
            },
            "functionSelector": "70d2fe53",
            "id": 19547,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getRiskpoolId",
            "nameLocation": "2045:13:35",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 19540,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "2068:8:35"
            },
            "parameters": {
              "id": 19539,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2058:2:35"
            },
            "returnParameters": {
              "id": 19543,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19542,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 19547,
                  "src": "2090:7:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19541,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2090:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "2089:9:35"
            },
            "scope": 20018,
            "src": "2036:98:35",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "public"
          },
          {
            "baseFunctions": [
              25330
            ],
            "body": {
              "id": 19556,
              "nodeType": "Block",
              "src": "2232:37:35",
              "statements": [
                {
                  "eventCall": {
                    "arguments": [
                      {
                        "arguments": [],
                        "expression": {
                          "argumentTypes": [],
                          "id": 19552,
                          "name": "getId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 25160,
                          "src": "2258:5:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
                            "typeString": "function () view returns (uint256)"
                          }
                        },
                        "id": 19553,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "2258:7:35",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 19551,
                      "name": "LogProductApproved",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 21955,
                      "src": "2239:18:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$returns$__$",
                        "typeString": "function (uint256)"
                      }
                    },
                    "id": 19554,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2239:27:35",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 19555,
                  "nodeType": "EmitStatement",
                  "src": "2234:32:35"
                }
              ]
            },
            "id": 19557,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_afterApprove",
            "nameLocation": "2198:13:35",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 19549,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "2223:8:35"
            },
            "parameters": {
              "id": 19548,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2211:2:35"
            },
            "returnParameters": {
              "id": 19550,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2232:0:35"
            },
            "scope": 20018,
            "src": "2189:80:35",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "baseFunctions": [
              25326
            ],
            "body": {
              "id": 19566,
              "nodeType": "Block",
              "src": "2318:37:35",
              "statements": [
                {
                  "eventCall": {
                    "arguments": [
                      {
                        "arguments": [],
                        "expression": {
                          "argumentTypes": [],
                          "id": 19562,
                          "name": "getId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 25160,
                          "src": "2344:5:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
                            "typeString": "function () view returns (uint256)"
                          }
                        },
                        "id": 19563,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "2344:7:35",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 19561,
                      "name": "LogProductProposed",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 21951,
                      "src": "2325:18:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$returns$__$",
                        "typeString": "function (uint256)"
                      }
                    },
                    "id": 19564,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2325:27:35",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 19565,
                  "nodeType": "EmitStatement",
                  "src": "2320:32:35"
                }
              ]
            },
            "id": 19567,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_afterPropose",
            "nameLocation": "2284:13:35",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 19559,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "2309:8:35"
            },
            "parameters": {
              "id": 19558,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2297:2:35"
            },
            "returnParameters": {
              "id": 19560,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2318:0:35"
            },
            "scope": 20018,
            "src": "2275:80:35",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "baseFunctions": [
              25334
            ],
            "body": {
              "id": 19576,
              "nodeType": "Block",
              "src": "2403:37:35",
              "statements": [
                {
                  "eventCall": {
                    "arguments": [
                      {
                        "arguments": [],
                        "expression": {
                          "argumentTypes": [],
                          "id": 19572,
                          "name": "getId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 25160,
                          "src": "2429:5:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
                            "typeString": "function () view returns (uint256)"
                          }
                        },
                        "id": 19573,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "2429:7:35",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 19571,
                      "name": "LogProductDeclined",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 21959,
                      "src": "2410:18:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$returns$__$",
                        "typeString": "function (uint256)"
                      }
                    },
                    "id": 19574,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2410:27:35",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 19575,
                  "nodeType": "EmitStatement",
                  "src": "2405:32:35"
                }
              ]
            },
            "id": 19577,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_afterDecline",
            "nameLocation": "2369:13:35",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 19569,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "2394:8:35"
            },
            "parameters": {
              "id": 19568,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2382:2:35"
            },
            "returnParameters": {
              "id": 19570,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2403:0:35"
            },
            "scope": 20018,
            "src": "2360:80:35",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 19603,
              "nodeType": "Block",
              "src": "2703:202:35",
              "statements": [
                {
                  "expression": {
                    "id": 19601,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 19592,
                      "name": "processId",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 19590,
                      "src": "2713:9:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 19595,
                          "name": "applicationOwner",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19579,
                          "src": "2769:16:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        {
                          "id": 19596,
                          "name": "premiumAmount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19581,
                          "src": "2800:13:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        {
                          "id": 19597,
                          "name": "sumInsuredAmount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19583,
                          "src": "2828:16:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        {
                          "id": 19598,
                          "name": "metaData",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19585,
                          "src": "2859:8:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes_memory_ptr",
                            "typeString": "bytes memory"
                          }
                        },
                        {
                          "id": 19599,
                          "name": "applicationData",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19587,
                          "src": "2882:15:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes_memory_ptr",
                            "typeString": "bytes memory"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          },
                          {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          },
                          {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          },
                          {
                            "typeIdentifier": "t_bytes_memory_ptr",
                            "typeString": "bytes memory"
                          },
                          {
                            "typeIdentifier": "t_bytes_memory_ptr",
                            "typeString": "bytes memory"
                          }
                        ],
                        "expression": {
                          "id": 19593,
                          "name": "_productService",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19410,
                          "src": "2725:15:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IProductService_$23900",
                            "typeString": "contract IProductService"
                          }
                        },
                        "id": 19594,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "newApplication",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 23772,
                        "src": "2725:30:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_external_nonpayable$_t_address_$_t_uint256_$_t_uint256_$_t_bytes_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_bytes32_$",
                          "typeString": "function (address,uint256,uint256,bytes memory,bytes memory) external returns (bytes32)"
                        }
                      },
                      "id": 19600,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "2725:173:35",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      }
                    },
                    "src": "2713:185:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "id": 19602,
                  "nodeType": "ExpressionStatement",
                  "src": "2713:185:35"
                }
              ]
            },
            "id": 19604,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_newApplication",
            "nameLocation": "2455:15:35",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 19588,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19579,
                  "mutability": "mutable",
                  "name": "applicationOwner",
                  "nameLocation": "2488:16:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19604,
                  "src": "2480:24:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 19578,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2480:7:35",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19581,
                  "mutability": "mutable",
                  "name": "premiumAmount",
                  "nameLocation": "2522:13:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19604,
                  "src": "2514:21:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19580,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2514:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19583,
                  "mutability": "mutable",
                  "name": "sumInsuredAmount",
                  "nameLocation": "2553:16:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19604,
                  "src": "2545:24:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19582,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2545:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19585,
                  "mutability": "mutable",
                  "name": "metaData",
                  "nameLocation": "2592:8:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19604,
                  "src": "2579:21:35",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 19584,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "2579:5:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19587,
                  "mutability": "mutable",
                  "name": "applicationData",
                  "nameLocation": "2624:15:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19604,
                  "src": "2611:28:35",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 19586,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "2611:5:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "2470:176:35"
            },
            "returnParameters": {
              "id": 19591,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19590,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "2688:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19604,
                  "src": "2680:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 19589,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "2680:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "2679:19:35"
            },
            "scope": 20018,
            "src": "2446:459:35",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 19645,
              "nodeType": "Block",
              "src": "3091:358:35",
              "statements": [
                {
                  "assignments": [
                    19619
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 19619,
                      "mutability": "mutable",
                      "name": "policy",
                      "nameLocation": "3123:6:35",
                      "nodeType": "VariableDeclaration",
                      "scope": 19645,
                      "src": "3101:28:35",
                      "stateVariable": false,
                      "storageLocation": "memory",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Policy_$20686_memory_ptr",
                        "typeString": "struct IPolicy.Policy"
                      },
                      "typeName": {
                        "id": 19618,
                        "nodeType": "UserDefinedTypeName",
                        "pathNode": {
                          "id": 19617,
                          "name": "IPolicy.Policy",
                          "nodeType": "IdentifierPath",
                          "referencedDeclaration": 20686,
                          "src": "3101:14:35"
                        },
                        "referencedDeclaration": 20686,
                        "src": "3101:14:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Policy_$20686_storage_ptr",
                          "typeString": "struct IPolicy.Policy"
                        }
                      },
                      "visibility": "internal"
                    }
                  ],
                  "id": 19623,
                  "initialValue": {
                    "arguments": [
                      {
                        "id": 19621,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19606,
                        "src": "3143:9:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "id": 19620,
                      "name": "_getPolicy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 19949,
                      "src": "3132:10:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_struct$_Policy_$20686_memory_ptr_$",
                        "typeString": "function (bytes32) view returns (struct IPolicy.Policy memory)"
                      }
                    },
                    "id": 19622,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3132:21:35",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Policy_$20686_memory_ptr",
                      "typeString": "struct IPolicy.Policy memory"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "3101:52:35"
                },
                {
                  "condition": {
                    "commonType": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    },
                    "id": 19628,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "expression": {
                        "id": 19624,
                        "name": "policy",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19619,
                        "src": "3168:6:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Policy_$20686_memory_ptr",
                          "typeString": "struct IPolicy.Policy memory"
                        }
                      },
                      "id": 19625,
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "premiumPaidAmount",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 20673,
                      "src": "3168:24:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "<",
                    "rightExpression": {
                      "expression": {
                        "id": 19626,
                        "name": "policy",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19619,
                        "src": "3195:6:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Policy_$20686_memory_ptr",
                          "typeString": "struct IPolicy.Policy memory"
                        }
                      },
                      "id": 19627,
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "premiumExpectedAmount",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 20671,
                      "src": "3195:28:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "3168:55:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 19644,
                  "nodeType": "IfStatement",
                  "src": "3164:279:35",
                  "trueBody": {
                    "id": 19643,
                    "nodeType": "Block",
                    "src": "3225:218:35",
                    "statements": [
                      {
                        "expression": {
                          "id": 19641,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "components": [
                              {
                                "id": 19629,
                                "name": "success",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 19609,
                                "src": "3240:7:35",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bool",
                                  "typeString": "bool"
                                }
                              },
                              {
                                "id": 19630,
                                "name": "feeAmount",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 19611,
                                "src": "3249:9:35",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              },
                              {
                                "id": 19631,
                                "name": "netAmount",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 19613,
                                "src": "3260:9:35",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              }
                            ],
                            "id": 19632,
                            "isConstant": false,
                            "isInlineArray": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": true,
                            "nodeType": "TupleExpression",
                            "src": "3239:31:35",
                            "typeDescriptions": {
                              "typeIdentifier": "t_tuple$_t_bool_$_t_uint256_$_t_uint256_$",
                              "typeString": "tuple(bool,uint256,uint256)"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "arguments": [
                              {
                                "id": 19634,
                                "name": "processId",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 19606,
                                "src": "3327:9:35",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                }
                              },
                              {
                                "commonType": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                },
                                "id": 19639,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftExpression": {
                                  "expression": {
                                    "id": 19635,
                                    "name": "policy",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 19619,
                                    "src": "3359:6:35",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_Policy_$20686_memory_ptr",
                                      "typeString": "struct IPolicy.Policy memory"
                                    }
                                  },
                                  "id": 19636,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "premiumExpectedAmount",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 20671,
                                  "src": "3359:28:35",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                "nodeType": "BinaryOperation",
                                "operator": "-",
                                "rightExpression": {
                                  "expression": {
                                    "id": 19637,
                                    "name": "policy",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 19619,
                                    "src": "3390:6:35",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_Policy_$20686_memory_ptr",
                                      "typeString": "struct IPolicy.Policy memory"
                                    }
                                  },
                                  "id": 19638,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "premiumPaidAmount",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 20673,
                                  "src": "3390:24:35",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                "src": "3359:55:35",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                },
                                {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              ],
                              "id": 19633,
                              "name": "_collectPremium",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [
                                19646,
                                19671
                              ],
                              "referencedDeclaration": 19671,
                              "src": "3290:15:35",
                              "typeDescriptions": {
                                "typeIdentifier": "t_function_internal_nonpayable$_t_bytes32_$_t_uint256_$returns$_t_bool_$_t_uint256_$_t_uint256_$",
                                "typeString": "function (bytes32,uint256) returns (bool,uint256,uint256)"
                              }
                            },
                            "id": 19640,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "3290:142:35",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_tuple$_t_bool_$_t_uint256_$_t_uint256_$",
                              "typeString": "tuple(bool,uint256,uint256)"
                            }
                          },
                          "src": "3239:193:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$__$",
                            "typeString": "tuple()"
                          }
                        },
                        "id": 19642,
                        "nodeType": "ExpressionStatement",
                        "src": "3239:193:35"
                      }
                    ]
                  }
                }
              ]
            },
            "id": 19646,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_collectPremium",
            "nameLocation": "2920:15:35",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 19607,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19606,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "2944:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19646,
                  "src": "2936:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 19605,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "2936:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "2935:19:35"
            },
            "returnParameters": {
              "id": 19614,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19609,
                  "mutability": "mutable",
                  "name": "success",
                  "nameLocation": "3007:7:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19646,
                  "src": "3002:12:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 19608,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "3002:4:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19611,
                  "mutability": "mutable",
                  "name": "feeAmount",
                  "nameLocation": "3036:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19646,
                  "src": "3028:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19610,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3028:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19613,
                  "mutability": "mutable",
                  "name": "netAmount",
                  "nameLocation": "3067:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19646,
                  "src": "3059:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19612,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3059:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "2988:98:35"
            },
            "scope": 20018,
            "src": "2911:538:35",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 19670,
              "nodeType": "Block",
              "src": "3672:100:35",
              "statements": [
                {
                  "expression": {
                    "id": 19668,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "components": [
                        {
                          "id": 19659,
                          "name": "success",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19653,
                          "src": "3683:7:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        {
                          "id": 19660,
                          "name": "feeAmount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19655,
                          "src": "3692:9:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        {
                          "id": 19661,
                          "name": "netAmount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19657,
                          "src": "3703:9:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        }
                      ],
                      "id": 19662,
                      "isConstant": false,
                      "isInlineArray": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "nodeType": "TupleExpression",
                      "src": "3682:31:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_tuple$_t_bool_$_t_uint256_$_t_uint256_$",
                        "typeString": "tuple(bool,uint256,uint256)"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 19665,
                          "name": "processId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19648,
                          "src": "3747:9:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        {
                          "id": 19666,
                          "name": "amount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19650,
                          "src": "3758:6:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          },
                          {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        ],
                        "expression": {
                          "id": 19663,
                          "name": "_productService",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19410,
                          "src": "3716:15:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IProductService_$23900",
                            "typeString": "contract IProductService"
                          }
                        },
                        "id": 19664,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "collectPremium",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 23785,
                        "src": "3716:30:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$_t_uint256_$returns$_t_bool_$_t_uint256_$_t_uint256_$",
                          "typeString": "function (bytes32,uint256) external returns (bool,uint256,uint256)"
                        }
                      },
                      "id": 19667,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "3716:49:35",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_tuple$_t_bool_$_t_uint256_$_t_uint256_$",
                        "typeString": "tuple(bool,uint256,uint256)"
                      }
                    },
                    "src": "3682:83:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 19669,
                  "nodeType": "ExpressionStatement",
                  "src": "3682:83:35"
                }
              ]
            },
            "id": 19671,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_collectPremium",
            "nameLocation": "3464:15:35",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 19651,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19648,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "3497:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19671,
                  "src": "3489:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 19647,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "3489:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19650,
                  "mutability": "mutable",
                  "name": "amount",
                  "nameLocation": "3524:6:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19671,
                  "src": "3516:14:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19649,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3516:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "3479:57:35"
            },
            "returnParameters": {
              "id": 19658,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19653,
                  "mutability": "mutable",
                  "name": "success",
                  "nameLocation": "3588:7:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19671,
                  "src": "3583:12:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 19652,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "3583:4:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19655,
                  "mutability": "mutable",
                  "name": "feeAmount",
                  "nameLocation": "3617:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19671,
                  "src": "3609:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19654,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3609:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19657,
                  "mutability": "mutable",
                  "name": "netAmount",
                  "nameLocation": "3648:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19671,
                  "src": "3640:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19656,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3640:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "3569:98:35"
            },
            "scope": 20018,
            "src": "3455:317:35",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 19688,
              "nodeType": "Block",
              "src": "3927:108:35",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 19683,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19673,
                        "src": "3977:9:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "id": 19684,
                        "name": "expectedPremiumAmount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19675,
                        "src": "3988:21:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "id": 19685,
                        "name": "sumInsuredAmount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19677,
                        "src": "4011:16:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "id": 19680,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19410,
                        "src": "3937:15:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$23900",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 19682,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "adjustPremiumSumInsured",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 23794,
                      "src": "3937:39:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$_t_uint256_$_t_uint256_$returns$__$",
                        "typeString": "function (bytes32,uint256,uint256) external"
                      }
                    },
                    "id": 19686,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3937:91:35",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 19687,
                  "nodeType": "ExpressionStatement",
                  "src": "3937:91:35"
                }
              ]
            },
            "id": 19689,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_adjustPremiumSumInsured",
            "nameLocation": "3787:24:35",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 19678,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19673,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "3829:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19689,
                  "src": "3821:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 19672,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "3821:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19675,
                  "mutability": "mutable",
                  "name": "expectedPremiumAmount",
                  "nameLocation": "3856:21:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19689,
                  "src": "3848:29:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19674,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3848:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19677,
                  "mutability": "mutable",
                  "name": "sumInsuredAmount",
                  "nameLocation": "3895:16:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19689,
                  "src": "3887:24:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19676,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3887:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "3811:106:35"
            },
            "returnParameters": {
              "id": 19679,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3927:0:35"
            },
            "scope": 20018,
            "src": "3778:257:35",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 19700,
              "nodeType": "Block",
              "src": "4086:50:35",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 19697,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19691,
                        "src": "4119:9:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "id": 19694,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19410,
                        "src": "4096:15:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$23900",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 19696,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "revoke",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 23799,
                      "src": "4096:22:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$returns$__$",
                        "typeString": "function (bytes32) external"
                      }
                    },
                    "id": 19698,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "4096:33:35",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 19699,
                  "nodeType": "ExpressionStatement",
                  "src": "4096:33:35"
                }
              ]
            },
            "id": 19701,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_revoke",
            "nameLocation": "4050:7:35",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 19692,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19691,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "4066:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19701,
                  "src": "4058:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 19690,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4058:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4057:19:35"
            },
            "returnParameters": {
              "id": 19693,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "4086:0:35"
            },
            "scope": 20018,
            "src": "4041:95:35",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 19715,
              "nodeType": "Block",
              "src": "4213:64:35",
              "statements": [
                {
                  "expression": {
                    "id": 19713,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 19708,
                      "name": "success",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 19706,
                      "src": "4223:7:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 19711,
                          "name": "processId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19703,
                          "src": "4260:9:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        ],
                        "expression": {
                          "id": 19709,
                          "name": "_productService",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19410,
                          "src": "4233:15:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IProductService_$23900",
                            "typeString": "contract IProductService"
                          }
                        },
                        "id": 19710,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "underwrite",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 23806,
                        "src": "4233:26:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$returns$_t_bool_$",
                          "typeString": "function (bytes32) external returns (bool)"
                        }
                      },
                      "id": 19712,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "4233:37:35",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "src": "4223:47:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 19714,
                  "nodeType": "ExpressionStatement",
                  "src": "4223:47:35"
                }
              ]
            },
            "id": 19716,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_underwrite",
            "nameLocation": "4151:11:35",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 19704,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19703,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "4171:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19716,
                  "src": "4163:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 19702,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4163:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4162:19:35"
            },
            "returnParameters": {
              "id": 19707,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19706,
                  "mutability": "mutable",
                  "name": "success",
                  "nameLocation": "4204:7:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19716,
                  "src": "4199:12:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 19705,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "4199:4:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4198:14:35"
            },
            "scope": 20018,
            "src": "4142:135:35",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 19727,
              "nodeType": "Block",
              "src": "4329:51:35",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 19724,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19718,
                        "src": "4363:9:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "id": 19721,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19410,
                        "src": "4339:15:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$23900",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 19723,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "decline",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 23811,
                      "src": "4339:23:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$returns$__$",
                        "typeString": "function (bytes32) external"
                      }
                    },
                    "id": 19725,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "4339:34:35",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 19726,
                  "nodeType": "ExpressionStatement",
                  "src": "4339:34:35"
                }
              ]
            },
            "id": 19728,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_decline",
            "nameLocation": "4292:8:35",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 19719,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19718,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "4309:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19728,
                  "src": "4301:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 19717,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4301:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4300:19:35"
            },
            "returnParameters": {
              "id": 19720,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "4329:0:35"
            },
            "scope": 20018,
            "src": "4283:97:35",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 19739,
              "nodeType": "Block",
              "src": "4431:50:35",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 19736,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19730,
                        "src": "4464:9:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "id": 19733,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19410,
                        "src": "4441:15:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$23900",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 19735,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "expire",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 23816,
                      "src": "4441:22:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$returns$__$",
                        "typeString": "function (bytes32) external"
                      }
                    },
                    "id": 19737,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "4441:33:35",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 19738,
                  "nodeType": "ExpressionStatement",
                  "src": "4441:33:35"
                }
              ]
            },
            "id": 19740,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_expire",
            "nameLocation": "4395:7:35",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 19731,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19730,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "4411:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19740,
                  "src": "4403:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 19729,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4403:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4402:19:35"
            },
            "returnParameters": {
              "id": 19732,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "4431:0:35"
            },
            "scope": 20018,
            "src": "4386:95:35",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 19751,
              "nodeType": "Block",
              "src": "4531:49:35",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 19748,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19742,
                        "src": "4563:9:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "id": 19745,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19410,
                        "src": "4541:15:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$23900",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 19747,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "close",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 23821,
                      "src": "4541:21:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$returns$__$",
                        "typeString": "function (bytes32) external"
                      }
                    },
                    "id": 19749,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "4541:32:35",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 19750,
                  "nodeType": "ExpressionStatement",
                  "src": "4541:32:35"
                }
              ]
            },
            "id": 19752,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_close",
            "nameLocation": "4496:6:35",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 19743,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19742,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "4511:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19752,
                  "src": "4503:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 19741,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4503:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4502:19:35"
            },
            "returnParameters": {
              "id": 19744,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "4531:0:35"
            },
            "scope": 20018,
            "src": "4487:93:35",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 19772,
              "nodeType": "Block",
              "src": "4751:120:35",
              "statements": [
                {
                  "expression": {
                    "id": 19770,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 19763,
                      "name": "claimId",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 19761,
                      "src": "4761:7:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 19766,
                          "name": "processId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19754,
                          "src": "4809:9:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        {
                          "id": 19767,
                          "name": "claimAmount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19756,
                          "src": "4833:11:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        {
                          "id": 19768,
                          "name": "data",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19758,
                          "src": "4859:4:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes_memory_ptr",
                            "typeString": "bytes memory"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          },
                          {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          },
                          {
                            "typeIdentifier": "t_bytes_memory_ptr",
                            "typeString": "bytes memory"
                          }
                        ],
                        "expression": {
                          "id": 19764,
                          "name": "_productService",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19410,
                          "src": "4771:15:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IProductService_$23900",
                            "typeString": "contract IProductService"
                          }
                        },
                        "id": 19765,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "newClaim",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 23832,
                        "src": "4771:24:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$_t_uint256_$_t_bytes_memory_ptr_$returns$_t_uint256_$",
                          "typeString": "function (bytes32,uint256,bytes memory) external returns (uint256)"
                        }
                      },
                      "id": 19769,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "4771:93:35",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "4761:103:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "id": 19771,
                  "nodeType": "ExpressionStatement",
                  "src": "4761:103:35"
                }
              ]
            },
            "id": 19773,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_newClaim",
            "nameLocation": "4595:9:35",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 19759,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19754,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "4622:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19773,
                  "src": "4614:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 19753,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4614:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19756,
                  "mutability": "mutable",
                  "name": "claimAmount",
                  "nameLocation": "4650:11:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19773,
                  "src": "4642:19:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19755,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "4642:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19758,
                  "mutability": "mutable",
                  "name": "data",
                  "nameLocation": "4684:4:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19773,
                  "src": "4671:17:35",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 19757,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "4671:5:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4604:90:35"
            },
            "returnParameters": {
              "id": 19762,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19761,
                  "mutability": "mutable",
                  "name": "claimId",
                  "nameLocation": "4738:7:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19773,
                  "src": "4730:15:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19760,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "4730:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4729:17:35"
            },
            "scope": 20018,
            "src": "4586:285:35",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 19790,
              "nodeType": "Block",
              "src": "5009:118:35",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 19785,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19775,
                        "src": "5061:9:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "id": 19786,
                        "name": "claimId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19777,
                        "src": "5085:7:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "id": 19787,
                        "name": "payoutAmount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19779,
                        "src": "5107:12:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "id": 19782,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19410,
                        "src": "5019:15:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$23900",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 19784,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "confirmClaim",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 23841,
                      "src": "5019:28:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$_t_uint256_$_t_uint256_$returns$__$",
                        "typeString": "function (bytes32,uint256,uint256) external"
                      }
                    },
                    "id": 19788,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "5019:101:35",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 19789,
                  "nodeType": "ExpressionStatement",
                  "src": "5019:101:35"
                }
              ]
            },
            "id": 19791,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_confirmClaim",
            "nameLocation": "4886:13:35",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 19780,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19775,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "4917:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19791,
                  "src": "4909:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 19774,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4909:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19777,
                  "mutability": "mutable",
                  "name": "claimId",
                  "nameLocation": "4944:7:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19791,
                  "src": "4936:15:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19776,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "4936:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19779,
                  "mutability": "mutable",
                  "name": "payoutAmount",
                  "nameLocation": "4969:12:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19791,
                  "src": "4961:20:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19778,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "4961:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4899:88:35"
            },
            "returnParameters": {
              "id": 19781,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "5009:0:35"
            },
            "scope": 20018,
            "src": "4877:250:35",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 19805,
              "nodeType": "Block",
              "src": "5201:65:35",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 19801,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19793,
                        "src": "5240:9:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "id": 19802,
                        "name": "claimId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19795,
                        "src": "5251:7:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "id": 19798,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19410,
                        "src": "5211:15:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$23900",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 19800,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "declineClaim",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 23848,
                      "src": "5211:28:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$_t_uint256_$returns$__$",
                        "typeString": "function (bytes32,uint256) external"
                      }
                    },
                    "id": 19803,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "5211:48:35",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 19804,
                  "nodeType": "ExpressionStatement",
                  "src": "5211:48:35"
                }
              ]
            },
            "id": 19806,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_declineClaim",
            "nameLocation": "5142:13:35",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 19796,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19793,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "5164:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19806,
                  "src": "5156:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 19792,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "5156:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19795,
                  "mutability": "mutable",
                  "name": "claimId",
                  "nameLocation": "5183:7:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19806,
                  "src": "5175:15:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19794,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5175:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "5155:36:35"
            },
            "returnParameters": {
              "id": 19797,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "5201:0:35"
            },
            "scope": 20018,
            "src": "5133:133:35",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 19820,
              "nodeType": "Block",
              "src": "5338:63:35",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 19816,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19808,
                        "src": "5375:9:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "id": 19817,
                        "name": "claimId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19810,
                        "src": "5386:7:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "id": 19813,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19410,
                        "src": "5348:15:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$23900",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 19815,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "closeClaim",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 23855,
                      "src": "5348:26:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$_t_uint256_$returns$__$",
                        "typeString": "function (bytes32,uint256) external"
                      }
                    },
                    "id": 19818,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "5348:46:35",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 19819,
                  "nodeType": "ExpressionStatement",
                  "src": "5348:46:35"
                }
              ]
            },
            "id": 19821,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_closeClaim",
            "nameLocation": "5281:11:35",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 19811,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19808,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "5301:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19821,
                  "src": "5293:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 19807,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "5293:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19810,
                  "mutability": "mutable",
                  "name": "claimId",
                  "nameLocation": "5320:7:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19821,
                  "src": "5312:15:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19809,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5312:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "5292:36:35"
            },
            "returnParameters": {
              "id": 19812,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "5338:0:35"
            },
            "scope": 20018,
            "src": "5272:129:35",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 19844,
              "nodeType": "Block",
              "src": "5591:87:35",
              "statements": [
                {
                  "expression": {
                    "id": 19842,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 19834,
                      "name": "payoutId",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 19832,
                      "src": "5601:8:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 19837,
                          "name": "processId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19823,
                          "src": "5638:9:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        {
                          "id": 19838,
                          "name": "claimId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19825,
                          "src": "5649:7:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        {
                          "id": 19839,
                          "name": "amount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19827,
                          "src": "5658:6:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        {
                          "id": 19840,
                          "name": "data",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19829,
                          "src": "5666:4:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes_memory_ptr",
                            "typeString": "bytes memory"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          },
                          {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          },
                          {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          },
                          {
                            "typeIdentifier": "t_bytes_memory_ptr",
                            "typeString": "bytes memory"
                          }
                        ],
                        "expression": {
                          "id": 19835,
                          "name": "_productService",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19410,
                          "src": "5612:15:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IProductService_$23900",
                            "typeString": "contract IProductService"
                          }
                        },
                        "id": 19836,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "newPayout",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 23868,
                        "src": "5612:25:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$_t_uint256_$_t_uint256_$_t_bytes_memory_ptr_$returns$_t_uint256_$",
                          "typeString": "function (bytes32,uint256,uint256,bytes memory) external returns (uint256)"
                        }
                      },
                      "id": 19841,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "5612:59:35",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "5601:70:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "id": 19843,
                  "nodeType": "ExpressionStatement",
                  "src": "5601:70:35"
                }
              ]
            },
            "id": 19845,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_newPayout",
            "nameLocation": "5416:10:35",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 19830,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19823,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "5444:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19845,
                  "src": "5436:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 19822,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "5436:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19825,
                  "mutability": "mutable",
                  "name": "claimId",
                  "nameLocation": "5471:7:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19845,
                  "src": "5463:15:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19824,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5463:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19827,
                  "mutability": "mutable",
                  "name": "amount",
                  "nameLocation": "5496:6:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19845,
                  "src": "5488:14:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19826,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5488:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19829,
                  "mutability": "mutable",
                  "name": "data",
                  "nameLocation": "5525:4:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19845,
                  "src": "5512:17:35",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 19828,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "5512:5:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "5426:109:35"
            },
            "returnParameters": {
              "id": 19833,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19832,
                  "mutability": "mutable",
                  "name": "payoutId",
                  "nameLocation": "5577:8:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19845,
                  "src": "5569:16:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19831,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5569:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "5568:18:35"
            },
            "scope": 20018,
            "src": "5407:271:35",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 19866,
              "nodeType": "Block",
              "src": "5882:132:35",
              "statements": [
                {
                  "expression": {
                    "id": 19864,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "components": [
                        {
                          "id": 19856,
                          "name": "feeAmount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19852,
                          "src": "5906:9:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        {
                          "id": 19857,
                          "name": "netPayoutAmount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19854,
                          "src": "5929:15:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        }
                      ],
                      "id": 19858,
                      "isConstant": false,
                      "isInlineArray": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "nodeType": "TupleExpression",
                      "src": "5892:62:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
                        "typeString": "tuple(uint256,uint256)"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 19861,
                          "name": "processId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19847,
                          "src": "5987:9:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        {
                          "id": 19862,
                          "name": "payoutId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19849,
                          "src": "5998:8:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          },
                          {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        ],
                        "expression": {
                          "id": 19859,
                          "name": "_productService",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19410,
                          "src": "5957:15:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IProductService_$23900",
                            "typeString": "contract IProductService"
                          }
                        },
                        "id": 19860,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "processPayout",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 23879,
                        "src": "5957:29:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$_t_uint256_$returns$_t_uint256_$_t_uint256_$",
                          "typeString": "function (bytes32,uint256) external returns (uint256,uint256)"
                        }
                      },
                      "id": 19863,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "5957:50:35",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
                        "typeString": "tuple(uint256,uint256)"
                      }
                    },
                    "src": "5892:115:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 19865,
                  "nodeType": "ExpressionStatement",
                  "src": "5892:115:35"
                }
              ]
            },
            "id": 19867,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_processPayout",
            "nameLocation": "5693:14:35",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 19850,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19847,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "5725:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19867,
                  "src": "5717:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 19846,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "5717:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19849,
                  "mutability": "mutable",
                  "name": "payoutId",
                  "nameLocation": "5752:8:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19867,
                  "src": "5744:16:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19848,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5744:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "5707:59:35"
            },
            "returnParameters": {
              "id": 19855,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19852,
                  "mutability": "mutable",
                  "name": "feeAmount",
                  "nameLocation": "5821:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19867,
                  "src": "5813:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19851,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5813:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19854,
                  "mutability": "mutable",
                  "name": "netPayoutAmount",
                  "nameLocation": "5852:15:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19867,
                  "src": "5844:23:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19853,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5844:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "5799:78:35"
            },
            "scope": 20018,
            "src": "5684:330:35",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 19894,
              "nodeType": "Block",
              "src": "6235:196:35",
              "statements": [
                {
                  "expression": {
                    "id": 19892,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 19880,
                      "name": "requestId",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 19878,
                      "src": "6245:9:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 19883,
                          "name": "processId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19869,
                          "src": "6294:9:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        {
                          "id": 19884,
                          "name": "input",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19871,
                          "src": "6317:5:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes_memory_ptr",
                            "typeString": "bytes memory"
                          }
                        },
                        {
                          "id": 19885,
                          "name": "callbackMethodName",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19873,
                          "src": "6336:18:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_string_memory_ptr",
                            "typeString": "string memory"
                          }
                        },
                        {
                          "arguments": [
                            {
                              "id": 19888,
                              "name": "this",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -28,
                              "src": "6376:4:35",
                              "typeDescriptions": {
                                "typeIdentifier": "t_contract$_Product_$20018",
                                "typeString": "contract Product"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_contract$_Product_$20018",
                                "typeString": "contract Product"
                              }
                            ],
                            "id": 19887,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "6368:7:35",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_address_$",
                              "typeString": "type(address)"
                            },
                            "typeName": {
                              "id": 19886,
                              "name": "address",
                              "nodeType": "ElementaryTypeName",
                              "src": "6368:7:35",
                              "typeDescriptions": {}
                            }
                          },
                          "id": 19889,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "6368:13:35",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        {
                          "id": 19890,
                          "name": "responsibleOracleId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19875,
                          "src": "6395:19:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          },
                          {
                            "typeIdentifier": "t_bytes_memory_ptr",
                            "typeString": "bytes memory"
                          },
                          {
                            "typeIdentifier": "t_string_memory_ptr",
                            "typeString": "string memory"
                          },
                          {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          },
                          {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        ],
                        "expression": {
                          "id": 19881,
                          "name": "_productService",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 19410,
                          "src": "6257:15:35",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IProductService_$23900",
                            "typeString": "contract IProductService"
                          }
                        },
                        "id": 19882,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "request",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 23894,
                        "src": "6257:23:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$_t_bytes_memory_ptr_$_t_string_memory_ptr_$_t_address_$_t_uint256_$returns$_t_uint256_$",
                          "typeString": "function (bytes32,bytes memory,string memory,address,uint256) external returns (uint256)"
                        }
                      },
                      "id": 19891,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "6257:167:35",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "6245:179:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "id": 19893,
                  "nodeType": "ExpressionStatement",
                  "src": "6245:179:35"
                }
              ]
            },
            "id": 19895,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_request",
            "nameLocation": "6029:8:35",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 19876,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19869,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "6055:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19895,
                  "src": "6047:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 19868,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "6047:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19871,
                  "mutability": "mutable",
                  "name": "input",
                  "nameLocation": "6087:5:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19895,
                  "src": "6074:18:35",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 19870,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "6074:5:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19873,
                  "mutability": "mutable",
                  "name": "callbackMethodName",
                  "nameLocation": "6116:18:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19895,
                  "src": "6102:32:35",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_string_memory_ptr",
                    "typeString": "string"
                  },
                  "typeName": {
                    "id": 19872,
                    "name": "string",
                    "nodeType": "ElementaryTypeName",
                    "src": "6102:6:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_string_storage_ptr",
                      "typeString": "string"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19875,
                  "mutability": "mutable",
                  "name": "responsibleOracleId",
                  "nameLocation": "6152:19:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19895,
                  "src": "6144:27:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19874,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "6144:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6037:140:35"
            },
            "returnParameters": {
              "id": 19879,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19878,
                  "mutability": "mutable",
                  "name": "requestId",
                  "nameLocation": "6220:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19895,
                  "src": "6212:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19877,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "6212:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6211:19:35"
            },
            "scope": 20018,
            "src": "6020:411:35",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 19906,
              "nodeType": "Block",
              "src": "6501:57:35",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 19903,
                        "name": "requestId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19897,
                        "src": "6541:9:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "id": 19900,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19410,
                        "src": "6511:15:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$23900",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 19902,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "cancelRequest",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 23899,
                      "src": "6511:29:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$",
                        "typeString": "function (uint256) external"
                      }
                    },
                    "id": 19904,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "6511:40:35",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 19905,
                  "nodeType": "ExpressionStatement",
                  "src": "6511:40:35"
                }
              ]
            },
            "id": 19907,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_cancelRequest",
            "nameLocation": "6446:14:35",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 19898,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19897,
                  "mutability": "mutable",
                  "name": "requestId",
                  "nameLocation": "6469:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19907,
                  "src": "6461:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19896,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "6461:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6460:19:35"
            },
            "returnParameters": {
              "id": 19899,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "6501:0:35"
            },
            "scope": 20018,
            "src": "6437:121:35",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 19920,
              "nodeType": "Block",
              "src": "6694:63:35",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 19917,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19909,
                        "src": "6740:9:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "id": 19915,
                        "name": "_instanceService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19413,
                        "src": "6711:16:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IInstanceService_$22849",
                          "typeString": "contract IInstanceService"
                        }
                      },
                      "id": 19916,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "getMetadata",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 22768,
                      "src": "6711:28:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_view$_t_bytes32_$returns$_t_struct$_Metadata_$20652_memory_ptr_$",
                        "typeString": "function (bytes32) view external returns (struct IPolicy.Metadata memory)"
                      }
                    },
                    "id": 19918,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "6711:39:35",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Metadata_$20652_memory_ptr",
                      "typeString": "struct IPolicy.Metadata memory"
                    }
                  },
                  "functionReturnParameters": 19914,
                  "id": 19919,
                  "nodeType": "Return",
                  "src": "6704:46:35"
                }
              ]
            },
            "id": 19921,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_getMetadata",
            "nameLocation": "6573:12:35",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 19910,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19909,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "6594:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19921,
                  "src": "6586:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 19908,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "6586:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6585:19:35"
            },
            "returnParameters": {
              "id": 19914,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19913,
                  "mutability": "mutable",
                  "name": "metadata",
                  "nameLocation": "6679:8:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19921,
                  "src": "6655:32:35",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_Metadata_$20652_memory_ptr",
                    "typeString": "struct IPolicy.Metadata"
                  },
                  "typeName": {
                    "id": 19912,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 19911,
                      "name": "IPolicy.Metadata",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 20652,
                      "src": "6655:16:35"
                    },
                    "referencedDeclaration": 20652,
                    "src": "6655:16:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Metadata_$20652_storage_ptr",
                      "typeString": "struct IPolicy.Metadata"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6654:34:35"
            },
            "scope": 20018,
            "src": "6564:193:35",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 19934,
              "nodeType": "Block",
              "src": "6902:66:35",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 19931,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19923,
                        "src": "6951:9:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "id": 19929,
                        "name": "_instanceService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19413,
                        "src": "6919:16:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IInstanceService_$22849",
                          "typeString": "contract IInstanceService"
                        }
                      },
                      "id": 19930,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "getApplication",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 22776,
                      "src": "6919:31:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_view$_t_bytes32_$returns$_t_struct$_Application_$20666_memory_ptr_$",
                        "typeString": "function (bytes32) view external returns (struct IPolicy.Application memory)"
                      }
                    },
                    "id": 19932,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "6919:42:35",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Application_$20666_memory_ptr",
                      "typeString": "struct IPolicy.Application memory"
                    }
                  },
                  "functionReturnParameters": 19928,
                  "id": 19933,
                  "nodeType": "Return",
                  "src": "6912:49:35"
                }
              ]
            },
            "id": 19935,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_getApplication",
            "nameLocation": "6772:15:35",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 19924,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19923,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "6796:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19935,
                  "src": "6788:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 19922,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "6788:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6787:19:35"
            },
            "returnParameters": {
              "id": 19928,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19927,
                  "mutability": "mutable",
                  "name": "application",
                  "nameLocation": "6884:11:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19935,
                  "src": "6857:38:35",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_Application_$20666_memory_ptr",
                    "typeString": "struct IPolicy.Application"
                  },
                  "typeName": {
                    "id": 19926,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 19925,
                      "name": "IPolicy.Application",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 20666,
                      "src": "6857:19:35"
                    },
                    "referencedDeclaration": 20666,
                    "src": "6857:19:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Application_$20666_storage_ptr",
                      "typeString": "struct IPolicy.Application"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6856:40:35"
            },
            "scope": 20018,
            "src": "6763:205:35",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 19948,
              "nodeType": "Block",
              "src": "7098:61:35",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 19945,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19937,
                        "src": "7142:9:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "id": 19943,
                        "name": "_instanceService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19413,
                        "src": "7115:16:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IInstanceService_$22849",
                          "typeString": "contract IInstanceService"
                        }
                      },
                      "id": 19944,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "getPolicy",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 22784,
                      "src": "7115:26:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_view$_t_bytes32_$returns$_t_struct$_Policy_$20686_memory_ptr_$",
                        "typeString": "function (bytes32) view external returns (struct IPolicy.Policy memory)"
                      }
                    },
                    "id": 19946,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "7115:37:35",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Policy_$20686_memory_ptr",
                      "typeString": "struct IPolicy.Policy memory"
                    }
                  },
                  "functionReturnParameters": 19942,
                  "id": 19947,
                  "nodeType": "Return",
                  "src": "7108:44:35"
                }
              ]
            },
            "id": 19949,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_getPolicy",
            "nameLocation": "6983:10:35",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 19938,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19937,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "7002:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19949,
                  "src": "6994:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 19936,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "6994:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6993:19:35"
            },
            "returnParameters": {
              "id": 19942,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19941,
                  "mutability": "mutable",
                  "name": "policy",
                  "nameLocation": "7085:6:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19949,
                  "src": "7063:28:35",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_Policy_$20686_memory_ptr",
                    "typeString": "struct IPolicy.Policy"
                  },
                  "typeName": {
                    "id": 19940,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 19939,
                      "name": "IPolicy.Policy",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 20686,
                      "src": "7063:14:35"
                    },
                    "referencedDeclaration": 20686,
                    "src": "7063:14:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Policy_$20686_storage_ptr",
                      "typeString": "struct IPolicy.Policy"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7062:30:35"
            },
            "scope": 20018,
            "src": "6974:185:35",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 19965,
              "nodeType": "Block",
              "src": "7303:69:35",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 19961,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19951,
                        "src": "7346:9:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "id": 19962,
                        "name": "claimId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19953,
                        "src": "7357:7:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "id": 19959,
                        "name": "_instanceService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19413,
                        "src": "7320:16:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IInstanceService_$22849",
                          "typeString": "contract IInstanceService"
                        }
                      },
                      "id": 19960,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "getClaim",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 22808,
                      "src": "7320:25:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_view$_t_bytes32_$_t_uint256_$returns$_t_struct$_Claim_$20700_memory_ptr_$",
                        "typeString": "function (bytes32,uint256) view external returns (struct IPolicy.Claim memory)"
                      }
                    },
                    "id": 19963,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "7320:45:35",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Claim_$20700_memory_ptr",
                      "typeString": "struct IPolicy.Claim memory"
                    }
                  },
                  "functionReturnParameters": 19958,
                  "id": 19964,
                  "nodeType": "Return",
                  "src": "7313:52:35"
                }
              ]
            },
            "id": 19966,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_getClaim",
            "nameLocation": "7174:9:35",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 19954,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19951,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "7192:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19966,
                  "src": "7184:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 19950,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "7184:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19953,
                  "mutability": "mutable",
                  "name": "claimId",
                  "nameLocation": "7211:7:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19966,
                  "src": "7203:15:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19952,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "7203:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7183:36:35"
            },
            "returnParameters": {
              "id": 19958,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19957,
                  "mutability": "mutable",
                  "name": "claim",
                  "nameLocation": "7291:5:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19966,
                  "src": "7270:26:35",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_Claim_$20700_memory_ptr",
                    "typeString": "struct IPolicy.Claim"
                  },
                  "typeName": {
                    "id": 19956,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 19955,
                      "name": "IPolicy.Claim",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 20700,
                      "src": "7270:13:35"
                    },
                    "referencedDeclaration": 20700,
                    "src": "7270:13:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Claim_$20700_storage_ptr",
                      "typeString": "struct IPolicy.Claim"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7269:28:35"
            },
            "scope": 20018,
            "src": "7165:207:35",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 19982,
              "nodeType": "Block",
              "src": "7520:71:35",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 19978,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19968,
                        "src": "7564:9:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "id": 19979,
                        "name": "payoutId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19970,
                        "src": "7575:8:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "id": 19976,
                        "name": "_instanceService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 19413,
                        "src": "7537:16:35",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IInstanceService_$22849",
                          "typeString": "contract IInstanceService"
                        }
                      },
                      "id": 19977,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "getPayout",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 22818,
                      "src": "7537:26:35",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_view$_t_bytes32_$_t_uint256_$returns$_t_struct$_Payout_$20714_memory_ptr_$",
                        "typeString": "function (bytes32,uint256) view external returns (struct IPolicy.Payout memory)"
                      }
                    },
                    "id": 19980,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "7537:47:35",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Payout_$20714_memory_ptr",
                      "typeString": "struct IPolicy.Payout memory"
                    }
                  },
                  "functionReturnParameters": 19975,
                  "id": 19981,
                  "nodeType": "Return",
                  "src": "7530:54:35"
                }
              ]
            },
            "id": 19983,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_getPayout",
            "nameLocation": "7387:10:35",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 19971,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19968,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "7406:9:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19983,
                  "src": "7398:17:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 19967,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "7398:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 19970,
                  "mutability": "mutable",
                  "name": "payoutId",
                  "nameLocation": "7425:8:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19983,
                  "src": "7417:16:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 19969,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "7417:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7397:37:35"
            },
            "returnParameters": {
              "id": 19975,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19974,
                  "mutability": "mutable",
                  "name": "payout",
                  "nameLocation": "7507:6:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19983,
                  "src": "7485:28:35",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_Payout_$20714_memory_ptr",
                    "typeString": "struct IPolicy.Payout"
                  },
                  "typeName": {
                    "id": 19973,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 19972,
                      "name": "IPolicy.Payout",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 20714,
                      "src": "7485:14:35"
                    },
                    "referencedDeclaration": 20714,
                    "src": "7485:14:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Payout_$20714_storage_ptr",
                      "typeString": "struct IPolicy.Payout"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7484:30:35"
            },
            "scope": 20018,
            "src": "7378:213:35",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "baseFunctions": [
              21979
            ],
            "body": {
              "id": 19991,
              "nodeType": "Block",
              "src": "7704:26:35",
              "statements": [
                {
                  "expression": {
                    "hexValue": "",
                    "id": 19989,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "7721:2:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
                      "typeString": "literal_string \"\""
                    },
                    "value": ""
                  },
                  "functionReturnParameters": 19988,
                  "id": 19990,
                  "nodeType": "Return",
                  "src": "7714:9:35"
                }
              ]
            },
            "functionSelector": "94f64ff4",
            "id": 19992,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getApplicationDataStructure",
            "nameLocation": "7606:27:35",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 19985,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "7645:8:35"
            },
            "parameters": {
              "id": 19984,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "7633:2:35"
            },
            "returnParameters": {
              "id": 19988,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19987,
                  "mutability": "mutable",
                  "name": "dataStructure",
                  "nameLocation": "7689:13:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 19992,
                  "src": "7675:27:35",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_string_memory_ptr",
                    "typeString": "string"
                  },
                  "typeName": {
                    "id": 19986,
                    "name": "string",
                    "nodeType": "ElementaryTypeName",
                    "src": "7675:6:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_string_storage_ptr",
                      "typeString": "string"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7674:29:35"
            },
            "scope": 20018,
            "src": "7597:133:35",
            "stateMutability": "view",
            "virtual": true,
            "visibility": "external"
          },
          {
            "baseFunctions": [
              21984
            ],
            "body": {
              "id": 20000,
              "nodeType": "Block",
              "src": "7837:26:35",
              "statements": [
                {
                  "expression": {
                    "hexValue": "",
                    "id": 19998,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "7854:2:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
                      "typeString": "literal_string \"\""
                    },
                    "value": ""
                  },
                  "functionReturnParameters": 19997,
                  "id": 19999,
                  "nodeType": "Return",
                  "src": "7847:9:35"
                }
              ]
            },
            "functionSelector": "3ec92bda",
            "id": 20001,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getClaimDataStructure",
            "nameLocation": "7745:21:35",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 19994,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "7778:8:35"
            },
            "parameters": {
              "id": 19993,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "7766:2:35"
            },
            "returnParameters": {
              "id": 19997,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 19996,
                  "mutability": "mutable",
                  "name": "dataStructure",
                  "nameLocation": "7822:13:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 20001,
                  "src": "7808:27:35",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_string_memory_ptr",
                    "typeString": "string"
                  },
                  "typeName": {
                    "id": 19995,
                    "name": "string",
                    "nodeType": "ElementaryTypeName",
                    "src": "7808:6:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_string_storage_ptr",
                      "typeString": "string"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7807:29:35"
            },
            "scope": 20018,
            "src": "7736:127:35",
            "stateMutability": "view",
            "virtual": true,
            "visibility": "external"
          },
          {
            "baseFunctions": [
              21989
            ],
            "body": {
              "id": 20009,
              "nodeType": "Block",
              "src": "7974:26:35",
              "statements": [
                {
                  "expression": {
                    "hexValue": "",
                    "id": 20007,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "7991:2:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
                      "typeString": "literal_string \"\""
                    },
                    "value": ""
                  },
                  "functionReturnParameters": 20006,
                  "id": 20008,
                  "nodeType": "Return",
                  "src": "7984:9:35"
                }
              ]
            },
            "functionSelector": "39cf5e16",
            "id": 20010,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getPayoutDataStructure",
            "nameLocation": "7881:22:35",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 20003,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "7915:8:35"
            },
            "parameters": {
              "id": 20002,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "7903:2:35"
            },
            "returnParameters": {
              "id": 20006,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 20005,
                  "mutability": "mutable",
                  "name": "dataStructure",
                  "nameLocation": "7959:13:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 20010,
                  "src": "7945:27:35",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_string_memory_ptr",
                    "typeString": "string"
                  },
                  "typeName": {
                    "id": 20004,
                    "name": "string",
                    "nodeType": "ElementaryTypeName",
                    "src": "7945:6:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_string_storage_ptr",
                      "typeString": "string"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7944:29:35"
            },
            "scope": 20018,
            "src": "7872:128:35",
            "stateMutability": "view",
            "virtual": true,
            "visibility": "external"
          },
          {
            "baseFunctions": [
              21994
            ],
            "body": {
              "id": 20016,
              "nodeType": "Block",
              "src": "8084:3:35",
              "statements": []
            },
            "functionSelector": "f4fdc1fa",
            "id": 20017,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "riskPoolCapacityCallback",
            "nameLocation": "8015:24:35",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 20014,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "8067:8:35"
            },
            "parameters": {
              "id": 20013,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 20012,
                  "mutability": "mutable",
                  "name": "capacity",
                  "nameLocation": "8048:8:35",
                  "nodeType": "VariableDeclaration",
                  "scope": 20017,
                  "src": "8040:16:35",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 20011,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "8040:7:35",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "8039:18:35"
            },
            "returnParameters": {
              "id": 20015,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "8084:0:35"
            },
            "scope": 20018,
            "src": "8006:81:35",
            "stateMutability": "nonpayable",
            "virtual": true,
            "visibility": "external"
          }
        ],
        "scope": 20019,
        "src": "233:7856:35"
      }
    ],
    "src": "39:8051:35"
  },
  "bytecode": "",
  "bytecodeSha1": "da39a3ee5e6b4b0d3255bfef95601890afd80709",
  "compiler": {
    "evm_version": "istanbul",
    "optimizer": {
      "enabled": true,
      "runs": 200
    },
    "version": "0.8.2+commit.661d1103"
  },
  "contractName": "Product",
  "coverageMap": {
    "branches": {},
    "statements": {}
  },
  "dependencies": [
    "etherisc/gif-interface@3b0002a/Component",
    "OpenZeppelin/openzeppelin-contracts@4.7.3/Context",
    "etherisc/gif-interface@3b0002a/IAccess",
    "etherisc/gif-interface@3b0002a/IBundleToken",
    "etherisc/gif-interface@3b0002a/IComponent",
    "etherisc/gif-interface@3b0002a/IComponentEvents",
    "etherisc/gif-interface@3b0002a/IComponentOwnerService",
    "OpenZeppelin/openzeppelin-contracts@4.7.3/IERC165",
    "OpenZeppelin/openzeppelin-contracts@4.7.3/IERC20",
    "OpenZeppelin/openzeppelin-contracts@4.7.3/IERC721",
    "etherisc/gif-interface@3b0002a/IInstanceOperatorService",
    "etherisc/gif-interface@3b0002a/IInstanceService",
    "etherisc/gif-interface@3b0002a/IOracleService",
    "etherisc/gif-interface@3b0002a/IProduct",
    "etherisc/gif-interface@3b0002a/IProductService",
    "etherisc/gif-interface@3b0002a/IRegistry",
    "etherisc/gif-interface@3b0002a/IRiskpoolService",
    "OpenZeppelin/openzeppelin-contracts@4.7.3/Ownable"
  ],
  "deployedBytecode": "",
  "deployedSourceMap": "",
  "language": "Solidity",
  "natspec": {
    "kind": "dev",
    "methods": {
      "owner()": {
        "details": "Returns the address of the current owner."
      },
      "renounceOwnership()": {
        "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."
      },
      "transferOwnership(address)": {
        "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
      }
    },
    "version": 1
  },
  "offset": [
    233,
    8089
  ],
  "opcodes": "",
  "pcMap": {},
  "sha1": "14dc3776cb07c2009254ab1c5d030df3856d93a8",
  "source": "// SPDX-License-Identifier: Apache-2.0\npragma solidity 0.8.2;\n\nimport \"./IProduct.sol\";\nimport \"./Component.sol\";\nimport \"../modules/IPolicy.sol\";\nimport \"../services/IInstanceService.sol\";\nimport \"../services/IProductService.sol\";\n\nabstract contract Product is\n    IProduct, \n    Component \n{    \n    address private _policyFlow; // policy flow contract to use for this procut\n    address private _token; // erc20 token to use for this product\n    uint256 private _riskpoolId; // id of riskpool responsible for this product\n\n    IProductService internal _productService;\n    IInstanceService internal _instanceService;\n\n    modifier onlyPolicyHolder(bytes32 policyId) {\n        address policyHolder = _instanceService.getMetadata(policyId).owner;\n        require(\n            _msgSender() == policyHolder, \n            \"ERROR:PRD-001:POLICY_OR_HOLDER_INVALID\"\n        );\n        _;\n    }\n\n    modifier onlyLicence {\n        require(\n             _msgSender() == _getContractAddress(\"Licence\"),\n            \"ERROR:PRD-002:ACCESS_DENIED\"\n        );\n        _;\n    }\n\n    modifier onlyOracle {\n        require(\n             _msgSender() == _getContractAddress(\"Query\"),\n            \"ERROR:PRD-003:ACCESS_DENIED\"\n        );\n        _;\n    }\n\n    constructor(\n        bytes32 name,\n        address token,\n        bytes32 policyFlow,\n        uint256 riskpoolId,\n        address registry\n    )\n        Component(name, ComponentType.Product, registry)\n    {\n        _token = token;\n        _riskpoolId = riskpoolId;\n\n        // TODO add validation for policy flow\n        _policyFlow = _getContractAddress(policyFlow);\n        _productService = IProductService(_getContractAddress(\"ProductService\"));\n        _instanceService = IInstanceService(_getContractAddress(\"InstanceService\"));\n\n        emit LogProductCreated(address(this));\n    }\n\n    function getToken() public override view returns(address) {\n        return _token;\n    }\n\n    function getPolicyFlow() public view override returns(address) {\n        return _policyFlow;\n    }\n\n    function getRiskpoolId() public override view returns(uint256) {\n        return _riskpoolId;\n    }\n\n    // default callback function implementations\n    function _afterApprove() internal override { emit LogProductApproved(getId()); }\n\n    function _afterPropose() internal override { emit LogProductProposed(getId()); }\n    function _afterDecline() internal override { emit LogProductDeclined(getId()); }\n\n    function _newApplication(\n        address applicationOwner,\n        uint256 premiumAmount,\n        uint256 sumInsuredAmount,\n        bytes memory metaData, \n        bytes memory applicationData \n    )\n        internal\n        returns(bytes32 processId)\n    {\n        processId = _productService.newApplication(\n            applicationOwner, \n            premiumAmount, \n            sumInsuredAmount, \n            metaData, \n            applicationData);\n    }\n\n    function _collectPremium(bytes32 processId) \n        internal\n        returns(\n            bool success,\n            uint256 feeAmount,\n            uint256 netAmount\n        )\n    {\n        IPolicy.Policy memory policy = _getPolicy(processId);\n\n        if (policy.premiumPaidAmount < policy.premiumExpectedAmount) {\n            (success, feeAmount, netAmount) \n                = _collectPremium(\n                    processId, \n                    policy.premiumExpectedAmount - policy.premiumPaidAmount\n                );\n        }\n    }\n\n    function _collectPremium(\n        bytes32 processId,\n        uint256 amount\n    )\n        internal\n        returns(\n            bool success,\n            uint256 feeAmount,\n            uint256 netAmount\n        )\n    {\n        (success, feeAmount, netAmount) = _productService.collectPremium(processId, amount);\n    }\n\n    function _adjustPremiumSumInsured(\n        bytes32 processId,\n        uint256 expectedPremiumAmount,\n        uint256 sumInsuredAmount\n    ) internal {\n        _productService.adjustPremiumSumInsured(processId, expectedPremiumAmount, sumInsuredAmount);\n    }\n\n    function _revoke(bytes32 processId) internal {\n        _productService.revoke(processId);\n    }\n\n    function _underwrite(bytes32 processId) internal returns(bool success) {\n        success = _productService.underwrite(processId);\n    }\n\n    function _decline(bytes32 processId) internal {\n        _productService.decline(processId);\n    }\n\n    function _expire(bytes32 processId) internal {\n        _productService.expire(processId);\n    }\n\n    function _close(bytes32 processId) internal {\n        _productService.close(processId);\n    }\n\n    function _newClaim(\n        bytes32 processId, \n        uint256 claimAmount,\n        bytes memory data\n    ) \n        internal\n        returns (uint256 claimId)\n    {\n        claimId = _productService.newClaim(\n            processId, \n            claimAmount, \n            data);\n    }\n\n    function _confirmClaim(\n        bytes32 processId,\n        uint256 claimId,\n        uint256 payoutAmount\n    )\n        internal\n    {\n        _productService.confirmClaim(\n            processId, \n            claimId, \n            payoutAmount);\n    }\n\n    function _declineClaim(bytes32 processId, uint256 claimId) internal {\n        _productService.declineClaim(processId, claimId);\n    }\n\n    function _closeClaim(bytes32 processId, uint256 claimId) internal {\n        _productService.closeClaim(processId, claimId);\n    }\n\n    function _newPayout(\n        bytes32 processId,\n        uint256 claimId,\n        uint256 amount,\n        bytes memory data\n    )\n        internal\n        returns(uint256 payoutId)\n    {\n        payoutId = _productService.newPayout(processId, claimId, amount, data);\n    }\n\n    function _processPayout(\n        bytes32 processId,\n        uint256 payoutId\n    )\n        internal\n        returns(\n            uint256 feeAmount,\n            uint256 netPayoutAmount\n        )\n    {\n        (\n            feeAmount,\n            netPayoutAmount\n        ) = _productService.processPayout(processId, payoutId);\n    }\n\n    function _request(\n        bytes32 processId,\n        bytes memory input,\n        string memory callbackMethodName,\n        uint256 responsibleOracleId\n    )\n        internal\n        returns (uint256 requestId)\n    {\n        requestId = _productService.request(\n            processId,\n            input,\n            callbackMethodName,\n            address(this),\n            responsibleOracleId\n        );\n    }\n\n    function _cancelRequest(uint256 requestId)\n        internal\n    {\n        _productService.cancelRequest(requestId);\n    }\n\n    function _getMetadata(bytes32 processId) \n        internal \n        view \n        returns (IPolicy.Metadata memory metadata) \n    {\n        return _instanceService.getMetadata(processId);\n    }\n\n    function _getApplication(bytes32 processId) \n        internal \n        view \n        returns (IPolicy.Application memory application) \n    {\n        return _instanceService.getApplication(processId);\n    }\n\n    function _getPolicy(bytes32 processId) \n        internal \n        view \n        returns (IPolicy.Policy memory policy) \n    {\n        return _instanceService.getPolicy(processId);\n    }\n\n    function _getClaim(bytes32 processId, uint256 claimId) \n        internal \n        view \n        returns (IPolicy.Claim memory claim) \n    {\n        return _instanceService.getClaim(processId, claimId);\n    }\n\n    function _getPayout(bytes32 processId, uint256 payoutId) \n        internal \n        view \n        returns (IPolicy.Payout memory payout) \n    {\n        return _instanceService.getPayout(processId, payoutId);\n    }\n\n    function getApplicationDataStructure() external override virtual view returns(string memory dataStructure) {\n        return \"\";\n    }\n\n    function getClaimDataStructure() external override virtual view returns(string memory dataStructure) {\n        return \"\";\n    }    \n    function getPayoutDataStructure() external override virtual view returns(string memory dataStructure) {\n        return \"\";\n    }\n\n    function riskPoolCapacityCallback(uint256 capacity) external override virtual { }\n}\n",
  "sourceMap": "",
  "sourcePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/Product.sol",
  "type": "contract"
}