UNPKG

@etherisc/depeg-contracts

Version:

Etherisc's smart contracts for a depeg insurance for stable coins.

798 lines 26.4 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": { "35": "/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": [ 11675 ], "IComponentEvents": [ 22980 ], "IRegistry": [ 21976 ] }, "id": 22981, "license": "Apache-2.0", "nodeType": "SourceUnit", "nodes": [ { "id": 22929, "literals": [ "solidity", "0.8", ".2" ], "nodeType": "PragmaDirective", "src": "39:22:35" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol", "file": "../components/IComponent.sol", "id": 22930, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 22981, "sourceUnit": 11676, "src": "63:38:35", "symbolAliases": [], "unitAlias": "" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "fullyImplemented": true, "id": 22980, "linearizedBaseContracts": [ 22980 ], "name": "IComponentEvents", "nameLocation": "113:16:35", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "id": 22941, "name": "LogComponentProposed", "nameLocation": "143:20:35", "nodeType": "EventDefinition", "parameters": { "id": 22940, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 22932, "indexed": false, "mutability": "mutable", "name": "componentName", "nameLocation": "182:13:35", "nodeType": "VariableDeclaration", "scope": 22941, "src": "174:21:35", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 22931, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "174:7:35", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" }, { "constant": false, "id": 22935, "indexed": false, "mutability": "mutable", "name": "componentType", "nameLocation": "230:13:35", "nodeType": "VariableDeclaration", "scope": 22941, "src": "205:38:35", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_enum$_ComponentType_$11578", "typeString": "enum IComponent.ComponentType" }, "typeName": { "id": 22934, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 22933, "name": "IComponent.ComponentType", "nodeType": "IdentifierPath", "referencedDeclaration": 11578, "src": "205:24:35" }, "referencedDeclaration": 11578, "src": "205:24:35", "typeDescriptions": { "typeIdentifier": "t_enum$_ComponentType_$11578", "typeString": "enum IComponent.ComponentType" } }, "visibility": "internal" }, { "constant": false, "id": 22937, "indexed": false, "mutability": "mutable", "name": "componentAddress", "nameLocation": "261:16:35", "nodeType": "VariableDeclaration", "scope": 22941, "src": "253:24:35", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 22936, "name": "address", "nodeType": "ElementaryTypeName", "src": "253:7:35", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 22939, "indexed": false, "mutability": "mutable", "name": "id", "nameLocation": "295:2:35", "nodeType": "VariableDeclaration", "scope": 22941, "src": "287:10:35", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 22938, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "287:7:35", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "164:134:35" }, "src": "137:162:35" }, { "anonymous": false, "id": 22945, "name": "LogComponentApproved", "nameLocation": "315:20:35", "nodeType": "EventDefinition", "parameters": { "id": 22944, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 22943, "indexed": false, "mutability": "mutable", "name": "id", "nameLocation": "345:2:35", "nodeType": "VariableDeclaration", "scope": 22945, "src": "337:10:35", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 22942, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "337:7:35", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "336:12:35" }, "src": "309:40:35" }, { "anonymous": false, "id": 22949, "name": "LogComponentDeclined", "nameLocation": "360:20:35", "nodeType": "EventDefinition", "parameters": { "id": 22948, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 22947, "indexed": false, "mutability": "mutable", "name": "id", "nameLocation": "390:2:35", "nodeType": "VariableDeclaration", "scope": 22949, "src": "382:10:35", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 22946, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "382:7:35", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "381:12:35" }, "src": "354:40:35" }, { "anonymous": false, "id": 22953, "name": "LogComponentSuspended", "nameLocation": "406:21:35", "nodeType": "EventDefinition", "parameters": { "id": 22952, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 22951, "indexed": false, "mutability": "mutable", "name": "id", "nameLocation": "437:2:35", "nodeType": "VariableDeclaration", "scope": 22953, "src": "429:10:35", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 22950, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "429:7:35", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "428:12:35" }, "src": "400:41:35" }, { "anonymous": false, "id": 22957, "name": "LogComponentResumed", "nameLocation": "452:19:35", "nodeType": "EventDefinition", "parameters": { "id": 22956, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 22955, "indexed": false, "mutability": "mutable", "name": "id", "nameLocation": "481:2:35", "nodeType": "VariableDeclaration", "scope": 22957, "src": "473:10:35", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 22954, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "473:7:35", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "472:12:35" }, "src": "446:39:35" }, { "anonymous": false, "id": 22961, "name": "LogComponentPaused", "nameLocation": "497:18:35", "nodeType": "EventDefinition", "parameters": { "id": 22960, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 22959, "indexed": false, "mutability": "mutable", "name": "id", "nameLocation": "525:2:35", "nodeType": "VariableDeclaration", "scope": 22961, "src": "517:10:35", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 22958, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "517:7:35", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "516:12:35" }, "src": "491:38:35" }, { "anonymous": false, "id": 22965, "name": "LogComponentUnpaused", "nameLocation": "540:20:35", "nodeType": "EventDefinition", "parameters": { "id": 22964, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 22963, "indexed": false, "mutability": "mutable", "name": "id", "nameLocation": "570:2:35", "nodeType": "VariableDeclaration", "scope": 22965, "src": "562:10:35", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 22962, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "562:7:35", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "561:12:35" }, "src": "534:40:35" }, { "anonymous": false, "id": 22969, "name": "LogComponentArchived", "nameLocation": "586:20:35", "nodeType": "EventDefinition", "parameters": { "id": 22968, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 22967, "indexed": false, "mutability": "mutable", "name": "id", "nameLocation": "616:2:35", "nodeType": "VariableDeclaration", "scope": 22969, "src": "608:10:35", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 22966, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "608:7:35", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "607:12:35" }, "src": "580:40:35" }, { "anonymous": false, "id": 22979, "name": "LogComponentStateChanged", "nameLocation": "632:24:35", "nodeType": "EventDefinition", "parameters": { "id": 22978, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 22971, "indexed": false, "mutability": "mutable", "name": "id", "nameLocation": "675:2:35", "nodeType": "VariableDeclaration", "scope": 22979, "src": "667:10:35", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 22970, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "667:7:35", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 22974, "indexed": false, "mutability": "mutable", "name": "stateOld", "nameLocation": "714:8:35", "nodeType": "VariableDeclaration", "scope": 22979, "src": "688:34:35", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_enum$_ComponentState_$11586", "typeString": "enum IComponent.ComponentState" }, "typeName": { "id": 22973, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 22972, "name": "IComponent.ComponentState", "nodeType": "IdentifierPath", "referencedDeclaration": 11586, "src": "688:25:35" }, "referencedDeclaration": 11586, "src": "688:25:35", "typeDescriptions": { "typeIdentifier": "t_enum$_ComponentState_$11586", "typeString": "enum IComponent.ComponentState" } }, "visibility": "internal" }, { "constant": false, "id": 22977, "indexed": false, "mutability": "mutable", "name": "stateNew", "nameLocation": "759:8:35", "nodeType": "VariableDeclaration", "scope": 22979, "src": "733:34:35", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_enum$_ComponentState_$11586", "typeString": "enum IComponent.ComponentState" }, "typeName": { "id": 22976, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 22975, "name": "IComponent.ComponentState", "nodeType": "IdentifierPath", "referencedDeclaration": 11586, "src": "733:25:35" }, "referencedDeclaration": 11586, "src": "733:25:35", "typeDescriptions": { "typeIdentifier": "t_enum$_ComponentState_$11586", "typeString": "enum IComponent.ComponentState" } }, "visibility": "internal" } ], "src": "657:111:35" }, "src": "626:143:35" } ], "scope": 22981, "src": "103:668:35" } ], "src": "39:733:35" }, "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" }