UNPKG

@etherisc/terraguard-poc-contracts

Version:

Etherisc's smart contracts for the terraguard poc

1,333 lines 42.8 kB
{ "abi": [ { "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" }, { "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": "pauseCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "proposalCallback", "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": [], "name": "unpauseCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "allSourcePaths": { "21": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IRegistry.sol", "9": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol" }, "ast": { "absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol", "exportedSymbols": { "IComponent": [ 5218 ], "IRegistry": [ 7009 ] }, "id": 5219, "license": "Apache-2.0", "nodeType": "SourceUnit", "nodes": [ { "id": 5116, "literals": [ "solidity", "0.8", ".2" ], "nodeType": "PragmaDirective", "src": "40:22:9" }, { "absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IRegistry.sol", "file": "../modules/IRegistry.sol", "id": 5117, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 5219, "sourceUnit": 7010, "src": "66:34:9", "symbolAliases": [], "unitAlias": "" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "fullyImplemented": false, "id": 5218, "linearizedBaseContracts": [ 5218 ], "name": "IComponent", "nameLocation": "114:10:9", "nodeType": "ContractDefinition", "nodes": [ { "canonicalName": "IComponent.ComponentType", "id": 5121, "members": [ { "id": 5118, "name": "Oracle", "nameLocation": "164:6:9", "nodeType": "EnumValue", "src": "164:6:9" }, { "id": 5119, "name": "Product", "nameLocation": "181:7:9", "nodeType": "EnumValue", "src": "181:7:9" }, { "id": 5120, "name": "Riskpool", "nameLocation": "199:8:9", "nodeType": "EnumValue", "src": "199:8:9" } ], "name": "ComponentType", "nameLocation": "139:13:9", "nodeType": "EnumDefinition", "src": "134:80:9" }, { "canonicalName": "IComponent.ComponentState", "id": 5129, "members": [ { "id": 5122, "name": "Created", "nameLocation": "253:7:9", "nodeType": "EnumValue", "src": "253:7:9" }, { "id": 5123, "name": "Proposed", "nameLocation": "271:8:9", "nodeType": "EnumValue", "src": "271:8:9" }, { "id": 5124, "name": "Declined", "nameLocation": "290:8:9", "nodeType": "EnumValue", "src": "290:8:9" }, { "id": 5125, "name": "Active", "nameLocation": "309:6:9", "nodeType": "EnumValue", "src": "309:6:9" }, { "id": 5126, "name": "Paused", "nameLocation": "326:6:9", "nodeType": "EnumValue", "src": "326:6:9" }, { "id": 5127, "name": "Suspended", "nameLocation": "343:9:9", "nodeType": "EnumValue", "src": "343:9:9" }, { "id": 5128, "name": "Archived", "nameLocation": "363:8:9", "nodeType": "EnumValue", "src": "363:8:9" } ], "name": "ComponentState", "nameLocation": "227:14:9", "nodeType": "EnumDefinition", "src": "222:156:9" }, { "anonymous": false, "id": 5140, "name": "LogComponentCreated", "nameLocation": "392:19:9", "nodeType": "EventDefinition", "parameters": { "id": 5139, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5131, "indexed": false, "mutability": "mutable", "name": "componentName", "nameLocation": "431:13:9", "nodeType": "VariableDeclaration", "scope": 5140, "src": "423:21:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 5130, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "423:7:9", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 5134, "indexed": false, "mutability": "mutable", "name": "componentType", "nameLocation": "480:13:9", "nodeType": "VariableDeclaration", "scope": 5140, "src": "455:38:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_enum$_ComponentType_$5121", "typeString": "enum IComponent.ComponentType" }, "typeName": { "id": 5133, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 5132, "name": "IComponent.ComponentType", "nodeType": "IdentifierPath", "referencedDeclaration": 5121, "src": "455:24:9" }, "referencedDeclaration": 5121, "src": "455:24:9", "typeDescriptions": { "typeIdentifier": "t_enum$_ComponentType_$5121", "typeString": "enum IComponent.ComponentType" } }, "visibility": "internal" }, { "constant": false, "id": 5136, "indexed": false, "mutability": "mutable", "name": "componentAddress", "nameLocation": "512:16:9", "nodeType": "VariableDeclaration", "scope": 5140, "src": "504:24:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5135, "name": "address", "nodeType": "ElementaryTypeName", "src": "504:7:9", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 5138, "indexed": false, "mutability": "mutable", "name": "registryAddress", "nameLocation": "547:15:9", "nodeType": "VariableDeclaration", "scope": 5140, "src": "539:23:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5137, "name": "address", "nodeType": "ElementaryTypeName", "src": "539:7:9", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "412:151:9" }, "src": "386:178:9" }, { "functionSelector": "d0e0ba95", "id": 5145, "implemented": false, "kind": "function", "modifiers": [], "name": "setId", "nameLocation": "581:5:9", "nodeType": "FunctionDefinition", "parameters": { "id": 5143, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5142, "mutability": "mutable", "name": "id", "nameLocation": "595:2:9", "nodeType": "VariableDeclaration", "scope": 5145, "src": "587:10:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5141, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "587:7:9", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "586:12:9" }, "returnParameters": { "id": 5144, "nodeType": "ParameterList", "parameters": [], "src": "607:0:9" }, "scope": 5218, "src": "572:36:9", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "17d7de7c", "id": 5150, "implemented": false, "kind": "function", "modifiers": [], "name": "getName", "nameLocation": "625:7:9", "nodeType": "FunctionDefinition", "parameters": { "id": 5146, "nodeType": "ParameterList", "parameters": [], "src": "632:2:9" }, "returnParameters": { "id": 5149, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5148, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 5150, "src": "657:7:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 5147, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "657:7:9", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "656:9:9" }, "scope": 5218, "src": "616:50:9", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "5d1ca631", "id": 5155, "implemented": false, "kind": "function", "modifiers": [], "name": "getId", "nameLocation": "681:5:9", "nodeType": "FunctionDefinition", "parameters": { "id": 5151, "nodeType": "ParameterList", "parameters": [], "src": "686:2:9" }, "returnParameters": { "id": 5154, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5153, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 5155, "src": "711:7:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5152, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "711:7:9", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "710:9:9" }, "scope": 5218, "src": "672:48:9", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "15dae03e", "id": 5161, "implemented": false, "kind": "function", "modifiers": [], "name": "getType", "nameLocation": "735:7:9", "nodeType": "FunctionDefinition", "parameters": { "id": 5156, "nodeType": "ParameterList", "parameters": [], "src": "742:2:9" }, "returnParameters": { "id": 5160, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5159, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 5161, "src": "767:13:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_enum$_ComponentType_$5121", "typeString": "enum IComponent.ComponentType" }, "typeName": { "id": 5158, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 5157, "name": "ComponentType", "nodeType": "IdentifierPath", "referencedDeclaration": 5121, "src": "767:13:9" }, "referencedDeclaration": 5121, "src": "767:13:9", "typeDescriptions": { "typeIdentifier": "t_enum$_ComponentType_$5121", "typeString": "enum IComponent.ComponentType" } }, "visibility": "internal" } ], "src": "766:15:9" }, "scope": 5218, "src": "726:56:9", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "1865c57d", "id": 5167, "implemented": false, "kind": "function", "modifiers": [], "name": "getState", "nameLocation": "797:8:9", "nodeType": "FunctionDefinition", "parameters": { "id": 5162, "nodeType": "ParameterList", "parameters": [], "src": "805:2:9" }, "returnParameters": { "id": 5166, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5165, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 5167, "src": "830:14:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_enum$_ComponentState_$5129", "typeString": "enum IComponent.ComponentState" }, "typeName": { "id": 5164, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 5163, "name": "ComponentState", "nodeType": "IdentifierPath", "referencedDeclaration": 5129, "src": "830:14:9" }, "referencedDeclaration": 5129, "src": "830:14:9", "typeDescriptions": { "typeIdentifier": "t_enum$_ComponentState_$5129", "typeString": "enum IComponent.ComponentState" } }, "visibility": "internal" } ], "src": "829:16:9" }, "scope": 5218, "src": "788:58:9", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "893d20e8", "id": 5172, "implemented": false, "kind": "function", "modifiers": [], "name": "getOwner", "nameLocation": "861:8:9", "nodeType": "FunctionDefinition", "parameters": { "id": 5168, "nodeType": "ParameterList", "parameters": [], "src": "869:2:9" }, "returnParameters": { "id": 5171, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5170, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 5172, "src": "894:7:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5169, "name": "address", "nodeType": "ElementaryTypeName", "src": "894:7:9", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "893:9:9" }, "scope": 5218, "src": "852:51:9", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "e0815f0d", "id": 5177, "implemented": false, "kind": "function", "modifiers": [], "name": "isProduct", "nameLocation": "920:9:9", "nodeType": "FunctionDefinition", "parameters": { "id": 5173, "nodeType": "ParameterList", "parameters": [], "src": "929:2:9" }, "returnParameters": { "id": 5176, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5175, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 5177, "src": "954:4:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 5174, "name": "bool", "nodeType": "ElementaryTypeName", "src": "954:4:9", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "953:6:9" }, "scope": 5218, "src": "911:49:9", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "9a82f890", "id": 5182, "implemented": false, "kind": "function", "modifiers": [], "name": "isOracle", "nameLocation": "975:8:9", "nodeType": "FunctionDefinition", "parameters": { "id": 5178, "nodeType": "ParameterList", "parameters": [], "src": "983:2:9" }, "returnParameters": { "id": 5181, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5180, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 5182, "src": "1008:4:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 5179, "name": "bool", "nodeType": "ElementaryTypeName", "src": "1008:4:9", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "1007:6:9" }, "scope": 5218, "src": "966:48:9", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "258d560c", "id": 5187, "implemented": false, "kind": "function", "modifiers": [], "name": "isRiskpool", "nameLocation": "1029:10:9", "nodeType": "FunctionDefinition", "parameters": { "id": 5183, "nodeType": "ParameterList", "parameters": [], "src": "1039:2:9" }, "returnParameters": { "id": 5186, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5185, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 5187, "src": "1064:4:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 5184, "name": "bool", "nodeType": "ElementaryTypeName", "src": "1064:4:9", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "1063:6:9" }, "scope": 5218, "src": "1020:50:9", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "5ab1bd53", "id": 5193, "implemented": false, "kind": "function", "modifiers": [], "name": "getRegistry", "nameLocation": "1087:11:9", "nodeType": "FunctionDefinition", "parameters": { "id": 5188, "nodeType": "ParameterList", "parameters": [], "src": "1098:2:9" }, "returnParameters": { "id": 5192, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5191, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 5193, "src": "1123:9:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_IRegistry_$7009", "typeString": "contract IRegistry" }, "typeName": { "id": 5190, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 5189, "name": "IRegistry", "nodeType": "IdentifierPath", "referencedDeclaration": 7009, "src": "1123:9:9" }, "referencedDeclaration": 7009, "src": "1123:9:9", "typeDescriptions": { "typeIdentifier": "t_contract$_IRegistry_$7009", "typeString": "contract IRegistry" } }, "visibility": "internal" } ], "src": "1122:11:9" }, "scope": 5218, "src": "1078:56:9", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "638ce0ba", "id": 5196, "implemented": false, "kind": "function", "modifiers": [], "name": "proposalCallback", "nameLocation": "1151:16:9", "nodeType": "FunctionDefinition", "parameters": { "id": 5194, "nodeType": "ParameterList", "parameters": [], "src": "1167:2:9" }, "returnParameters": { "id": 5195, "nodeType": "ParameterList", "parameters": [], "src": "1178:0:9" }, "scope": 5218, "src": "1142:37:9", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "1b867c63", "id": 5199, "implemented": false, "kind": "function", "modifiers": [], "name": "approvalCallback", "nameLocation": "1194:16:9", "nodeType": "FunctionDefinition", "parameters": { "id": 5197, "nodeType": "ParameterList", "parameters": [], "src": "1210:2:9" }, "returnParameters": { "id": 5198, "nodeType": "ParameterList", "parameters": [], "src": "1221:0:9" }, "scope": 5218, "src": "1185:37:9", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "bd1fe5d0", "id": 5202, "implemented": false, "kind": "function", "modifiers": [], "name": "declineCallback", "nameLocation": "1238:15:9", "nodeType": "FunctionDefinition", "parameters": { "id": 5200, "nodeType": "ParameterList", "parameters": [], "src": "1253:2:9" }, "returnParameters": { "id": 5201, "nodeType": "ParameterList", "parameters": [], "src": "1264:0:9" }, "scope": 5218, "src": "1229:36:9", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "b3fca9bd", "id": 5205, "implemented": false, "kind": "function", "modifiers": [], "name": "suspendCallback", "nameLocation": "1280:15:9", "nodeType": "FunctionDefinition", "parameters": { "id": 5203, "nodeType": "ParameterList", "parameters": [], "src": "1295:2:9" }, "returnParameters": { "id": 5204, "nodeType": "ParameterList", "parameters": [], "src": "1306:0:9" }, "scope": 5218, "src": "1271:36:9", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "a18f5ae2", "id": 5208, "implemented": false, "kind": "function", "modifiers": [], "name": "resumeCallback", "nameLocation": "1322:14:9", "nodeType": "FunctionDefinition", "parameters": { "id": 5206, "nodeType": "ParameterList", "parameters": [], "src": "1336:2:9" }, "returnParameters": { "id": 5207, "nodeType": "ParameterList", "parameters": [], "src": "1347:0:9" }, "scope": 5218, "src": "1313:35:9", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "d73cd992", "id": 5211, "implemented": false, "kind": "function", "modifiers": [], "name": "pauseCallback", "nameLocation": "1363:13:9", "nodeType": "FunctionDefinition", "parameters": { "id": 5209, "nodeType": "ParameterList", "parameters": [], "src": "1376:2:9" }, "returnParameters": { "id": 5210, "nodeType": "ParameterList", "parameters": [], "src": "1387:0:9" }, "scope": 5218, "src": "1354:34:9", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "59dacc6a", "id": 5214, "implemented": false, "kind": "function", "modifiers": [], "name": "unpauseCallback", "nameLocation": "1403:15:9", "nodeType": "FunctionDefinition", "parameters": { "id": 5212, "nodeType": "ParameterList", "parameters": [], "src": "1418:2:9" }, "returnParameters": { "id": 5213, "nodeType": "ParameterList", "parameters": [], "src": "1429:0:9" }, "scope": 5218, "src": "1394:36:9", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "be169e7e", "id": 5217, "implemented": false, "kind": "function", "modifiers": [], "name": "archiveCallback", "nameLocation": "1445:15:9", "nodeType": "FunctionDefinition", "parameters": { "id": 5215, "nodeType": "ParameterList", "parameters": [], "src": "1460:2:9" }, "returnParameters": { "id": 5216, "nodeType": "ParameterList", "parameters": [], "src": "1471:0:9" }, "scope": 5218, "src": "1436:36:9", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" } ], "scope": 5219, "src": "104:1371:9" } ], "src": "40:1435:9" }, "bytecode": "", "bytecodeSha1": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "compiler": { "evm_version": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "version": "0.8.2+commit.661d1103" }, "contractName": "IComponent", "coverageMap": { "branches": {}, "statements": {} }, "dependencies": [ "etherisc/gif-interface@3b0002a/IRegistry" ], "deployedBytecode": "", "deployedSourceMap": "", "language": "Solidity", "natspec": { "kind": "dev", "methods": {}, "version": 1 }, "offset": [ 104, 1475 ], "opcodes": "", "pcMap": {}, "sha1": "cb9d9b2da7adb18b220a1035768db4d3ae3c617c", "source": "// SPDX-License-Identifier: Apache-2.0\npragma solidity 0.8.2;\n\nimport \"../modules/IRegistry.sol\";\n\ninterface IComponent {\n\n enum ComponentType {\n Oracle,\n Product,\n Riskpool\n }\n\n enum ComponentState {\n Created,\n Proposed,\n Declined,\n Active,\n Paused,\n Suspended,\n Archived\n }\n\n event LogComponentCreated (\n bytes32 componentName,\n IComponent.ComponentType componentType,\n address componentAddress,\n address registryAddress);\n\n function setId(uint256 id) external;\n\n function getName() external view returns(bytes32);\n function getId() external view returns(uint256);\n function getType() external view returns(ComponentType);\n function getState() external view returns(ComponentState);\n function getOwner() external view returns(address);\n\n function isProduct() external view returns(bool);\n function isOracle() external view returns(bool);\n function isRiskpool() external view returns(bool);\n\n function getRegistry() external view returns(IRegistry);\n\n function proposalCallback() external;\n function approvalCallback() external; \n function declineCallback() external;\n function suspendCallback() external;\n function resumeCallback() external;\n function pauseCallback() external;\n function unpauseCallback() external;\n function archiveCallback() external;\n}", "sourceMap": "", "sourcePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol", "type": "interface" }