@etherisc/depeg-contracts
Version:
Etherisc's smart contracts for a depeg insurance for stable coins.
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": {
"0": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/access/Ownable.sol",
"11": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/utils/Context.sol",
"15": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/utils/introspection/IERC165.sol",
"26": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/Component.sol",
"27": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol",
"33": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IAccess.sol",
"35": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IComponentEvents.sol",
"38": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IRegistry.sol",
"4": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC20/IERC20.sol",
"40": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IComponentOwnerService.sol",
"41": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceOperatorService.sol",
"42": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceService.sol",
"43": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IOracleService.sol",
"44": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IProductService.sol",
"45": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IRiskpoolService.sol",
"46": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/tokens/IBundleToken.sol",
"7": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/token/ERC721/IERC721.sol"
},
"ast": {
"absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/Component.sol",
"exportedSymbols": {
"Component": [
14352
],
"Context": [
15648
],
"IAccess": [
22927
],
"IBundle": [
13382
],
"IBundleToken": [
13428
],
"IComponent": [
11675
],
"IComponentEvents": [
22980
],
"IComponentOwnerService": [
23015
],
"IERC165": [
22864
],
"IERC20": [
15820
],
"IERC721": [
13932
],
"IInstanceOperatorService": [
23282
],
"IInstanceService": [
14934
],
"IOracleService": [
23292
],
"IPolicy": [
12649
],
"IPool": [
23131
],
"IProductService": [
22121
],
"IRegistry": [
21976
],
"IRiskpoolService": [
15040
],
"ITreasury": [
12909
],
"Ownable": [
9476
]
},
"id": 14353,
"license": "Apache-2.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 13934,
"literals": [
"solidity",
"0.8",
".2"
],
"nodeType": "PragmaDirective",
"src": "40:22:26"
},
{
"absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol",
"file": "./IComponent.sol",
"id": 13935,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 14353,
"sourceUnit": 11676,
"src": "66:26:26",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IAccess.sol",
"file": "../modules/IAccess.sol",
"id": 13936,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 14353,
"sourceUnit": 22928,
"src": "94:32:26",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IComponentEvents.sol",
"file": "../modules/IComponentEvents.sol",
"id": 13937,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 14353,
"sourceUnit": 22981,
"src": "128:41:26",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IRegistry.sol",
"file": "../modules/IRegistry.sol",
"id": 13938,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 14353,
"sourceUnit": 21977,
"src": "171:34:26",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IComponentOwnerService.sol",
"file": "../services/IComponentOwnerService.sol",
"id": 13939,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 14353,
"sourceUnit": 23016,
"src": "207:48:26",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IInstanceService.sol",
"file": "../services/IInstanceService.sol",
"id": 13940,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 14353,
"sourceUnit": 14935,
"src": "257:42:26",
"symbolAliases": [],
"unitAlias": ""
},
{
"absolutePath": "/home/vscode/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.7.3/contracts/access/Ownable.sol",
"file": "@openzeppelin/contracts/access/Ownable.sol",
"id": 13941,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 14353,
"sourceUnit": 9477,
"src": "301:52:26",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": true,
"baseContracts": [
{
"baseName": {
"id": 13942,
"name": "IComponent",
"nodeType": "IdentifierPath",
"referencedDeclaration": 11675,
"src": "498:10:26"
},
"id": 13943,
"nodeType": "InheritanceSpecifier",
"src": "498:10:26"
},
{
"baseName": {
"id": 13944,
"name": "IComponentEvents",
"nodeType": "IdentifierPath",
"referencedDeclaration": 22980,
"src": "515:16:26"
},
"id": 13945,
"nodeType": "InheritanceSpecifier",
"src": "515:16:26"
},
{
"baseName": {
"id": 13946,
"name": "Ownable",
"nodeType": "IdentifierPath",
"referencedDeclaration": 9476,
"src": "538:7:26"
},
"id": 13947,
"nodeType": "InheritanceSpecifier",
"src": "538:7:26"
}
],
"contractDependencies": [
9476,
11675,
15648,
22980
],
"contractKind": "contract",
"fullyImplemented": true,
"id": 14352,
"linearizedBaseContracts": [
14352,
9476,
15648,
22980,
11675
],
"name": "Component",
"nameLocation": "479:9:26",
"nodeType": "ContractDefinition",
"nodes": [
{
"constant": false,
"id": 13949,
"mutability": "mutable",
"name": "_componentName",
"nameLocation": "571:14:26",
"nodeType": "VariableDeclaration",
"scope": 14352,
"src": "555:30:26",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 13948,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "555:7:26",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "private"
},
{
"constant": false,
"id": 13951,
"mutability": "mutable",
"name": "_componentId",
"nameLocation": "608:12:26",
"nodeType": "VariableDeclaration",
"scope": 14352,
"src": "592:28:26",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13950,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "592:7:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "private"
},
{
"constant": false,
"id": 13954,
"mutability": "mutable",
"name": "_componentType",
"nameLocation": "660:14:26",
"nodeType": "VariableDeclaration",
"scope": 14352,
"src": "627:47:26",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_ComponentType_$11578",
"typeString": "enum IComponent.ComponentType"
},
"typeName": {
"id": 13953,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 13952,
"name": "IComponent.ComponentType",
"nodeType": "IdentifierPath",
"referencedDeclaration": 11578,
"src": "627:24:26"
},
"referencedDeclaration": 11578,
"src": "627:24:26",
"typeDescriptions": {
"typeIdentifier": "t_enum$_ComponentType_$11578",
"typeString": "enum IComponent.ComponentType"
}
},
"visibility": "private"
},
{
"constant": false,
"id": 13957,
"mutability": "mutable",
"name": "_registry",
"nameLocation": "701:9:26",
"nodeType": "VariableDeclaration",
"scope": 14352,
"src": "683:27:26",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IRegistry_$21976",
"typeString": "contract IRegistry"
},
"typeName": {
"id": 13956,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 13955,
"name": "IRegistry",
"nodeType": "IdentifierPath",
"referencedDeclaration": 21976,
"src": "683:9:26"
},
"referencedDeclaration": 21976,
"src": "683:9:26",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IRegistry_$21976",
"typeString": "contract IRegistry"
}
},
"visibility": "private"
},
{
"constant": false,
"id": 13960,
"mutability": "mutable",
"name": "_access",
"nameLocation": "733:7:26",
"nodeType": "VariableDeclaration",
"scope": 14352,
"src": "717:23:26",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IAccess_$22927",
"typeString": "contract IAccess"
},
"typeName": {
"id": 13959,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 13958,
"name": "IAccess",
"nodeType": "IdentifierPath",
"referencedDeclaration": 22927,
"src": "717:7:26"
},
"referencedDeclaration": 22927,
"src": "717:7:26",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IAccess_$22927",
"typeString": "contract IAccess"
}
},
"visibility": "private"
},
{
"constant": false,
"id": 13963,
"mutability": "mutable",
"name": "_componentOwnerService",
"nameLocation": "778:22:26",
"nodeType": "VariableDeclaration",
"scope": 14352,
"src": "747:53:26",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IComponentOwnerService_$23015",
"typeString": "contract IComponentOwnerService"
},
"typeName": {
"id": 13962,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 13961,
"name": "IComponentOwnerService",
"nodeType": "IdentifierPath",
"referencedDeclaration": 23015,
"src": "747:22:26"
},
"referencedDeclaration": 23015,
"src": "747:22:26",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IComponentOwnerService_$23015",
"typeString": "contract IComponentOwnerService"
}
},
"visibility": "private"
},
{
"constant": false,
"id": 13966,
"mutability": "mutable",
"name": "_instanceService",
"nameLocation": "832:16:26",
"nodeType": "VariableDeclaration",
"scope": 14352,
"src": "807:41:26",
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IInstanceService_$14934",
"typeString": "contract IInstanceService"
},
"typeName": {
"id": 13965,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 13964,
"name": "IInstanceService",
"nodeType": "IdentifierPath",
"referencedDeclaration": 14934,
"src": "807:16:26"
},
"referencedDeclaration": 14934,
"src": "807:16:26",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IInstanceService_$14934",
"typeString": "contract IInstanceService"
}
},
"visibility": "private"
},
{
"body": {
"id": 13979,
"nodeType": "Block",
"src": "896:177:26",
"statements": [
{
"expression": {
"arguments": [
{
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 13974,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 13969,
"name": "_msgSender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 15638,
"src": "930:10:26",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
"typeString": "function () view returns (address)"
}
},
"id": 13970,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "930:12:26",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"arguments": [
{
"hexValue": "496e7374616e63654f70657261746f7253657276696365",
"id": 13972,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "966:25:26",
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_893eee863631637173ead46f1c66388136d13bfeb40cdedfb3bfe4f34f933544",
"typeString": "literal_string \"InstanceOperatorService\""
},
"value": "InstanceOperatorService"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_stringliteral_893eee863631637173ead46f1c66388136d13bfeb40cdedfb3bfe4f34f933544",
"typeString": "literal_string \"InstanceOperatorService\""
}
],
"id": 13971,
"name": "_getContractAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 14351,
"src": "946:19:26",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_address_$",
"typeString": "function (bytes32) view returns (address)"
}
},
"id": 13973,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "946:46:26",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "930:62:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"hexValue": "4552524f523a434d502d3030313a4e4f545f494e5354414e43455f4f50455241544f525f53455256494345",
"id": 13975,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1007:45:26",
"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": 13968,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
-18,
-18
],
"referencedDeclaration": -18,
"src": "907:7:26",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 13976,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "907:146:26",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 13977,
"nodeType": "ExpressionStatement",
"src": "907:146:26"
},
{
"id": 13978,
"nodeType": "PlaceholderStatement",
"src": "1064:1:26"
}
]
},
"id": 13980,
"name": "onlyInstanceOperatorService",
"nameLocation": "866:27:26",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 13967,
"nodeType": "ParameterList",
"parameters": [],
"src": "893:2:26"
},
"src": "857:216:26",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 13993,
"nodeType": "Block",
"src": "1106:147:26",
"statements": [
{
"expression": {
"arguments": [
{
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 13988,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 13983,
"name": "_msgSender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 15638,
"src": "1140:10:26",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
"typeString": "function () view returns (address)"
}
},
"id": 13984,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1140:12:26",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"arguments": [
{
"hexValue": "436f6d706f6e656e74",
"id": 13986,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1176:11:26",
"typeDescriptions": {
"typeIdentifier": "t_stringliteral_20422c9fb475bf3099f246b9754fae871c7ccc7264ca39a5be99fea0688ffe24",
"typeString": "literal_string \"Component\""
},
"value": "Component"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_stringliteral_20422c9fb475bf3099f246b9754fae871c7ccc7264ca39a5be99fea0688ffe24",
"typeString": "literal_string \"Component\""
}
],
"id": 13985,
"name": "_getContractAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 14351,
"src": "1156:19:26",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$_t_bytes32_$returns$_t_address_$",
"typeString": "function (bytes32) view returns (address)"
}
},
"id": 13987,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1156:32:26",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "1140:48:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"hexValue": "4552524f523a434d502d3030323a4e4f545f434f4d504f4e454e54",
"id": 13989,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1203:29:26",
"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": 13982,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
-18,
-18
],
"referencedDeclaration": -18,
"src": "1117:7:26",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 13990,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1117:116:26",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 13991,
"nodeType": "ExpressionStatement",
"src": "1117:116:26"
},
{
"id": 13992,
"nodeType": "PlaceholderStatement",
"src": "1244:1:26"
}
]
},
"id": 13994,
"name": "onlyComponent",
"nameLocation": "1090:13:26",
"nodeType": "ModifierDefinition",
"parameters": {
"id": 13981,
"nodeType": "ParameterList",
"parameters": [],
"src": "1103:2:26"
},
"src": "1081:172:26",
"virtual": false,
"visibility": "internal"
},
{
"body": {
"id": 14008,
"nodeType": "Block",
"src": "1298:160:26",
"statements": [
{
"expression": {
"arguments": [
{
"commonType": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 14003,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftExpression": {
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 13997,
"name": "_msgSender",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 15638,
"src": "1332:10:26",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_address_$",
"typeString": "function () view returns (address)"
}
},
"id": 13998,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1332:12:26",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"arguments": [
{
"id": 14001,
"name": "_componentOwnerService",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 13963,
"src": "1356:22:26",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IComponentOwnerService_$23015",
"typeString": "contract IComponentOwnerService"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_IComponentOwnerService_$23015",
"typeString": "contract IComponentOwnerService"
}
],
"id": 14000,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "ElementaryTypeNameExpression",
"src": "1348:7:26",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_address_$",
"typeString": "type(address)"
},
"typeName": {
"id": 13999,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1348:7:26",
"typeDescriptions": {}
}
},
"id": 14002,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "typeConversion",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1348:31:26",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "1332:47:26",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
{
"hexValue": "4552524f523a434d502d3030333a4e4f545f434f4d504f4e454e545f4f574e45525f53455256494345",
"id": 14004,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "string",
"lValueRequested": false,
"nodeType": "Literal",
"src": "1394:43:26",
"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": 13996,
"name": "require",
"nodeType": "Identifier",
"overloadedDeclarations": [
-18,
-18
],
"referencedDeclaration": -18,
"src": "1309:7:26",
"typeDescriptions": {
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
"typeString": "function (bool,string memory) pure"
}
},
"id": 14005,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1309:129:26",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 14006,
"nodeType": "ExpressionStatement",
"src": "1309:129:26"
},
{
"id": 14007,
"nodeType": "PlaceholderStatement",
"src": "1449:1:26"
}
]
},
"id": 14009,
"name": "onlyComponentOwnerService",
"nameLocation": "127