@etherisc/gif-contracts
Version:
This repository holds the GIF core contracts and tools to develop, test and deploy GIF instances.
798 lines • 26.4 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": "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": {
"39": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IComponentEvents.sol"
},
"ast": {
"absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IComponentEvents.sol",
"exportedSymbols": {
"IComponent": [
22099
],
"IComponentEvents": [
22419
],
"IRegistry": [
21750
]
},
"id": 22420,
"license": "Apache-2.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 22368,
"literals": [
"solidity",
"0.8",
".2"
],
"nodeType": "PragmaDirective",
"src": "39:22:39"
},
{
"absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol",
"file": "../components/IComponent.sol",
"id": 22369,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 22420,
"sourceUnit": 22100,
"src": "63:38:39",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": true,
"id": 22419,
"linearizedBaseContracts": [
22419
],
"name": "IComponentEvents",
"nameLocation": "113:16:39",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"id": 22380,
"name": "LogComponentProposed",
"nameLocation": "143:20:39",
"nodeType": "EventDefinition",
"parameters": {
"id": 22379,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 22371,
"indexed": false,
"mutability": "mutable",
"name": "componentName",
"nameLocation": "182:13:39",
"nodeType": "VariableDeclaration",
"scope": 22380,
"src": "174:21:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 22370,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "174:7:39",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 22374,
"indexed": false,
"mutability": "mutable",
"name": "componentType",
"nameLocation": "230:13:39",
"nodeType": "VariableDeclaration",
"scope": 22380,
"src": "205:38:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_ComponentType_$22002",
"typeString": "enum IComponent.ComponentType"
},
"typeName": {
"id": 22373,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 22372,
"name": "IComponent.ComponentType",
"nodeType": "IdentifierPath",
"referencedDeclaration": 22002,
"src": "205:24:39"
},
"referencedDeclaration": 22002,
"src": "205:24:39",
"typeDescriptions": {
"typeIdentifier": "t_enum$_ComponentType_$22002",
"typeString": "enum IComponent.ComponentType"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 22376,
"indexed": false,
"mutability": "mutable",
"name": "componentAddress",
"nameLocation": "261:16:39",
"nodeType": "VariableDeclaration",
"scope": 22380,
"src": "253:24:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 22375,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "253:7:39",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 22378,
"indexed": false,
"mutability": "mutable",
"name": "id",
"nameLocation": "295:2:39",
"nodeType": "VariableDeclaration",
"scope": 22380,
"src": "287:10:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 22377,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "287:7:39",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "164:134:39"
},
"src": "137:162:39"
},
{
"anonymous": false,
"id": 22384,
"name": "LogComponentApproved",
"nameLocation": "315:20:39",
"nodeType": "EventDefinition",
"parameters": {
"id": 22383,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 22382,
"indexed": false,
"mutability": "mutable",
"name": "id",
"nameLocation": "345:2:39",
"nodeType": "VariableDeclaration",
"scope": 22384,
"src": "337:10:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 22381,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "337:7:39",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "336:12:39"
},
"src": "309:40:39"
},
{
"anonymous": false,
"id": 22388,
"name": "LogComponentDeclined",
"nameLocation": "360:20:39",
"nodeType": "EventDefinition",
"parameters": {
"id": 22387,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 22386,
"indexed": false,
"mutability": "mutable",
"name": "id",
"nameLocation": "390:2:39",
"nodeType": "VariableDeclaration",
"scope": 22388,
"src": "382:10:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 22385,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "382:7:39",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "381:12:39"
},
"src": "354:40:39"
},
{
"anonymous": false,
"id": 22392,
"name": "LogComponentSuspended",
"nameLocation": "406:21:39",
"nodeType": "EventDefinition",
"parameters": {
"id": 22391,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 22390,
"indexed": false,
"mutability": "mutable",
"name": "id",
"nameLocation": "437:2:39",
"nodeType": "VariableDeclaration",
"scope": 22392,
"src": "429:10:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 22389,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "429:7:39",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "428:12:39"
},
"src": "400:41:39"
},
{
"anonymous": false,
"id": 22396,
"name": "LogComponentResumed",
"nameLocation": "452:19:39",
"nodeType": "EventDefinition",
"parameters": {
"id": 22395,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 22394,
"indexed": false,
"mutability": "mutable",
"name": "id",
"nameLocation": "481:2:39",
"nodeType": "VariableDeclaration",
"scope": 22396,
"src": "473:10:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 22393,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "473:7:39",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "472:12:39"
},
"src": "446:39:39"
},
{
"anonymous": false,
"id": 22400,
"name": "LogComponentPaused",
"nameLocation": "497:18:39",
"nodeType": "EventDefinition",
"parameters": {
"id": 22399,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 22398,
"indexed": false,
"mutability": "mutable",
"name": "id",
"nameLocation": "525:2:39",
"nodeType": "VariableDeclaration",
"scope": 22400,
"src": "517:10:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 22397,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "517:7:39",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "516:12:39"
},
"src": "491:38:39"
},
{
"anonymous": false,
"id": 22404,
"name": "LogComponentUnpaused",
"nameLocation": "540:20:39",
"nodeType": "EventDefinition",
"parameters": {
"id": 22403,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 22402,
"indexed": false,
"mutability": "mutable",
"name": "id",
"nameLocation": "570:2:39",
"nodeType": "VariableDeclaration",
"scope": 22404,
"src": "562:10:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 22401,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "562:7:39",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "561:12:39"
},
"src": "534:40:39"
},
{
"anonymous": false,
"id": 22408,
"name": "LogComponentArchived",
"nameLocation": "586:20:39",
"nodeType": "EventDefinition",
"parameters": {
"id": 22407,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 22406,
"indexed": false,
"mutability": "mutable",
"name": "id",
"nameLocation": "616:2:39",
"nodeType": "VariableDeclaration",
"scope": 22408,
"src": "608:10:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 22405,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "608:7:39",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "607:12:39"
},
"src": "580:40:39"
},
{
"anonymous": false,
"id": 22418,
"name": "LogComponentStateChanged",
"nameLocation": "632:24:39",
"nodeType": "EventDefinition",
"parameters": {
"id": 22417,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 22410,
"indexed": false,
"mutability": "mutable",
"name": "id",
"nameLocation": "675:2:39",
"nodeType": "VariableDeclaration",
"scope": 22418,
"src": "667:10:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 22409,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "667:7:39",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 22413,
"indexed": false,
"mutability": "mutable",
"name": "stateOld",
"nameLocation": "714:8:39",
"nodeType": "VariableDeclaration",
"scope": 22418,
"src": "688:34:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_ComponentState_$22010",
"typeString": "enum IComponent.ComponentState"
},
"typeName": {
"id": 22412,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 22411,
"name": "IComponent.ComponentState",
"nodeType": "IdentifierPath",
"referencedDeclaration": 22010,
"src": "688:25:39"
},
"referencedDeclaration": 22010,
"src": "688:25:39",
"typeDescriptions": {
"typeIdentifier": "t_enum$_ComponentState_$22010",
"typeString": "enum IComponent.ComponentState"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 22416,
"indexed": false,
"mutability": "mutable",
"name": "stateNew",
"nameLocation": "759:8:39",
"nodeType": "VariableDeclaration",
"scope": 22418,
"src": "733:34:39",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_ComponentState_$22010",
"typeString": "enum IComponent.ComponentState"
},
"typeName": {
"id": 22415,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 22414,
"name": "IComponent.ComponentState",
"nodeType": "IdentifierPath",
"referencedDeclaration": 22010,
"src": "733:25:39"
},
"referencedDeclaration": 22010,
"src": "733:25:39",
"typeDescriptions": {
"typeIdentifier": "t_enum$_ComponentState_$22010",
"typeString": "enum IComponent.ComponentState"
}
},
"visibility": "internal"
}
],
"src": "657:111:39"
},
"src": "626:143:39"
}
],
"scope": 22420,
"src": "103:668:39"
}
],
"src": "39:733:39"
},
"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": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IComponentEvents.sol",
"type": "interface"
}