UNPKG

@etherisc/gif-interface

Version:

This repository holds the necessary interfaces and base contracts to interact with an existing GIF instance. The repository is not intended to be used on its own.

1,495 lines (1,494 loc) 192 kB
{ "abi": [ { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "LogComponentApproved", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "LogComponentArchived", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "componentName", "type": "bytes32" }, { "indexed": false, "internalType": "enum IComponent.ComponentType", "name": "componentType", "type": "uint8" }, { "indexed": false, "internalType": "address", "name": "componentAddress", "type": "address" }, { "indexed": false, "internalType": "address", "name": "registryAddress", "type": "address" } ], "name": "LogComponentCreated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "LogComponentDeclined", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "LogComponentPaused", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "componentName", "type": "bytes32" }, { "indexed": false, "internalType": "enum IComponent.ComponentType", "name": "componentType", "type": "uint8" }, { "indexed": false, "internalType": "address", "name": "componentAddress", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "LogComponentProposed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "LogComponentResumed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "enum IComponent.ComponentState", "name": "stateOld", "type": "uint8" }, { "indexed": false, "internalType": "enum IComponent.ComponentState", "name": "stateNew", "type": "uint8" } ], "name": "LogComponentStateChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "LogComponentSuspended", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "LogComponentUnpaused", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" }, { "inputs": [], "name": "approvalCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "archiveCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "declineCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "getId", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getName", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getOwner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getRegistry", "outputs": [ { "internalType": "contract IRegistry", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getState", "outputs": [ { "internalType": "enum IComponent.ComponentState", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getType", "outputs": [ { "internalType": "enum IComponent.ComponentType", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "isOracle", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "isProduct", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "isRiskpool", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "pauseCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "proposalCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "resumeCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "setId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "suspendCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "unpauseCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "allSourcePaths": { "0": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/access/Ownable.sol", "1": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC20/IERC20.sol", "14": "contracts/modules/IAccess.sol", "16": "contracts/modules/IComponentEvents.sol", "2": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC721/IERC721.sol", "21": "contracts/modules/IRegistry.sol", "23": "contracts/services/IComponentOwnerService.sol", "24": "contracts/services/IInstanceOperatorService.sol", "25": "contracts/services/IInstanceService.sol", "26": "contracts/services/IOracleService.sol", "27": "contracts/services/IProductService.sol", "28": "contracts/services/IRiskpoolService.sol", "3": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/utils/Context.sol", "30": "contracts/tokens/IBundleToken.sol", "4": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/utils/introspection/IERC165.sol", "6": "contracts/components/Component.sol", "7": "contracts/components/IComponent.sol" }, "ast": { "absolutePath": "contracts/components/Component.sol", "exportedSymbols": { "Component": [ 708 ], "Context": [ 4978 ], "IAccess": [ 2660 ], "IBundle": [ 2844 ], "IBundleToken": [ 4649 ], "IComponent": [ 812 ], "IComponentEvents": [ 2897 ], "IComponentOwnerService": [ 3833 ], "IERC165": [ 4990 ], "IERC20": [ 4956 ], "IERC721": [ 4878 ], "IInstanceOperatorService": [ 3984 ], "IInstanceService": [ 4333 ], "IOracleService": [ 4343 ], "IPolicy": [ 3257 ], "IPool": [ 3373 ], "IProductService": [ 4488 ], "IRegistry": [ 3538 ], "IRiskpoolService": [ 4594 ], "ITreasury": [ 3798 ], "Ownable": [ 4762 ] }, "id": 709, "license": "Apache-2.0", "nodeType": "SourceUnit", "nodes": [ { "id": 290, "literals": [ "solidity", "0.8", ".2" ], "nodeType": "PragmaDirective", "src": "39:22:6" }, { "absolutePath": "contracts/components/IComponent.sol", "file": "./IComponent.sol", "id": 291, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 709, "sourceUnit": 813, "src": "63:26:6", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "contracts/modules/IAccess.sol", "file": "../modules/IAccess.sol", "id": 292, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 709, "sourceUnit": 2661, "src": "90:32:6", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "contracts/modules/IComponentEvents.sol", "file": "../modules/IComponentEvents.sol", "id": 293, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 709, "sourceUnit": 2898, "src": "123:41:6", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "contracts/modules/IRegistry.sol", "file": "../modules/IRegistry.sol", "id": 294, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 709, "sourceUnit": 3539, "src": "165:34:6", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "contracts/services/IComponentOwnerService.sol", "file": "../services/IComponentOwnerService.sol", "id": 295, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 709, "sourceUnit": 3834, "src": "200:48:6", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "contracts/services/IInstanceService.sol", "file": "../services/IInstanceService.sol", "id": 296, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 709, "sourceUnit": 4334, "src": "249:42:6", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/access/Ownable.sol", "file": "@openzeppelin/contracts/access/Ownable.sol", "id": 297, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 709, "sourceUnit": 4763, "src": "292:52:6", "symbolAliases": [], "unitAlias": "" }, { "abstract": true, "baseContracts": [ { "baseName": { "id": 298, "name": "IComponent", "nodeType": "IdentifierPath", "referencedDeclaration": 812, "src": "484:10:6" }, "id": 299, "nodeType": "InheritanceSpecifier", "src": "484:10:6" }, { "baseName": { "id": 300, "name": "IComponentEvents", "nodeType": "IdentifierPath", "referencedDeclaration": 2897, "src": "500:16:6" }, "id": 301, "nodeType": "InheritanceSpecifier", "src": "500:16:6" }, { "baseName": { "id": 302, "name": "Ownable", "nodeType": "IdentifierPath", "referencedDeclaration": 4762, "src": "522:7:6" }, "id": 303, "nodeType": "InheritanceSpecifier", "src": "522:7:6" } ], "contractDependencies": [ 812, 2897, 4762, 4978 ], "contractKind": "contract", "fullyImplemented": true, "id": 708, "linearizedBaseContracts": [ 708, 4762, 4978, 2897, 812 ], "name": "Component", "nameLocation": "466:9:6", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 305, "mutability": "mutable", "name": "_componentName", "nameLocation": "553:14:6", "nodeType": "VariableDeclaration", "scope": 708, "src": "537:30:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 304, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "537:7:6", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "private" }, { "constant": false, "id": 307, "mutability": "mutable", "name": "_componentId", "nameLocation": "589:12:6", "nodeType": "VariableDeclaration", "scope": 708, "src": "573:28:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 306, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "573:7:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "private" }, { "constant": false, "id": 310, "mutability": "mutable", "name": "_componentType", "nameLocation": "640:14:6", "nodeType": "VariableDeclaration", "scope": 708, "src": "607:47:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_enum$_ComponentType_$715", "typeString": "enum IComponent.ComponentType" }, "typeName": { "id": 309, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 308, "name": "IComponent.ComponentType", "nodeType": "IdentifierPath", "referencedDeclaration": 715, "src": "607:24:6" }, "referencedDeclaration": 715, "src": "607:24:6", "typeDescriptions": { "typeIdentifier": "t_enum$_ComponentType_$715", "typeString": "enum IComponent.ComponentType" } }, "visibility": "private" }, { "constant": false, "id": 313, "mutability": "mutable", "name": "_registry", "nameLocation": "679:9:6", "nodeType": "VariableDeclaration", "scope": 708, "src": "661:27:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_IRegistry_$3538", "typeString": "contract IRegistry" }, "typeName": { "id": 312, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 311, "name": "IRegistry", "nodeType": "IdentifierPath", "referencedDeclaration": 3538, "src": "661:9:6" }, "referencedDeclaration": 3538, "src": "661:9:6", "typeDescriptions": { "typeIdentifier": "t_contract$_IRegistry_$3538", "typeString": "contract IRegistry" } }, "visibility": "private" }, { "constant": false, "id": 316, "mutability": "mutable", "name": "_access", "nameLocation": "710:7:6", "nodeType": "VariableDeclaration", "scope": 708, "src": "694:23:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_IAccess_$2660", "typeString": "contract IAccess" }, "typeName": { "id": 315, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 314, "name": "IAccess", "nodeType": "IdentifierPath", "referencedDeclaration": 2660, "src": "694:7:6" }, "referencedDeclaration": 2660, "src": "694:7:6", "typeDescriptions": { "typeIdentifier": "t_contract$_IAccess_$2660", "typeString": "contract IAccess" } }, "visibility": "private" }, { "constant": false, "id": 319, "mutability": "mutable", "name": "_componentOwnerService", "nameLocation": "754:22:6", "nodeType": "VariableDeclaration", "scope": 708, "src": "723:53:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_IComponentOwnerService_$3833", "typeString": "contract IComponentOwnerService" }, "typeName": { "id": 318, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 317, "name": "IComponentOwnerService", "nodeType": "IdentifierPath", "referencedDeclaration": 3833, "src": "723:22:6" }, "referencedDeclaration": 3833, "src": "723:22:6", "typeDescriptions": { "typeIdentifier": "t_contract$_IComponentOwnerService_$3833", "typeString": "contract IComponentOwnerService" } }, "visibility": "private" }, { "constant": false, "id": 322, "mutability": "mutable", "name": "_instanceService", "nameLocation": "807:16:6", "nodeType": "VariableDeclaration", "scope": 708, "src": "782:41:6", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_IInstanceService_$4333", "typeString": "contract IInstanceService" }, "typeName": { "id": 321, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 320, "name": "IInstanceService", "nodeType": "IdentifierPath", "referencedDeclaration": 4333, "src": "782:16:6" }, "referencedDeclaration": 4333, "src": "782:16:6", "typeDescriptions": { "typeIdentifier": "t_contract$_IInstanceService_$4333", "typeString": "contract IInstanceService" } }, "visibility": "private" }, { "body": { "id": 335, "nodeType": "Block", "src": "869:172:6", "statements": [ { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 330, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "arguments": [], "expression": { "argumentTypes": [], "id": 325, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4968, "src": "901:10:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", "typeString": "function () view returns (address)" } }, "id": 326, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "901:12:6", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "arguments": [ { "hexValue": "496e7374616e63654f70657261746f7253657276696365", "id": 328, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "937:25:6", "typeDescriptions": { "typeIdentifier": "t_stringliteral_893eee863631637173ead46f1c66388136d13bfeb40cdedfb3bfe4f34f933544", "typeString": "literal_string \"InstanceOperatorService\"" }, "value": "InstanceOperatorService" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_893eee863631637173ead46f1c66388136d13bfeb40cdedfb3bfe4f34f933544", "typeString": "literal_string \"InstanceOperatorService\"" } ], "id": 327, "name": "_getContractAddress", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 707, "src": "917:19:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_address_$", "typeString": "function (bytes32) view returns (address)" } }, "id": 329, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "917:46:6", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "901:62:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "4552524f523a434d502d3030313a4e4f545f494e5354414e43455f4f50455241544f525f53455256494345", "id": 331, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "977:45:6", "typeDescriptions": { "typeIdentifier": "t_stringliteral_0cf129911f5ea89264cf2d932a66d14be63649422912365886718bb28b51326b", "typeString": "literal_string \"ERROR:CMP-001:NOT_INSTANCE_OPERATOR_SERVICE\"" }, "value": "ERROR:CMP-001:NOT_INSTANCE_OPERATOR_SERVICE" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_0cf129911f5ea89264cf2d932a66d14be63649422912365886718bb28b51326b", "typeString": "literal_string \"ERROR:CMP-001:NOT_INSTANCE_OPERATOR_SERVICE\"" } ], "id": 324, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ -18, -18 ], "referencedDeclaration": -18, "src": "879:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 332, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "879:144:6", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 333, "nodeType": "ExpressionStatement", "src": "879:144:6" }, { "id": 334, "nodeType": "PlaceholderStatement", "src": "1033:1:6" } ] }, "id": 336, "name": "onlyInstanceOperatorService", "nameLocation": "839:27:6", "nodeType": "ModifierDefinition", "parameters": { "id": 323, "nodeType": "ParameterList", "parameters": [], "src": "866:2:6" }, "src": "830:211:6", "virtual": false, "visibility": "internal" }, { "body": { "id": 349, "nodeType": "Block", "src": "1072:142:6", "statements": [ { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 344, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "arguments": [], "expression": { "argumentTypes": [], "id": 339, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4968, "src": "1104:10:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", "typeString": "function () view returns (address)" } }, "id": 340, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1104:12:6", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "arguments": [ { "hexValue": "436f6d706f6e656e74", "id": 342, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "1140:11:6", "typeDescriptions": { "typeIdentifier": "t_stringliteral_20422c9fb475bf3099f246b9754fae871c7ccc7264ca39a5be99fea0688ffe24", "typeString": "literal_string \"Component\"" }, "value": "Component" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_stringliteral_20422c9fb475bf3099f246b9754fae871c7ccc7264ca39a5be99fea0688ffe24", "typeString": "literal_string \"Component\"" } ], "id": 341, "name": "_getContractAddress", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 707, "src": "1120:19:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_address_$", "typeString": "function (bytes32) view returns (address)" } }, "id": 343, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1120:32:6", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "1104:48:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "4552524f523a434d502d3030323a4e4f545f434f4d504f4e454e54", "id": 345, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "1166:29:6", "typeDescriptions": { "typeIdentifier": "t_stringliteral_13d854cfce65ca3d798b24f0152adbdef51328a4972814c276101e4a34ebcd4a", "typeString": "literal_string \"ERROR:CMP-002:NOT_COMPONENT\"" }, "value": "ERROR:CMP-002:NOT_COMPONENT" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_13d854cfce65ca3d798b24f0152adbdef51328a4972814c276101e4a34ebcd4a", "typeString": "literal_string \"ERROR:CMP-002:NOT_COMPONENT\"" } ], "id": 338, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ -18, -18 ], "referencedDeclaration": -18, "src": "1082:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 346, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1082:114:6", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 347, "nodeType": "ExpressionStatement", "src": "1082:114:6" }, { "id": 348, "nodeType": "PlaceholderStatement", "src": "1206:1:6" } ] }, "id": 350, "name": "onlyComponent", "nameLocation": "1056:13:6", "nodeType": "ModifierDefinition", "parameters": { "id": 337, "nodeType": "ParameterList", "parameters": [], "src": "1069:2:6" }, "src": "1047:167:6", "virtual": false, "visibility": "internal" }, { "body": { "id": 364, "nodeType": "Block", "src": "1257:155:6", "statements": [ { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 359, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "arguments": [], "expression": { "argumentTypes": [], "id": 353, "name": "_msgSender", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4968, "src": "1289:10:6", "typeDescriptions": { "typeIdentifier": "t_function_internal_view$__$returns$_t_address_$", "typeString": "function () view returns (address)" } }, "id": 354, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1289:12:6", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "nodeType": "BinaryOperation", "operator": "==", "rightExpression": { "arguments": [ { "id": 357, "name": "_componentOwnerService", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 319, "src": "1313:22:6", "typeDescriptions": { "typeIdentifier": "t_contract$_IComponentOwnerService_$3833", "typeString": "contract IComponentOwnerService" } } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_contract$_IComponentOwnerService_$3833", "typeString": "contract IComponentOwnerService" } ], "id": 356, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "ElementaryTypeNameExpression", "src": "1305:7:6", "typeDescriptions": { "typeIdentifier": "t_type$_t_address_$", "typeString": "type(address)" }, "typeName": { "id": 355, "name": "address", "nodeType": "ElementaryTypeName", "src": "1305:7:6", "typeDescriptions": {} } }, "id": 358, "isConstant": false, "isLValue": false, "isPure": false, "kind": "typeConversion", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1305:31:6", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "src": "1289:47:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, { "hexValue": "4552524f523a434d502d3030333a4e4f545f434f4d504f4e454e545f4f574e45525f53455256494345", "id": 360, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", "src": "1350:43:6", "typeDescriptions": { "typeIdentifier": "t_stringliteral_5a42b6523909db0c3f07c7fc4301f658eda0aaaedcec4492e9f126a1a0b351bc", "typeString": "literal_string \"ERROR:CMP-003:NOT_COMPONENT_OWNER_SERVICE\"" }, "value": "ERROR:CMP-003:NOT_COMPONENT_OWNER_SERVICE" } ], "expression": { "argumentTypes": [ { "typeIdentifier": "t_bool", "typeString": "bool" }, { "typeIdentifier": "t_stringliteral_5a42b6523909db0c3f07c7fc4301f658eda0aaaedcec4492e9f126a1a0b351bc", "typeString": "literal_string \"ERROR:CMP-003:NOT_COMPONENT_OWNER_SERVICE\"" } ], "id": 352, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ -18, -18 ], "referencedDeclaration": -18, "src": "1267:7:6", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, "id": 361, "isConstant": false, "isLValue": false, "isPure": false, "kind": "functionCall", "lValueRequested": false, "names": [], "nodeType": "FunctionCall", "src": "1267:127:6", "tryCall": false, "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, "id": 362, "nodeType": "ExpressionStatement", "src": "1267:127:6" }, { "id": 363, "nodeType": "PlaceholderStatement", "src": "1404:1:6" } ] }, "id": 365, "name": "onlyComponentOwnerService", "nameLocation": "1229:25:6", "nodeType": "ModifierDefinition", "parameters": { "id": 351, "nodeType": "ParameterList", "parameters": [], "src": "1254:2:6" }, "src": "1220:192:6", "virtual": false, "visibility": "internal" }, { "body": { "id": 429, "nodeType": "Block", "src": "1554:499:6", "statements": [ { "expression": { "arguments": [ { "commonType": { "typeIdentifier": "t_address", "typeString": "address" }, "id": 383, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "id": 378, "name": "registry", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 372, "src": "1572:8:6", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }