{
  "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/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/access/Ownable.sol",
    "1": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC20/IERC20.sol",
    "12": "contracts/components/Product.sol",
    "14": "contracts/modules/IAccess.sol",
    "16": "contracts/modules/IComponentEvents.sol",
    "2": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC721/IERC721.sol",
    "21": "contracts/modules/IRegistry.sol",
    "23": "contracts/services/IComponentOwnerService.sol",
    "24": "contracts/services/IInstanceOperatorService.sol",
    "25": "contracts/services/IInstanceService.sol",
    "26": "contracts/services/IOracleService.sol",
    "27": "contracts/services/IProductService.sol",
    "28": "contracts/services/IRiskpoolService.sol",
    "3": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/utils/Context.sol",
    "30": "contracts/tokens/IBundleToken.sol",
    "4": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/utils/introspection/IERC165.sol",
    "6": "contracts/components/Component.sol",
    "7": "contracts/components/IComponent.sol",
    "9": "contracts/components/IProduct.sol"
  },
  "ast": {
    "absolutePath": "contracts/components/Product.sol",
    "exportedSymbols": {
      "Component": [
        708
      ],
      "Context": [
        4978
      ],
      "IAccess": [
        2660
      ],
      "IBundle": [
        2844
      ],
      "IBundleToken": [
        4649
      ],
      "IComponent": [
        812
      ],
      "IComponentEvents": [
        2897
      ],
      "IComponentOwnerService": [
        3833
      ],
      "IERC165": [
        4990
      ],
      "IERC20": [
        4956
      ],
      "IERC721": [
        4878
      ],
      "IInstanceOperatorService": [
        3984
      ],
      "IInstanceService": [
        4333
      ],
      "IOracleService": [
        4343
      ],
      "IPolicy": [
        3257
      ],
      "IPool": [
        3373
      ],
      "IProduct": [
        903
      ],
      "IProductService": [
        4488
      ],
      "IRegistry": [
        3538
      ],
      "IRiskpoolService": [
        4594
      ],
      "ITreasury": [
        3798
      ],
      "Ownable": [
        4762
      ],
      "Product": [
        1866
      ]
    },
    "id": 1867,
    "license": "Apache-2.0",
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 1240,
        "literals": [
          "solidity",
          "0.8",
          ".2"
        ],
        "nodeType": "PragmaDirective",
        "src": "39:22:12"
      },
      {
        "absolutePath": "contracts/components/IProduct.sol",
        "file": "./IProduct.sol",
        "id": 1241,
        "nameLocation": "-1:-1:-1",
        "nodeType": "ImportDirective",
        "scope": 1867,
        "sourceUnit": 904,
        "src": "63:24:12",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "contracts/components/Component.sol",
        "file": "./Component.sol",
        "id": 1242,
        "nameLocation": "-1:-1:-1",
        "nodeType": "ImportDirective",
        "scope": 1867,
        "sourceUnit": 709,
        "src": "88:25:12",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "contracts/modules/IPolicy.sol",
        "file": "../modules/IPolicy.sol",
        "id": 1243,
        "nameLocation": "-1:-1:-1",
        "nodeType": "ImportDirective",
        "scope": 1867,
        "sourceUnit": 3258,
        "src": "114:32:12",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "contracts/services/IInstanceService.sol",
        "file": "../services/IInstanceService.sol",
        "id": 1244,
        "nameLocation": "-1:-1:-1",
        "nodeType": "ImportDirective",
        "scope": 1867,
        "sourceUnit": 4334,
        "src": "147:42:12",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "absolutePath": "contracts/services/IProductService.sol",
        "file": "../services/IProductService.sol",
        "id": 1245,
        "nameLocation": "-1:-1:-1",
        "nodeType": "ImportDirective",
        "scope": 1867,
        "sourceUnit": 4489,
        "src": "190:41:12",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "abstract": true,
        "baseContracts": [
          {
            "baseName": {
              "id": 1246,
              "name": "IProduct",
              "nodeType": "IdentifierPath",
              "referencedDeclaration": 903,
              "src": "266:8:12"
            },
            "id": 1247,
            "nodeType": "InheritanceSpecifier",
            "src": "266:8:12"
          },
          {
            "baseName": {
              "id": 1248,
              "name": "Component",
              "nodeType": "IdentifierPath",
              "referencedDeclaration": 708,
              "src": "281:9:12"
            },
            "id": 1249,
            "nodeType": "InheritanceSpecifier",
            "src": "281:9:12"
          }
        ],
        "contractDependencies": [
          708,
          812,
          903,
          2897,
          4762,
          4978
        ],
        "contractKind": "contract",
        "fullyImplemented": true,
        "id": 1866,
        "linearizedBaseContracts": [
          1866,
          708,
          4762,
          4978,
          2897,
          903,
          812
        ],
        "name": "Product",
        "nameLocation": "251:7:12",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "constant": false,
            "id": 1251,
            "mutability": "mutable",
            "name": "_policyFlow",
            "nameLocation": "318:11:12",
            "nodeType": "VariableDeclaration",
            "scope": 1866,
            "src": "302:27:12",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_address",
              "typeString": "address"
            },
            "typeName": {
              "id": 1250,
              "name": "address",
              "nodeType": "ElementaryTypeName",
              "src": "302:7:12",
              "stateMutability": "nonpayable",
              "typeDescriptions": {
                "typeIdentifier": "t_address",
                "typeString": "address"
              }
            },
            "visibility": "private"
          },
          {
            "constant": false,
            "id": 1253,
            "mutability": "mutable",
            "name": "_token",
            "nameLocation": "398:6:12",
            "nodeType": "VariableDeclaration",
            "scope": 1866,
            "src": "382:22:12",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_address",
              "typeString": "address"
            },
            "typeName": {
              "id": 1252,
              "name": "address",
              "nodeType": "ElementaryTypeName",
              "src": "382:7:12",
              "stateMutability": "nonpayable",
              "typeDescriptions": {
                "typeIdentifier": "t_address",
                "typeString": "address"
              }
            },
            "visibility": "private"
          },
          {
            "constant": false,
            "id": 1255,
            "mutability": "mutable",
            "name": "_riskpoolId",
            "nameLocation": "465:11:12",
            "nodeType": "VariableDeclaration",
            "scope": 1866,
            "src": "449:27:12",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_uint256",
              "typeString": "uint256"
            },
            "typeName": {
              "id": 1254,
              "name": "uint256",
              "nodeType": "ElementaryTypeName",
              "src": "449:7:12",
              "typeDescriptions": {
                "typeIdentifier": "t_uint256",
                "typeString": "uint256"
              }
            },
            "visibility": "private"
          },
          {
            "constant": false,
            "id": 1258,
            "mutability": "mutable",
            "name": "_productService",
            "nameLocation": "555:15:12",
            "nodeType": "VariableDeclaration",
            "scope": 1866,
            "src": "530:40:12",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_IProductService_$4488",
              "typeString": "contract IProductService"
            },
            "typeName": {
              "id": 1257,
              "nodeType": "UserDefinedTypeName",
              "pathNode": {
                "id": 1256,
                "name": "IProductService",
                "nodeType": "IdentifierPath",
                "referencedDeclaration": 4488,
                "src": "530:15:12"
              },
              "referencedDeclaration": 4488,
              "src": "530:15:12",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_IProductService_$4488",
                "typeString": "contract IProductService"
              }
            },
            "visibility": "internal"
          },
          {
            "constant": false,
            "id": 1261,
            "mutability": "mutable",
            "name": "_instanceService",
            "nameLocation": "602:16:12",
            "nodeType": "VariableDeclaration",
            "scope": 1866,
            "src": "576:42:12",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_contract$_IInstanceService_$4333",
              "typeString": "contract IInstanceService"
            },
            "typeName": {
              "id": 1260,
              "nodeType": "UserDefinedTypeName",
              "pathNode": {
                "id": 1259,
                "name": "IInstanceService",
                "nodeType": "IdentifierPath",
                "referencedDeclaration": 4333,
                "src": "576:16:12"
              },
              "referencedDeclaration": 4333,
              "src": "576:16:12",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_IInstanceService_$4333",
                "typeString": "contract IInstanceService"
              }
            },
            "visibility": "internal"
          },
          {
            "body": {
              "id": 1282,
              "nodeType": "Block",
              "src": "669:219:12",
              "statements": [
                {
                  "assignments": [
                    1266
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 1266,
                      "mutability": "mutable",
                      "name": "policyHolder",
                      "nameLocation": "687:12:12",
                      "nodeType": "VariableDeclaration",
                      "scope": 1282,
                      "src": "679:20:12",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      },
                      "typeName": {
                        "id": 1265,
                        "name": "address",
                        "nodeType": "ElementaryTypeName",
                        "src": "679:7:12",
                        "stateMutability": "nonpayable",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "visibility": "internal"
                    }
                  ],
                  "id": 1272,
                  "initialValue": {
                    "expression": {
                      "arguments": [
                        {
                          "id": 1269,
                          "name": "policyId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1263,
                          "src": "731:8:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        ],
                        "expression": {
                          "id": 1267,
                          "name": "_instanceService",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1261,
                          "src": "702:16:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IInstanceService_$4333",
                            "typeString": "contract IInstanceService"
                          }
                        },
                        "id": 1268,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "getMetadata",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 4252,
                        "src": "702:28:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_external_view$_t_bytes32_$returns$_t_struct$_Metadata_$3072_memory_ptr_$",
                          "typeString": "function (bytes32) view external returns (struct IPolicy.Metadata memory)"
                        }
                      },
                      "id": 1270,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "702:38:12",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Metadata_$3072_memory_ptr",
                        "typeString": "struct IPolicy.Metadata memory"
                      }
                    },
                    "id": 1271,
                    "isConstant": false,
                    "isLValue": true,
                    "isPure": false,
                    "lValueRequested": false,
                    "memberName": "owner",
                    "nodeType": "MemberAccess",
                    "referencedDeclaration": 3060,
                    "src": "702:44:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "679:67:12"
                },
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        "id": 1277,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "arguments": [],
                          "expression": {
                            "argumentTypes": [],
                            "id": 1274,
                            "name": "_msgSender",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 4968,
                            "src": "777:10:12",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
                              "typeString": "function () view returns (address)"
                            }
                          },
                          "id": 1275,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "777:12:12",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "id": 1276,
                          "name": "policyHolder",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1266,
                          "src": "793:12:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "src": "777:28:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "4552524f523a5052442d3030313a504f4c4943595f4f525f484f4c4445525f494e56414c4944",
                        "id": 1278,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "820:40:12",
                        "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": 1273,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "756:7:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 1279,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "756:114:12",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 1280,
                  "nodeType": "ExpressionStatement",
                  "src": "756:114:12"
                },
                {
                  "id": 1281,
                  "nodeType": "PlaceholderStatement",
                  "src": "880:1:12"
                }
              ]
            },
            "id": 1283,
            "name": "onlyPolicyHolder",
            "nameLocation": "634:16:12",
            "nodeType": "ModifierDefinition",
            "parameters": {
              "id": 1264,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1263,
                  "mutability": "mutable",
                  "name": "policyId",
                  "nameLocation": "659:8:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1283,
                  "src": "651:16:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1262,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "651:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "650:18:12"
            },
            "src": "625:263:12",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 1296,
              "nodeType": "Block",
              "src": "915:149:12",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        "id": 1291,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "arguments": [],
                          "expression": {
                            "argumentTypes": [],
                            "id": 1286,
                            "name": "_msgSender",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 4968,
                            "src": "947:10:12",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
                              "typeString": "function () view returns (address)"
                            }
                          },
                          "id": 1287,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "947:12:12",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "arguments": [
                            {
                              "hexValue": "4c6963656e6365",
                              "id": 1289,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "string",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "983:9:12",
                              "typeDescriptions": {
                                "typeIdentifier": "t_stringliteral_6ca2c06beb422d975cd2070710bcde13ae6539489c77a2eac3d019f18f8a11bd",
                                "typeString": "literal_string \"Licence\""
                              },
                              "value": "Licence"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_stringliteral_6ca2c06beb422d975cd2070710bcde13ae6539489c77a2eac3d019f18f8a11bd",
                                "typeString": "literal_string \"Licence\""
                              }
                            ],
                            "id": 1288,
                            "name": "_getContractAddress",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 707,
                            "src": "963:19:12",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_address_$",
                              "typeString": "function (bytes32) view returns (address)"
                            }
                          },
                          "id": 1290,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "963:30:12",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "src": "947:46:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "4552524f523a5052442d3030323a4143434553535f44454e494544",
                        "id": 1292,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1007:29:12",
                        "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": 1285,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "925:7:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 1293,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "925:121:12",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 1294,
                  "nodeType": "ExpressionStatement",
                  "src": "925:121:12"
                },
                {
                  "id": 1295,
                  "nodeType": "PlaceholderStatement",
                  "src": "1056:1:12"
                }
              ]
            },
            "id": 1297,
            "name": "onlyLicence",
            "nameLocation": "903:11:12",
            "nodeType": "ModifierDefinition",
            "parameters": {
              "id": 1284,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "915:0:12"
            },
            "src": "894:170:12",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 1310,
              "nodeType": "Block",
              "src": "1090:147:12",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "commonType": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        "id": 1305,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "arguments": [],
                          "expression": {
                            "argumentTypes": [],
                            "id": 1300,
                            "name": "_msgSender",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 4968,
                            "src": "1122:10:12",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
                              "typeString": "function () view returns (address)"
                            }
                          },
                          "id": 1301,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "1122:12:12",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "arguments": [
                            {
                              "hexValue": "5175657279",
                              "id": 1303,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "string",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "1158:7:12",
                              "typeDescriptions": {
                                "typeIdentifier": "t_stringliteral_de27146501ae3a78760bc5f3cf670e34e42f94d4009fee9f620352506ade7ceb",
                                "typeString": "literal_string \"Query\""
                              },
                              "value": "Query"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_stringliteral_de27146501ae3a78760bc5f3cf670e34e42f94d4009fee9f620352506ade7ceb",
                                "typeString": "literal_string \"Query\""
                              }
                            ],
                            "id": 1302,
                            "name": "_getContractAddress",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 707,
                            "src": "1138:19:12",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_address_$",
                              "typeString": "function (bytes32) view returns (address)"
                            }
                          },
                          "id": 1304,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "1138:28:12",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "src": "1122:44:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "hexValue": "4552524f523a5052442d3030333a4143434553535f44454e494544",
                        "id": 1306,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1180:29:12",
                        "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": 1299,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        -18,
                        -18
                      ],
                      "referencedDeclaration": -18,
                      "src": "1100:7:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 1307,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1100:119:12",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 1308,
                  "nodeType": "ExpressionStatement",
                  "src": "1100:119:12"
                },
                {
                  "id": 1309,
                  "nodeType": "PlaceholderStatement",
                  "src": "1229:1:12"
                }
              ]
            },
            "id": 1311,
            "name": "onlyOracle",
            "nameLocation": "1079:10:12",
            "nodeType": "ModifierDefinition",
            "parameters": {
              "id": 1298,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1090:0:12"
            },
            "src": "1070:167:12",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 1367,
              "nodeType": "Block",
              "src": "1449:383:12",
              "statements": [
                {
                  "expression": {
                    "id": 1332,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 1330,
                      "name": "_token",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 1253,
                      "src": "1459:6:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "id": 1331,
                      "name": "token",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 1315,
                      "src": "1468:5:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "src": "1459:14:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "id": 1333,
                  "nodeType": "ExpressionStatement",
                  "src": "1459:14:12"
                },
                {
                  "expression": {
                    "id": 1336,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 1334,
                      "name": "_riskpoolId",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 1255,
                      "src": "1483:11:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "id": 1335,
                      "name": "riskpoolId",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 1319,
                      "src": "1497:10:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "1483:24:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "id": 1337,
                  "nodeType": "ExpressionStatement",
                  "src": "1483:24:12"
                },
                {
                  "expression": {
                    "id": 1342,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 1338,
                      "name": "_policyFlow",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 1251,
                      "src": "1565:11:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 1340,
                          "name": "policyFlow",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1317,
                          "src": "1599:10:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        ],
                        "id": 1339,
                        "name": "_getContractAddress",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 707,
                        "src": "1579:19:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_address_$",
                          "typeString": "function (bytes32) view returns (address)"
                        }
                      },
                      "id": 1341,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "1579:31:12",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "src": "1565:45:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "id": 1343,
                  "nodeType": "ExpressionStatement",
                  "src": "1565:45:12"
                },
                {
                  "expression": {
                    "id": 1350,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 1344,
                      "name": "_productService",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 1258,
                      "src": "1620:15:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IProductService_$4488",
                        "typeString": "contract IProductService"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "arguments": [
                            {
                              "hexValue": "50726f6475637453657276696365",
                              "id": 1347,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "string",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "1674:16:12",
                              "typeDescriptions": {
                                "typeIdentifier": "t_stringliteral_a0656cfcc1bc970b947aca201a5cc1b43cf3c3649a4b2d6f82968797074fe0b8",
                                "typeString": "literal_string \"ProductService\""
                              },
                              "value": "ProductService"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_stringliteral_a0656cfcc1bc970b947aca201a5cc1b43cf3c3649a4b2d6f82968797074fe0b8",
                                "typeString": "literal_string \"ProductService\""
                              }
                            ],
                            "id": 1346,
                            "name": "_getContractAddress",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 707,
                            "src": "1654:19:12",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_address_$",
                              "typeString": "function (bytes32) view returns (address)"
                            }
                          },
                          "id": 1348,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "1654:37:12",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        ],
                        "id": 1345,
                        "name": "IProductService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4488,
                        "src": "1638:15:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_contract$_IProductService_$4488_$",
                          "typeString": "type(contract IProductService)"
                        }
                      },
                      "id": 1349,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "1638:54:12",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IProductService_$4488",
                        "typeString": "contract IProductService"
                      }
                    },
                    "src": "1620:72:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IProductService_$4488",
                      "typeString": "contract IProductService"
                    }
                  },
                  "id": 1351,
                  "nodeType": "ExpressionStatement",
                  "src": "1620:72:12"
                },
                {
                  "expression": {
                    "id": 1358,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 1352,
                      "name": "_instanceService",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 1261,
                      "src": "1702:16:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IInstanceService_$4333",
                        "typeString": "contract IInstanceService"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "arguments": [
                            {
                              "hexValue": "496e7374616e636553657276696365",
                              "id": 1355,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "string",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "1758:17:12",
                              "typeDescriptions": {
                                "typeIdentifier": "t_stringliteral_9d0370d7b33c0a7e946fd67f2013156c598b4d6a70b1490bc73aacf4dc1a6f52",
                                "typeString": "literal_string \"InstanceService\""
                              },
                              "value": "InstanceService"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_stringliteral_9d0370d7b33c0a7e946fd67f2013156c598b4d6a70b1490bc73aacf4dc1a6f52",
                                "typeString": "literal_string \"InstanceService\""
                              }
                            ],
                            "id": 1354,
                            "name": "_getContractAddress",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 707,
                            "src": "1738:19:12",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_address_$",
                              "typeString": "function (bytes32) view returns (address)"
                            }
                          },
                          "id": 1356,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "1738:38:12",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        ],
                        "id": 1353,
                        "name": "IInstanceService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4333,
                        "src": "1721:16:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_contract$_IInstanceService_$4333_$",
                          "typeString": "type(contract IInstanceService)"
                        }
                      },
                      "id": 1357,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "1721:56:12",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_contract$_IInstanceService_$4333",
                        "typeString": "contract IInstanceService"
                      }
                    },
                    "src": "1702:75:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_IInstanceService_$4333",
                      "typeString": "contract IInstanceService"
                    }
                  },
                  "id": 1359,
                  "nodeType": "ExpressionStatement",
                  "src": "1702:75:12"
                },
                {
                  "eventCall": {
                    "arguments": [
                      {
                        "arguments": [
                          {
                            "id": 1363,
                            "name": "this",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": -28,
                            "src": "1819:4:12",
                            "typeDescriptions": {
                              "typeIdentifier": "t_contract$_Product_$1866",
                              "typeString": "contract Product"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_contract$_Product_$1866",
                              "typeString": "contract Product"
                            }
                          ],
                          "id": 1362,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "nodeType": "ElementaryTypeNameExpression",
                          "src": "1811:7:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_type$_t_address_$",
                            "typeString": "type(address)"
                          },
                          "typeName": {
                            "id": 1361,
                            "name": "address",
                            "nodeType": "ElementaryTypeName",
                            "src": "1811:7:12",
                            "typeDescriptions": {}
                          }
                        },
                        "id": 1364,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "typeConversion",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "1811:13:12",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      ],
                      "id": 1360,
                      "name": "LogProductCreated",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 855,
                      "src": "1793:17:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$",
                        "typeString": "function (address)"
                      }
                    },
                    "id": 1365,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1793:32:12",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 1366,
                  "nodeType": "EmitStatement",
                  "src": "1788:37:12"
                }
              ]
            },
            "id": 1368,
            "implemented": true,
            "kind": "constructor",
            "modifiers": [
              {
                "arguments": [
                  {
                    "id": 1324,
                    "name": "name",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 1313,
                    "src": "1406:4:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  {
                    "expression": {
                      "id": 1325,
                      "name": "ComponentType",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 715,
                      "src": "1412:13:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_type$_t_enum$_ComponentType_$715_$",
                        "typeString": "type(enum IComponent.ComponentType)"
                      }
                    },
                    "id": 1326,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "lValueRequested": false,
                    "memberName": "Product",
                    "nodeType": "MemberAccess",
                    "referencedDeclaration": 713,
                    "src": "1412:21:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_enum$_ComponentType_$715",
                      "typeString": "enum IComponent.ComponentType"
                    }
                  },
                  {
                    "id": 1327,
                    "name": "registry",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 1321,
                    "src": "1435:8:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  }
                ],
                "id": 1328,
                "modifierName": {
                  "id": 1323,
                  "name": "Component",
                  "nodeType": "IdentifierPath",
                  "referencedDeclaration": 708,
                  "src": "1396:9:12"
                },
                "nodeType": "ModifierInvocation",
                "src": "1396:48:12"
              }
            ],
            "name": "",
            "nameLocation": "-1:-1:-1",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1322,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1313,
                  "mutability": "mutable",
                  "name": "name",
                  "nameLocation": "1272:4:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1368,
                  "src": "1264:12:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1312,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1264:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1315,
                  "mutability": "mutable",
                  "name": "token",
                  "nameLocation": "1294:5:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1368,
                  "src": "1286:13:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 1314,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1286:7:12",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1317,
                  "mutability": "mutable",
                  "name": "policyFlow",
                  "nameLocation": "1317:10:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1368,
                  "src": "1309:18:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1316,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1309:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1319,
                  "mutability": "mutable",
                  "name": "riskpoolId",
                  "nameLocation": "1345:10:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1368,
                  "src": "1337:18:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1318,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1337:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1321,
                  "mutability": "mutable",
                  "name": "registry",
                  "nameLocation": "1373:8:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1368,
                  "src": "1365:16:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 1320,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1365:7:12",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1254:133:12"
            },
            "returnParameters": {
              "id": 1329,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1449:0:12"
            },
            "scope": 1866,
            "src": "1243:589:12",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "baseFunctions": [
              872
            ],
            "body": {
              "id": 1376,
              "nodeType": "Block",
              "src": "1896:30:12",
              "statements": [
                {
                  "expression": {
                    "id": 1374,
                    "name": "_token",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 1253,
                    "src": "1913:6:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "functionReturnParameters": 1373,
                  "id": 1375,
                  "nodeType": "Return",
                  "src": "1906:13:12"
                }
              ]
            },
            "functionSelector": "21df0da7",
            "id": 1377,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getToken",
            "nameLocation": "1847:8:12",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 1370,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "1865:8:12"
            },
            "parameters": {
              "id": 1369,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1855:2:12"
            },
            "returnParameters": {
              "id": 1373,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1372,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 1377,
                  "src": "1887:7:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 1371,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1887:7:12",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1886:9:12"
            },
            "scope": 1866,
            "src": "1838:88:12",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "public"
          },
          {
            "baseFunctions": [
              877
            ],
            "body": {
              "id": 1385,
              "nodeType": "Block",
              "src": "1995:35:12",
              "statements": [
                {
                  "expression": {
                    "id": 1383,
                    "name": "_policyFlow",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 1251,
                    "src": "2012:11:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "functionReturnParameters": 1382,
                  "id": 1384,
                  "nodeType": "Return",
                  "src": "2005:18:12"
                }
              ]
            },
            "functionSelector": "637d08f4",
            "id": 1386,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getPolicyFlow",
            "nameLocation": "1941:13:12",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 1379,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "1969:8:12"
            },
            "parameters": {
              "id": 1378,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1954:2:12"
            },
            "returnParameters": {
              "id": 1382,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1381,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 1386,
                  "src": "1986:7:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 1380,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1986:7:12",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1985:9:12"
            },
            "scope": 1866,
            "src": "1932:98:12",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "public"
          },
          {
            "baseFunctions": [
              882
            ],
            "body": {
              "id": 1394,
              "nodeType": "Block",
              "src": "2099:35:12",
              "statements": [
                {
                  "expression": {
                    "id": 1392,
                    "name": "_riskpoolId",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 1255,
                    "src": "2116:11:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "functionReturnParameters": 1391,
                  "id": 1393,
                  "nodeType": "Return",
                  "src": "2109:18:12"
                }
              ]
            },
            "functionSelector": "70d2fe53",
            "id": 1395,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getRiskpoolId",
            "nameLocation": "2045:13:12",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 1388,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "2068:8:12"
            },
            "parameters": {
              "id": 1387,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2058:2:12"
            },
            "returnParameters": {
              "id": 1391,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1390,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 1395,
                  "src": "2090:7:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1389,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2090:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "2089:9:12"
            },
            "scope": 1866,
            "src": "2036:98:12",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "public"
          },
          {
            "baseFunctions": [
              631
            ],
            "body": {
              "id": 1404,
              "nodeType": "Block",
              "src": "2232:37:12",
              "statements": [
                {
                  "eventCall": {
                    "arguments": [
                      {
                        "arguments": [],
                        "expression": {
                          "argumentTypes": [],
                          "id": 1400,
                          "name": "getId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 461,
                          "src": "2258:5:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
                            "typeString": "function () view returns (uint256)"
                          }
                        },
                        "id": 1401,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "2258:7:12",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 1399,
                      "name": "LogProductApproved",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 863,
                      "src": "2239:18:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$returns$__$",
                        "typeString": "function (uint256)"
                      }
                    },
                    "id": 1402,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2239:27:12",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 1403,
                  "nodeType": "EmitStatement",
                  "src": "2234:32:12"
                }
              ]
            },
            "id": 1405,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_afterApprove",
            "nameLocation": "2198:13:12",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 1397,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "2223:8:12"
            },
            "parameters": {
              "id": 1396,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2211:2:12"
            },
            "returnParameters": {
              "id": 1398,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2232:0:12"
            },
            "scope": 1866,
            "src": "2189:80:12",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "baseFunctions": [
              627
            ],
            "body": {
              "id": 1414,
              "nodeType": "Block",
              "src": "2318:37:12",
              "statements": [
                {
                  "eventCall": {
                    "arguments": [
                      {
                        "arguments": [],
                        "expression": {
                          "argumentTypes": [],
                          "id": 1410,
                          "name": "getId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 461,
                          "src": "2344:5:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
                            "typeString": "function () view returns (uint256)"
                          }
                        },
                        "id": 1411,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "2344:7:12",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 1409,
                      "name": "LogProductProposed",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 859,
                      "src": "2325:18:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$returns$__$",
                        "typeString": "function (uint256)"
                      }
                    },
                    "id": 1412,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2325:27:12",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 1413,
                  "nodeType": "EmitStatement",
                  "src": "2320:32:12"
                }
              ]
            },
            "id": 1415,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_afterPropose",
            "nameLocation": "2284:13:12",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 1407,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "2309:8:12"
            },
            "parameters": {
              "id": 1406,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2297:2:12"
            },
            "returnParameters": {
              "id": 1408,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2318:0:12"
            },
            "scope": 1866,
            "src": "2275:80:12",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "baseFunctions": [
              635
            ],
            "body": {
              "id": 1424,
              "nodeType": "Block",
              "src": "2403:37:12",
              "statements": [
                {
                  "eventCall": {
                    "arguments": [
                      {
                        "arguments": [],
                        "expression": {
                          "argumentTypes": [],
                          "id": 1420,
                          "name": "getId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 461,
                          "src": "2429:5:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
                            "typeString": "function () view returns (uint256)"
                          }
                        },
                        "id": 1421,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "2429:7:12",
                        "tryCall": false,
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "id": 1419,
                      "name": "LogProductDeclined",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 867,
                      "src": "2410:18:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$returns$__$",
                        "typeString": "function (uint256)"
                      }
                    },
                    "id": 1422,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2410:27:12",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 1423,
                  "nodeType": "EmitStatement",
                  "src": "2405:32:12"
                }
              ]
            },
            "id": 1425,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_afterDecline",
            "nameLocation": "2369:13:12",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 1417,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "2394:8:12"
            },
            "parameters": {
              "id": 1416,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2382:2:12"
            },
            "returnParameters": {
              "id": 1418,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "2403:0:12"
            },
            "scope": 1866,
            "src": "2360:80:12",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 1451,
              "nodeType": "Block",
              "src": "2703:202:12",
              "statements": [
                {
                  "expression": {
                    "id": 1449,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 1440,
                      "name": "processId",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 1438,
                      "src": "2713:9:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 1443,
                          "name": "applicationOwner",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1427,
                          "src": "2769:16:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        {
                          "id": 1444,
                          "name": "premiumAmount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1429,
                          "src": "2800:13:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        {
                          "id": 1445,
                          "name": "sumInsuredAmount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1431,
                          "src": "2828:16:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        {
                          "id": 1446,
                          "name": "metaData",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1433,
                          "src": "2859:8:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes_memory_ptr",
                            "typeString": "bytes memory"
                          }
                        },
                        {
                          "id": 1447,
                          "name": "applicationData",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1435,
                          "src": "2882:15:12",
                          "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": 1441,
                          "name": "_productService",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1258,
                          "src": "2725:15:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IProductService_$4488",
                            "typeString": "contract IProductService"
                          }
                        },
                        "id": 1442,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "newApplication",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 4360,
                        "src": "2725:30:12",
                        "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": 1448,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "2725:173:12",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes32",
                        "typeString": "bytes32"
                      }
                    },
                    "src": "2713:185:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "id": 1450,
                  "nodeType": "ExpressionStatement",
                  "src": "2713:185:12"
                }
              ]
            },
            "id": 1452,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_newApplication",
            "nameLocation": "2455:15:12",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1436,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1427,
                  "mutability": "mutable",
                  "name": "applicationOwner",
                  "nameLocation": "2488:16:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1452,
                  "src": "2480:24:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 1426,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2480:7:12",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1429,
                  "mutability": "mutable",
                  "name": "premiumAmount",
                  "nameLocation": "2522:13:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1452,
                  "src": "2514:21:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1428,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2514:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1431,
                  "mutability": "mutable",
                  "name": "sumInsuredAmount",
                  "nameLocation": "2553:16:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1452,
                  "src": "2545:24:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1430,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "2545:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1433,
                  "mutability": "mutable",
                  "name": "metaData",
                  "nameLocation": "2592:8:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1452,
                  "src": "2579:21:12",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 1432,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "2579:5:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1435,
                  "mutability": "mutable",
                  "name": "applicationData",
                  "nameLocation": "2624:15:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1452,
                  "src": "2611:28:12",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 1434,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "2611:5:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "2470:176:12"
            },
            "returnParameters": {
              "id": 1439,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1438,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "2688:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1452,
                  "src": "2680:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1437,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "2680:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "2679:19:12"
            },
            "scope": 1866,
            "src": "2446:459:12",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 1493,
              "nodeType": "Block",
              "src": "3091:358:12",
              "statements": [
                {
                  "assignments": [
                    1467
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 1467,
                      "mutability": "mutable",
                      "name": "policy",
                      "nameLocation": "3123:6:12",
                      "nodeType": "VariableDeclaration",
                      "scope": 1493,
                      "src": "3101:28:12",
                      "stateVariable": false,
                      "storageLocation": "memory",
                      "typeDescriptions": {
                        "typeIdentifier": "t_struct$_Policy_$3106_memory_ptr",
                        "typeString": "struct IPolicy.Policy"
                      },
                      "typeName": {
                        "id": 1466,
                        "nodeType": "UserDefinedTypeName",
                        "pathNode": {
                          "id": 1465,
                          "name": "IPolicy.Policy",
                          "nodeType": "IdentifierPath",
                          "referencedDeclaration": 3106,
                          "src": "3101:14:12"
                        },
                        "referencedDeclaration": 3106,
                        "src": "3101:14:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Policy_$3106_storage_ptr",
                          "typeString": "struct IPolicy.Policy"
                        }
                      },
                      "visibility": "internal"
                    }
                  ],
                  "id": 1471,
                  "initialValue": {
                    "arguments": [
                      {
                        "id": 1469,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1454,
                        "src": "3143:9:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "id": 1468,
                      "name": "_getPolicy",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 1797,
                      "src": "3132:10:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_struct$_Policy_$3106_memory_ptr_$",
                        "typeString": "function (bytes32) view returns (struct IPolicy.Policy memory)"
                      }
                    },
                    "id": 1470,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3132:21:12",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Policy_$3106_memory_ptr",
                      "typeString": "struct IPolicy.Policy memory"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "3101:52:12"
                },
                {
                  "condition": {
                    "commonType": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    },
                    "id": 1476,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "expression": {
                        "id": 1472,
                        "name": "policy",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1467,
                        "src": "3168:6:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Policy_$3106_memory_ptr",
                          "typeString": "struct IPolicy.Policy memory"
                        }
                      },
                      "id": 1473,
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "premiumPaidAmount",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 3093,
                      "src": "3168:24:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "<",
                    "rightExpression": {
                      "expression": {
                        "id": 1474,
                        "name": "policy",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1467,
                        "src": "3195:6:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_struct$_Policy_$3106_memory_ptr",
                          "typeString": "struct IPolicy.Policy memory"
                        }
                      },
                      "id": 1475,
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "premiumExpectedAmount",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 3091,
                      "src": "3195:28:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "3168:55:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 1492,
                  "nodeType": "IfStatement",
                  "src": "3164:279:12",
                  "trueBody": {
                    "id": 1491,
                    "nodeType": "Block",
                    "src": "3225:218:12",
                    "statements": [
                      {
                        "expression": {
                          "id": 1489,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "components": [
                              {
                                "id": 1477,
                                "name": "success",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 1457,
                                "src": "3240:7:12",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bool",
                                  "typeString": "bool"
                                }
                              },
                              {
                                "id": 1478,
                                "name": "feeAmount",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 1459,
                                "src": "3249:9:12",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              },
                              {
                                "id": 1479,
                                "name": "netAmount",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 1461,
                                "src": "3260:9:12",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              }
                            ],
                            "id": 1480,
                            "isConstant": false,
                            "isInlineArray": false,
                            "isLValue": true,
                            "isPure": false,
                            "lValueRequested": true,
                            "nodeType": "TupleExpression",
                            "src": "3239:31:12",
                            "typeDescriptions": {
                              "typeIdentifier": "t_tuple$_t_bool_$_t_uint256_$_t_uint256_$",
                              "typeString": "tuple(bool,uint256,uint256)"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "arguments": [
                              {
                                "id": 1482,
                                "name": "processId",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 1454,
                                "src": "3327:9:12",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                }
                              },
                              {
                                "commonType": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                },
                                "id": 1487,
                                "isConstant": false,
                                "isLValue": false,
                                "isPure": false,
                                "lValueRequested": false,
                                "leftExpression": {
                                  "expression": {
                                    "id": 1483,
                                    "name": "policy",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 1467,
                                    "src": "3359:6:12",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_Policy_$3106_memory_ptr",
                                      "typeString": "struct IPolicy.Policy memory"
                                    }
                                  },
                                  "id": 1484,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "premiumExpectedAmount",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 3091,
                                  "src": "3359:28:12",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                "nodeType": "BinaryOperation",
                                "operator": "-",
                                "rightExpression": {
                                  "expression": {
                                    "id": 1485,
                                    "name": "policy",
                                    "nodeType": "Identifier",
                                    "overloadedDeclarations": [],
                                    "referencedDeclaration": 1467,
                                    "src": "3390:6:12",
                                    "typeDescriptions": {
                                      "typeIdentifier": "t_struct$_Policy_$3106_memory_ptr",
                                      "typeString": "struct IPolicy.Policy memory"
                                    }
                                  },
                                  "id": 1486,
                                  "isConstant": false,
                                  "isLValue": true,
                                  "isPure": false,
                                  "lValueRequested": false,
                                  "memberName": "premiumPaidAmount",
                                  "nodeType": "MemberAccess",
                                  "referencedDeclaration": 3093,
                                  "src": "3390:24:12",
                                  "typeDescriptions": {
                                    "typeIdentifier": "t_uint256",
                                    "typeString": "uint256"
                                  }
                                },
                                "src": "3359:55:12",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              }
                            ],
                            "expression": {
                              "argumentTypes": [
                                {
                                  "typeIdentifier": "t_bytes32",
                                  "typeString": "bytes32"
                                },
                                {
                                  "typeIdentifier": "t_uint256",
                                  "typeString": "uint256"
                                }
                              ],
                              "id": 1481,
                              "name": "_collectPremium",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [
                                1494,
                                1519
                              ],
                              "referencedDeclaration": 1519,
                              "src": "3290:15:12",
                              "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": 1488,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "kind": "functionCall",
                            "lValueRequested": false,
                            "names": [],
                            "nodeType": "FunctionCall",
                            "src": "3290:142:12",
                            "tryCall": false,
                            "typeDescriptions": {
                              "typeIdentifier": "t_tuple$_t_bool_$_t_uint256_$_t_uint256_$",
                              "typeString": "tuple(bool,uint256,uint256)"
                            }
                          },
                          "src": "3239:193:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$__$",
                            "typeString": "tuple()"
                          }
                        },
                        "id": 1490,
                        "nodeType": "ExpressionStatement",
                        "src": "3239:193:12"
                      }
                    ]
                  }
                }
              ]
            },
            "id": 1494,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_collectPremium",
            "nameLocation": "2920:15:12",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1455,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1454,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "2944:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1494,
                  "src": "2936:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1453,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "2936:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "2935:19:12"
            },
            "returnParameters": {
              "id": 1462,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1457,
                  "mutability": "mutable",
                  "name": "success",
                  "nameLocation": "3007:7:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1494,
                  "src": "3002:12:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 1456,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "3002:4:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1459,
                  "mutability": "mutable",
                  "name": "feeAmount",
                  "nameLocation": "3036:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1494,
                  "src": "3028:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1458,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3028:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1461,
                  "mutability": "mutable",
                  "name": "netAmount",
                  "nameLocation": "3067:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1494,
                  "src": "3059:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1460,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3059:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "2988:98:12"
            },
            "scope": 1866,
            "src": "2911:538:12",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 1518,
              "nodeType": "Block",
              "src": "3672:100:12",
              "statements": [
                {
                  "expression": {
                    "id": 1516,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "components": [
                        {
                          "id": 1507,
                          "name": "success",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1501,
                          "src": "3683:7:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        {
                          "id": 1508,
                          "name": "feeAmount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1503,
                          "src": "3692:9:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        {
                          "id": 1509,
                          "name": "netAmount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1505,
                          "src": "3703:9:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        }
                      ],
                      "id": 1510,
                      "isConstant": false,
                      "isInlineArray": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "nodeType": "TupleExpression",
                      "src": "3682:31:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_tuple$_t_bool_$_t_uint256_$_t_uint256_$",
                        "typeString": "tuple(bool,uint256,uint256)"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 1513,
                          "name": "processId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1496,
                          "src": "3747:9:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        {
                          "id": 1514,
                          "name": "amount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1498,
                          "src": "3758:6:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          },
                          {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        ],
                        "expression": {
                          "id": 1511,
                          "name": "_productService",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1258,
                          "src": "3716:15:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IProductService_$4488",
                            "typeString": "contract IProductService"
                          }
                        },
                        "id": 1512,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "collectPremium",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 4373,
                        "src": "3716:30:12",
                        "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": 1515,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "3716:49:12",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_tuple$_t_bool_$_t_uint256_$_t_uint256_$",
                        "typeString": "tuple(bool,uint256,uint256)"
                      }
                    },
                    "src": "3682:83:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 1517,
                  "nodeType": "ExpressionStatement",
                  "src": "3682:83:12"
                }
              ]
            },
            "id": 1519,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_collectPremium",
            "nameLocation": "3464:15:12",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1499,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1496,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "3497:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1519,
                  "src": "3489:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1495,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "3489:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1498,
                  "mutability": "mutable",
                  "name": "amount",
                  "nameLocation": "3524:6:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1519,
                  "src": "3516:14:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1497,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3516:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "3479:57:12"
            },
            "returnParameters": {
              "id": 1506,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1501,
                  "mutability": "mutable",
                  "name": "success",
                  "nameLocation": "3588:7:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1519,
                  "src": "3583:12:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 1500,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "3583:4:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1503,
                  "mutability": "mutable",
                  "name": "feeAmount",
                  "nameLocation": "3617:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1519,
                  "src": "3609:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1502,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3609:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1505,
                  "mutability": "mutable",
                  "name": "netAmount",
                  "nameLocation": "3648:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1519,
                  "src": "3640:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1504,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3640:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "3569:98:12"
            },
            "scope": 1866,
            "src": "3455:317:12",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 1536,
              "nodeType": "Block",
              "src": "3927:108:12",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 1531,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1521,
                        "src": "3977:9:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "id": 1532,
                        "name": "expectedPremiumAmount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1523,
                        "src": "3988:21:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "id": 1533,
                        "name": "sumInsuredAmount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1525,
                        "src": "4011:16:12",
                        "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": 1528,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1258,
                        "src": "3937:15:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$4488",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 1530,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "adjustPremiumSumInsured",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 4382,
                      "src": "3937:39:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$_t_uint256_$_t_uint256_$returns$__$",
                        "typeString": "function (bytes32,uint256,uint256) external"
                      }
                    },
                    "id": 1534,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3937:91:12",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 1535,
                  "nodeType": "ExpressionStatement",
                  "src": "3937:91:12"
                }
              ]
            },
            "id": 1537,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_adjustPremiumSumInsured",
            "nameLocation": "3787:24:12",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1526,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1521,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "3829:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1537,
                  "src": "3821:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1520,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "3821:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1523,
                  "mutability": "mutable",
                  "name": "expectedPremiumAmount",
                  "nameLocation": "3856:21:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1537,
                  "src": "3848:29:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1522,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3848:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1525,
                  "mutability": "mutable",
                  "name": "sumInsuredAmount",
                  "nameLocation": "3895:16:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1537,
                  "src": "3887:24:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1524,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "3887:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "3811:106:12"
            },
            "returnParameters": {
              "id": 1527,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3927:0:12"
            },
            "scope": 1866,
            "src": "3778:257:12",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 1548,
              "nodeType": "Block",
              "src": "4086:50:12",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 1545,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1539,
                        "src": "4119:9:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "id": 1542,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1258,
                        "src": "4096:15:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$4488",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 1544,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "revoke",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 4387,
                      "src": "4096:22:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$returns$__$",
                        "typeString": "function (bytes32) external"
                      }
                    },
                    "id": 1546,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "4096:33:12",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 1547,
                  "nodeType": "ExpressionStatement",
                  "src": "4096:33:12"
                }
              ]
            },
            "id": 1549,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_revoke",
            "nameLocation": "4050:7:12",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1540,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1539,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "4066:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1549,
                  "src": "4058:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1538,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4058:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4057:19:12"
            },
            "returnParameters": {
              "id": 1541,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "4086:0:12"
            },
            "scope": 1866,
            "src": "4041:95:12",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 1563,
              "nodeType": "Block",
              "src": "4213:64:12",
              "statements": [
                {
                  "expression": {
                    "id": 1561,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 1556,
                      "name": "success",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 1554,
                      "src": "4223:7:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 1559,
                          "name": "processId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1551,
                          "src": "4260:9:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        ],
                        "expression": {
                          "id": 1557,
                          "name": "_productService",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1258,
                          "src": "4233:15:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IProductService_$4488",
                            "typeString": "contract IProductService"
                          }
                        },
                        "id": 1558,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "underwrite",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 4394,
                        "src": "4233:26:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$returns$_t_bool_$",
                          "typeString": "function (bytes32) external returns (bool)"
                        }
                      },
                      "id": 1560,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "4233:37:12",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "src": "4223:47:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 1562,
                  "nodeType": "ExpressionStatement",
                  "src": "4223:47:12"
                }
              ]
            },
            "id": 1564,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_underwrite",
            "nameLocation": "4151:11:12",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1552,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1551,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "4171:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1564,
                  "src": "4163:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1550,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4163:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4162:19:12"
            },
            "returnParameters": {
              "id": 1555,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1554,
                  "mutability": "mutable",
                  "name": "success",
                  "nameLocation": "4204:7:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1564,
                  "src": "4199:12:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bool",
                    "typeString": "bool"
                  },
                  "typeName": {
                    "id": 1553,
                    "name": "bool",
                    "nodeType": "ElementaryTypeName",
                    "src": "4199:4:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4198:14:12"
            },
            "scope": 1866,
            "src": "4142:135:12",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 1575,
              "nodeType": "Block",
              "src": "4329:51:12",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 1572,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1566,
                        "src": "4363:9:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "id": 1569,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1258,
                        "src": "4339:15:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$4488",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 1571,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "decline",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 4399,
                      "src": "4339:23:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$returns$__$",
                        "typeString": "function (bytes32) external"
                      }
                    },
                    "id": 1573,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "4339:34:12",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 1574,
                  "nodeType": "ExpressionStatement",
                  "src": "4339:34:12"
                }
              ]
            },
            "id": 1576,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_decline",
            "nameLocation": "4292:8:12",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1567,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1566,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "4309:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1576,
                  "src": "4301:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1565,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4301:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4300:19:12"
            },
            "returnParameters": {
              "id": 1568,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "4329:0:12"
            },
            "scope": 1866,
            "src": "4283:97:12",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 1587,
              "nodeType": "Block",
              "src": "4431:50:12",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 1584,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1578,
                        "src": "4464:9:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "id": 1581,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1258,
                        "src": "4441:15:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$4488",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 1583,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "expire",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 4404,
                      "src": "4441:22:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$returns$__$",
                        "typeString": "function (bytes32) external"
                      }
                    },
                    "id": 1585,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "4441:33:12",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 1586,
                  "nodeType": "ExpressionStatement",
                  "src": "4441:33:12"
                }
              ]
            },
            "id": 1588,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_expire",
            "nameLocation": "4395:7:12",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1579,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1578,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "4411:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1588,
                  "src": "4403:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1577,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4403:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4402:19:12"
            },
            "returnParameters": {
              "id": 1580,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "4431:0:12"
            },
            "scope": 1866,
            "src": "4386:95:12",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 1599,
              "nodeType": "Block",
              "src": "4531:49:12",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 1596,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1590,
                        "src": "4563:9:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "id": 1593,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1258,
                        "src": "4541:15:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$4488",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 1595,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "close",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 4409,
                      "src": "4541:21:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$returns$__$",
                        "typeString": "function (bytes32) external"
                      }
                    },
                    "id": 1597,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "4541:32:12",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 1598,
                  "nodeType": "ExpressionStatement",
                  "src": "4541:32:12"
                }
              ]
            },
            "id": 1600,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_close",
            "nameLocation": "4496:6:12",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1591,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1590,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "4511:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1600,
                  "src": "4503:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1589,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4503:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4502:19:12"
            },
            "returnParameters": {
              "id": 1592,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "4531:0:12"
            },
            "scope": 1866,
            "src": "4487:93:12",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 1620,
              "nodeType": "Block",
              "src": "4751:120:12",
              "statements": [
                {
                  "expression": {
                    "id": 1618,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 1611,
                      "name": "claimId",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 1609,
                      "src": "4761:7:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 1614,
                          "name": "processId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1602,
                          "src": "4809:9:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        {
                          "id": 1615,
                          "name": "claimAmount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1604,
                          "src": "4833:11:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        {
                          "id": 1616,
                          "name": "data",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1606,
                          "src": "4859:4:12",
                          "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": 1612,
                          "name": "_productService",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1258,
                          "src": "4771:15:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IProductService_$4488",
                            "typeString": "contract IProductService"
                          }
                        },
                        "id": 1613,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "newClaim",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 4420,
                        "src": "4771:24:12",
                        "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": 1617,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "4771:93:12",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "4761:103:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "id": 1619,
                  "nodeType": "ExpressionStatement",
                  "src": "4761:103:12"
                }
              ]
            },
            "id": 1621,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_newClaim",
            "nameLocation": "4595:9:12",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1607,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1602,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "4622:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1621,
                  "src": "4614:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1601,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4614:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1604,
                  "mutability": "mutable",
                  "name": "claimAmount",
                  "nameLocation": "4650:11:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1621,
                  "src": "4642:19:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1603,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "4642:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1606,
                  "mutability": "mutable",
                  "name": "data",
                  "nameLocation": "4684:4:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1621,
                  "src": "4671:17:12",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 1605,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "4671:5:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4604:90:12"
            },
            "returnParameters": {
              "id": 1610,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1609,
                  "mutability": "mutable",
                  "name": "claimId",
                  "nameLocation": "4738:7:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1621,
                  "src": "4730:15:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1608,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "4730:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4729:17:12"
            },
            "scope": 1866,
            "src": "4586:285:12",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 1638,
              "nodeType": "Block",
              "src": "5009:118:12",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 1633,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1623,
                        "src": "5061:9:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "id": 1634,
                        "name": "claimId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1625,
                        "src": "5085:7:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "id": 1635,
                        "name": "payoutAmount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1627,
                        "src": "5107:12:12",
                        "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": 1630,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1258,
                        "src": "5019:15:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$4488",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 1632,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "confirmClaim",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 4429,
                      "src": "5019:28:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$_t_uint256_$_t_uint256_$returns$__$",
                        "typeString": "function (bytes32,uint256,uint256) external"
                      }
                    },
                    "id": 1636,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "5019:101:12",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 1637,
                  "nodeType": "ExpressionStatement",
                  "src": "5019:101:12"
                }
              ]
            },
            "id": 1639,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_confirmClaim",
            "nameLocation": "4886:13:12",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1628,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1623,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "4917:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1639,
                  "src": "4909:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1622,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "4909:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1625,
                  "mutability": "mutable",
                  "name": "claimId",
                  "nameLocation": "4944:7:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1639,
                  "src": "4936:15:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1624,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "4936:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1627,
                  "mutability": "mutable",
                  "name": "payoutAmount",
                  "nameLocation": "4969:12:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1639,
                  "src": "4961:20:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1626,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "4961:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "4899:88:12"
            },
            "returnParameters": {
              "id": 1629,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "5009:0:12"
            },
            "scope": 1866,
            "src": "4877:250:12",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 1653,
              "nodeType": "Block",
              "src": "5201:65:12",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 1649,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1641,
                        "src": "5240:9:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "id": 1650,
                        "name": "claimId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1643,
                        "src": "5251:7:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "id": 1646,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1258,
                        "src": "5211:15:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$4488",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 1648,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "declineClaim",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 4436,
                      "src": "5211:28:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$_t_uint256_$returns$__$",
                        "typeString": "function (bytes32,uint256) external"
                      }
                    },
                    "id": 1651,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "5211:48:12",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 1652,
                  "nodeType": "ExpressionStatement",
                  "src": "5211:48:12"
                }
              ]
            },
            "id": 1654,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_declineClaim",
            "nameLocation": "5142:13:12",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1644,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1641,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "5164:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1654,
                  "src": "5156:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1640,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "5156:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1643,
                  "mutability": "mutable",
                  "name": "claimId",
                  "nameLocation": "5183:7:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1654,
                  "src": "5175:15:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1642,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5175:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "5155:36:12"
            },
            "returnParameters": {
              "id": 1645,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "5201:0:12"
            },
            "scope": 1866,
            "src": "5133:133:12",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 1668,
              "nodeType": "Block",
              "src": "5338:63:12",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 1664,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1656,
                        "src": "5375:9:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "id": 1665,
                        "name": "claimId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1658,
                        "src": "5386:7:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "id": 1661,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1258,
                        "src": "5348:15:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$4488",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 1663,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "closeClaim",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 4443,
                      "src": "5348:26:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$_t_uint256_$returns$__$",
                        "typeString": "function (bytes32,uint256) external"
                      }
                    },
                    "id": 1666,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "5348:46:12",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 1667,
                  "nodeType": "ExpressionStatement",
                  "src": "5348:46:12"
                }
              ]
            },
            "id": 1669,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_closeClaim",
            "nameLocation": "5281:11:12",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1659,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1656,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "5301:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1669,
                  "src": "5293:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1655,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "5293:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1658,
                  "mutability": "mutable",
                  "name": "claimId",
                  "nameLocation": "5320:7:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1669,
                  "src": "5312:15:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1657,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5312:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "5292:36:12"
            },
            "returnParameters": {
              "id": 1660,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "5338:0:12"
            },
            "scope": 1866,
            "src": "5272:129:12",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 1692,
              "nodeType": "Block",
              "src": "5591:87:12",
              "statements": [
                {
                  "expression": {
                    "id": 1690,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 1682,
                      "name": "payoutId",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 1680,
                      "src": "5601:8:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 1685,
                          "name": "processId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1671,
                          "src": "5638:9:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        {
                          "id": 1686,
                          "name": "claimId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1673,
                          "src": "5649:7:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        {
                          "id": 1687,
                          "name": "amount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1675,
                          "src": "5658:6:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        {
                          "id": 1688,
                          "name": "data",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1677,
                          "src": "5666:4:12",
                          "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": 1683,
                          "name": "_productService",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1258,
                          "src": "5612:15:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IProductService_$4488",
                            "typeString": "contract IProductService"
                          }
                        },
                        "id": 1684,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "newPayout",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 4456,
                        "src": "5612:25:12",
                        "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": 1689,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "5612:59:12",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "5601:70:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "id": 1691,
                  "nodeType": "ExpressionStatement",
                  "src": "5601:70:12"
                }
              ]
            },
            "id": 1693,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_newPayout",
            "nameLocation": "5416:10:12",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1678,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1671,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "5444:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1693,
                  "src": "5436:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1670,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "5436:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1673,
                  "mutability": "mutable",
                  "name": "claimId",
                  "nameLocation": "5471:7:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1693,
                  "src": "5463:15:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1672,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5463:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1675,
                  "mutability": "mutable",
                  "name": "amount",
                  "nameLocation": "5496:6:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1693,
                  "src": "5488:14:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1674,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5488:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1677,
                  "mutability": "mutable",
                  "name": "data",
                  "nameLocation": "5525:4:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1693,
                  "src": "5512:17:12",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 1676,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "5512:5:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "5426:109:12"
            },
            "returnParameters": {
              "id": 1681,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1680,
                  "mutability": "mutable",
                  "name": "payoutId",
                  "nameLocation": "5577:8:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1693,
                  "src": "5569:16:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1679,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5569:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "5568:18:12"
            },
            "scope": 1866,
            "src": "5407:271:12",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 1714,
              "nodeType": "Block",
              "src": "5882:132:12",
              "statements": [
                {
                  "expression": {
                    "id": 1712,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "components": [
                        {
                          "id": 1704,
                          "name": "feeAmount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1700,
                          "src": "5906:9:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        {
                          "id": 1705,
                          "name": "netPayoutAmount",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1702,
                          "src": "5929:15:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        }
                      ],
                      "id": 1706,
                      "isConstant": false,
                      "isInlineArray": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "nodeType": "TupleExpression",
                      "src": "5892:62:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
                        "typeString": "tuple(uint256,uint256)"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 1709,
                          "name": "processId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1695,
                          "src": "5987:9:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        {
                          "id": 1710,
                          "name": "payoutId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1697,
                          "src": "5998:8:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          },
                          {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        ],
                        "expression": {
                          "id": 1707,
                          "name": "_productService",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1258,
                          "src": "5957:15:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IProductService_$4488",
                            "typeString": "contract IProductService"
                          }
                        },
                        "id": 1708,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "processPayout",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 4467,
                        "src": "5957:29:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_function_external_nonpayable$_t_bytes32_$_t_uint256_$returns$_t_uint256_$_t_uint256_$",
                          "typeString": "function (bytes32,uint256) external returns (uint256,uint256)"
                        }
                      },
                      "id": 1711,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "5957:50:12",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_tuple$_t_uint256_$_t_uint256_$",
                        "typeString": "tuple(uint256,uint256)"
                      }
                    },
                    "src": "5892:115:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 1713,
                  "nodeType": "ExpressionStatement",
                  "src": "5892:115:12"
                }
              ]
            },
            "id": 1715,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_processPayout",
            "nameLocation": "5693:14:12",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1698,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1695,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "5725:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1715,
                  "src": "5717:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1694,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "5717:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1697,
                  "mutability": "mutable",
                  "name": "payoutId",
                  "nameLocation": "5752:8:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1715,
                  "src": "5744:16:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1696,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5744:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "5707:59:12"
            },
            "returnParameters": {
              "id": 1703,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1700,
                  "mutability": "mutable",
                  "name": "feeAmount",
                  "nameLocation": "5821:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1715,
                  "src": "5813:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1699,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5813:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1702,
                  "mutability": "mutable",
                  "name": "netPayoutAmount",
                  "nameLocation": "5852:15:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1715,
                  "src": "5844:23:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1701,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "5844:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "5799:78:12"
            },
            "scope": 1866,
            "src": "5684:330:12",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 1742,
              "nodeType": "Block",
              "src": "6235:196:12",
              "statements": [
                {
                  "expression": {
                    "id": 1740,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "id": 1728,
                      "name": "requestId",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 1726,
                      "src": "6245:9:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "arguments": [
                        {
                          "id": 1731,
                          "name": "processId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1717,
                          "src": "6294:9:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes32",
                            "typeString": "bytes32"
                          }
                        },
                        {
                          "id": 1732,
                          "name": "input",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1719,
                          "src": "6317:5:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bytes_memory_ptr",
                            "typeString": "bytes memory"
                          }
                        },
                        {
                          "id": 1733,
                          "name": "callbackMethodName",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1721,
                          "src": "6336:18:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_string_memory_ptr",
                            "typeString": "string memory"
                          }
                        },
                        {
                          "arguments": [
                            {
                              "id": 1736,
                              "name": "this",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": -28,
                              "src": "6376:4:12",
                              "typeDescriptions": {
                                "typeIdentifier": "t_contract$_Product_$1866",
                                "typeString": "contract Product"
                              }
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_contract$_Product_$1866",
                                "typeString": "contract Product"
                              }
                            ],
                            "id": 1735,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": true,
                            "lValueRequested": false,
                            "nodeType": "ElementaryTypeNameExpression",
                            "src": "6368:7:12",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_address_$",
                              "typeString": "type(address)"
                            },
                            "typeName": {
                              "id": 1734,
                              "name": "address",
                              "nodeType": "ElementaryTypeName",
                              "src": "6368:7:12",
                              "typeDescriptions": {}
                            }
                          },
                          "id": 1737,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "6368:13:12",
                          "tryCall": false,
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        {
                          "id": 1738,
                          "name": "responsibleOracleId",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1723,
                          "src": "6395:19:12",
                          "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": 1729,
                          "name": "_productService",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 1258,
                          "src": "6257:15:12",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_IProductService_$4488",
                            "typeString": "contract IProductService"
                          }
                        },
                        "id": 1730,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "request",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": 4482,
                        "src": "6257:23:12",
                        "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": 1739,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "kind": "functionCall",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "6257:167:12",
                      "tryCall": false,
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      }
                    },
                    "src": "6245:179:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "id": 1741,
                  "nodeType": "ExpressionStatement",
                  "src": "6245:179:12"
                }
              ]
            },
            "id": 1743,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_request",
            "nameLocation": "6029:8:12",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1724,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1717,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "6055:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1743,
                  "src": "6047:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1716,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "6047:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1719,
                  "mutability": "mutable",
                  "name": "input",
                  "nameLocation": "6087:5:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1743,
                  "src": "6074:18:12",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_memory_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 1718,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "6074:5:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1721,
                  "mutability": "mutable",
                  "name": "callbackMethodName",
                  "nameLocation": "6116:18:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1743,
                  "src": "6102:32:12",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_string_memory_ptr",
                    "typeString": "string"
                  },
                  "typeName": {
                    "id": 1720,
                    "name": "string",
                    "nodeType": "ElementaryTypeName",
                    "src": "6102:6:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_string_storage_ptr",
                      "typeString": "string"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1723,
                  "mutability": "mutable",
                  "name": "responsibleOracleId",
                  "nameLocation": "6152:19:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1743,
                  "src": "6144:27:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1722,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "6144:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6037:140:12"
            },
            "returnParameters": {
              "id": 1727,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1726,
                  "mutability": "mutable",
                  "name": "requestId",
                  "nameLocation": "6220:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1743,
                  "src": "6212:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1725,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "6212:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6211:19:12"
            },
            "scope": 1866,
            "src": "6020:411:12",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 1754,
              "nodeType": "Block",
              "src": "6501:57:12",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 1751,
                        "name": "requestId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1745,
                        "src": "6541:9:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "id": 1748,
                        "name": "_productService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1258,
                        "src": "6511:15:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IProductService_$4488",
                          "typeString": "contract IProductService"
                        }
                      },
                      "id": 1750,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "cancelRequest",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 4487,
                      "src": "6511:29:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$",
                        "typeString": "function (uint256) external"
                      }
                    },
                    "id": 1752,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "6511:40:12",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 1753,
                  "nodeType": "ExpressionStatement",
                  "src": "6511:40:12"
                }
              ]
            },
            "id": 1755,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_cancelRequest",
            "nameLocation": "6446:14:12",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1746,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1745,
                  "mutability": "mutable",
                  "name": "requestId",
                  "nameLocation": "6469:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1755,
                  "src": "6461:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1744,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "6461:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6460:19:12"
            },
            "returnParameters": {
              "id": 1747,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "6501:0:12"
            },
            "scope": 1866,
            "src": "6437:121:12",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 1768,
              "nodeType": "Block",
              "src": "6694:63:12",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 1765,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1757,
                        "src": "6740:9:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "id": 1763,
                        "name": "_instanceService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1261,
                        "src": "6711:16:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IInstanceService_$4333",
                          "typeString": "contract IInstanceService"
                        }
                      },
                      "id": 1764,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "getMetadata",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 4252,
                      "src": "6711:28:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_view$_t_bytes32_$returns$_t_struct$_Metadata_$3072_memory_ptr_$",
                        "typeString": "function (bytes32) view external returns (struct IPolicy.Metadata memory)"
                      }
                    },
                    "id": 1766,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "6711:39:12",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Metadata_$3072_memory_ptr",
                      "typeString": "struct IPolicy.Metadata memory"
                    }
                  },
                  "functionReturnParameters": 1762,
                  "id": 1767,
                  "nodeType": "Return",
                  "src": "6704:46:12"
                }
              ]
            },
            "id": 1769,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_getMetadata",
            "nameLocation": "6573:12:12",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1758,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1757,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "6594:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1769,
                  "src": "6586:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1756,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "6586:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6585:19:12"
            },
            "returnParameters": {
              "id": 1762,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1761,
                  "mutability": "mutable",
                  "name": "metadata",
                  "nameLocation": "6679:8:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1769,
                  "src": "6655:32:12",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_Metadata_$3072_memory_ptr",
                    "typeString": "struct IPolicy.Metadata"
                  },
                  "typeName": {
                    "id": 1760,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 1759,
                      "name": "IPolicy.Metadata",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 3072,
                      "src": "6655:16:12"
                    },
                    "referencedDeclaration": 3072,
                    "src": "6655:16:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Metadata_$3072_storage_ptr",
                      "typeString": "struct IPolicy.Metadata"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6654:34:12"
            },
            "scope": 1866,
            "src": "6564:193:12",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 1782,
              "nodeType": "Block",
              "src": "6902:66:12",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 1779,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1771,
                        "src": "6951:9:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "id": 1777,
                        "name": "_instanceService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1261,
                        "src": "6919:16:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IInstanceService_$4333",
                          "typeString": "contract IInstanceService"
                        }
                      },
                      "id": 1778,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "getApplication",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 4260,
                      "src": "6919:31:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_view$_t_bytes32_$returns$_t_struct$_Application_$3086_memory_ptr_$",
                        "typeString": "function (bytes32) view external returns (struct IPolicy.Application memory)"
                      }
                    },
                    "id": 1780,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "6919:42:12",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Application_$3086_memory_ptr",
                      "typeString": "struct IPolicy.Application memory"
                    }
                  },
                  "functionReturnParameters": 1776,
                  "id": 1781,
                  "nodeType": "Return",
                  "src": "6912:49:12"
                }
              ]
            },
            "id": 1783,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_getApplication",
            "nameLocation": "6772:15:12",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1772,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1771,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "6796:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1783,
                  "src": "6788:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1770,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "6788:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6787:19:12"
            },
            "returnParameters": {
              "id": 1776,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1775,
                  "mutability": "mutable",
                  "name": "application",
                  "nameLocation": "6884:11:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1783,
                  "src": "6857:38:12",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_Application_$3086_memory_ptr",
                    "typeString": "struct IPolicy.Application"
                  },
                  "typeName": {
                    "id": 1774,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 1773,
                      "name": "IPolicy.Application",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 3086,
                      "src": "6857:19:12"
                    },
                    "referencedDeclaration": 3086,
                    "src": "6857:19:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Application_$3086_storage_ptr",
                      "typeString": "struct IPolicy.Application"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6856:40:12"
            },
            "scope": 1866,
            "src": "6763:205:12",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 1796,
              "nodeType": "Block",
              "src": "7098:61:12",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 1793,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1785,
                        "src": "7142:9:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "id": 1791,
                        "name": "_instanceService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1261,
                        "src": "7115:16:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IInstanceService_$4333",
                          "typeString": "contract IInstanceService"
                        }
                      },
                      "id": 1792,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "getPolicy",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 4268,
                      "src": "7115:26:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_view$_t_bytes32_$returns$_t_struct$_Policy_$3106_memory_ptr_$",
                        "typeString": "function (bytes32) view external returns (struct IPolicy.Policy memory)"
                      }
                    },
                    "id": 1794,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "7115:37:12",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Policy_$3106_memory_ptr",
                      "typeString": "struct IPolicy.Policy memory"
                    }
                  },
                  "functionReturnParameters": 1790,
                  "id": 1795,
                  "nodeType": "Return",
                  "src": "7108:44:12"
                }
              ]
            },
            "id": 1797,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_getPolicy",
            "nameLocation": "6983:10:12",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1786,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1785,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "7002:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1797,
                  "src": "6994:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1784,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "6994:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "6993:19:12"
            },
            "returnParameters": {
              "id": 1790,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1789,
                  "mutability": "mutable",
                  "name": "policy",
                  "nameLocation": "7085:6:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1797,
                  "src": "7063:28:12",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_Policy_$3106_memory_ptr",
                    "typeString": "struct IPolicy.Policy"
                  },
                  "typeName": {
                    "id": 1788,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 1787,
                      "name": "IPolicy.Policy",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 3106,
                      "src": "7063:14:12"
                    },
                    "referencedDeclaration": 3106,
                    "src": "7063:14:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Policy_$3106_storage_ptr",
                      "typeString": "struct IPolicy.Policy"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7062:30:12"
            },
            "scope": 1866,
            "src": "6974:185:12",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 1813,
              "nodeType": "Block",
              "src": "7303:69:12",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 1809,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1799,
                        "src": "7346:9:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "id": 1810,
                        "name": "claimId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1801,
                        "src": "7357:7:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "id": 1807,
                        "name": "_instanceService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1261,
                        "src": "7320:16:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IInstanceService_$4333",
                          "typeString": "contract IInstanceService"
                        }
                      },
                      "id": 1808,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "getClaim",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 4292,
                      "src": "7320:25:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_view$_t_bytes32_$_t_uint256_$returns$_t_struct$_Claim_$3120_memory_ptr_$",
                        "typeString": "function (bytes32,uint256) view external returns (struct IPolicy.Claim memory)"
                      }
                    },
                    "id": 1811,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "7320:45:12",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Claim_$3120_memory_ptr",
                      "typeString": "struct IPolicy.Claim memory"
                    }
                  },
                  "functionReturnParameters": 1806,
                  "id": 1812,
                  "nodeType": "Return",
                  "src": "7313:52:12"
                }
              ]
            },
            "id": 1814,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_getClaim",
            "nameLocation": "7174:9:12",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1802,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1799,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "7192:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1814,
                  "src": "7184:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1798,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "7184:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1801,
                  "mutability": "mutable",
                  "name": "claimId",
                  "nameLocation": "7211:7:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1814,
                  "src": "7203:15:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1800,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "7203:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7183:36:12"
            },
            "returnParameters": {
              "id": 1806,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1805,
                  "mutability": "mutable",
                  "name": "claim",
                  "nameLocation": "7291:5:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1814,
                  "src": "7270:26:12",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_Claim_$3120_memory_ptr",
                    "typeString": "struct IPolicy.Claim"
                  },
                  "typeName": {
                    "id": 1804,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 1803,
                      "name": "IPolicy.Claim",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 3120,
                      "src": "7270:13:12"
                    },
                    "referencedDeclaration": 3120,
                    "src": "7270:13:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Claim_$3120_storage_ptr",
                      "typeString": "struct IPolicy.Claim"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7269:28:12"
            },
            "scope": 1866,
            "src": "7165:207:12",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "body": {
              "id": 1830,
              "nodeType": "Block",
              "src": "7520:71:12",
              "statements": [
                {
                  "expression": {
                    "arguments": [
                      {
                        "id": 1826,
                        "name": "processId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1816,
                        "src": "7564:9:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      },
                      {
                        "id": 1827,
                        "name": "payoutId",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1818,
                        "src": "7575:8:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      ],
                      "expression": {
                        "id": 1824,
                        "name": "_instanceService",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 1261,
                        "src": "7537:16:12",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_IInstanceService_$4333",
                          "typeString": "contract IInstanceService"
                        }
                      },
                      "id": 1825,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "getPayout",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 4302,
                      "src": "7537:26:12",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_external_view$_t_bytes32_$_t_uint256_$returns$_t_struct$_Payout_$3134_memory_ptr_$",
                        "typeString": "function (bytes32,uint256) view external returns (struct IPolicy.Payout memory)"
                      }
                    },
                    "id": 1828,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "7537:47:12",
                    "tryCall": false,
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Payout_$3134_memory_ptr",
                      "typeString": "struct IPolicy.Payout memory"
                    }
                  },
                  "functionReturnParameters": 1823,
                  "id": 1829,
                  "nodeType": "Return",
                  "src": "7530:54:12"
                }
              ]
            },
            "id": 1831,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "_getPayout",
            "nameLocation": "7387:10:12",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 1819,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1816,
                  "mutability": "mutable",
                  "name": "processId",
                  "nameLocation": "7406:9:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1831,
                  "src": "7398:17:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 1815,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "7398:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 1818,
                  "mutability": "mutable",
                  "name": "payoutId",
                  "nameLocation": "7425:8:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1831,
                  "src": "7417:16:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1817,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "7417:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7397:37:12"
            },
            "returnParameters": {
              "id": 1823,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1822,
                  "mutability": "mutable",
                  "name": "payout",
                  "nameLocation": "7507:6:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1831,
                  "src": "7485:28:12",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_Payout_$3134_memory_ptr",
                    "typeString": "struct IPolicy.Payout"
                  },
                  "typeName": {
                    "id": 1821,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 1820,
                      "name": "IPolicy.Payout",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 3134,
                      "src": "7485:14:12"
                    },
                    "referencedDeclaration": 3134,
                    "src": "7485:14:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Payout_$3134_storage_ptr",
                      "typeString": "struct IPolicy.Payout"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7484:30:12"
            },
            "scope": 1866,
            "src": "7378:213:12",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "internal"
          },
          {
            "baseFunctions": [
              887
            ],
            "body": {
              "id": 1839,
              "nodeType": "Block",
              "src": "7704:26:12",
              "statements": [
                {
                  "expression": {
                    "hexValue": "",
                    "id": 1837,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "7721:2:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
                      "typeString": "literal_string \"\""
                    },
                    "value": ""
                  },
                  "functionReturnParameters": 1836,
                  "id": 1838,
                  "nodeType": "Return",
                  "src": "7714:9:12"
                }
              ]
            },
            "functionSelector": "94f64ff4",
            "id": 1840,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getApplicationDataStructure",
            "nameLocation": "7606:27:12",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 1833,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "7645:8:12"
            },
            "parameters": {
              "id": 1832,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "7633:2:12"
            },
            "returnParameters": {
              "id": 1836,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1835,
                  "mutability": "mutable",
                  "name": "dataStructure",
                  "nameLocation": "7689:13:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1840,
                  "src": "7675:27:12",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_string_memory_ptr",
                    "typeString": "string"
                  },
                  "typeName": {
                    "id": 1834,
                    "name": "string",
                    "nodeType": "ElementaryTypeName",
                    "src": "7675:6:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_string_storage_ptr",
                      "typeString": "string"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7674:29:12"
            },
            "scope": 1866,
            "src": "7597:133:12",
            "stateMutability": "view",
            "virtual": true,
            "visibility": "external"
          },
          {
            "baseFunctions": [
              892
            ],
            "body": {
              "id": 1848,
              "nodeType": "Block",
              "src": "7837:26:12",
              "statements": [
                {
                  "expression": {
                    "hexValue": "",
                    "id": 1846,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "7854:2:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
                      "typeString": "literal_string \"\""
                    },
                    "value": ""
                  },
                  "functionReturnParameters": 1845,
                  "id": 1847,
                  "nodeType": "Return",
                  "src": "7847:9:12"
                }
              ]
            },
            "functionSelector": "3ec92bda",
            "id": 1849,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getClaimDataStructure",
            "nameLocation": "7745:21:12",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 1842,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "7778:8:12"
            },
            "parameters": {
              "id": 1841,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "7766:2:12"
            },
            "returnParameters": {
              "id": 1845,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1844,
                  "mutability": "mutable",
                  "name": "dataStructure",
                  "nameLocation": "7822:13:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1849,
                  "src": "7808:27:12",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_string_memory_ptr",
                    "typeString": "string"
                  },
                  "typeName": {
                    "id": 1843,
                    "name": "string",
                    "nodeType": "ElementaryTypeName",
                    "src": "7808:6:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_string_storage_ptr",
                      "typeString": "string"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7807:29:12"
            },
            "scope": 1866,
            "src": "7736:127:12",
            "stateMutability": "view",
            "virtual": true,
            "visibility": "external"
          },
          {
            "baseFunctions": [
              897
            ],
            "body": {
              "id": 1857,
              "nodeType": "Block",
              "src": "7974:26:12",
              "statements": [
                {
                  "expression": {
                    "hexValue": "",
                    "id": 1855,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": true,
                    "kind": "string",
                    "lValueRequested": false,
                    "nodeType": "Literal",
                    "src": "7991:2:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
                      "typeString": "literal_string \"\""
                    },
                    "value": ""
                  },
                  "functionReturnParameters": 1854,
                  "id": 1856,
                  "nodeType": "Return",
                  "src": "7984:9:12"
                }
              ]
            },
            "functionSelector": "39cf5e16",
            "id": 1858,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "getPayoutDataStructure",
            "nameLocation": "7881:22:12",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 1851,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "7915:8:12"
            },
            "parameters": {
              "id": 1850,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "7903:2:12"
            },
            "returnParameters": {
              "id": 1854,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1853,
                  "mutability": "mutable",
                  "name": "dataStructure",
                  "nameLocation": "7959:13:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1858,
                  "src": "7945:27:12",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_string_memory_ptr",
                    "typeString": "string"
                  },
                  "typeName": {
                    "id": 1852,
                    "name": "string",
                    "nodeType": "ElementaryTypeName",
                    "src": "7945:6:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_string_storage_ptr",
                      "typeString": "string"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "7944:29:12"
            },
            "scope": 1866,
            "src": "7872:128:12",
            "stateMutability": "view",
            "virtual": true,
            "visibility": "external"
          },
          {
            "baseFunctions": [
              902
            ],
            "body": {
              "id": 1864,
              "nodeType": "Block",
              "src": "8084:3:12",
              "statements": []
            },
            "functionSelector": "f4fdc1fa",
            "id": 1865,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "riskPoolCapacityCallback",
            "nameLocation": "8015:24:12",
            "nodeType": "FunctionDefinition",
            "overrides": {
              "id": 1862,
              "nodeType": "OverrideSpecifier",
              "overrides": [],
              "src": "8067:8:12"
            },
            "parameters": {
              "id": 1861,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 1860,
                  "mutability": "mutable",
                  "name": "capacity",
                  "nameLocation": "8048:8:12",
                  "nodeType": "VariableDeclaration",
                  "scope": 1865,
                  "src": "8040:16:12",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 1859,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "8040:7:12",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "8039:18:12"
            },
            "returnParameters": {
              "id": 1863,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "8084:0:12"
            },
            "scope": 1866,
            "src": "8006:81:12",
            "stateMutability": "nonpayable",
            "virtual": true,
            "visibility": "external"
          }
        ],
        "scope": 1867,
        "src": "233:7856:12"
      }
    ],
    "src": "39:8051:12"
  },
  "bytecode": "",
  "bytecodeSha1": "da39a3ee5e6b4b0d3255bfef95601890afd80709",
  "compiler": {
    "evm_version": "istanbul",
    "optimizer": {
      "enabled": true,
      "runs": 200
    },
    "version": "0.8.2+commit.661d1103"
  },
  "contractName": "Product",
  "coverageMap": {
    "branches": {},
    "statements": {}
  },
  "dependencies": [
    "Component",
    "OpenZeppelin/openzeppelin-contracts@4.7.3/Context",
    "IAccess",
    "IBundleToken",
    "IComponent",
    "IComponentEvents",
    "IComponentOwnerService",
    "OpenZeppelin/openzeppelin-contracts@4.7.3/IERC165",
    "OpenZeppelin/openzeppelin-contracts@4.7.3/IERC20",
    "OpenZeppelin/openzeppelin-contracts@4.7.3/IERC721",
    "IInstanceOperatorService",
    "IInstanceService",
    "IOracleService",
    "IProduct",
    "IProductService",
    "IRegistry",
    "IRiskpoolService",
    "OpenZeppelin/openzeppelin-contracts@4.7.3/Ownable"
  ],
  "deployedBytecode": "",
  "deployedSourceMap": "",
  "language": "Solidity",
  "natspec": {
    "kind": "dev",
    "methods": {
      "owner()": {
        "details": "Returns the address of the current owner."
      },
      "renounceOwnership()": {
        "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."
      },
      "transferOwnership(address)": {
        "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
      }
    },
    "version": 1
  },
  "offset": [
    233,
    8089
  ],
  "opcodes": "",
  "pcMap": {},
  "sha1": "14dc3776cb07c2009254ab1c5d030df3856d93a8",
  "source": "// SPDX-License-Identifier: Apache-2.0\npragma solidity 0.8.2;\n\nimport \"./IProduct.sol\";\nimport \"./Component.sol\";\nimport \"../modules/IPolicy.sol\";\nimport \"../services/IInstanceService.sol\";\nimport \"../services/IProductService.sol\";\n\nabstract contract Product is\n    IProduct, \n    Component \n{    \n    address private _policyFlow; // policy flow contract to use for this procut\n    address private _token; // erc20 token to use for this product\n    uint256 private _riskpoolId; // id of riskpool responsible for this product\n\n    IProductService internal _productService;\n    IInstanceService internal _instanceService;\n\n    modifier onlyPolicyHolder(bytes32 policyId) {\n        address policyHolder = _instanceService.getMetadata(policyId).owner;\n        require(\n            _msgSender() == policyHolder, \n            \"ERROR:PRD-001:POLICY_OR_HOLDER_INVALID\"\n        );\n        _;\n    }\n\n    modifier onlyLicence {\n        require(\n             _msgSender() == _getContractAddress(\"Licence\"),\n            \"ERROR:PRD-002:ACCESS_DENIED\"\n        );\n        _;\n    }\n\n    modifier onlyOracle {\n        require(\n             _msgSender() == _getContractAddress(\"Query\"),\n            \"ERROR:PRD-003:ACCESS_DENIED\"\n        );\n        _;\n    }\n\n    constructor(\n        bytes32 name,\n        address token,\n        bytes32 policyFlow,\n        uint256 riskpoolId,\n        address registry\n    )\n        Component(name, ComponentType.Product, registry)\n    {\n        _token = token;\n        _riskpoolId = riskpoolId;\n\n        // TODO add validation for policy flow\n        _policyFlow = _getContractAddress(policyFlow);\n        _productService = IProductService(_getContractAddress(\"ProductService\"));\n        _instanceService = IInstanceService(_getContractAddress(\"InstanceService\"));\n\n        emit LogProductCreated(address(this));\n    }\n\n    function getToken() public override view returns(address) {\n        return _token;\n    }\n\n    function getPolicyFlow() public view override returns(address) {\n        return _policyFlow;\n    }\n\n    function getRiskpoolId() public override view returns(uint256) {\n        return _riskpoolId;\n    }\n\n    // default callback function implementations\n    function _afterApprove() internal override { emit LogProductApproved(getId()); }\n\n    function _afterPropose() internal override { emit LogProductProposed(getId()); }\n    function _afterDecline() internal override { emit LogProductDeclined(getId()); }\n\n    function _newApplication(\n        address applicationOwner,\n        uint256 premiumAmount,\n        uint256 sumInsuredAmount,\n        bytes memory metaData, \n        bytes memory applicationData \n    )\n        internal\n        returns(bytes32 processId)\n    {\n        processId = _productService.newApplication(\n            applicationOwner, \n            premiumAmount, \n            sumInsuredAmount, \n            metaData, \n            applicationData);\n    }\n\n    function _collectPremium(bytes32 processId) \n        internal\n        returns(\n            bool success,\n            uint256 feeAmount,\n            uint256 netAmount\n        )\n    {\n        IPolicy.Policy memory policy = _getPolicy(processId);\n\n        if (policy.premiumPaidAmount < policy.premiumExpectedAmount) {\n            (success, feeAmount, netAmount) \n                = _collectPremium(\n                    processId, \n                    policy.premiumExpectedAmount - policy.premiumPaidAmount\n                );\n        }\n    }\n\n    function _collectPremium(\n        bytes32 processId,\n        uint256 amount\n    )\n        internal\n        returns(\n            bool success,\n            uint256 feeAmount,\n            uint256 netAmount\n        )\n    {\n        (success, feeAmount, netAmount) = _productService.collectPremium(processId, amount);\n    }\n\n    function _adjustPremiumSumInsured(\n        bytes32 processId,\n        uint256 expectedPremiumAmount,\n        uint256 sumInsuredAmount\n    ) internal {\n        _productService.adjustPremiumSumInsured(processId, expectedPremiumAmount, sumInsuredAmount);\n    }\n\n    function _revoke(bytes32 processId) internal {\n        _productService.revoke(processId);\n    }\n\n    function _underwrite(bytes32 processId) internal returns(bool success) {\n        success = _productService.underwrite(processId);\n    }\n\n    function _decline(bytes32 processId) internal {\n        _productService.decline(processId);\n    }\n\n    function _expire(bytes32 processId) internal {\n        _productService.expire(processId);\n    }\n\n    function _close(bytes32 processId) internal {\n        _productService.close(processId);\n    }\n\n    function _newClaim(\n        bytes32 processId, \n        uint256 claimAmount,\n        bytes memory data\n    ) \n        internal\n        returns (uint256 claimId)\n    {\n        claimId = _productService.newClaim(\n            processId, \n            claimAmount, \n            data);\n    }\n\n    function _confirmClaim(\n        bytes32 processId,\n        uint256 claimId,\n        uint256 payoutAmount\n    )\n        internal\n    {\n        _productService.confirmClaim(\n            processId, \n            claimId, \n            payoutAmount);\n    }\n\n    function _declineClaim(bytes32 processId, uint256 claimId) internal {\n        _productService.declineClaim(processId, claimId);\n    }\n\n    function _closeClaim(bytes32 processId, uint256 claimId) internal {\n        _productService.closeClaim(processId, claimId);\n    }\n\n    function _newPayout(\n        bytes32 processId,\n        uint256 claimId,\n        uint256 amount,\n        bytes memory data\n    )\n        internal\n        returns(uint256 payoutId)\n    {\n        payoutId = _productService.newPayout(processId, claimId, amount, data);\n    }\n\n    function _processPayout(\n        bytes32 processId,\n        uint256 payoutId\n    )\n        internal\n        returns(\n            uint256 feeAmount,\n            uint256 netPayoutAmount\n        )\n    {\n        (\n            feeAmount,\n            netPayoutAmount\n        ) = _productService.processPayout(processId, payoutId);\n    }\n\n    function _request(\n        bytes32 processId,\n        bytes memory input,\n        string memory callbackMethodName,\n        uint256 responsibleOracleId\n    )\n        internal\n        returns (uint256 requestId)\n    {\n        requestId = _productService.request(\n            processId,\n            input,\n            callbackMethodName,\n            address(this),\n            responsibleOracleId\n        );\n    }\n\n    function _cancelRequest(uint256 requestId)\n        internal\n    {\n        _productService.cancelRequest(requestId);\n    }\n\n    function _getMetadata(bytes32 processId) \n        internal \n        view \n        returns (IPolicy.Metadata memory metadata) \n    {\n        return _instanceService.getMetadata(processId);\n    }\n\n    function _getApplication(bytes32 processId) \n        internal \n        view \n        returns (IPolicy.Application memory application) \n    {\n        return _instanceService.getApplication(processId);\n    }\n\n    function _getPolicy(bytes32 processId) \n        internal \n        view \n        returns (IPolicy.Policy memory policy) \n    {\n        return _instanceService.getPolicy(processId);\n    }\n\n    function _getClaim(bytes32 processId, uint256 claimId) \n        internal \n        view \n        returns (IPolicy.Claim memory claim) \n    {\n        return _instanceService.getClaim(processId, claimId);\n    }\n\n    function _getPayout(bytes32 processId, uint256 payoutId) \n        internal \n        view \n        returns (IPolicy.Payout memory payout) \n    {\n        return _instanceService.getPayout(processId, payoutId);\n    }\n\n    function getApplicationDataStructure() external override virtual view returns(string memory dataStructure) {\n        return \"\";\n    }\n\n    function getClaimDataStructure() external override virtual view returns(string memory dataStructure) {\n        return \"\";\n    }    \n    function getPayoutDataStructure() external override virtual view returns(string memory dataStructure) {\n        return \"\";\n    }\n\n    function riskPoolCapacityCallback(uint256 capacity) external override virtual { }\n}\n",
  "sourceMap": "",
  "sourcePath": "contracts/components/Product.sol",
  "type": "contract"
}