{
  "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": {
    "0": "/home/runner/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/access/Ownable.sol",
    "11": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IProduct.sol",
    "14": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/Product.sol",
    "16": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IAccess.sol",
    "18": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IComponentEvents.sol",
    "2": "/home/runner/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/token/ERC20/IERC20.sol",
    "21": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IRegistry.sol",
    "23": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IComponentOwnerService.sol",
    "24": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceOperatorService.sol",
    "25": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceService.sol",
    "26": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IOracleService.sol",
    "27": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IProductService.sol",
    "28": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IRiskpoolService.sol",
    "29": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/tokens/IBundleToken.sol",
    "4": "/home/runner/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/token/ERC721/IERC721.sol",
    "5": "/home/runner/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/utils/Context.sol",
    "6": "/home/runner/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.8.2/contracts/utils/introspection/IERC165.sol",
    "8": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/Component.sol",
    "9": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol"
  },
  "ast": {
    "absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/Product.sol",
    "exportedSymbols": {
      "Component": [
        5114
      ],
      "Context": [
        6682
      ],
      "IAccess": [
        6858
      ],
      "IBundle": [
        3612
      ],
      "IBundleToken": [
        4029
      ],
      "IComponent": [
        5218
      ],
      "IComponentEvents": [
        6911
      ],
      "IComponentOwnerService": [
        7044
      ],
      "IERC165": [
        7662
      ],
      "IERC20": [
        4694
      ],
      "IERC721": [
        6660
      ],
      "IInstanceOperatorService": [
        7311
      ],
      "IInstanceService": [
        5668
      ],
      "IOracleService": [
        5262
      ],
      "IPolicy": [
        3958
      ],
      "IPool": [
        7160
      ],
      "IProduct": [
        5319
      ],
      "IProductService": [
        5813
      ],
      "IRegistry": [
        7009
      ],
      "IRiskpoolService": [
        7417
      ],
      "ITreasury": [
        2409
      ],
      "Ownable": [
        6795
      ],
      "Product": [
        3139
      ]
    },
    "id": 3140,
    "license": "Apache-2.0",
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 2513,
        "literals": [
          "solidity",
          "0.8",
          ".2"
        ],
        "nodeType": "PragmaDirective",
        "src": "39:22:14"
      },
      {
        "absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IProduct.sol",
        "file": "./IProduct.sol",
        "id": 2514,
        "nameLocation": "-1:-1:-1",
        "nodeType": "ImportDirective",
        "scope": 3140,
        "sourceUnit": 5320,
        "src": "63:24:14",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/Component.sol",
        "file": "./Component.sol",
        "id": 2515,
        "nameLocation": "-1:-1:-1",
        "nodeType": "ImportDirective",
        "scope": 3140,
        "sourceUnit": 5115,
        "src": "88:25:14",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IPolicy.sol",
        "file": "../modules/IPolicy.sol",
        "id": 2516,
        "nameLocation": "-1:-1:-1",
        "nodeType": "ImportDirective",
        "scope": 3140,
        "sourceUnit": 3959,
        "src": "114:32:14",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceService.sol",
        "file": "../services/IInstanceService.sol",
        "id": 2517,
        "nameLocation": "-1:-1:-1",
        "nodeType": "ImportDirective",
        "scope": 3140,
        "sourceUnit": 5669,
        "src": "147:42:14",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IProductService.sol",
        "file": "../services/IProductService.sol",
        "id": 2518,
        "nameLocation": "-1:-1:-1",
        "nodeType": "ImportDirective",
        "scope": 3140,
        "sourceUnit": 5814,
        "src": "190:41:14",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "abstract": true,
        "baseContracts": [
          {
            "baseName": {
              "id": 2519,
              "name": "IProduct",
              "nodeType": "IdentifierPath",
              "referencedDeclaration": 5319,
              "src": "266:8:14"
            },
            "id": 2520,
            "nodeType": "InheritanceSpecifier",
            "src": "266:8:14"
          },
          {
            "baseName": {
              "id": 2521,
              "name": "Component",
              "nodeType": "IdentifierPath",
              "referencedDeclaration": 5114,
              "src": "281:9:14"
            },
            "id": 2522,
            "nodeType": "InheritanceSpecifier",
            "src": "281:9:14"
          }
        ],
        "contractDependencies": [
          5114,
          5218,
          5319,
          6682,
          6795,
          6911
        ],
        "contractKind": "contract",
        "fullyImplemented": true,
        "id": 3139,
        "linearizedBaseContracts": [
          3139,
          5114,
          6795,
          6682,
          6911,
          5319,
          5218
        ],
        "name": "Product",
        "nameLocation": "251:7:14",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "constant": false,
            "id": 2524,
            "mutability": "mutable",
            "name": "_policyFlow",
            "nameLocation": "318:11:14",
            "nodeType": "VariableDeclaration",
            "scope": 3139,
            "src": "302:27:14",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_address",
              "typeString": "address"
            },
            "typeName": {
              "id": 2523,
              "name": "address",
              "nodeType": "ElementaryTypeName",
              "src": "302:7:14",
              "stateMutability": "nonpayable",
              "typeDescriptions": {
                "typeIdentifier": "t_address",
                "typeString": "address"
              }
            },
            "visibility": "private"
          },
          {
            "constant": false,
            "id": 2526,
            "mutability": "mutable",
            "name": "_token",
            "nameLocation": "398:6:14",
            "nodeType": "VariableDeclaration",
            "scope": 3139,
            "src": "382:22:14",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_address",
              "typeString": "address"
            },
            "typeName": {
              "id": 2525,
              "name": "address",
              "nodeType": "ElementaryTypeName",
              "src": "382:7:14",
              "stateMutability": "nonpayable",
              "typeDescriptions": {
                "typeIdentifier": "t_address",
                "typeString": "address"
              }
            },
            "visibility": "private"
          },
          {
            "constant": false,
            "id": 2528,
            "mutability": "mutable",
            "name": "_riskpoolId",
            "nameLocation": "465:11:14",
            "nodeType": "VariableDeclaration",
            "scope": 3139,
            "src": "449:27:14",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_uint256",
              "typeString": "uint256"
            },
            "typeName": {
              "id": 2527,
              "name": "uint256",
              "nodeType": "ElementaryTypeName",
              "src": "449:7:14",
              "typeDescriptions": {
                "typeIdentifier": "t_uint256",
                "typeString": "uint256"
              }
            },
            "visibility": "private"
          },
          {
            "constant": false,
            "id": 2531,
            "mutability": "mutable",
            "name": "_productService",
            "nameLocation": "555:15:14",
            "nodeType": "VariableDeclaration",
            "scope": 3139,
            "src": "530:40:14",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_IProductService_$5813",
              "typeString": "contract IProductService"
            },
            "typeName": {
              "id": 2530,
              "nodeType": "UserDefinedTypeName",
              "pathNode": {
                "id": 2529,
                "name": "IProductService",
                "nodeType": "IdentifierPath",
                "referencedDeclaration": 5813,
                "src": "530:15:14"
              },
              "referencedDeclaration": 5813,
              "src": "530:15:14",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_IProductService_$5813",
                "typeString": "contract IProductService"
              }
            },
            "visibility": "internal"
          },
          {
            "constant": false,
            "id": 2534,
            "mutability": "mutable",
            "name": "_instanceService",
            "nameLocation": "602:16:14",
            "nodeType": "VariableDeclaration",
            "scope": 3139,
            "src": "576:42:14",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_IInstanceService_$5668",
              "typeString": "contract IInstanceService"
            },
            "typeName": {
              "id": 2533,
              "nodeType": "UserDefinedTypeName",
              "pathNode": {
                "id": 2532,
                "name": "IInstanceService",
                "nodeType": "IdentifierPath",
                "referencedDeclaration": 5668,
                "src": "576:16:14"
              },
              "referencedDeclaration": 5668,
              "src": "576:16:14",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_IInstanceService_$5668",
                "typeString": "contract IInstanceService"
              }
            },
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2555,
              "nodeType": "Block",
              "src": "669:219:14",
              "statements": [
                {
                  "assignments": [
                    2539
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 2539,
                      "mutability": "mutable",
                      "name": "policyHolder",
                      "nameLocation": "687:12:14",
                      "nodeType": "VariableDeclaration",
                      "scope": 2555,
                      "src": "679:20:14",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      },
                      "typeName": {
                        "id": 2538,
                        "name": "address",
                        "nodeType": "ElementaryTypeName",
                        "src": "679:7:14",
                        "stateMutability": "nonpayable",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "visibility": "internal"
                    }
                  ],
                  "id": 2545,
                  "initialValue": {
                    "expression": {
                      "arguments": [
                        {
                          "id": 2542,
                          "name": "policyId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2536,
                          "src": "731:8:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        ],
                        "expression": {
                          "id": 2540,
                          "name": "_instanceService",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2534,
                          "src": "702:16:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IInstanceService_$5668",
                            "typeString": "contract IInstanceService"
                          }
                        },
                        "id": 2541,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "getMetadata",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 5587,
                        "src": "702:28:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_external_view$_t_bytes32_$returns$_t_struct$_Metadata_$3773_memory_ptr_$",
                          "typeString": "function (bytes32) view external returns (struct IPolicy.Metadata memory)"
                        }
                      },
                      "id": 2543,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "702:38:14",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Metadata_$3773_memory_ptr",
                        "typeString": "struct IPolicy.Metadata memory"
                      }
                    },
                    "id": 2544,
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "memberName": "owner",
                    "nodeType": "MemberAccess",
                    "referencedDeclaration": 3761,
                    "src": "702:44:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "679:67:14"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        "id": 2550,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "arguments": [],
                          "expression": {
                            "argumentTypes": [],
                            "id": 2547,
                            "name": "_msgSender",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6672,
                            "src": "777:10:14",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
                              "typeString": "function () view returns (address)"
                            }
                          },
                          "id": 2548,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "777:12:14",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 2549,
                          "name": "policyHolder",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2539,
                          "src": "793:12:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "src": "777:28:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "4552524f523a5052442d3030313a504f4c4943595f4f525f484f4c4445525f494e56414c4944",
                        "id": 2551,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "820:40:14",
                        "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": 2546,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "756:7:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 2552,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "756:114:14",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2553,
                  "nodeType": "ExpressionStatement",
                  "src": "756:114:14"
                },
                {
                  "id": 2554,
                  "nodeType": "PlaceholderStatement",
                  "src": "880:1:14"
                }
              ]
            },
            "id": 2556,
            "name": "onlyPolicyHolder",
            "nameLocation": "634:16:14",
            "nodeType": "ModifierDefinition",
            "parameters": {
              "id": 2537,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2536,
                  "mutability": "mutable",
                  "name": "policyId",
                  "nameLocation": "659:8:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2556,
                  "src": "651:16:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2535,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "651:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "650:18:14"
            },
            "src": "625:263:14",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2569,
              "nodeType": "Block",
              "src": "915:149:14",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        "id": 2564,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "arguments": [],
                          "expression": {
                            "argumentTypes": [],
                            "id": 2559,
                            "name": "_msgSender",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6672,
                            "src": "947:10:14",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
                              "typeString": "function () view returns (address)"
                            }
                          },
                          "id": 2560,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "947:12:14",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "arguments": [
                            {
                              "hexValue": "4c6963656e6365",
                              "id": 2562,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "string",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "983:9:14",
                              "typeDescriptions": {
                                "typeIdentifier": "t_stringliteral_6ca2c06beb422d975cd2070710bcde13ae6539489c77a2eac3d019f18f8a11bd",
                                "typeString": "literal_string \"Licence\""
                              },
                              "value": "Licence"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_stringliteral_6ca2c06beb422d975cd2070710bcde13ae6539489c77a2eac3d019f18f8a11bd",
                                "typeString": "literal_string \"Licence\""
                              }
                            ],
                            "id": 2561,
                            "name": "_getContractAddress",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 5113,
                            "src": "963:19:14",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_address_$",
                              "typeString": "function (bytes32) view returns (address)"
                            }
                          },
                          "id": 2563,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "963:30:14",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "src": "947:46:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "4552524f523a5052442d3030323a4143434553535f44454e494544",
                        "id": 2565,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1007:29:14",
                        "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": 2558,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "925:7:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 2566,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "925:121:14",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2567,
                  "nodeType": "ExpressionStatement",
                  "src": "925:121:14"
                },
                {
                  "id": 2568,
                  "nodeType": "PlaceholderStatement",
                  "src": "1056:1:14"
                }
              ]
            },
            "id": 2570,
            "name": "onlyLicence",
            "nameLocation": "903:11:14",
            "nodeType": "ModifierDefinition",
            "parameters": {
              "id": 2557,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "915:0:14"
            },
            "src": "894:170:14",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2583,
              "nodeType": "Block",
              "src": "1090:147:14",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        "id": 2578,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "arguments": [],
                          "expression": {
                            "argumentTypes": [],
                            "id": 2573,
                            "name": "_msgSender",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 6672,
                            "src": "1122:10:14",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
                              "typeString": "function () view returns (address)"
                            }
                          },
                          "id": 2574,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "1122:12:14",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "arguments": [
                            {
                              "hexValue": "5175657279",
                              "id": 2576,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "string",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "1158:7:14",
                              "typeDescriptions": {
                                "typeIdentifier": "t_stringliteral_de27146501ae3a78760bc5f3cf670e34e42f94d4009fee9f620352506ade7ceb",
                                "typeString": "literal_string \"Query\""
                              },
                              "value": "Query"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_stringliteral_de27146501ae3a78760bc5f3cf670e34e42f94d4009fee9f620352506ade7ceb",
                                "typeString": "literal_string \"Query\""
                              }
                            ],
                            "id": 2575,
                            "name": "_getContractAddress",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 5113,
                            "src": "1138:19:14",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_address_$",
                              "typeString": "function (bytes32) view returns (address)"
                            }
                          },
                          "id": 2577,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "1138:28:14",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "src": "1122:44:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "4552524f523a5052442d3030333a4143434553535f44454e494544",
                        "id": 2579,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1180:29:14",
                        "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": 2572,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "1100:7:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 2580,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1100:119:14",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2581,
                  "nodeType": "ExpressionStatement",
                  "src": "1100:119:14"
                },
                {
                  "id": 2582,
                  "nodeType": "PlaceholderStatement",
                  "src": "1229:1:14"
                }
              ]
            },
            "id": 2584,
            "name": "onlyOracle",
            "nameLocation": "1079:10:14",
            "nodeType": "ModifierDefinition",
            "parameters": {
              "id": 2571,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1090:0:14"
            },
            "src": "1070:167:14",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2640,
              "nodeType": "Block",
              "src": "1449:383:14",
              "statements": [
                {
                  "expression": {
                    "id": 2605,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 2603,
                      "name": "_token",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2526,
                      "src": "1459:6:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "id": 2604,
                      "name": "token",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2588,
                      "src": "1468:5:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "src": "1459:14:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "id": 2606,
                  "nodeType": "ExpressionStatement",
                  "src": "1459:14:14"
                },
                {
                  "expression": {
                    "id": 2609,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 2607,
                      "name": "_riskpoolId",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2528,
                      "src": "1483:11:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "id": 2608,
                      "name": "riskpoolId",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2592,
                      "src": "1497:10:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "1483:24:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "id": 2610,
                  "nodeType": "ExpressionStatement",
                  "src": "1483:24:14"
                },
                {
                  "expression": {
                    "id": 2615,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 2611,
                      "name": "_policyFlow",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2524,
                      "src": "1565:11:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 2613,
                          "name": "policyFlow",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2590,
                          "src": "1599:10:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        ],
                        "id": 2612,
                        "name": "_getContractAddress",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 5113,
                        "src": "1579:19:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_address_$",
                          "typeString": "function (bytes32) view returns (address)"
                        }
                      },
                      "id": 2614,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "1579:31:14",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "src": "1565:45:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "id": 2616,
                  "nodeType": "ExpressionStatement",
                  "src": "1565:45:14"
                },
                {
                  "expression": {
                    "id": 2623,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 2617,
                      "name": "_productService",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2531,
                      "src": "1620:15:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IProductService_$5813",
                        "typeString": "contract IProductService"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "arguments": [
                            {
                              "hexValue": "50726f6475637453657276696365",
                              "id": 2620,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "string",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "1674:16:14",
                              "typeDescriptions": {
                                "typeIdentifier": "t_stringliteral_a0656cfcc1bc970b947aca201a5cc1b43cf3c3649a4b2d6f82968797074fe0b8",
                                "typeString": "literal_string \"ProductService\""
                              },
                              "value": "ProductService"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_stringliteral_a0656cfcc1bc970b947aca201a5cc1b43cf3c3649a4b2d6f82968797074fe0b8",
                                "typeString": "literal_string \"ProductService\""
                              }
                            ],
                            "id": 2619,
                            "name": "_getContractAddress",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 5113,
                            "src": "1654:19:14",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_address_$",
                              "typeString": "function (bytes32) view returns (address)"
                            }
                          },
                          "id": 2621,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "1654:37:14",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        ],
                        "id": 2618,
                        "name": "IProductService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 5813,
                        "src": "1638:15:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_contract$_IProductService_$5813_$",
                          "typeString": "type(contract IProductService)"
                        }
                      },
                      "id": 2622,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "1638:54:14",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IProductService_$5813",
                        "typeString": "contract IProductService"
                      }
                    },
                    "src": "1620:72:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IProductService_$5813",
                      "typeString": "contract IProductService"
                    }
                  },
                  "id": 2624,
                  "nodeType": "ExpressionStatement",
                  "src": "1620:72:14"
                },
                {
                  "expression": {
                    "id": 2631,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 2625,
                      "name": "_instanceService",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2534,
                      "src": "1702:16:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IInstanceService_$5668",
                        "typeString": "contract IInstanceService"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "arguments": [
                            {
                              "hexValue": "496e7374616e636553657276696365",
                              "id": 2628,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "string",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "1758:17:14",
                              "typeDescriptions": {
                                "typeIdentifier": "t_stringliteral_9d0370d7b33c0a7e946fd67f2013156c598b4d6a70b1490bc73aacf4dc1a6f52",
                                "typeString": "literal_string \"InstanceService\""
                              },
                              "value": "InstanceService"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_stringliteral_9d0370d7b33c0a7e946fd67f2013156c598b4d6a70b1490bc73aacf4dc1a6f52",
                                "typeString": "literal_string \"InstanceService\""
                              }
                            ],
                            "id": 2627,
                            "name": "_getContractAddress",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 5113,
                            "src": "1738:19:14",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_address_$",
                              "typeString": "function (bytes32) view returns (address)"
                            }
                          },
                          "id": 2629,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "1738:38:14",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        ],
                        "id": 2626,
                        "name": "IInstanceService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 5668,
                        "src": "1721:16:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_contract$_IInstanceService_$5668_$",
                          "typeString": "type(contract IInstanceService)"
                        }
                      },
                      "id": 2630,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "1721:56:14",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IInstanceService_$5668",
                        "typeString": "contract IInstanceService"
                      }
                    },
                    "src": "1702:75:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IInstanceService_$5668",
                      "typeString": "contract IInstanceService"
                    }
                  },
                  "id": 2632,
                  "nodeType": "ExpressionStatement",
                  "src": "1702:75:14"
                },
                {
                  "eventCall": {
                    "arguments": [
                      {
                        "arguments": [
                          {
                            "id": 2636,
                            "name": "this",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": -28,
                            "src": "1819:4:14",
                            "typeDescriptions": {
                              "typeIdentifier": "t_contract$_Product_$3139",
                              "typeString": "contract Product"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_contract$_Product_$3139",
                              "typeString": "contract Product"
                            }
                          ],
                          "id": 2635,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "1811:7:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_address_$",
                            "typeString": "type(address)"
                          },
                          "typeName": {
                            "id": 2634,
                            "name": "address",
                            "nodeType": "ElementaryTypeName",
                            "src": "1811:7:14",
                            "typeDescriptions": {}
                          }
                        },
                        "id": 2637,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "1811:13:14",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 2633,
                      "name": "LogProductCreated",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 5271,
                      "src": "1793:17:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$",
                        "typeString": "function (address)"
                      }
                    },
                    "id": 2638,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1793:32:14",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2639,
                  "nodeType": "EmitStatement",
                  "src": "1788:37:14"
                }
              ]
            },
            "id": 2641,
            "implemented": true,
            "kind": "constructor",
            "modifiers": [
              {
                "arguments": [
                  {
                    "id": 2597,
                    "name": "name",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 2586,
                    "src": "1406:4:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  {
                    "expression": {
                      "id": 2598,
                      "name": "ComponentType",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 5121,
                      "src": "1412:13:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_enum$_ComponentType_$5121_$",
                        "typeString": "type(enum IComponent.ComponentType)"
                      }
                    },
                    "id": 2599,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "lValueRequested": false,
                    "memberName": "Product",
                    "nodeType": "MemberAccess",
                    "referencedDeclaration": 5119,
                    "src": "1412:21:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_enum$_ComponentType_$5121",
                      "typeString": "enum IComponent.ComponentType"
                    }
                  },
                  {
                    "id": 2600,
                    "name": "registry",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 2594,
                    "src": "1435:8:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 2601,
                "modifierName": {
                  "id": 2596,
                  "name": "Component",
                  "nodeType": "IdentifierPath",
                  "referencedDeclaration": 5114,
                  "src": "1396:9:14"
                },
                "nodeType": "ModifierInvocation",
                "src": "1396:48:14"
              }
            ],
            "name": "",
            "nameLocation": "-1:-1:-1",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2595,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2586,
                  "mutability": "mutable",
                  "name": "name",
                  "nameLocation": "1272:4:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2641,
                  "src": "1264:12:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2585,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1264:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2588,
                  "mutability": "mutable",
                  "name": "token",
                  "nameLocation": "1294:5:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2641,
                  "src": "1286:13:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2587,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1286:7:14",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2590,
                  "mutability": "mutable",
                  "name": "policyFlow",
                  "nameLocation": "1317:10:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2641,
                  "src": "1309:18:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2589,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1309:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2592,
                  "mutability": "mutable",
                  "name": "riskpoolId",
                  "nameLocation": "1345:10:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2641,
                  "src": "1337:18:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2591,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1337:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2594,
                  "mutability": "mutable",
                  "name": "registry",
                  "nameLocation": "1373:8:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2641,
                  "src": "1365:16:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2593,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1365:7:14",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1254:133:14"
            },
            "returnParameters": {
              "id": 2602,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1449:0:14"
            },
            "scope": 3139,
            "src": "1243:589:14",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "baseFunctions": [
              5288
            ],
            "body": {
              "id": 2649,
              "nodeType": "Block",
              "src": "1896:30:14",
              "statements": [
                {
                  "expression": {
                    "id": 2647,
                    "name": "_token",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 2526,
                    "src": "1913:6:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "functionReturnParameters": 2646,
                  "id": 2648,
                  "nodeType": "Return",
                  "src": "1906:13:14"
                }
              ]
            },
            "functionSelector": "21df0da7",
            "id": 2650,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getToken",
            "nameLocation": "1847:8:14",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 2643,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "1865:8:14"
            },
            "parameters": {
              "id": 2642,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1855:2:14"
            },
            "returnParameters": {
              "id": 2646,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2645,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 2650,
                  "src": "1887:7:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2644,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1887:7:14",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1886:9:14"
            },
            "scope": 3139,
            "src": "1838:88:14",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "public"
          },
          {
            "baseFunctions": [
              5293
            ],
            "body": {
              "id": 2658,
              "nodeType": "Block",
              "src": "1995:35:14",
              "statements": [
                {
                  "expression": {
                    "id": 2656,
                    "name": "_policyFlow",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 2524,
                    "src": "2012:11:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "functionReturnParameters": 2655,
                  "id": 2657,
                  "nodeType": "Return",
                  "src": "2005:18:14"
                }
              ]
            },
            "functionSelector": "637d08f4",
            "id": 2659,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getPolicyFlow",
            "nameLocation": "1941:13:14",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 2652,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "1969:8:14"
            },
            "parameters": {
              "id": 2651,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1954:2:14"
            },
            "returnParameters": {
              "id": 2655,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2654,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 2659,
                  "src": "1986:7:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2653,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1986:7:14",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1985:9:14"
            },
            "scope": 3139,
            "src": "1932:98:14",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "public"
          },
          {
            "baseFunctions": [
              5298
            ],
            "body": {
              "id": 2667,
              "nodeType": "Block",
              "src": "2099:35:14",
              "statements": [
                {
                  "expression": {
                    "id": 2665,
                    "name": "_riskpoolId",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 2528,
                    "src": "2116:11:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "functionReturnParameters": 2664,
                  "id": 2666,
                  "nodeType": "Return",
                  "src": "2109:18:14"
                }
              ]
            },
            "functionSelector": "70d2fe53",
            "id": 2668,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getRiskpoolId",
            "nameLocation": "2045:13:14",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 2661,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "2068:8:14"
            },
            "parameters": {
              "id": 2660,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2058:2:14"
            },
            "returnParameters": {
              "id": 2664,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2663,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 2668,
                  "src": "2090:7:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2662,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2090:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "2089:9:14"
            },
            "scope": 3139,
            "src": "2036:98:14",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "public"
          },
          {
            "baseFunctions": [
              5037
            ],
            "body": {
              "id": 2677,
              "nodeType": "Block",
              "src": "2232:37:14",
              "statements": [
                {
                  "eventCall": {
                    "arguments": [
                      {
                        "arguments": [],
                        "expression": {
                          "argumentTypes": [],
                          "id": 2673,
                          "name": "getId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 4867,
                          "src": "2258:5:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
                            "typeString": "function () view returns (uint256)"
                          }
                        },
                        "id": 2674,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "2258:7:14",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 2672,
                      "name": "LogProductApproved",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 5279,
                      "src": "2239:18:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$returns$__$",
                        "typeString": "function (uint256)"
                      }
                    },
                    "id": 2675,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2239:27:14",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2676,
                  "nodeType": "EmitStatement",
                  "src": "2234:32:14"
                }
              ]
            },
            "id": 2678,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_afterApprove",
            "nameLocation": "2198:13:14",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 2670,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "2223:8:14"
            },
            "parameters": {
              "id": 2669,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2211:2:14"
            },
            "returnParameters": {
              "id": 2671,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2232:0:14"
            },
            "scope": 3139,
            "src": "2189:80:14",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "baseFunctions": [
              5033
            ],
            "body": {
              "id": 2687,
              "nodeType": "Block",
              "src": "2318:37:14",
              "statements": [
                {
                  "eventCall": {
                    "arguments": [
                      {
                        "arguments": [],
                        "expression": {
                          "argumentTypes": [],
                          "id": 2683,
                          "name": "getId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 4867,
                          "src": "2344:5:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
                            "typeString": "function () view returns (uint256)"
                          }
                        },
                        "id": 2684,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "2344:7:14",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 2682,
                      "name": "LogProductProposed",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 5275,
                      "src": "2325:18:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$returns$__$",
                        "typeString": "function (uint256)"
                      }
                    },
                    "id": 2685,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2325:27:14",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2686,
                  "nodeType": "EmitStatement",
                  "src": "2320:32:14"
                }
              ]
            },
            "id": 2688,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_afterPropose",
            "nameLocation": "2284:13:14",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 2680,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "2309:8:14"
            },
            "parameters": {
              "id": 2679,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2297:2:14"
            },
            "returnParameters": {
              "id": 2681,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2318:0:14"
            },
            "scope": 3139,
            "src": "2275:80:14",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "baseFunctions": [
              5041
            ],
            "body": {
              "id": 2697,
              "nodeType": "Block",
              "src": "2403:37:14",
              "statements": [
                {
                  "eventCall": {
                    "arguments": [
                      {
                        "arguments": [],
                        "expression": {
                          "argumentTypes": [],
                          "id": 2693,
                          "name": "getId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 4867,
                          "src": "2429:5:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
                            "typeString": "function () view returns (uint256)"
                          }
                        },
                        "id": 2694,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "2429:7:14",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 2692,
                      "name": "LogProductDeclined",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 5283,
                      "src": "2410:18:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$returns$__$",
                        "typeString": "function (uint256)"
                      }
                    },
                    "id": 2695,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2410:27:14",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2696,
                  "nodeType": "EmitStatement",
                  "src": "2405:32:14"
                }
              ]
            },
            "id": 2698,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_afterDecline",
            "nameLocation": "2369:13:14",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 2690,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "2394:8:14"
            },
            "parameters": {
              "id": 2689,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2382:2:14"
            },
            "returnParameters": {
              "id": 2691,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2403:0:14"
            },
            "scope": 3139,
            "src": "2360:80:14",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2724,
              "nodeType": "Block",
              "src": "2703:202:14",
              "statements": [
                {
                  "expression": {
                    "id": 2722,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 2713,
                      "name": "processId",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2711,
                      "src": "2713:9:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 2716,
                          "name": "applicationOwner",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2700,
                          "src": "2769:16:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        {
                          "id": 2717,
                          "name": "premiumAmount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2702,
                          "src": "2800:13:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        {
                          "id": 2718,
                          "name": "sumInsuredAmount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2704,
                          "src": "2828:16:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        {
                          "id": 2719,
                          "name": "metaData",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2706,
                          "src": "2859:8:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes_memory_ptr",
                            "typeString": "bytes memory"
                          }
                        },
                        {
                          "id": 2720,
                          "name": "applicationData",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2708,
                          "src": "2882:15:14",
                          "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": 2714,
                          "name": "_productService",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2531,
                          "src": "2725:15:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IProductService_$5813",
                            "typeString": "contract IProductService"
                          }
                        },
                        "id": 2715,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "newApplication",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 5685,
                        "src": "2725:30:14",
                        "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": 2721,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "2725:173:14",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      }
                    },
                    "src": "2713:185:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "id": 2723,
                  "nodeType": "ExpressionStatement",
                  "src": "2713:185:14"
                }
              ]
            },
            "id": 2725,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_newApplication",
            "nameLocation": "2455:15:14",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2709,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2700,
                  "mutability": "mutable",
                  "name": "applicationOwner",
                  "nameLocation": "2488:16:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2725,
                  "src": "2480:24:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 2699,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2480:7:14",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2702,
                  "mutability": "mutable",
                  "name": "premiumAmount",
                  "nameLocation": "2522:13:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2725,
                  "src": "2514:21:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2701,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2514:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2704,
                  "mutability": "mutable",
                  "name": "sumInsuredAmount",
                  "nameLocation": "2553:16:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2725,
                  "src": "2545:24:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2703,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2545:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2706,
                  "mutability": "mutable",
                  "name": "metaData",
                  "nameLocation": "2592:8:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2725,
                  "src": "2579:21:14",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 2705,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "2579:5:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2708,
                  "mutability": "mutable",
                  "name": "applicationData",
                  "nameLocation": "2624:15:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2725,
                  "src": "2611:28:14",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 2707,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "2611:5:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "2470:176:14"
            },
            "returnParameters": {
              "id": 2712,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2711,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "2688:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2725,
                  "src": "2680:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2710,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "2680:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "2679:19:14"
            },
            "scope": 3139,
            "src": "2446:459:14",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2766,
              "nodeType": "Block",
              "src": "3091:358:14",
              "statements": [
                {
                  "assignments": [
                    2740
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 2740,
                      "mutability": "mutable",
                      "name": "policy",
                      "nameLocation": "3123:6:14",
                      "nodeType": "VariableDeclaration",
                      "scope": 2766,
                      "src": "3101:28:14",
                      "stateVariable": false,
                      "storageLocation": "memory",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Policy_$3807_memory_ptr",
                        "typeString": "struct IPolicy.Policy"
                      },
                      "typeName": {
                        "id": 2739,
                        "nodeType": "UserDefinedTypeName",
                        "pathNode": {
                          "id": 2738,
                          "name": "IPolicy.Policy",
                          "nodeType": "IdentifierPath",
                          "referencedDeclaration": 3807,
                          "src": "3101:14:14"
                        },
                        "referencedDeclaration": 3807,
                        "src": "3101:14:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Policy_$3807_storage_ptr",
                          "typeString": "struct IPolicy.Policy"
                        }
                      },
                      "visibility": "internal"
                    }
                  ],
                  "id": 2744,
                  "initialValue": {
                    "arguments": [
                      {
                        "id": 2742,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2727,
                        "src": "3143:9:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "id": 2741,
                      "name": "_getPolicy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 3070,
                      "src": "3132:10:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_struct$_Policy_$3807_memory_ptr_$",
                        "typeString": "function (bytes32) view returns (struct IPolicy.Policy memory)"
                      }
                    },
                    "id": 2743,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3132:21:14",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Policy_$3807_memory_ptr",
                      "typeString": "struct IPolicy.Policy memory"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "3101:52:14"
                },
                {
                  "condition": {
                    "commonType": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    },
                    "id": 2749,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "expression": {
                        "id": 2745,
                        "name": "policy",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2740,
                        "src": "3168:6:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Policy_$3807_memory_ptr",
                          "typeString": "struct IPolicy.Policy memory"
                        }
                      },
                      "id": 2746,
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "premiumPaidAmount",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 3794,
                      "src": "3168:24:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "<",
                    "rightExpression": {
                      "expression": {
                        "id": 2747,
                        "name": "policy",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2740,
                        "src": "3195:6:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Policy_$3807_memory_ptr",
                          "typeString": "struct IPolicy.Policy memory"
                        }
                      },
                      "id": 2748,
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "premiumExpectedAmount",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 3792,
                      "src": "3195:28:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "3168:55:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 2765,
                  "nodeType": "IfStatement",
                  "src": "3164:279:14",
                  "trueBody": {
                    "id": 2764,
                    "nodeType": "Block",
                    "src": "3225:218:14",
                    "statements": [
                      {
                        "expression": {
                          "id": 2762,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "components": [
                              {
                                "id": 2750,
                                "name": "success",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2730,
                                "src": "3240:7:14",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bool",
                                  "typeString": "bool"
                                }
                              },
                              {
                                "id": 2751,
                                "name": "feeAmount",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2732,
                                "src": "3249:9:14",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              },
                              {
                                "id": 2752,
                                "name": "netAmount",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2734,
                                "src": "3260:9:14",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              }
                            ],
                            "id": 2753,
                            "isConstant": false,
                            "isInlineArray": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": true,
                            "nodeType": "TupleExpression",
                            "src": "3239:31:14",
                            "typeDescriptions": {
                              "typeIdentifier": "t_tuple$_t_bool_$_t_uint256_$_t_uint256_$",
                              "typeString": "tuple(bool,uint256,uint256)"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "arguments": [
                              {
                                "id": 2755,
                                "name": "processId",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 2727,
                                "src": "3327:9:14",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                }
                              },
                              {
                                "commonType": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                },
                                "id": 2760,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftExpression": {
                                  "expression": {
                                    "id": 2756,
                                    "name": "policy",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2740,
                                    "src": "3359:6:14",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_Policy_$3807_memory_ptr",
                                      "typeString": "struct IPolicy.Policy memory"
                                    }
                                  },
                                  "id": 2757,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "premiumExpectedAmount",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 3792,
                                  "src": "3359:28:14",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                "nodeType": "BinaryOperation",
                                "operator": "-",
                                "rightExpression": {
                                  "expression": {
                                    "id": 2758,
                                    "name": "policy",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 2740,
                                    "src": "3390:6:14",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_Policy_$3807_memory_ptr",
                                      "typeString": "struct IPolicy.Policy memory"
                                    }
                                  },
                                  "id": 2759,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "premiumPaidAmount",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 3794,
                                  "src": "3390:24:14",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                "src": "3359:55:14",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                },
                                {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              ],
                              "id": 2754,
                              "name": "_collectPremium",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [
                                2767,
                                2792
                              ],
                              "referencedDeclaration": 2792,
                              "src": "3290:15:14",
                              "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": 2761,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "3290:142:14",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_tuple$_t_bool_$_t_uint256_$_t_uint256_$",
                              "typeString": "tuple(bool,uint256,uint256)"
                            }
                          },
                          "src": "3239:193:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$__$",
                            "typeString": "tuple()"
                          }
                        },
                        "id": 2763,
                        "nodeType": "ExpressionStatement",
                        "src": "3239:193:14"
                      }
                    ]
                  }
                }
              ]
            },
            "id": 2767,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_collectPremium",
            "nameLocation": "2920:15:14",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2728,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2727,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "2944:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2767,
                  "src": "2936:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2726,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "2936:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "2935:19:14"
            },
            "returnParameters": {
              "id": 2735,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2730,
                  "mutability": "mutable",
                  "name": "success",
                  "nameLocation": "3007:7:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2767,
                  "src": "3002:12:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 2729,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "3002:4:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2732,
                  "mutability": "mutable",
                  "name": "feeAmount",
                  "nameLocation": "3036:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2767,
                  "src": "3028:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2731,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3028:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2734,
                  "mutability": "mutable",
                  "name": "netAmount",
                  "nameLocation": "3067:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2767,
                  "src": "3059:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2733,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3059:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "2988:98:14"
            },
            "scope": 3139,
            "src": "2911:538:14",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2791,
              "nodeType": "Block",
              "src": "3672:100:14",
              "statements": [
                {
                  "expression": {
                    "id": 2789,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "components": [
                        {
                          "id": 2780,
                          "name": "success",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2774,
                          "src": "3683:7:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        {
                          "id": 2781,
                          "name": "feeAmount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2776,
                          "src": "3692:9:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        {
                          "id": 2782,
                          "name": "netAmount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2778,
                          "src": "3703:9:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        }
                      ],
                      "id": 2783,
                      "isConstant": false,
                      "isInlineArray": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "nodeType": "TupleExpression",
                      "src": "3682:31:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_tuple$_t_bool_$_t_uint256_$_t_uint256_$",
                        "typeString": "tuple(bool,uint256,uint256)"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 2786,
                          "name": "processId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2769,
                          "src": "3747:9:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        {
                          "id": 2787,
                          "name": "amount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2771,
                          "src": "3758:6:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          },
                          {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        ],
                        "expression": {
                          "id": 2784,
                          "name": "_productService",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2531,
                          "src": "3716:15:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IProductService_$5813",
                            "typeString": "contract IProductService"
                          }
                        },
                        "id": 2785,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "collectPremium",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 5698,
                        "src": "3716:30:14",
                        "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": 2788,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "3716:49:14",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_tuple$_t_bool_$_t_uint256_$_t_uint256_$",
                        "typeString": "tuple(bool,uint256,uint256)"
                      }
                    },
                    "src": "3682:83:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2790,
                  "nodeType": "ExpressionStatement",
                  "src": "3682:83:14"
                }
              ]
            },
            "id": 2792,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_collectPremium",
            "nameLocation": "3464:15:14",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2772,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2769,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "3497:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2792,
                  "src": "3489:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2768,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "3489:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2771,
                  "mutability": "mutable",
                  "name": "amount",
                  "nameLocation": "3524:6:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2792,
                  "src": "3516:14:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2770,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3516:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "3479:57:14"
            },
            "returnParameters": {
              "id": 2779,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2774,
                  "mutability": "mutable",
                  "name": "success",
                  "nameLocation": "3588:7:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2792,
                  "src": "3583:12:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 2773,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "3583:4:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2776,
                  "mutability": "mutable",
                  "name": "feeAmount",
                  "nameLocation": "3617:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2792,
                  "src": "3609:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2775,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3609:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2778,
                  "mutability": "mutable",
                  "name": "netAmount",
                  "nameLocation": "3648:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2792,
                  "src": "3640:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2777,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3640:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "3569:98:14"
            },
            "scope": 3139,
            "src": "3455:317:14",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2809,
              "nodeType": "Block",
              "src": "3927:108:14",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 2804,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2794,
                        "src": "3977:9:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "id": 2805,
                        "name": "expectedPremiumAmount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2796,
                        "src": "3988:21:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "id": 2806,
                        "name": "sumInsuredAmount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2798,
                        "src": "4011:16:14",
                        "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": 2801,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2531,
                        "src": "3937:15:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$5813",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 2803,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "adjustPremiumSumInsured",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 5707,
                      "src": "3937:39:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$_t_uint256_$_t_uint256_$returns$__$",
                        "typeString": "function (bytes32,uint256,uint256) external"
                      }
                    },
                    "id": 2807,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3937:91:14",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2808,
                  "nodeType": "ExpressionStatement",
                  "src": "3937:91:14"
                }
              ]
            },
            "id": 2810,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_adjustPremiumSumInsured",
            "nameLocation": "3787:24:14",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2799,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2794,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "3829:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2810,
                  "src": "3821:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2793,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "3821:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2796,
                  "mutability": "mutable",
                  "name": "expectedPremiumAmount",
                  "nameLocation": "3856:21:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2810,
                  "src": "3848:29:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2795,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3848:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2798,
                  "mutability": "mutable",
                  "name": "sumInsuredAmount",
                  "nameLocation": "3895:16:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2810,
                  "src": "3887:24:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2797,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3887:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "3811:106:14"
            },
            "returnParameters": {
              "id": 2800,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3927:0:14"
            },
            "scope": 3139,
            "src": "3778:257:14",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2821,
              "nodeType": "Block",
              "src": "4086:50:14",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 2818,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2812,
                        "src": "4119:9:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "id": 2815,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2531,
                        "src": "4096:15:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$5813",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 2817,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "revoke",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 5712,
                      "src": "4096:22:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$returns$__$",
                        "typeString": "function (bytes32) external"
                      }
                    },
                    "id": 2819,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "4096:33:14",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2820,
                  "nodeType": "ExpressionStatement",
                  "src": "4096:33:14"
                }
              ]
            },
            "id": 2822,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_revoke",
            "nameLocation": "4050:7:14",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2813,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2812,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "4066:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2822,
                  "src": "4058:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2811,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4058:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4057:19:14"
            },
            "returnParameters": {
              "id": 2814,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "4086:0:14"
            },
            "scope": 3139,
            "src": "4041:95:14",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2836,
              "nodeType": "Block",
              "src": "4213:64:14",
              "statements": [
                {
                  "expression": {
                    "id": 2834,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 2829,
                      "name": "success",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2827,
                      "src": "4223:7:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 2832,
                          "name": "processId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2824,
                          "src": "4260:9:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        ],
                        "expression": {
                          "id": 2830,
                          "name": "_productService",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2531,
                          "src": "4233:15:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IProductService_$5813",
                            "typeString": "contract IProductService"
                          }
                        },
                        "id": 2831,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "underwrite",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 5719,
                        "src": "4233:26:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$returns$_t_bool_$",
                          "typeString": "function (bytes32) external returns (bool)"
                        }
                      },
                      "id": 2833,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "4233:37:14",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "src": "4223:47:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 2835,
                  "nodeType": "ExpressionStatement",
                  "src": "4223:47:14"
                }
              ]
            },
            "id": 2837,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_underwrite",
            "nameLocation": "4151:11:14",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2825,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2824,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "4171:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2837,
                  "src": "4163:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2823,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4163:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4162:19:14"
            },
            "returnParameters": {
              "id": 2828,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2827,
                  "mutability": "mutable",
                  "name": "success",
                  "nameLocation": "4204:7:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2837,
                  "src": "4199:12:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 2826,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "4199:4:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4198:14:14"
            },
            "scope": 3139,
            "src": "4142:135:14",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2848,
              "nodeType": "Block",
              "src": "4329:51:14",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 2845,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2839,
                        "src": "4363:9:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "id": 2842,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2531,
                        "src": "4339:15:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$5813",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 2844,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "decline",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 5724,
                      "src": "4339:23:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$returns$__$",
                        "typeString": "function (bytes32) external"
                      }
                    },
                    "id": 2846,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "4339:34:14",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2847,
                  "nodeType": "ExpressionStatement",
                  "src": "4339:34:14"
                }
              ]
            },
            "id": 2849,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_decline",
            "nameLocation": "4292:8:14",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2840,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2839,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "4309:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2849,
                  "src": "4301:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2838,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4301:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4300:19:14"
            },
            "returnParameters": {
              "id": 2841,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "4329:0:14"
            },
            "scope": 3139,
            "src": "4283:97:14",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2860,
              "nodeType": "Block",
              "src": "4431:50:14",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 2857,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2851,
                        "src": "4464:9:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "id": 2854,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2531,
                        "src": "4441:15:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$5813",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 2856,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "expire",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 5729,
                      "src": "4441:22:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$returns$__$",
                        "typeString": "function (bytes32) external"
                      }
                    },
                    "id": 2858,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "4441:33:14",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2859,
                  "nodeType": "ExpressionStatement",
                  "src": "4441:33:14"
                }
              ]
            },
            "id": 2861,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_expire",
            "nameLocation": "4395:7:14",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2852,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2851,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "4411:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2861,
                  "src": "4403:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2850,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4403:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4402:19:14"
            },
            "returnParameters": {
              "id": 2853,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "4431:0:14"
            },
            "scope": 3139,
            "src": "4386:95:14",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2872,
              "nodeType": "Block",
              "src": "4531:49:14",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 2869,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2863,
                        "src": "4563:9:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "id": 2866,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2531,
                        "src": "4541:15:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$5813",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 2868,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "close",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 5734,
                      "src": "4541:21:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$returns$__$",
                        "typeString": "function (bytes32) external"
                      }
                    },
                    "id": 2870,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "4541:32:14",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2871,
                  "nodeType": "ExpressionStatement",
                  "src": "4541:32:14"
                }
              ]
            },
            "id": 2873,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_close",
            "nameLocation": "4496:6:14",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2864,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2863,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "4511:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2873,
                  "src": "4503:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2862,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4503:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4502:19:14"
            },
            "returnParameters": {
              "id": 2865,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "4531:0:14"
            },
            "scope": 3139,
            "src": "4487:93:14",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2893,
              "nodeType": "Block",
              "src": "4751:120:14",
              "statements": [
                {
                  "expression": {
                    "id": 2891,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 2884,
                      "name": "claimId",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2882,
                      "src": "4761:7:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 2887,
                          "name": "processId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2875,
                          "src": "4809:9:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        {
                          "id": 2888,
                          "name": "claimAmount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2877,
                          "src": "4833:11:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        {
                          "id": 2889,
                          "name": "data",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2879,
                          "src": "4859:4:14",
                          "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": 2885,
                          "name": "_productService",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2531,
                          "src": "4771:15:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IProductService_$5813",
                            "typeString": "contract IProductService"
                          }
                        },
                        "id": 2886,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "newClaim",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 5745,
                        "src": "4771:24:14",
                        "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": 2890,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "4771:93:14",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "4761:103:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "id": 2892,
                  "nodeType": "ExpressionStatement",
                  "src": "4761:103:14"
                }
              ]
            },
            "id": 2894,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_newClaim",
            "nameLocation": "4595:9:14",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2880,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2875,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "4622:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2894,
                  "src": "4614:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2874,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4614:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2877,
                  "mutability": "mutable",
                  "name": "claimAmount",
                  "nameLocation": "4650:11:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2894,
                  "src": "4642:19:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2876,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "4642:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2879,
                  "mutability": "mutable",
                  "name": "data",
                  "nameLocation": "4684:4:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2894,
                  "src": "4671:17:14",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 2878,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "4671:5:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4604:90:14"
            },
            "returnParameters": {
              "id": 2883,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2882,
                  "mutability": "mutable",
                  "name": "claimId",
                  "nameLocation": "4738:7:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2894,
                  "src": "4730:15:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2881,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "4730:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4729:17:14"
            },
            "scope": 3139,
            "src": "4586:285:14",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2911,
              "nodeType": "Block",
              "src": "5009:118:14",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 2906,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2896,
                        "src": "5061:9:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "id": 2907,
                        "name": "claimId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2898,
                        "src": "5085:7:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "id": 2908,
                        "name": "payoutAmount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2900,
                        "src": "5107:12:14",
                        "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": 2903,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2531,
                        "src": "5019:15:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$5813",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 2905,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "confirmClaim",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 5754,
                      "src": "5019:28:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$_t_uint256_$_t_uint256_$returns$__$",
                        "typeString": "function (bytes32,uint256,uint256) external"
                      }
                    },
                    "id": 2909,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "5019:101:14",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2910,
                  "nodeType": "ExpressionStatement",
                  "src": "5019:101:14"
                }
              ]
            },
            "id": 2912,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_confirmClaim",
            "nameLocation": "4886:13:14",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2901,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2896,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "4917:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2912,
                  "src": "4909:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2895,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4909:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2898,
                  "mutability": "mutable",
                  "name": "claimId",
                  "nameLocation": "4944:7:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2912,
                  "src": "4936:15:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2897,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "4936:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2900,
                  "mutability": "mutable",
                  "name": "payoutAmount",
                  "nameLocation": "4969:12:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2912,
                  "src": "4961:20:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2899,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "4961:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4899:88:14"
            },
            "returnParameters": {
              "id": 2902,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "5009:0:14"
            },
            "scope": 3139,
            "src": "4877:250:14",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2926,
              "nodeType": "Block",
              "src": "5201:65:14",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 2922,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2914,
                        "src": "5240:9:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "id": 2923,
                        "name": "claimId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2916,
                        "src": "5251:7:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "id": 2919,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2531,
                        "src": "5211:15:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$5813",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 2921,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "declineClaim",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 5761,
                      "src": "5211:28:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$_t_uint256_$returns$__$",
                        "typeString": "function (bytes32,uint256) external"
                      }
                    },
                    "id": 2924,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "5211:48:14",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2925,
                  "nodeType": "ExpressionStatement",
                  "src": "5211:48:14"
                }
              ]
            },
            "id": 2927,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_declineClaim",
            "nameLocation": "5142:13:14",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2917,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2914,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "5164:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2927,
                  "src": "5156:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2913,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "5156:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2916,
                  "mutability": "mutable",
                  "name": "claimId",
                  "nameLocation": "5183:7:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2927,
                  "src": "5175:15:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2915,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5175:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "5155:36:14"
            },
            "returnParameters": {
              "id": 2918,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "5201:0:14"
            },
            "scope": 3139,
            "src": "5133:133:14",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2941,
              "nodeType": "Block",
              "src": "5338:63:14",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 2937,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2929,
                        "src": "5375:9:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "id": 2938,
                        "name": "claimId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2931,
                        "src": "5386:7:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "id": 2934,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2531,
                        "src": "5348:15:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$5813",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 2936,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "closeClaim",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 5768,
                      "src": "5348:26:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$_t_uint256_$returns$__$",
                        "typeString": "function (bytes32,uint256) external"
                      }
                    },
                    "id": 2939,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "5348:46:14",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2940,
                  "nodeType": "ExpressionStatement",
                  "src": "5348:46:14"
                }
              ]
            },
            "id": 2942,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_closeClaim",
            "nameLocation": "5281:11:14",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2932,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2929,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "5301:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2942,
                  "src": "5293:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2928,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "5293:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2931,
                  "mutability": "mutable",
                  "name": "claimId",
                  "nameLocation": "5320:7:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2942,
                  "src": "5312:15:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2930,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5312:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "5292:36:14"
            },
            "returnParameters": {
              "id": 2933,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "5338:0:14"
            },
            "scope": 3139,
            "src": "5272:129:14",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2965,
              "nodeType": "Block",
              "src": "5591:87:14",
              "statements": [
                {
                  "expression": {
                    "id": 2963,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 2955,
                      "name": "payoutId",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2953,
                      "src": "5601:8:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 2958,
                          "name": "processId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2944,
                          "src": "5638:9:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        {
                          "id": 2959,
                          "name": "claimId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2946,
                          "src": "5649:7:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        {
                          "id": 2960,
                          "name": "amount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2948,
                          "src": "5658:6:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        {
                          "id": 2961,
                          "name": "data",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2950,
                          "src": "5666:4:14",
                          "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": 2956,
                          "name": "_productService",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2531,
                          "src": "5612:15:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IProductService_$5813",
                            "typeString": "contract IProductService"
                          }
                        },
                        "id": 2957,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "newPayout",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 5781,
                        "src": "5612:25:14",
                        "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": 2962,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "5612:59:14",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "5601:70:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "id": 2964,
                  "nodeType": "ExpressionStatement",
                  "src": "5601:70:14"
                }
              ]
            },
            "id": 2966,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_newPayout",
            "nameLocation": "5416:10:14",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2951,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2944,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "5444:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2966,
                  "src": "5436:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2943,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "5436:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2946,
                  "mutability": "mutable",
                  "name": "claimId",
                  "nameLocation": "5471:7:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2966,
                  "src": "5463:15:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2945,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5463:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2948,
                  "mutability": "mutable",
                  "name": "amount",
                  "nameLocation": "5496:6:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2966,
                  "src": "5488:14:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2947,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5488:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2950,
                  "mutability": "mutable",
                  "name": "data",
                  "nameLocation": "5525:4:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2966,
                  "src": "5512:17:14",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 2949,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "5512:5:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "5426:109:14"
            },
            "returnParameters": {
              "id": 2954,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2953,
                  "mutability": "mutable",
                  "name": "payoutId",
                  "nameLocation": "5577:8:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2966,
                  "src": "5569:16:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2952,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5569:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "5568:18:14"
            },
            "scope": 3139,
            "src": "5407:271:14",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 2987,
              "nodeType": "Block",
              "src": "5882:132:14",
              "statements": [
                {
                  "expression": {
                    "id": 2985,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "components": [
                        {
                          "id": 2977,
                          "name": "feeAmount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2973,
                          "src": "5906:9:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        {
                          "id": 2978,
                          "name": "netPayoutAmount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2975,
                          "src": "5929:15:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        }
                      ],
                      "id": 2979,
                      "isConstant": false,
                      "isInlineArray": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "nodeType": "TupleExpression",
                      "src": "5892:62:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
                        "typeString": "tuple(uint256,uint256)"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 2982,
                          "name": "processId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2968,
                          "src": "5987:9:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        {
                          "id": 2983,
                          "name": "payoutId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2970,
                          "src": "5998:8:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          },
                          {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        ],
                        "expression": {
                          "id": 2980,
                          "name": "_productService",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2531,
                          "src": "5957:15:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IProductService_$5813",
                            "typeString": "contract IProductService"
                          }
                        },
                        "id": 2981,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "processPayout",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 5792,
                        "src": "5957:29:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$_t_uint256_$returns$_t_uint256_$_t_uint256_$",
                          "typeString": "function (bytes32,uint256) external returns (uint256,uint256)"
                        }
                      },
                      "id": 2984,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "5957:50:14",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
                        "typeString": "tuple(uint256,uint256)"
                      }
                    },
                    "src": "5892:115:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 2986,
                  "nodeType": "ExpressionStatement",
                  "src": "5892:115:14"
                }
              ]
            },
            "id": 2988,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_processPayout",
            "nameLocation": "5693:14:14",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2971,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2968,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "5725:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2988,
                  "src": "5717:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2967,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "5717:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2970,
                  "mutability": "mutable",
                  "name": "payoutId",
                  "nameLocation": "5752:8:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2988,
                  "src": "5744:16:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2969,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5744:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "5707:59:14"
            },
            "returnParameters": {
              "id": 2976,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2973,
                  "mutability": "mutable",
                  "name": "feeAmount",
                  "nameLocation": "5821:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2988,
                  "src": "5813:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2972,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5813:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2975,
                  "mutability": "mutable",
                  "name": "netPayoutAmount",
                  "nameLocation": "5852:15:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 2988,
                  "src": "5844:23:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2974,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5844:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "5799:78:14"
            },
            "scope": 3139,
            "src": "5684:330:14",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 3015,
              "nodeType": "Block",
              "src": "6235:196:14",
              "statements": [
                {
                  "expression": {
                    "id": 3013,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 3001,
                      "name": "requestId",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 2999,
                      "src": "6245:9:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 3004,
                          "name": "processId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2990,
                          "src": "6294:9:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        {
                          "id": 3005,
                          "name": "input",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2992,
                          "src": "6317:5:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes_memory_ptr",
                            "typeString": "bytes memory"
                          }
                        },
                        {
                          "id": 3006,
                          "name": "callbackMethodName",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2994,
                          "src": "6336:18:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_string_memory_ptr",
                            "typeString": "string memory"
                          }
                        },
                        {
                          "arguments": [
                            {
                              "id": 3009,
                              "name": "this",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -28,
                              "src": "6376:4:14",
                              "typeDescriptions": {
                                "typeIdentifier": "t_contract$_Product_$3139",
                                "typeString": "contract Product"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_contract$_Product_$3139",
                                "typeString": "contract Product"
                              }
                            ],
                            "id": 3008,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "6368:7:14",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_address_$",
                              "typeString": "type(address)"
                            },
                            "typeName": {
                              "id": 3007,
                              "name": "address",
                              "nodeType": "ElementaryTypeName",
                              "src": "6368:7:14",
                              "typeDescriptions": {}
                            }
                          },
                          "id": 3010,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "6368:13:14",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        {
                          "id": 3011,
                          "name": "responsibleOracleId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2996,
                          "src": "6395:19:14",
                          "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": 3002,
                          "name": "_productService",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 2531,
                          "src": "6257:15:14",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IProductService_$5813",
                            "typeString": "contract IProductService"
                          }
                        },
                        "id": 3003,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "request",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 5807,
                        "src": "6257:23:14",
                        "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": 3012,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "6257:167:14",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "6245:179:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "id": 3014,
                  "nodeType": "ExpressionStatement",
                  "src": "6245:179:14"
                }
              ]
            },
            "id": 3016,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_request",
            "nameLocation": "6029:8:14",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 2997,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2990,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "6055:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 3016,
                  "src": "6047:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 2989,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "6047:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2992,
                  "mutability": "mutable",
                  "name": "input",
                  "nameLocation": "6087:5:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 3016,
                  "src": "6074:18:14",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 2991,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "6074:5:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2994,
                  "mutability": "mutable",
                  "name": "callbackMethodName",
                  "nameLocation": "6116:18:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 3016,
                  "src": "6102:32:14",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_string_memory_ptr",
                    "typeString": "string"
                  },
                  "typeName": {
                    "id": 2993,
                    "name": "string",
                    "nodeType": "ElementaryTypeName",
                    "src": "6102:6:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_string_storage_ptr",
                      "typeString": "string"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 2996,
                  "mutability": "mutable",
                  "name": "responsibleOracleId",
                  "nameLocation": "6152:19:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 3016,
                  "src": "6144:27:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2995,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "6144:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6037:140:14"
            },
            "returnParameters": {
              "id": 3000,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 2999,
                  "mutability": "mutable",
                  "name": "requestId",
                  "nameLocation": "6220:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 3016,
                  "src": "6212:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 2998,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "6212:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6211:19:14"
            },
            "scope": 3139,
            "src": "6020:411:14",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 3027,
              "nodeType": "Block",
              "src": "6501:57:14",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 3024,
                        "name": "requestId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3018,
                        "src": "6541:9:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "id": 3021,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2531,
                        "src": "6511:15:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$5813",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 3023,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "cancelRequest",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 5812,
                      "src": "6511:29:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$",
                        "typeString": "function (uint256) external"
                      }
                    },
                    "id": 3025,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "6511:40:14",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 3026,
                  "nodeType": "ExpressionStatement",
                  "src": "6511:40:14"
                }
              ]
            },
            "id": 3028,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_cancelRequest",
            "nameLocation": "6446:14:14",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3019,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3018,
                  "mutability": "mutable",
                  "name": "requestId",
                  "nameLocation": "6469:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 3028,
                  "src": "6461:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 3017,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "6461:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6460:19:14"
            },
            "returnParameters": {
              "id": 3020,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "6501:0:14"
            },
            "scope": 3139,
            "src": "6437:121:14",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 3041,
              "nodeType": "Block",
              "src": "6694:63:14",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 3038,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3030,
                        "src": "6740:9:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "id": 3036,
                        "name": "_instanceService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2534,
                        "src": "6711:16:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IInstanceService_$5668",
                          "typeString": "contract IInstanceService"
                        }
                      },
                      "id": 3037,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "getMetadata",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 5587,
                      "src": "6711:28:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_view$_t_bytes32_$returns$_t_struct$_Metadata_$3773_memory_ptr_$",
                        "typeString": "function (bytes32) view external returns (struct IPolicy.Metadata memory)"
                      }
                    },
                    "id": 3039,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "6711:39:14",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Metadata_$3773_memory_ptr",
                      "typeString": "struct IPolicy.Metadata memory"
                    }
                  },
                  "functionReturnParameters": 3035,
                  "id": 3040,
                  "nodeType": "Return",
                  "src": "6704:46:14"
                }
              ]
            },
            "id": 3042,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_getMetadata",
            "nameLocation": "6573:12:14",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3031,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3030,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "6594:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 3042,
                  "src": "6586:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 3029,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "6586:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6585:19:14"
            },
            "returnParameters": {
              "id": 3035,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3034,
                  "mutability": "mutable",
                  "name": "metadata",
                  "nameLocation": "6679:8:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 3042,
                  "src": "6655:32:14",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_Metadata_$3773_memory_ptr",
                    "typeString": "struct IPolicy.Metadata"
                  },
                  "typeName": {
                    "id": 3033,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 3032,
                      "name": "IPolicy.Metadata",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 3773,
                      "src": "6655:16:14"
                    },
                    "referencedDeclaration": 3773,
                    "src": "6655:16:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Metadata_$3773_storage_ptr",
                      "typeString": "struct IPolicy.Metadata"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6654:34:14"
            },
            "scope": 3139,
            "src": "6564:193:14",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 3055,
              "nodeType": "Block",
              "src": "6902:66:14",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 3052,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3044,
                        "src": "6951:9:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "id": 3050,
                        "name": "_instanceService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2534,
                        "src": "6919:16:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IInstanceService_$5668",
                          "typeString": "contract IInstanceService"
                        }
                      },
                      "id": 3051,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "getApplication",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 5595,
                      "src": "6919:31:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_view$_t_bytes32_$returns$_t_struct$_Application_$3787_memory_ptr_$",
                        "typeString": "function (bytes32) view external returns (struct IPolicy.Application memory)"
                      }
                    },
                    "id": 3053,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "6919:42:14",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Application_$3787_memory_ptr",
                      "typeString": "struct IPolicy.Application memory"
                    }
                  },
                  "functionReturnParameters": 3049,
                  "id": 3054,
                  "nodeType": "Return",
                  "src": "6912:49:14"
                }
              ]
            },
            "id": 3056,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_getApplication",
            "nameLocation": "6772:15:14",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3045,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3044,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "6796:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 3056,
                  "src": "6788:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 3043,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "6788:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6787:19:14"
            },
            "returnParameters": {
              "id": 3049,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3048,
                  "mutability": "mutable",
                  "name": "application",
                  "nameLocation": "6884:11:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 3056,
                  "src": "6857:38:14",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_Application_$3787_memory_ptr",
                    "typeString": "struct IPolicy.Application"
                  },
                  "typeName": {
                    "id": 3047,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 3046,
                      "name": "IPolicy.Application",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 3787,
                      "src": "6857:19:14"
                    },
                    "referencedDeclaration": 3787,
                    "src": "6857:19:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Application_$3787_storage_ptr",
                      "typeString": "struct IPolicy.Application"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6856:40:14"
            },
            "scope": 3139,
            "src": "6763:205:14",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 3069,
              "nodeType": "Block",
              "src": "7098:61:14",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 3066,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3058,
                        "src": "7142:9:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "id": 3064,
                        "name": "_instanceService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2534,
                        "src": "7115:16:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IInstanceService_$5668",
                          "typeString": "contract IInstanceService"
                        }
                      },
                      "id": 3065,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "getPolicy",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 5603,
                      "src": "7115:26:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_view$_t_bytes32_$returns$_t_struct$_Policy_$3807_memory_ptr_$",
                        "typeString": "function (bytes32) view external returns (struct IPolicy.Policy memory)"
                      }
                    },
                    "id": 3067,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "7115:37:14",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Policy_$3807_memory_ptr",
                      "typeString": "struct IPolicy.Policy memory"
                    }
                  },
                  "functionReturnParameters": 3063,
                  "id": 3068,
                  "nodeType": "Return",
                  "src": "7108:44:14"
                }
              ]
            },
            "id": 3070,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_getPolicy",
            "nameLocation": "6983:10:14",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3059,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3058,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "7002:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 3070,
                  "src": "6994:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 3057,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "6994:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6993:19:14"
            },
            "returnParameters": {
              "id": 3063,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3062,
                  "mutability": "mutable",
                  "name": "policy",
                  "nameLocation": "7085:6:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 3070,
                  "src": "7063:28:14",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_Policy_$3807_memory_ptr",
                    "typeString": "struct IPolicy.Policy"
                  },
                  "typeName": {
                    "id": 3061,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 3060,
                      "name": "IPolicy.Policy",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 3807,
                      "src": "7063:14:14"
                    },
                    "referencedDeclaration": 3807,
                    "src": "7063:14:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Policy_$3807_storage_ptr",
                      "typeString": "struct IPolicy.Policy"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7062:30:14"
            },
            "scope": 3139,
            "src": "6974:185:14",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 3086,
              "nodeType": "Block",
              "src": "7303:69:14",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 3082,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3072,
                        "src": "7346:9:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "id": 3083,
                        "name": "claimId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3074,
                        "src": "7357:7:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "id": 3080,
                        "name": "_instanceService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2534,
                        "src": "7320:16:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IInstanceService_$5668",
                          "typeString": "contract IInstanceService"
                        }
                      },
                      "id": 3081,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "getClaim",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 5627,
                      "src": "7320:25:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_view$_t_bytes32_$_t_uint256_$returns$_t_struct$_Claim_$3821_memory_ptr_$",
                        "typeString": "function (bytes32,uint256) view external returns (struct IPolicy.Claim memory)"
                      }
                    },
                    "id": 3084,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "7320:45:14",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Claim_$3821_memory_ptr",
                      "typeString": "struct IPolicy.Claim memory"
                    }
                  },
                  "functionReturnParameters": 3079,
                  "id": 3085,
                  "nodeType": "Return",
                  "src": "7313:52:14"
                }
              ]
            },
            "id": 3087,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_getClaim",
            "nameLocation": "7174:9:14",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3075,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3072,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "7192:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 3087,
                  "src": "7184:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 3071,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "7184:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3074,
                  "mutability": "mutable",
                  "name": "claimId",
                  "nameLocation": "7211:7:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 3087,
                  "src": "7203:15:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 3073,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "7203:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7183:36:14"
            },
            "returnParameters": {
              "id": 3079,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3078,
                  "mutability": "mutable",
                  "name": "claim",
                  "nameLocation": "7291:5:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 3087,
                  "src": "7270:26:14",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_Claim_$3821_memory_ptr",
                    "typeString": "struct IPolicy.Claim"
                  },
                  "typeName": {
                    "id": 3077,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 3076,
                      "name": "IPolicy.Claim",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 3821,
                      "src": "7270:13:14"
                    },
                    "referencedDeclaration": 3821,
                    "src": "7270:13:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Claim_$3821_storage_ptr",
                      "typeString": "struct IPolicy.Claim"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7269:28:14"
            },
            "scope": 3139,
            "src": "7165:207:14",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 3103,
              "nodeType": "Block",
              "src": "7520:71:14",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 3099,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3089,
                        "src": "7564:9:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "id": 3100,
                        "name": "payoutId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 3091,
                        "src": "7575:8:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "id": 3097,
                        "name": "_instanceService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 2534,
                        "src": "7537:16:14",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IInstanceService_$5668",
                          "typeString": "contract IInstanceService"
                        }
                      },
                      "id": 3098,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "getPayout",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 5637,
                      "src": "7537:26:14",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_view$_t_bytes32_$_t_uint256_$returns$_t_struct$_Payout_$3835_memory_ptr_$",
                        "typeString": "function (bytes32,uint256) view external returns (struct IPolicy.Payout memory)"
                      }
                    },
                    "id": 3101,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "7537:47:14",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Payout_$3835_memory_ptr",
                      "typeString": "struct IPolicy.Payout memory"
                    }
                  },
                  "functionReturnParameters": 3096,
                  "id": 3102,
                  "nodeType": "Return",
                  "src": "7530:54:14"
                }
              ]
            },
            "id": 3104,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_getPayout",
            "nameLocation": "7387:10:14",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 3092,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3089,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "7406:9:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 3104,
                  "src": "7398:17:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 3088,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "7398:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 3091,
                  "mutability": "mutable",
                  "name": "payoutId",
                  "nameLocation": "7425:8:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 3104,
                  "src": "7417:16:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 3090,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "7417:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7397:37:14"
            },
            "returnParameters": {
              "id": 3096,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3095,
                  "mutability": "mutable",
                  "name": "payout",
                  "nameLocation": "7507:6:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 3104,
                  "src": "7485:28:14",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_Payout_$3835_memory_ptr",
                    "typeString": "struct IPolicy.Payout"
                  },
                  "typeName": {
                    "id": 3094,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 3093,
                      "name": "IPolicy.Payout",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 3835,
                      "src": "7485:14:14"
                    },
                    "referencedDeclaration": 3835,
                    "src": "7485:14:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Payout_$3835_storage_ptr",
                      "typeString": "struct IPolicy.Payout"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7484:30:14"
            },
            "scope": 3139,
            "src": "7378:213:14",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "baseFunctions": [
              5303
            ],
            "body": {
              "id": 3112,
              "nodeType": "Block",
              "src": "7704:26:14",
              "statements": [
                {
                  "expression": {
                    "hexValue": "",
                    "id": 3110,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "7721:2:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
                      "typeString": "literal_string \"\""
                    },
                    "value": ""
                  },
                  "functionReturnParameters": 3109,
                  "id": 3111,
                  "nodeType": "Return",
                  "src": "7714:9:14"
                }
              ]
            },
            "functionSelector": "94f64ff4",
            "id": 3113,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getApplicationDataStructure",
            "nameLocation": "7606:27:14",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 3106,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "7645:8:14"
            },
            "parameters": {
              "id": 3105,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "7633:2:14"
            },
            "returnParameters": {
              "id": 3109,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3108,
                  "mutability": "mutable",
                  "name": "dataStructure",
                  "nameLocation": "7689:13:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 3113,
                  "src": "7675:27:14",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_string_memory_ptr",
                    "typeString": "string"
                  },
                  "typeName": {
                    "id": 3107,
                    "name": "string",
                    "nodeType": "ElementaryTypeName",
                    "src": "7675:6:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_string_storage_ptr",
                      "typeString": "string"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7674:29:14"
            },
            "scope": 3139,
            "src": "7597:133:14",
            "stateMutability": "view",
            "virtual": true,
            "visibility": "external"
          },
          {
            "baseFunctions": [
              5308
            ],
            "body": {
              "id": 3121,
              "nodeType": "Block",
              "src": "7837:26:14",
              "statements": [
                {
                  "expression": {
                    "hexValue": "",
                    "id": 3119,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "7854:2:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
                      "typeString": "literal_string \"\""
                    },
                    "value": ""
                  },
                  "functionReturnParameters": 3118,
                  "id": 3120,
                  "nodeType": "Return",
                  "src": "7847:9:14"
                }
              ]
            },
            "functionSelector": "3ec92bda",
            "id": 3122,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getClaimDataStructure",
            "nameLocation": "7745:21:14",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 3115,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "7778:8:14"
            },
            "parameters": {
              "id": 3114,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "7766:2:14"
            },
            "returnParameters": {
              "id": 3118,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3117,
                  "mutability": "mutable",
                  "name": "dataStructure",
                  "nameLocation": "7822:13:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 3122,
                  "src": "7808:27:14",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_string_memory_ptr",
                    "typeString": "string"
                  },
                  "typeName": {
                    "id": 3116,
                    "name": "string",
                    "nodeType": "ElementaryTypeName",
                    "src": "7808:6:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_string_storage_ptr",
                      "typeString": "string"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7807:29:14"
            },
            "scope": 3139,
            "src": "7736:127:14",
            "stateMutability": "view",
            "virtual": true,
            "visibility": "external"
          },
          {
            "baseFunctions": [
              5313
            ],
            "body": {
              "id": 3130,
              "nodeType": "Block",
              "src": "7974:26:14",
              "statements": [
                {
                  "expression": {
                    "hexValue": "",
                    "id": 3128,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "7991:2:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
                      "typeString": "literal_string \"\""
                    },
                    "value": ""
                  },
                  "functionReturnParameters": 3127,
                  "id": 3129,
                  "nodeType": "Return",
                  "src": "7984:9:14"
                }
              ]
            },
            "functionSelector": "39cf5e16",
            "id": 3131,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getPayoutDataStructure",
            "nameLocation": "7881:22:14",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 3124,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "7915:8:14"
            },
            "parameters": {
              "id": 3123,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "7903:2:14"
            },
            "returnParameters": {
              "id": 3127,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3126,
                  "mutability": "mutable",
                  "name": "dataStructure",
                  "nameLocation": "7959:13:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 3131,
                  "src": "7945:27:14",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_string_memory_ptr",
                    "typeString": "string"
                  },
                  "typeName": {
                    "id": 3125,
                    "name": "string",
                    "nodeType": "ElementaryTypeName",
                    "src": "7945:6:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_string_storage_ptr",
                      "typeString": "string"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7944:29:14"
            },
            "scope": 3139,
            "src": "7872:128:14",
            "stateMutability": "view",
            "virtual": true,
            "visibility": "external"
          },
          {
            "baseFunctions": [
              5318
            ],
            "body": {
              "id": 3137,
              "nodeType": "Block",
              "src": "8084:3:14",
              "statements": []
            },
            "functionSelector": "f4fdc1fa",
            "id": 3138,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "riskPoolCapacityCallback",
            "nameLocation": "8015:24:14",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 3135,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "8067:8:14"
            },
            "parameters": {
              "id": 3134,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 3133,
                  "mutability": "mutable",
                  "name": "capacity",
                  "nameLocation": "8048:8:14",
                  "nodeType": "VariableDeclaration",
                  "scope": 3138,
                  "src": "8040:16:14",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 3132,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "8040:7:14",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "8039:18:14"
            },
            "returnParameters": {
              "id": 3136,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "8084:0:14"
            },
            "scope": 3139,
            "src": "8006:81:14",
            "stateMutability": "nonpayable",
            "virtual": true,
            "visibility": "external"
          }
        ],
        "scope": 3140,
        "src": "233:7856:14"
      }
    ],
    "src": "39:8051:14"
  },
  "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.8.2/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.8.2/IERC165",
    "OpenZeppelin/openzeppelin-contracts@4.8.2/IERC20",
    "OpenZeppelin/openzeppelin-contracts@4.8.2/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.8.2/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/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/Product.sol",
  "type": "contract"
}