@etherisc/terraguard-poc-contracts
Version:
Etherisc's smart contracts for the terraguard poc
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": {
"18": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IComponentEvents.sol"
},
"ast": {
"absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IComponentEvents.sol",
"exportedSymbols": {
"IComponent": [
5218
],
"IComponentEvents": [
6911
],
"IRegistry": [
7009
]
},
"id": 6912,
"license": "Apache-2.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 6860,
"literals": [
"solidity",
"0.8",
".2"
],
"nodeType": "PragmaDirective",
"src": "39:22:18"
},
{
"absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol",
"file": "../components/IComponent.sol",
"id": 6861,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 6912,
"sourceUnit": 5219,
"src": "63:38:18",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": true,
"id": 6911,
"linearizedBaseContracts": [
6911
],
"name": "IComponentEvents",
"nameLocation": "113:16:18",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"id": 6872,
"name": "LogComponentProposed",
"nameLocation": "143:20:18",
"nodeType": "EventDefinition",
"parameters": {
"id": 6871,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6863,
"indexed": false,
"mutability": "mutable",
"name": "componentName",
"nameLocation": "182:13:18",
"nodeType": "VariableDeclaration",
"scope": 6872,
"src": "174:21:18",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 6862,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "174:7:18",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6866,
"indexed": false,
"mutability": "mutable",
"name": "componentType",
"nameLocation": "230:13:18",
"nodeType": "VariableDeclaration",
"scope": 6872,
"src": "205:38:18",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_ComponentType_$5121",
"typeString": "enum IComponent.ComponentType"
},
"typeName": {
"id": 6865,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 6864,
"name": "IComponent.ComponentType",
"nodeType": "IdentifierPath",
"referencedDeclaration": 5121,
"src": "205:24:18"
},
"referencedDeclaration": 5121,
"src": "205:24:18",
"typeDescriptions": {
"typeIdentifier": "t_enum$_ComponentType_$5121",
"typeString": "enum IComponent.ComponentType"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6868,
"indexed": false,
"mutability": "mutable",
"name": "componentAddress",
"nameLocation": "261:16:18",
"nodeType": "VariableDeclaration",
"scope": 6872,
"src": "253:24:18",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6867,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "253:7:18",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6870,
"indexed": false,
"mutability": "mutable",
"name": "id",
"nameLocation": "295:2:18",
"nodeType": "VariableDeclaration",
"scope": 6872,
"src": "287:10:18",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6869,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "287:7:18",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "164:134:18"
},
"src": "137:162:18"
},
{
"anonymous": false,
"id": 6876,
"name": "LogComponentApproved",
"nameLocation": "315:20:18",
"nodeType": "EventDefinition",
"parameters": {
"id": 6875,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6874,
"indexed": false,
"mutability": "mutable",
"name": "id",
"nameLocation": "345:2:18",
"nodeType": "VariableDeclaration",
"scope": 6876,
"src": "337:10:18",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6873,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "337:7:18",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "336:12:18"
},
"src": "309:40:18"
},
{
"anonymous": false,
"id": 6880,
"name": "LogComponentDeclined",
"nameLocation": "360:20:18",
"nodeType": "EventDefinition",
"parameters": {
"id": 6879,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6878,
"indexed": false,
"mutability": "mutable",
"name": "id",
"nameLocation": "390:2:18",
"nodeType": "VariableDeclaration",
"scope": 6880,
"src": "382:10:18",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6877,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "382:7:18",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "381:12:18"
},
"src": "354:40:18"
},
{
"anonymous": false,
"id": 6884,
"name": "LogComponentSuspended",
"nameLocation": "406:21:18",
"nodeType": "EventDefinition",
"parameters": {
"id": 6883,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6882,
"indexed": false,
"mutability": "mutable",
"name": "id",
"nameLocation": "437:2:18",
"nodeType": "VariableDeclaration",
"scope": 6884,
"src": "429:10:18",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6881,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "429:7:18",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "428:12:18"
},
"src": "400:41:18"
},
{
"anonymous": false,
"id": 6888,
"name": "LogComponentResumed",
"nameLocation": "452:19:18",
"nodeType": "EventDefinition",
"parameters": {
"id": 6887,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6886,
"indexed": false,
"mutability": "mutable",
"name": "id",
"nameLocation": "481:2:18",
"nodeType": "VariableDeclaration",
"scope": 6888,
"src": "473:10:18",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6885,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "473:7:18",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "472:12:18"
},
"src": "446:39:18"
},
{
"anonymous": false,
"id": 6892,
"name": "LogComponentPaused",
"nameLocation": "497:18:18",
"nodeType": "EventDefinition",
"parameters": {
"id": 6891,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6890,
"indexed": false,
"mutability": "mutable",
"name": "id",
"nameLocation": "525:2:18",
"nodeType": "VariableDeclaration",
"scope": 6892,
"src": "517:10:18",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6889,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "517:7:18",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "516:12:18"
},
"src": "491:38:18"
},
{
"anonymous": false,
"id": 6896,
"name": "LogComponentUnpaused",
"nameLocation": "540:20:18",
"nodeType": "EventDefinition",
"parameters": {
"id": 6895,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6894,
"indexed": false,
"mutability": "mutable",
"name": "id",
"nameLocation": "570:2:18",
"nodeType": "VariableDeclaration",
"scope": 6896,
"src": "562:10:18",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6893,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "562:7:18",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "561:12:18"
},
"src": "534:40:18"
},
{
"anonymous": false,
"id": 6900,
"name": "LogComponentArchived",
"nameLocation": "586:20:18",
"nodeType": "EventDefinition",
"parameters": {
"id": 6899,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6898,
"indexed": false,
"mutability": "mutable",
"name": "id",
"nameLocation": "616:2:18",
"nodeType": "VariableDeclaration",
"scope": 6900,
"src": "608:10:18",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6897,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "608:7:18",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "607:12:18"
},
"src": "580:40:18"
},
{
"anonymous": false,
"id": 6910,
"name": "LogComponentStateChanged",
"nameLocation": "632:24:18",
"nodeType": "EventDefinition",
"parameters": {
"id": 6909,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6902,
"indexed": false,
"mutability": "mutable",
"name": "id",
"nameLocation": "675:2:18",
"nodeType": "VariableDeclaration",
"scope": 6910,
"src": "667:10:18",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6901,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "667:7:18",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6905,
"indexed": false,
"mutability": "mutable",
"name": "stateOld",
"nameLocation": "714:8:18",
"nodeType": "VariableDeclaration",
"scope": 6910,
"src": "688:34:18",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_ComponentState_$5129",
"typeString": "enum IComponent.ComponentState"
},
"typeName": {
"id": 6904,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 6903,
"name": "IComponent.ComponentState",
"nodeType": "IdentifierPath",
"referencedDeclaration": 5129,
"src": "688:25:18"
},
"referencedDeclaration": 5129,
"src": "688:25:18",
"typeDescriptions": {
"typeIdentifier": "t_enum$_ComponentState_$5129",
"typeString": "enum IComponent.ComponentState"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 6908,
"indexed": false,
"mutability": "mutable",
"name": "stateNew",
"nameLocation": "759:8:18",
"nodeType": "VariableDeclaration",
"scope": 6910,
"src": "733:34:18",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_ComponentState_$5129",
"typeString": "enum IComponent.ComponentState"
},
"typeName": {
"id": 6907,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 6906,
"name": "IComponent.ComponentState",
"nodeType": "IdentifierPath",
"referencedDeclaration": 5129,
"src": "733:25:18"
},
"referencedDeclaration": 5129,
"src": "733:25:18",
"typeDescriptions": {
"typeIdentifier": "t_enum$_ComponentState_$5129",
"typeString": "enum IComponent.ComponentState"
}
},
"visibility": "internal"
}
],
"src": "657:111:18"
},
"src": "626:143:18"
}
],
"scope": 6912,
"src": "103:668:18"
}
],
"src": "39:733:18"
},
"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/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IComponentEvents.sol",
"type": "interface"
}