UNPKG

@etherisc/gif-contracts

Version:

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

1,546 lines (1,545 loc) 864 kB
{ "abi": [ { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint8", "name": "version", "type": "uint8" } ], "name": "Initialized", "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": [ { "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": "address", "name": "registry", "type": "address" } ], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "_role", "type": "bytes32" } ], "name": "invalidateRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "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": [], "name": "renounceOwnership", "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": "riskpoolWalletAddress", "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" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "allSourcePaths": { "0": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/access/AccessControl.sol", "1": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/access/AccessControlEnumerable.sol", "10": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/proxy/utils/Initializable.sol", "101": "contracts/tokens/BundleToken.sol", "11": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/security/Pausable.sol", "13": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC20/IERC20.sol", "17": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC721/ERC721.sol", "18": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC721/IERC721.sol", "19": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC721/IERC721Receiver.sol", "2": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/access/IAccessControl.sol", "20": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC721/extensions/IERC721Metadata.sol", "21": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/utils/Address.sol", "22": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/utils/Context.sol", "24": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/utils/Strings.sol", "25": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/utils/introspection/ERC165.sol", "26": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/utils/introspection/IERC165.sol", "27": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/utils/structs/EnumerableSet.sol", "3": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/access/IAccessControlEnumerable.sol", "30": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol", "32": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IProduct.sol", "33": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IRiskpool.sol", "37": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IAccess.sol", "38": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IBundle.sol", "39": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IComponentEvents.sol", "4": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/access/Ownable.sol", "41": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IPolicy.sol", "42": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IPool.sol", "44": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IRegistry.sol", "45": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/ITreasury.sol", "47": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceOperatorService.sol", "53": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/tokens/IBundleToken.sol", "73": "contracts/modules/AccessController.sol", "74": "contracts/modules/BundleController.sol", "75": "contracts/modules/ComponentController.sol", "77": "contracts/modules/PolicyController.sol", "78": "contracts/modules/PoolController.sol", "81": "contracts/modules/TreasuryModule.sol", "83": "contracts/services/InstanceOperatorService.sol", "88": "contracts/shared/CoreController.sol", "90": "contracts/shared/TransferHelper.sol" }, "ast": { "absolutePath": "contracts/services/InstanceOperatorService.sol", "exportedSymbols": { "AccessControl": [ 18281 ], "AccessControlEnumerable": [ 21875 ], "AccessController": [ 4246 ], "Address": [ 26374 ], "BundleController": [ 5504 ], "BundleToken": [ 17246 ], "Component": [ 25407 ], "ComponentController": [ 6504 ], "Context": [ 24074 ], "CoreController": [ 14924 ], "ERC165": [ 26079 ], "ERC20": [ 21536 ], "ERC721": [ 24987 ], "EnumerableSet": [ 19390 ], "IAccess": [ 21938 ], "IAccessControl": [ 26055 ], "IAccessControlEnumerable": [ 27191 ], "IBundle": [ 20491 ], "IBundleToken": [ 24052 ], "IComponent": [ 22099 ], "IComponentEvents": [ 22419 ], "IComponentOwnerService": [ 23478 ], "IERC165": [ 27203 ], "IERC20": [ 18510 ], "IERC20Metadata": [ 27166 ], "IERC721": [ 23745 ], "IERC721Metadata": [ 27618 ], "IERC721Receiver": [ 27591 ], "IInstanceOperatorService": [ 23629 ], "IInstanceService": [ 22849 ], "IOracle": [ 22133 ], "IOracleService": [ 23755 ], "IPolicy": [ 20837 ], "IPool": [ 21652 ], "IProduct": [ 21995 ], "IProductService": [ 23900 ], "IQuery": [ 22500 ], "IRegistry": [ 21750 ], "IRiskpool": [ 22366 ], "IRiskpoolService": [ 24006 ], "ITreasury": [ 23443 ], "Initializable": [ 18432 ], "InstanceOperatorService": [ 12904 ], "Ownable": [ 20950 ], "Pausable": [ 23183 ], "PolicyController": [ 8529 ], "PoolController": [ 9719 ], "Product": [ 20018 ], "Strings": [ 23075 ], "TestProduct": [ 16828 ], "TransferHelper": [ 15170 ], "TreasuryModule": [ 12127 ] }, "id": 12905, "license": "Apache-2.0", "nodeType": "SourceUnit", "nodes": [ { "id": 12350, "literals": [ "solidity", "0.8", ".2" ], "nodeType": "PragmaDirective", "src": "39:22:83" }, { "absolutePath": "contracts/modules/AccessController.sol", "file": "../modules/AccessController.sol", "id": 12351, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 12905, "sourceUnit": 4247, "src": "63:41:83", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "contracts/modules/BundleController.sol", "file": "../modules/BundleController.sol", "id": 12352, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 12905, "sourceUnit": 5505, "src": "105:41:83", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "contracts/modules/ComponentController.sol", "file": "../modules/ComponentController.sol", "id": 12353, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 12905, "sourceUnit": 6505, "src": "147:44:83", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "contracts/modules/PoolController.sol", "file": "../modules/PoolController.sol", "id": 12354, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 12905, "sourceUnit": 9720, "src": "192:39:83", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "contracts/modules/TreasuryModule.sol", "file": "../modules/TreasuryModule.sol", "id": 12355, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 12905, "sourceUnit": 12128, "src": "232:39:83", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "contracts/shared/CoreController.sol", "file": "../shared/CoreController.sol", "id": 12356, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 12905, "sourceUnit": 14925, "src": "272:38:83", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "contracts/test/TestProduct.sol", "file": "../test/TestProduct.sol", "id": 12357, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 12905, "sourceUnit": 16829, "src": "311:33:83", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "contracts/tokens/BundleToken.sol", "file": "../tokens/BundleToken.sol", "id": 12358, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 12905, "sourceUnit": 17247, "src": "345:35:83", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol", "file": "@etherisc/gif-interface/contracts/components/IComponent.sol", "id": 12359, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 12905, "sourceUnit": 22100, "src": "382:69:83", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IProduct.sol", "file": "@etherisc/gif-interface/contracts/components/IProduct.sol", "id": 12360, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 12905, "sourceUnit": 21996, "src": "452:67:83", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IQuery.sol", "file": "@etherisc/gif-interface/contracts/modules/IQuery.sol", "id": 12361, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 12905, "sourceUnit": 22501, "src": "520:62:83", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/ITreasury.sol", "file": "@etherisc/gif-interface/contracts/modules/ITreasury.sol", "id": 12362, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 12905, "sourceUnit": 23444, "src": "583:65:83", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceOperatorService.sol", "file": "@etherisc/gif-interface/contracts/services/IInstanceOperatorService.sol", "id": 12363, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 12905, "sourceUnit": 23630, "src": "649:81:83", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/access/Ownable.sol", "file": "@openzeppelin/contracts/access/Ownable.sol", "id": 12364, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 12905, "sourceUnit": 20951, "src": "732:52:83", "symbolAliases": [], "unitAlias": "" }, { "abstract": false, "baseContracts": [ { "baseName": { "id": 12365, "name": "IInstanceOperatorService", "nodeType": "IdentifierPath", "referencedDeclaration": 23629, "src": "827:24:83" }, "id": 12366, "nodeType": "InheritanceSpecifier", "src": "827:24:83" }, { "baseName": { "id": 12367, "name": "CoreController", "nodeType": "IdentifierPath", "referencedDeclaration": 14924, "src": "858:14:83" }, "id": 12368, "nodeType": "InheritanceSpecifier", "src": "858:14:83" }, { "baseName": { "id": 12369, "name": "Ownable", "nodeType": "IdentifierPath", "referencedDeclaration": 20950, "src": "879:7:83" }, "id": 12370, "nodeType": "InheritanceSpecifier", "src": "879:7:83" } ], "contractDependencies": [ 14924, 18432, 20950, 23629, 24074 ], "contractKind": "contract", "fullyImplemented": true, "id": 12904, "linearizedBaseContracts": [ 12904, 20950, 14924, 18432, 24074, 23629 ], "name": "InstanceOperatorService", "nameLocation": "795:23:83", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 12373, "mutability": "mutable", "name": "_component", "nameLocation": "922:10:83", "nodeType": "VariableDeclaration", "scope": 12904, "src": "894:38:83", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_ComponentController_$6504", "typeString": "contract ComponentController" }, "typeName": { "id": 12372, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 12371, "name": "ComponentController", "nodeType": "IdentifierPath", "referencedDeclaration": 6504, "src": "894:19:83" }, "referencedDeclaration": 6504, "src": "894:19:83", "typeDescriptions": { "typeIdentifier": "t_contract$_ComponentController_$6504", "typeString": "contract ComponentController" } }, "visibility": "private" }, { "constant": false, "id": 12376, "mutability": "mutable", "name": "_pool", "nameLocation": "961:5:83", "nodeType": "VariableDeclaration", "scope": 12904, "src": "938:28:83", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_PoolController_$9719", "typeString": "contract PoolController" }, "typeName": { "id": 12375, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 12374, "name": "PoolController", "nodeType": "IdentifierPath", "referencedDeclaration": 9719, "src": "938:14:83" }, "referencedDeclaration": 9719, "src": "938:14:83", "typeDescriptions": { "typeIdentifier": "t_contract$_PoolController_$9719", "typeString": "contract PoolController" } }, "visibility": "private" }, { "constant": false, "id": 12379, "mutability": "mutable", "name": "_treasury", "nameLocation": "995:9:83", "nodeType": "VariableDeclaration", "scope": 12904, "src": "972:32:83", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_TreasuryModule_$12127", "typeString": "contract TreasuryModule" }, "typeName": { "id": 12378, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 12377, "name": "TreasuryModule", "nodeType": "IdentifierPath", "referencedDeclaration": 12127, "src": "972:14:83" }, "referencedDeclaration": 12127, "src": "972:14:83", "typeDescriptions": { "typeIdentifier": "t_contract$_TreasuryModule_$12127", "typeString": "contract TreasuryModule" } }, "visibility": "private" }, { "body": { "id": 12391, "nodeType": "Block", "src": "1050:99:83", "statements": [ { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 12386, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "arguments": [], "expression": { "argumentTypes": [], "id": 12382, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 20878, "src": "1068:5:83", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", "typeString": "function () view returns (address)" } }, "id": 12383, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1068:7:83", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "arguments": [], "expression": { "argumentTypes": [], "id": 12384, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 24064, "src": "1079:10:83", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", "typeString": "function () view returns (address)" } }, "id": 12385, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1079:12:83", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "1068:23:83", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "4552524f523a494f532d3030313a4e4f545f494e5354414e43455f4f50455241544f52", "id": 12387, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "1093:37:83", "typeDescriptions": { "typeIdentifier": "t_stringliteral_4f9a629a891ef96edc5744c3431f880a108556562b68950708236c732d2e7e88", "typeString": "literal_string \"ERROR:IOS-001:NOT_INSTANCE_OPERATOR\"" }, "value": "ERROR:IOS-001:NOT_INSTANCE_OPERATOR" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_4f9a629a891ef96edc5744c3431f880a108556562b68950708236c732d2e7e88", "typeString": "literal_string \"ERROR:IOS-001:NOT_INSTANCE_OPERATOR\"" } ], "id": 12381, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ -18, -18 ], "referencedDeclaration": -18, "src": "1060:7:83", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 12388, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1060:71:83", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 12389, "nodeType": "ExpressionStatement", "src": "1060:71:83" }, { "id": 12390, "nodeType": "PlaceholderStatement", "src": "1141:1:83" } ] }, "id": 12392, "name": "onlyInstanceOperatorAddress", "nameLocation": "1020:27:83", "nodeType": "ModifierDefinition", "parameters": { "id": 12380, "nodeType": "ParameterList", "parameters": [], "src": "1047:2:83" }, "src": "1011:138:83", "virtual": false, "visibility": "internal" }, { "baseFunctions": [ 14898 ], "body": { "id": 12433, "nodeType": "Block", "src": "1218:330:83", "statements": [ { "expression": { "id": 12404, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 12398, "name": "_component", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 12373, "src": "1228:10:83", "typeDescriptions": { "typeIdentifier": "t_contract$_ComponentController_$6504", "typeString": "contract ComponentController" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "arguments": [ { "hexValue": "436f6d706f6e656e74", "id": 12401, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "1281:11:83", "typeDescriptions": { "typeIdentifier": "t_stringliteral_20422c9fb475bf3099f246b9754fae871c7ccc7264ca39a5be99fea0688ffe24", "typeString": "literal_string \"Component\"" }, "value": "Component" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_20422c9fb475bf3099f246b9754fae871c7ccc7264ca39a5be99fea0688ffe24", "typeString": "literal_string \"Component\"" } ], "id": 12400, "name": "_getContractAddress", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 14923, "src": "1261:19:83", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_address_$", "typeString": "function (bytes32) view returns (address)" } }, "id": 12402, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1261:32:83", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 12399, "name": "ComponentController", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6504, "src": "1241:19:83", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_ComponentController_$6504_$", "typeString": "type(contract ComponentController)" } }, "id": 12403, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1241:53:83", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_contract$_ComponentController_$6504", "typeString": "contract ComponentController" } }, "src": "1228:66:83", "typeDescriptions": { "typeIdentifier": "t_contract$_ComponentController_$6504", "typeString": "contract ComponentController" } }, "id": 12405, "nodeType": "ExpressionStatement", "src": "1228:66:83" }, { "expression": { "id": 12412, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 12406, "name": "_pool", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 12376, "src": "1304:5:83", "typeDescriptions": { "typeIdentifier": "t_contract$_PoolController_$9719", "typeString": "contract PoolController" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "arguments": [ { "hexValue": "506f6f6c", "id": 12409, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "1347:6:83", "typeDescriptions": { "typeIdentifier": "t_stringliteral_4a62f5c1187999cdd374fd40d850be57b4952a965136e01501e2ac9ed75fe27f", "typeString": "literal_string \"Pool\"" }, "value": "Pool" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_4a62f5c1187999cdd374fd40d850be57b4952a965136e01501e2ac9ed75fe27f", "typeString": "literal_string \"Pool\"" } ], "id": 12408, "name": "_getContractAddress", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 14923, "src": "1327:19:83", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_address_$", "typeString": "function (bytes32) view returns (address)" } }, "id": 12410, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1327:27:83", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_address", "typeString": "address" } ], "id": 12407, "name": "PoolController", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 9719, "src": "1312:14:83", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_PoolController_$9719_$", "typeString": "type(contract PoolController)" } }, "id": 12411, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1312:43:83", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_contract$_PoolController_$9719", "typeString": "contract PoolController" } }, "src": "1304:51:83", "typeDescriptions": { "typeIdentifier": "t_contract$_PoolController_$9719", "typeString": "contract PoolController" } }, "id": 12413, "nodeType": "ExpressionStatement", "src": "1304:51:83" }, { "expression": { "id": 12420, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "id": 12414, "name": "_treasury", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 12379, "src": "1365:9:83", "typeDescriptions": { "typeIdentifier": "t_contract$_TreasuryModule_$12127", "typeString": "contract TreasuryModule" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "arguments": [ { "arguments": [ { "hexValue": "5472656173757279", "id": 12417, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false,