{
  "abi": [
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "id",
          "type": "uint256"
        },
        {
          "internalType": "bytes",
          "name": "data",
          "type": "bytes"
        }
      ],
      "name": "adjustStakingRequirements",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "id",
          "type": "uint256"
        }
      ],
      "name": "approve",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "id",
          "type": "uint256"
        }
      ],
      "name": "archive",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "componentId",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "fixedFee",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "fractionalFee",
          "type": "uint256"
        },
        {
          "internalType": "bytes",
          "name": "feeCalculationData",
          "type": "bytes"
        }
      ],
      "name": "createFeeSpecification",
      "outputs": [
        {
          "components": [
            {
              "internalType": "uint256",
              "name": "componentId",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "fixedFee",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "fractionalFee",
              "type": "uint256"
            },
            {
              "internalType": "bytes",
              "name": "feeCalculationData",
              "type": "bytes"
            },
            {
              "internalType": "uint256",
              "name": "createdAt",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "updatedAt",
              "type": "uint256"
            }
          ],
          "internalType": "struct ITreasury.FeeSpecification",
          "name": "",
          "type": "tuple"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes32",
          "name": "role",
          "type": "bytes32"
        }
      ],
      "name": "createRole",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "id",
          "type": "uint256"
        }
      ],
      "name": "decline",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes32",
          "name": "contractName",
          "type": "bytes32"
        }
      ],
      "name": "deregister",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes32",
          "name": "release",
          "type": "bytes32"
        },
        {
          "internalType": "bytes32",
          "name": "contractName",
          "type": "bytes32"
        }
      ],
      "name": "deregisterInRelease",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes32",
          "name": "role",
          "type": "bytes32"
        },
        {
          "internalType": "address",
          "name": "principal",
          "type": "address"
        }
      ],
      "name": "grantRole",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes32",
          "name": "role",
          "type": "bytes32"
        }
      ],
      "name": "invalidateRole",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes32",
          "name": "newRelease",
          "type": "bytes32"
        }
      ],
      "name": "prepareRelease",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes32",
          "name": "contractName",
          "type": "bytes32"
        },
        {
          "internalType": "address",
          "name": "contractAddress",
          "type": "address"
        }
      ],
      "name": "register",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes32",
          "name": "release",
          "type": "bytes32"
        },
        {
          "internalType": "bytes32",
          "name": "contractName",
          "type": "bytes32"
        },
        {
          "internalType": "address",
          "name": "contractAddress",
          "type": "address"
        }
      ],
      "name": "registerInRelease",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "id",
          "type": "uint256"
        }
      ],
      "name": "resume",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "resumeTreasury",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes32",
          "name": "role",
          "type": "bytes32"
        },
        {
          "internalType": "address",
          "name": "principal",
          "type": "address"
        }
      ],
      "name": "revokeRole",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "components": [
            {
              "internalType": "uint256",
              "name": "componentId",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "fixedFee",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "fractionalFee",
              "type": "uint256"
            },
            {
              "internalType": "bytes",
              "name": "feeCalculationData",
              "type": "bytes"
            },
            {
              "internalType": "uint256",
              "name": "createdAt",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "updatedAt",
              "type": "uint256"
            }
          ],
          "internalType": "struct ITreasury.FeeSpecification",
          "name": "feeSpec",
          "type": "tuple"
        }
      ],
      "name": "setCapitalFees",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint16",
          "name": "componentType",
          "type": "uint16"
        },
        {
          "internalType": "bytes",
          "name": "data",
          "type": "bytes"
        }
      ],
      "name": "setDefaultStaking",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "walletAddress",
          "type": "address"
        }
      ],
      "name": "setInstanceWallet",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "components": [
            {
              "internalType": "uint256",
              "name": "componentId",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "fixedFee",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "fractionalFee",
              "type": "uint256"
            },
            {
              "internalType": "bytes",
              "name": "feeCalculationData",
              "type": "bytes"
            },
            {
              "internalType": "uint256",
              "name": "createdAt",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "updatedAt",
              "type": "uint256"
            }
          ],
          "internalType": "struct ITreasury.FeeSpecification",
          "name": "feeSpec",
          "type": "tuple"
        }
      ],
      "name": "setPremiumFees",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "productId",
          "type": "uint256"
        },
        {
          "internalType": "address",
          "name": "erc20Address",
          "type": "address"
        }
      ],
      "name": "setProductToken",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "riskpoolId",
          "type": "uint256"
        },
        {
          "internalType": "address",
          "name": "walletAddress",
          "type": "address"
        }
      ],
      "name": "setRiskpoolWallet",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "id",
          "type": "uint256"
        }
      ],
      "name": "suspend",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "suspendTreasury",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ],
  "allSourcePaths": {
    "41": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceOperatorService.sol"
  },
  "ast": {
    "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceOperatorService.sol",
    "exportedSymbols": {
      "IERC20": [
        15820
      ],
      "IInstanceOperatorService": [
        23282
      ],
      "ITreasury": [
        12909
      ]
    },
    "id": 23283,
    "license": "Apache-2.0",
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 23133,
        "literals": [
          "solidity",
          "0.8",
          ".2"
        ],
        "nodeType": "PragmaDirective",
        "src": "39:22:41"
      },
      {
        "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/ITreasury.sol",
        "file": "../modules/ITreasury.sol",
        "id": 23134,
        "nameLocation": "-1:-1:-1",
        "nodeType": "ImportDirective",
        "scope": 23283,
        "sourceUnit": 12910,
        "src": "63:34:41",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "abstract": false,
        "baseContracts": [],
        "contractDependencies": [],
        "contractKind": "interface",
        "fullyImplemented": false,
        "id": 23282,
        "linearizedBaseContracts": [
          23282
        ],
        "name": "IInstanceOperatorService",
        "nameLocation": "109:24:41",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "functionSelector": "893917ea",
            "id": 23139,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "prepareRelease",
            "nameLocation": "166:14:41",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 23137,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 23136,
                  "mutability": "mutable",
                  "name": "newRelease",
                  "nameLocation": "189:10:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23139,
                  "src": "181:18:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 23135,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "181:7:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "180:20:41"
            },
            "returnParameters": {
              "id": 23138,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "209:0:41"
            },
            "scope": 23282,
            "src": "157:53:41",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "d22057a9",
            "id": 23146,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "register",
            "nameLocation": "224:8:41",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 23144,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 23141,
                  "mutability": "mutable",
                  "name": "contractName",
                  "nameLocation": "241:12:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23146,
                  "src": "233:20:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 23140,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "233:7:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 23143,
                  "mutability": "mutable",
                  "name": "contractAddress",
                  "nameLocation": "263:15:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23146,
                  "src": "255:23:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 23142,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "255:7:41",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "232:47:41"
            },
            "returnParameters": {
              "id": 23145,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "288:0:41"
            },
            "scope": 23282,
            "src": "215:74:41",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "20813154",
            "id": 23151,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "deregister",
            "nameLocation": "303:10:41",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 23149,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 23148,
                  "mutability": "mutable",
                  "name": "contractName",
                  "nameLocation": "322:12:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23151,
                  "src": "314:20:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 23147,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "314:7:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "313:22:41"
            },
            "returnParameters": {
              "id": 23150,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "344:0:41"
            },
            "scope": 23282,
            "src": "294:51:41",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "1d5e7314",
            "id": 23160,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "registerInRelease",
            "nameLocation": "359:17:41",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 23158,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 23153,
                  "mutability": "mutable",
                  "name": "release",
                  "nameLocation": "385:7:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23160,
                  "src": "377:15:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 23152,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "377:7:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 23155,
                  "mutability": "mutable",
                  "name": "contractName",
                  "nameLocation": "402:12:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23160,
                  "src": "394:20:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 23154,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "394:7:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 23157,
                  "mutability": "mutable",
                  "name": "contractAddress",
                  "nameLocation": "424:15:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23160,
                  "src": "416:23:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 23156,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "416:7:41",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "376:64:41"
            },
            "returnParameters": {
              "id": 23159,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "449:0:41"
            },
            "scope": 23282,
            "src": "350:100:41",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "dc527b08",
            "id": 23167,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "deregisterInRelease",
            "nameLocation": "464:19:41",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 23165,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 23162,
                  "mutability": "mutable",
                  "name": "release",
                  "nameLocation": "492:7:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23167,
                  "src": "484:15:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 23161,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "484:7:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 23164,
                  "mutability": "mutable",
                  "name": "contractName",
                  "nameLocation": "509:12:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23167,
                  "src": "501:20:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 23163,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "501:7:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "483:39:41"
            },
            "returnParameters": {
              "id": 23166,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "531:0:41"
            },
            "scope": 23282,
            "src": "455:77:41",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "c42994a2",
            "id": 23172,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "createRole",
            "nameLocation": "561:10:41",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 23170,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 23169,
                  "mutability": "mutable",
                  "name": "role",
                  "nameLocation": "580:4:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23172,
                  "src": "572:12:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 23168,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "572:7:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "571:14:41"
            },
            "returnParameters": {
              "id": 23171,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "594:0:41"
            },
            "scope": 23282,
            "src": "552:43:41",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "d17d0233",
            "id": 23177,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "invalidateRole",
            "nameLocation": "609:14:41",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 23175,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 23174,
                  "mutability": "mutable",
                  "name": "role",
                  "nameLocation": "632:4:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23177,
                  "src": "624:12:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 23173,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "624:7:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "623:14:41"
            },
            "returnParameters": {
              "id": 23176,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "646:0:41"
            },
            "scope": 23282,
            "src": "600:47:41",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "2f2ff15d",
            "id": 23184,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "grantRole",
            "nameLocation": "661:9:41",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 23182,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 23179,
                  "mutability": "mutable",
                  "name": "role",
                  "nameLocation": "679:4:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23184,
                  "src": "671:12:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 23178,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "671:7:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 23181,
                  "mutability": "mutable",
                  "name": "principal",
                  "nameLocation": "693:9:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23184,
                  "src": "685:17:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 23180,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "685:7:41",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "670:33:41"
            },
            "returnParameters": {
              "id": 23183,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "712:0:41"
            },
            "scope": 23282,
            "src": "652:61:41",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "d547741f",
            "id": 23191,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "revokeRole",
            "nameLocation": "727:10:41",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 23189,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 23186,
                  "mutability": "mutable",
                  "name": "role",
                  "nameLocation": "746:4:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23191,
                  "src": "738:12:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 23185,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "738:7:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 23188,
                  "mutability": "mutable",
                  "name": "principal",
                  "nameLocation": "760:9:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23191,
                  "src": "752:17:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 23187,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "752:7:41",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "737:33:41"
            },
            "returnParameters": {
              "id": 23190,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "779:0:41"
            },
            "scope": 23282,
            "src": "718:62:41",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "b759f954",
            "id": 23196,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "approve",
            "nameLocation": "812:7:41",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 23194,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 23193,
                  "mutability": "mutable",
                  "name": "id",
                  "nameLocation": "828:2:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23196,
                  "src": "820:10:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 23192,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "820:7:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "819:12:41"
            },
            "returnParameters": {
              "id": 23195,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "840:0:41"
            },
            "scope": 23282,
            "src": "803:38:41",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "a0355f4e",
            "id": 23201,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "decline",
            "nameLocation": "855:7:41",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 23199,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 23198,
                  "mutability": "mutable",
                  "name": "id",
                  "nameLocation": "871:2:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23201,
                  "src": "863:10:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 23197,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "863:7:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "862:12:41"
            },
            "returnParameters": {
              "id": 23200,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "883:0:41"
            },
            "scope": 23282,
            "src": "846:38:41",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "4b865846",
            "id": 23206,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "suspend",
            "nameLocation": "898:7:41",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 23204,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 23203,
                  "mutability": "mutable",
                  "name": "id",
                  "nameLocation": "914:2:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23206,
                  "src": "906:10:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 23202,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "906:7:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "905:12:41"
            },
            "returnParameters": {
              "id": 23205,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "926:0:41"
            },
            "scope": 23282,
            "src": "889:38:41",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "414000b5",
            "id": 23211,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "resume",
            "nameLocation": "941:6:41",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 23209,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 23208,
                  "mutability": "mutable",
                  "name": "id",
                  "nameLocation": "956:2:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23211,
                  "src": "948:10:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 23207,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "948:7:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "947:12:41"
            },
            "returnParameters": {
              "id": 23210,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "968:0:41"
            },
            "scope": 23282,
            "src": "932:37:41",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "93c829fc",
            "id": 23216,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "archive",
            "nameLocation": "983:7:41",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 23214,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 23213,
                  "mutability": "mutable",
                  "name": "id",
                  "nameLocation": "999:2:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23216,
                  "src": "991:10:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 23212,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "991:7:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "990:12:41"
            },
            "returnParameters": {
              "id": 23215,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1011:0:41"
            },
            "scope": 23282,
            "src": "974:38:41",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "394c78ba",
            "id": 23223,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "setDefaultStaking",
            "nameLocation": "1054:17:41",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 23221,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 23218,
                  "mutability": "mutable",
                  "name": "componentType",
                  "nameLocation": "1079:13:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23223,
                  "src": "1072:20:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint16",
                    "typeString": "uint16"
                  },
                  "typeName": {
                    "id": 23217,
                    "name": "uint16",
                    "nodeType": "ElementaryTypeName",
                    "src": "1072:6:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint16",
                      "typeString": "uint16"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 23220,
                  "mutability": "mutable",
                  "name": "data",
                  "nameLocation": "1109:4:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23223,
                  "src": "1094:19:41",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_calldata_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 23219,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "1094:5:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1071:43:41"
            },
            "returnParameters": {
              "id": 23222,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1123:0:41"
            },
            "scope": 23282,
            "src": "1045:79:41",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "72beb6fb",
            "id": 23230,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "adjustStakingRequirements",
            "nameLocation": "1138:25:41",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 23228,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 23225,
                  "mutability": "mutable",
                  "name": "id",
                  "nameLocation": "1172:2:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23230,
                  "src": "1164:10:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 23224,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1164:7:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 23227,
                  "mutability": "mutable",
                  "name": "data",
                  "nameLocation": "1191:4:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23230,
                  "src": "1176:19:41",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_calldata_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 23226,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "1176:5:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1163:33:41"
            },
            "returnParameters": {
              "id": 23229,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1205:0:41"
            },
            "scope": 23282,
            "src": "1129:77:41",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "d5fe1f10",
            "id": 23233,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "suspendTreasury",
            "nameLocation": "1237:15:41",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 23231,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1252:2:41"
            },
            "returnParameters": {
              "id": 23232,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1263:0:41"
            },
            "scope": 23282,
            "src": "1228:36:41",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "10a81c4a",
            "id": 23236,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "resumeTreasury",
            "nameLocation": "1278:14:41",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 23234,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1292:2:41"
            },
            "returnParameters": {
              "id": 23235,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1303:0:41"
            },
            "scope": 23282,
            "src": "1269:35:41",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "cab2504d",
            "id": 23241,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "setInstanceWallet",
            "nameLocation": "1323:17:41",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 23239,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 23238,
                  "mutability": "mutable",
                  "name": "walletAddress",
                  "nameLocation": "1349:13:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23241,
                  "src": "1341:21:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 23237,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1341:7:41",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1340:23:41"
            },
            "returnParameters": {
              "id": 23240,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1372:0:41"
            },
            "scope": 23282,
            "src": "1314:59:41",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "86039aed",
            "id": 23248,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "setRiskpoolWallet",
            "nameLocation": "1387:17:41",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 23246,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 23243,
                  "mutability": "mutable",
                  "name": "riskpoolId",
                  "nameLocation": "1413:10:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23248,
                  "src": "1405:18:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 23242,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1405:7:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 23245,
                  "mutability": "mutable",
                  "name": "walletAddress",
                  "nameLocation": "1433:13:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23248,
                  "src": "1425:21:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 23244,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1425:7:41",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1404:43:41"
            },
            "returnParameters": {
              "id": 23247,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1456:0:41"
            },
            "scope": 23282,
            "src": "1378:79:41",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "cc9cf8cd",
            "id": 23255,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "setProductToken",
            "nameLocation": "1473:15:41",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 23253,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 23250,
                  "mutability": "mutable",
                  "name": "productId",
                  "nameLocation": "1497:9:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23255,
                  "src": "1489:17:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 23249,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1489:7:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 23252,
                  "mutability": "mutable",
                  "name": "erc20Address",
                  "nameLocation": "1516:12:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23255,
                  "src": "1508:20:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 23251,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1508:7:41",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1488:41:41"
            },
            "returnParameters": {
              "id": 23254,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1538:0:41"
            },
            "scope": 23282,
            "src": "1464:75:41",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "01132a7f",
            "id": 23261,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "setPremiumFees",
            "nameLocation": "1555:14:41",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 23259,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 23258,
                  "mutability": "mutable",
                  "name": "feeSpec",
                  "nameLocation": "1606:7:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23261,
                  "src": "1570:43:41",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_FeeSpecification_$12773_calldata_ptr",
                    "typeString": "struct ITreasury.FeeSpecification"
                  },
                  "typeName": {
                    "id": 23257,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 23256,
                      "name": "ITreasury.FeeSpecification",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 12773,
                      "src": "1570:26:41"
                    },
                    "referencedDeclaration": 12773,
                    "src": "1570:26:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_FeeSpecification_$12773_storage_ptr",
                      "typeString": "struct ITreasury.FeeSpecification"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1569:45:41"
            },
            "returnParameters": {
              "id": 23260,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1623:0:41"
            },
            "scope": 23282,
            "src": "1546:78:41",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "8ca946aa",
            "id": 23267,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "setCapitalFees",
            "nameLocation": "1638:14:41",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 23265,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 23264,
                  "mutability": "mutable",
                  "name": "feeSpec",
                  "nameLocation": "1689:7:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23267,
                  "src": "1653:43:41",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_FeeSpecification_$12773_calldata_ptr",
                    "typeString": "struct ITreasury.FeeSpecification"
                  },
                  "typeName": {
                    "id": 23263,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 23262,
                      "name": "ITreasury.FeeSpecification",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 12773,
                      "src": "1653:26:41"
                    },
                    "referencedDeclaration": 12773,
                    "src": "1653:26:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_FeeSpecification_$12773_storage_ptr",
                      "typeString": "struct ITreasury.FeeSpecification"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1652:45:41"
            },
            "returnParameters": {
              "id": 23266,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1706:0:41"
            },
            "scope": 23282,
            "src": "1629:78:41",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "62f0ab55",
            "id": 23281,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "createFeeSpecification",
            "nameLocation": "1726:22:41",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 23276,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 23269,
                  "mutability": "mutable",
                  "name": "componentId",
                  "nameLocation": "1766:11:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23281,
                  "src": "1758:19:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 23268,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1758:7:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 23271,
                  "mutability": "mutable",
                  "name": "fixedFee",
                  "nameLocation": "1795:8:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23281,
                  "src": "1787:16:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 23270,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1787:7:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 23273,
                  "mutability": "mutable",
                  "name": "fractionalFee",
                  "nameLocation": "1821:13:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23281,
                  "src": "1813:21:41",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 23272,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1813:7:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 23275,
                  "mutability": "mutable",
                  "name": "feeCalculationData",
                  "nameLocation": "1859:18:41",
                  "nodeType": "VariableDeclaration",
                  "scope": 23281,
                  "src": "1844:33:41",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes_calldata_ptr",
                    "typeString": "bytes"
                  },
                  "typeName": {
                    "id": 23274,
                    "name": "bytes",
                    "nodeType": "ElementaryTypeName",
                    "src": "1844:5:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes_storage_ptr",
                      "typeString": "bytes"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1748:135:41"
            },
            "returnParameters": {
              "id": 23280,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 23279,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 23281,
                  "src": "1906:33:41",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_FeeSpecification_$12773_memory_ptr",
                    "typeString": "struct ITreasury.FeeSpecification"
                  },
                  "typeName": {
                    "id": 23278,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 23277,
                      "name": "ITreasury.FeeSpecification",
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 12773,
                      "src": "1906:26:41"
                    },
                    "referencedDeclaration": 12773,
                    "src": "1906:26:41",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_FeeSpecification_$12773_storage_ptr",
                      "typeString": "struct ITreasury.FeeSpecification"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "1905:35:41"
            },
            "scope": 23282,
            "src": "1717:224:41",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "external"
          }
        ],
        "scope": 23283,
        "src": "99:1846:41"
      }
    ],
    "src": "39:1907:41"
  },
  "bytecode": "",
  "bytecodeSha1": "da39a3ee5e6b4b0d3255bfef95601890afd80709",
  "compiler": {
    "evm_version": "istanbul",
    "optimizer": {
      "enabled": true,
      "runs": 200
    },
    "version": "0.8.2+commit.661d1103"
  },
  "contractName": "IInstanceOperatorService",
  "coverageMap": {
    "branches": {},
    "statements": {}
  },
  "dependencies": [],
  "deployedBytecode": "",
  "deployedSourceMap": "",
  "language": "Solidity",
  "natspec": {
    "kind": "dev",
    "methods": {},
    "version": 1
  },
  "offset": [
    99,
    1945
  ],
  "opcodes": "",
  "pcMap": {},
  "sha1": "5272be818b27d0fa9b04dc4f019b4c501e240062",
  "source": "// SPDX-License-Identifier: Apache-2.0\npragma solidity 0.8.2;\n\nimport \"../modules/ITreasury.sol\";\n\ninterface IInstanceOperatorService {\n\n    // registry\n    function prepareRelease(bytes32 newRelease) external;\n    function register(bytes32 contractName, address contractAddress) external;\n    function deregister(bytes32 contractName) external;\n    function registerInRelease(bytes32 release, bytes32 contractName, address contractAddress) external;\n    function deregisterInRelease(bytes32 release, bytes32 contractName) external;\n\n    // access\n    function createRole(bytes32 role) external;\n    function invalidateRole(bytes32 role) external;\n    function grantRole(bytes32 role, address principal) external;\n    function revokeRole(bytes32 role, address principal) external;\n\n    // component\n    function approve(uint256 id) external;\n    function decline(uint256 id) external;\n    function suspend(uint256 id) external;\n    function resume(uint256 id) external;\n    function archive(uint256 id) external;\n    \n    // service staking\n    function setDefaultStaking(uint16 componentType, bytes calldata data) external;\n    function adjustStakingRequirements(uint256 id, bytes calldata data) external;\n\n    // treasury\n    function suspendTreasury() external;\n    function resumeTreasury() external;\n    \n    function setInstanceWallet(address walletAddress) external;\n    function setRiskpoolWallet(uint256 riskpoolId, address walletAddress) external;  \n    function setProductToken(uint256 productId, address erc20Address) external; \n\n    function setPremiumFees(ITreasury.FeeSpecification calldata feeSpec) external;\n    function setCapitalFees(ITreasury.FeeSpecification calldata feeSpec) external;\n    \n    function createFeeSpecification(\n        uint256 componentId,\n        uint256 fixedFee,\n        uint256 fractionalFee,\n        bytes calldata feeCalculationData\n    ) external view returns(ITreasury.FeeSpecification memory);\n\n\n}\n",
  "sourceMap": "",
  "sourcePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceOperatorService.sol",
  "type": "interface"
}