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.

798 lines 26.1 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": "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" } ], "allSourcePaths": { "16": "contracts/modules/IComponentEvents.sol" }, "ast": { "absolutePath": "contracts/modules/IComponentEvents.sol", "exportedSymbols": { "IComponent": [ 812 ], "IComponentEvents": [ 2897 ], "IRegistry": [ 3538 ] }, "id": 2898, "license": "Apache-2.0", "nodeType": "SourceUnit", "nodes": [ { "id": 2846, "literals": [ "solidity", "0.8", ".2" ], "nodeType": "PragmaDirective", "src": "39:22:16" }, { "absolutePath": "contracts/components/IComponent.sol", "file": "../components/IComponent.sol", "id": 2847, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 2898, "sourceUnit": 813, "src": "63:38:16", "symbolAliases": [], "unitAlias": "" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "fullyImplemented": true, "id": 2897, "linearizedBaseContracts": [ 2897 ], "name": "IComponentEvents", "nameLocation": "113:16:16", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "id": 2858, "name": "LogComponentProposed", "nameLocation": "143:20:16", "nodeType": "EventDefinition", "parameters": { "id": 2857, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2849, "indexed": false, "mutability": "mutable", "name": "componentName", "nameLocation": "182:13:16", "nodeType": "VariableDeclaration", "scope": 2858, "src": "174:21:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 2848, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "174:7:16", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 2852, "indexed": false, "mutability": "mutable", "name": "componentType", "nameLocation": "230:13:16", "nodeType": "VariableDeclaration", "scope": 2858, "src": "205:38:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_enum$_ComponentType_$715", "typeString": "enum IComponent.ComponentType" }, "typeName": { "id": 2851, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 2850, "name": "IComponent.ComponentType", "nodeType": "IdentifierPath", "referencedDeclaration": 715, "src": "205:24:16" }, "referencedDeclaration": 715, "src": "205:24:16", "typeDescriptions": { "typeIdentifier": "t_enum$_ComponentType_$715", "typeString": "enum IComponent.ComponentType" } }, "visibility": "internal" }, { "constant": false, "id": 2854, "indexed": false, "mutability": "mutable", "name": "componentAddress", "nameLocation": "261:16:16", "nodeType": "VariableDeclaration", "scope": 2858, "src": "253:24:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2853, "name": "address", "nodeType": "ElementaryTypeName", "src": "253:7:16", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 2856, "indexed": false, "mutability": "mutable", "name": "id", "nameLocation": "295:2:16", "nodeType": "VariableDeclaration", "scope": 2858, "src": "287:10:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2855, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "287:7:16", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "164:134:16" }, "src": "137:162:16" }, { "anonymous": false, "id": 2862, "name": "LogComponentApproved", "nameLocation": "315:20:16", "nodeType": "EventDefinition", "parameters": { "id": 2861, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2860, "indexed": false, "mutability": "mutable", "name": "id", "nameLocation": "345:2:16", "nodeType": "VariableDeclaration", "scope": 2862, "src": "337:10:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2859, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "337:7:16", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "336:12:16" }, "src": "309:40:16" }, { "anonymous": false, "id": 2866, "name": "LogComponentDeclined", "nameLocation": "360:20:16", "nodeType": "EventDefinition", "parameters": { "id": 2865, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2864, "indexed": false, "mutability": "mutable", "name": "id", "nameLocation": "390:2:16", "nodeType": "VariableDeclaration", "scope": 2866, "src": "382:10:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2863, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "382:7:16", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "381:12:16" }, "src": "354:40:16" }, { "anonymous": false, "id": 2870, "name": "LogComponentSuspended", "nameLocation": "406:21:16", "nodeType": "EventDefinition", "parameters": { "id": 2869, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2868, "indexed": false, "mutability": "mutable", "name": "id", "nameLocation": "437:2:16", "nodeType": "VariableDeclaration", "scope": 2870, "src": "429:10:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2867, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "429:7:16", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "428:12:16" }, "src": "400:41:16" }, { "anonymous": false, "id": 2874, "name": "LogComponentResumed", "nameLocation": "452:19:16", "nodeType": "EventDefinition", "parameters": { "id": 2873, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2872, "indexed": false, "mutability": "mutable", "name": "id", "nameLocation": "481:2:16", "nodeType": "VariableDeclaration", "scope": 2874, "src": "473:10:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2871, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "473:7:16", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "472:12:16" }, "src": "446:39:16" }, { "anonymous": false, "id": 2878, "name": "LogComponentPaused", "nameLocation": "497:18:16", "nodeType": "EventDefinition", "parameters": { "id": 2877, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2876, "indexed": false, "mutability": "mutable", "name": "id", "nameLocation": "525:2:16", "nodeType": "VariableDeclaration", "scope": 2878, "src": "517:10:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2875, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "517:7:16", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "516:12:16" }, "src": "491:38:16" }, { "anonymous": false, "id": 2882, "name": "LogComponentUnpaused", "nameLocation": "540:20:16", "nodeType": "EventDefinition", "parameters": { "id": 2881, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2880, "indexed": false, "mutability": "mutable", "name": "id", "nameLocation": "570:2:16", "nodeType": "VariableDeclaration", "scope": 2882, "src": "562:10:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2879, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "562:7:16", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "561:12:16" }, "src": "534:40:16" }, { "anonymous": false, "id": 2886, "name": "LogComponentArchived", "nameLocation": "586:20:16", "nodeType": "EventDefinition", "parameters": { "id": 2885, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2884, "indexed": false, "mutability": "mutable", "name": "id", "nameLocation": "616:2:16", "nodeType": "VariableDeclaration", "scope": 2886, "src": "608:10:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2883, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "608:7:16", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "607:12:16" }, "src": "580:40:16" }, { "anonymous": false, "id": 2896, "name": "LogComponentStateChanged", "nameLocation": "632:24:16", "nodeType": "EventDefinition", "parameters": { "id": 2895, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2888, "indexed": false, "mutability": "mutable", "name": "id", "nameLocation": "675:2:16", "nodeType": "VariableDeclaration", "scope": 2896, "src": "667:10:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2887, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "667:7:16", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 2891, "indexed": false, "mutability": "mutable", "name": "stateOld", "nameLocation": "714:8:16", "nodeType": "VariableDeclaration", "scope": 2896, "src": "688:34:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_enum$_ComponentState_$723", "typeString": "enum IComponent.ComponentState" }, "typeName": { "id": 2890, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 2889, "name": "IComponent.ComponentState", "nodeType": "IdentifierPath", "referencedDeclaration": 723, "src": "688:25:16" }, "referencedDeclaration": 723, "src": "688:25:16", "typeDescriptions": { "typeIdentifier": "t_enum$_ComponentState_$723", "typeString": "enum IComponent.ComponentState" } }, "visibility": "internal" }, { "constant": false, "id": 2894, "indexed": false, "mutability": "mutable", "name": "stateNew", "nameLocation": "759:8:16", "nodeType": "VariableDeclaration", "scope": 2896, "src": "733:34:16", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_enum$_ComponentState_$723", "typeString": "enum IComponent.ComponentState" }, "typeName": { "id": 2893, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 2892, "name": "IComponent.ComponentState", "nodeType": "IdentifierPath", "referencedDeclaration": 723, "src": "733:25:16" }, "referencedDeclaration": 723, "src": "733:25:16", "typeDescriptions": { "typeIdentifier": "t_enum$_ComponentState_$723", "typeString": "enum IComponent.ComponentState" } }, "visibility": "internal" } ], "src": "657:111:16" }, "src": "626:143:16" } ], "scope": 2898, "src": "103:668:16" } ], "src": "39:733:16" }, "bytecode": "", "bytecodeSha1": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "compiler": { "evm_version": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "version": "0.8.2+commit.661d1103" }, "contractName": "IComponentEvents", "coverageMap": { "branches": {}, "statements": {} }, "dependencies": [], "deployedBytecode": "", "deployedSourceMap": "", "language": "Solidity", "natspec": { "kind": "dev", "methods": {}, "version": 1 }, "offset": [ 103, 771 ], "opcodes": "", "pcMap": {}, "sha1": "28982cb9e41aa53c0a9a3cf50f7525c476de709b", "source": "// SPDX-License-Identifier: Apache-2.0\npragma solidity 0.8.2;\n\nimport \"../components/IComponent.sol\";\n\ninterface IComponentEvents {\n\n event LogComponentProposed (\n bytes32 componentName,\n IComponent.ComponentType componentType,\n address componentAddress,\n uint256 id);\n \n event LogComponentApproved (uint256 id);\n event LogComponentDeclined (uint256 id);\n\n event LogComponentSuspended (uint256 id);\n event LogComponentResumed (uint256 id);\n\n event LogComponentPaused (uint256 id);\n event LogComponentUnpaused (uint256 id);\n\n event LogComponentArchived (uint256 id);\n\n event LogComponentStateChanged (\n uint256 id, \n IComponent.ComponentState stateOld, \n IComponent.ComponentState stateNew);\n}\n", "sourceMap": "", "sourcePath": "contracts/modules/IComponentEvents.sol", "type": "interface" }