@etherisc/gif-contracts
Version:
This repository holds the GIF core contracts and tools to develop, test and deploy GIF instances.
1,453 lines • 196 kB
JSON
{
"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": {
"13": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC20/IERC20.sol",
"18": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC721/IERC721.sol",
"22": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/utils/Context.sol",
"26": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/utils/introspection/IERC165.sol",
"29": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/Component.sol",
"30": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol",
"37": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IAccess.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",
"44": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IRegistry.sol",
"46": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IComponentOwnerService.sol",
"47": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceOperatorService.sol",
"48": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceService.sol",
"49": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IOracleService.sol",
"50": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IProductService.sol",
"51": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IRiskpoolService.sol",
"53": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/tokens/IBundleToken.sol"
},
"ast": {
"absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/Component.sol",
"exportedSymbols": {
"Component": [
25407
],
"Context": [
24074
],
"IAccess": [
21938
],
"IBundle": [
20491
],
"IBundleToken": [
24052
],
"IComponent": [
22099
],
"IComponentEvents": [
22419
],
"IComponentOwnerService": [
23478
],
"IERC165": [
27203
],
"IERC20": [
18510
],
"IERC721": [
23745
],
"IInstanceOperatorService": [
23629
],
"IInstanceService": [
22849
],
"IOracleService": [
23755
],
"IPolicy": [
20837
],
"IPool": [
21652
],
"IProductService": [
23900
],
"IRegistry": [
21750
],
"IRiskpoolService": [
24006
],
"ITreasury": [
23443
],
"Ownable": [
20950
]
},
"id": 25408,
"license": "Apache-2.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 24989,
"literals": [
"solidity",
"0.8",
".2"
],
"nodeType": "PragmaDirective",
"src": "40:22:29"
},
{
"absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol",
"file": "./IComponent.sol",
"id": 24990,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 25408,
"sourceUnit": 22100,
"src": "66:26:29",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IAccess.sol",
"file": "../modules/IAccess.sol",
"id": 24991,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 25408,
"sourceUnit": 21939,
"src": "94:32:29",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IComponentEvents.sol",
"file": "../modules/IComponentEvents.sol",
"id": 24992,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 25408,
"sourceUnit": 22420,
"src": "128:41:29",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IRegistry.sol",
"file": "../modules/IRegistry.sol",
"id": 24993,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 25408,
"sourceUnit": 21751,
"src": "171:34:29",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IComponentOwnerService.sol",
"file": "../services/IComponentOwnerService.sol",
"id": 24994,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 25408,
"sourceUnit": 23479,
"src": "207:48:29",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceService.sol",
"file": "../services/IInstanceService.sol",
"id": 24995,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 25408,
"sourceUnit": 22850,
"src": "257:42:29",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/access/Ownable.sol",
"file": "@openzeppelin/contracts/access/Ownable.sol",
"id": 24996,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 25408,
"sourceUnit": 20951,
"src": "301:52:29",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": true,
"baseContracts": [
{
"baseName": {
"id": 24997,
"name": "IComponent",
"nodeType": "IdentifierPath",
"referencedDeclaration": 22099,
"src": "498:10:29"
},
"id": 24998,
"nodeType": "InheritanceSpecifier",
"src": "498:10:29"
},
{
"baseName": {
"id": 24999,
"name": "IComponentEvents",
"nodeType": "IdentifierPath",
"referencedDeclaration": 22419,
"src": "515:16:29"
},
"id": 25000,
"nodeType": "InheritanceSpecifier",
"src": "515:16:29"
},
{
"baseName": {
"id": 25001,
"name": "Ownable",
"nodeType": "IdentifierPath",
"referencedDeclaration": 20950,
"src": "538:7:29"
},
"id": 25002,
"nodeType": "InheritanceSpecifier",
"src": "538:7:29"
}
],
"contractDependencies": [
20950,
22099,
22419,
24074
],
"contractKind": "contract",
"fullyImplemented": true,
"id": 25407,
"linearizedBaseContracts": [
25407,
20950,
24074,
22419,
22099
],
"name": "Component",
"nameLocation": "479:9:29",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 25004,
"mutability": "mutable",
"name": "_componentName",
"nameLocation": "571:14:29",
"nodeType": "VariableDeclaration",
"scope": 25407,
"src": "555:30:29",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 25003,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "555:7:29",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "private"
},
{
"constant": false,
"id": 25006,
"mutability": "mutable",
"name": "_componentId",
"nameLocation": "608:12:29",
"nodeType": "VariableDeclaration",
"scope": 25407,
"src": "592:28:29",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 25005,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "592:7:29",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "private"
},
{
"constant": false,
"id": 25009,
"mutability": "mutable",
"name": "_componentType",
"nameLocation": "660:14:29",
"nodeType": "VariableDeclaration",
"scope": 25407,
"src": "627:47:29",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_ComponentType_$22002",
"typeString": "enum IComponent.ComponentType"
},
"typeName": {
"id": 25008,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 25007,
"name": "IComponent.ComponentType",
"nodeType": "IdentifierPath",
"referencedDeclaration": 22002,
"src": "627:24:29"
},
"referencedDeclaration": 22002,
"src": "627:24:29",
"typeDescriptions": {
"typeIdentifier": "t_enum$_ComponentType_$22002",
"typeString": "enum IComponent.ComponentType"
}
},
"visibility": "private"
},
{
"constant": false,
"id": 25012,
"mutability": "mutable",
"name": "_registry",
"nameLocation": "701:9:29",
"nodeType": "VariableDeclaration",
"scope": 25407,
"src": "683:27:29",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IRegistry_$21750",
"typeString": "contract IRegistry"
},
"typeName": {
"id": 25011,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 25010,
"name": "IRegistry",
"nodeType": "IdentifierPath",
"referencedDeclaration": 21750,
"src": "683:9:29"
},
"referencedDeclaration": 21750,
"src": "683:9:29",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IRegistry_$21750",
"typeString": "contract IRegistry"
}
},
"visibility": "private"
},
{
"constant": false,
"id": 25015,
"mutability": "mutable",
"name": "_access",
"nameLocation": "733:7:29",
"nodeType": "VariableDeclaration",
"scope": 25407,
"src": "717:23:29",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IAccess_$21938",
"typeString": "contract IAccess"
},
"typeName": {
"id": 25014,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 25013,
"name": "IAccess",
"nodeType": "IdentifierPath",
"referencedDeclaration": 21938,
"src": "717:7:29"
},
"referencedDeclaration": 21938,
"src": "717:7:29",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IAccess_$21938",
"typeString": "contract IAccess"
}
},
"visibility": "private"
},
{
"constant": false,
"id": 25018,
"mutability": "mutable",
"name": "_componentOwnerService",
"nameLocation": "778:22:29",
"nodeType": "VariableDeclaration",
"scope": 25407,
"src": "747:53:29",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IComponentOwnerService_$23478",
"typeString": "contract IComponentOwnerService"
},
"typeName": {
"id": 25017,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 25016,
"name": "IComponentOwnerService",
"nodeType": "IdentifierPath",
"referencedDeclaration": 23478,
"src": "747:22:29"
},
"referencedDeclaration": 23478,
"src": "747:22:29",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IComponentOwnerService_$23478",
"typeString": "contract IComponentOwnerService"
}
},
"visibility": "private"
},
{
"constant": false,
"id": 25021,
"mutability": "mutable",
"name": "_instanceService",
"nameLocation": "832:16:29",
"nodeType": "VariableDeclaration",
"scope": 25407,
"src": "807:41:29",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IInstanceService_$22849",
"typeString": "contract IInstanceService"
},
"typeName": {
"id": 25020,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 25019,
"name": "IInstanceService",
"nodeType": "IdentifierPath",
"referencedDeclaration": 22849,
"src": "807:16:29"
},
"referencedDeclaration": 22849,
"src": "807:16:29",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IInstanceService_$22849",
"typeString": "contract IInstanceService"
}
},
"visibility": "private"
},
{
"body": {
"id": 25034,
"nodeType": "Block",
"src": "896:177:29",
"statements": [
{
"expression": {
"arguments": [
{
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 25029,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 25024,
"name": "_msgSender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 24064,
"src": "930:10:29",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
"typeString": "function () view returns (address)"
}
},
"id": 25025,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "930:12:29",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"arguments": [
{
"hexValue": "496e7374616e63654f70657261746f7253657276696365",
"id": 25027,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "966:25:29",
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_893eee863631637173ead46f1c66388136d13bfeb40cdedfb3bfe4f34f933544",
"typeString": "literal_string \"InstanceOperatorService\""
},
"value": "InstanceOperatorService"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_stringliteral_893eee863631637173ead46f1c66388136d13bfeb40cdedfb3bfe4f34f933544",
"typeString": "literal_string \"InstanceOperatorService\""
}
],
"id": 25026,
"name": "_getContractAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 25406,
"src": "946:19:29",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_address_$",
"typeString": "function (bytes32) view returns (address)"
}
},
"id": 25028,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "946:46:29",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "930:62:29",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"hexValue": "4552524f523a434d502d3030313a4e4f545f494e5354414e43455f4f50455241544f525f53455256494345",
"id": 25030,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1007:45:29",
"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": 25023,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
-18,
-18
],
"referencedDeclaration": -18,
"src": "907:7:29",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 25031,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "907:146:29",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 25032,
"nodeType": "ExpressionStatement",
"src": "907:146:29"
},
{
"id": 25033,
"nodeType": "PlaceholderStatement",
"src": "1064:1:29"
}
]
},
"id": 25035,
"name": "onlyInstanceOperatorService",
"nameLocation": "866:27:29",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 25022,
"nodeType": "ParameterList",
"parameters": [],
"src": "893:2:29"
},
"src": "857:216:29",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 25048,
"nodeType": "Block",
"src": "1106:147:29",
"statements": [
{
"expression": {
"arguments": [
{
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 25043,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 25038,
"name": "_msgSender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 24064,
"src": "1140:10:29",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
"typeString": "function () view returns (address)"
}
},
"id": 25039,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1140:12:29",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"arguments": [
{
"hexValue": "436f6d706f6e656e74",
"id": 25041,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1176:11:29",
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_20422c9fb475bf3099f246b9754fae871c7ccc7264ca39a5be99fea0688ffe24",
"typeString": "literal_string \"Component\""
},
"value": "Component"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_stringliteral_20422c9fb475bf3099f246b9754fae871c7ccc7264ca39a5be99fea0688ffe24",
"typeString": "literal_string \"Component\""
}
],
"id": 25040,
"name": "_getContractAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 25406,
"src": "1156:19:29",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_address_$",
"typeString": "function (bytes32) view returns (address)"
}
},
"id": 25042,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1156:32:29",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "1140:48:29",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"hexValue": "4552524f523a434d502d3030323a4e4f545f434f4d504f4e454e54",
"id": 25044,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1203:29:29",
"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": 25037,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
-18,
-18
],
"referencedDeclaration": -18,
"src": "1117:7:29",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 25045,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1117:116:29",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 25046,
"nodeType": "ExpressionStatement",
"src": "1117:116:29"
},
{
"id": 25047,
"nodeType": "PlaceholderStatement",
"src": "1244:1:29"
}
]
},
"id": 25049,
"name": "onlyComponent",
"nameLocation": "1090:13:29",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 25036,
"nodeType": "ParameterList",
"parameters": [],
"src": "1103:2:29"
},
"src": "1081:172:29",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 25063,
"nodeType": "Block",
"src": "1298:160:29",
"statements": [
{
"expression": {
"arguments": [
{
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 25058,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 25052,
"name": "_msgSender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 24064,
"src": "1332:10:29",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
"typeString": "function () view returns (address)"
}
},
"id": 25053,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1332:12:29",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"arguments": [
{
"id": 25056,
"name": "_componentOwnerService",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 25018,
"src": "1356:22:29",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IComponentOwnerService_$23478",
"typeString": "contract IComponentOwnerService"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_IComponentOwnerService_$23478",
"typeString": "contract IComponentOwnerService"
}
],
"id": 25055,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "1348:7:29",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": {
"id": 25054,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1348:7:29",
"typeDescriptions": {}
}
},
"id": 25057,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1348:31:29",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "1332:47:29",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"hexValue": "4552524f523a434d502d3030333a4e4f545f434f4d504f4e454e545f4f574e45525f53455256494345",
"id": 25059,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1394:43:29",
"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": 25051,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
-18,
-18
],
"referencedDeclaration": -18,
"src": "1309:7:29",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 25060,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1309:129:29",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 25061,
"nodeType": "ExpressionStatement",
"src": "1309:129:29"
},
{
"id": 25062,
"nodeType": "PlaceholderStatement",
"src": "1449:1:29"
}
]
},
"id": 25064,
"name": "onlyComponentOwnerService",
"nameLocation