UNPKG

@etherisc/gif-contracts

Version:

This repository holds the GIF core contracts and tools to develop, test and deploy GIF instances.

522 lines 16.4 kB
{ "abi": [ { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "archive", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "pause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "contract IComponent", "name": "component", "type": "address" } ], "name": "propose", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "stake", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "unpause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "withdraw", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "allSourcePaths": { "30": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol", "44": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IRegistry.sol", "46": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IComponentOwnerService.sol" }, "ast": { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IComponentOwnerService.sol", "exportedSymbols": { "IComponent": [ 22099 ], "IComponentOwnerService": [ 23478 ], "IRegistry": [ 21750 ] }, "id": 23479, "license": "Apache-2.0", "nodeType": "SourceUnit", "nodes": [ { "id": 23445, "literals": [ "solidity", "0.8", ".2" ], "nodeType": "PragmaDirective", "src": "40:22:46" }, { "absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol", "file": "../components/IComponent.sol", "id": 23446, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 23479, "sourceUnit": 22100, "src": "66:38:46", "symbolAliases": [], "unitAlias": "" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "fullyImplemented": false, "id": 23478, "linearizedBaseContracts": [ 23478 ], "name": "IComponentOwnerService", "nameLocation": "118:22:46", "nodeType": "ContractDefinition", "nodes": [ { "functionSelector": "01267951", "id": 23452, "implemented": false, "kind": "function", "modifiers": [], "name": "propose", "nameLocation": "159:7:46", "nodeType": "FunctionDefinition", "parameters": { "id": 23450, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 23449, "mutability": "mutable", "name": "component", "nameLocation": "178:9:46", "nodeType": "VariableDeclaration", "scope": 23452, "src": "167:20:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_IComponent_$22099", "typeString": "contract IComponent" }, "typeName": { "id": 23448, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 23447, "name": "IComponent", "nodeType": "IdentifierPath", "referencedDeclaration": 22099, "src": "167:10:46" }, "referencedDeclaration": 22099, "src": "167:10:46", "typeDescriptions": { "typeIdentifier": "t_contract$_IComponent_$22099", "typeString": "contract IComponent" } }, "visibility": "internal" } ], "src": "166:22:46" }, "returnParameters": { "id": 23451, "nodeType": "ParameterList", "parameters": [], "src": "197:0:46" }, "scope": 23478, "src": "150:48:46", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "a694fc3a", "id": 23457, "implemented": false, "kind": "function", "modifiers": [], "name": "stake", "nameLocation": "215:5:46", "nodeType": "FunctionDefinition", "parameters": { "id": 23455, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 23454, "mutability": "mutable", "name": "id", "nameLocation": "229:2:46", "nodeType": "VariableDeclaration", "scope": 23457, "src": "221:10:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 23453, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "221:7:46", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "220:12:46" }, "returnParameters": { "id": 23456, "nodeType": "ParameterList", "parameters": [], "src": "241:0:46" }, "scope": 23478, "src": "206:36:46", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "2e1a7d4d", "id": 23462, "implemented": false, "kind": "function", "modifiers": [], "name": "withdraw", "nameLocation": "257:8:46", "nodeType": "FunctionDefinition", "parameters": { "id": 23460, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 23459, "mutability": "mutable", "name": "id", "nameLocation": "274:2:46", "nodeType": "VariableDeclaration", "scope": 23462, "src": "266:10:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 23458, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "266:7:46", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "265:12:46" }, "returnParameters": { "id": 23461, "nodeType": "ParameterList", "parameters": [], "src": "286:0:46" }, "scope": 23478, "src": "248:39:46", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "136439dd", "id": 23467, "implemented": false, "kind": "function", "modifiers": [], "name": "pause", "nameLocation": "304:5:46", "nodeType": "FunctionDefinition", "parameters": { "id": 23465, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 23464, "mutability": "mutable", "name": "id", "nameLocation": "318:2:46", "nodeType": "VariableDeclaration", "scope": 23467, "src": "310:10:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 23463, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "310:7:46", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "309:12:46" }, "returnParameters": { "id": 23466, "nodeType": "ParameterList", "parameters": [], "src": "330:0:46" }, "scope": 23478, "src": "295:36:46", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "fabc1cbc", "id": 23472, "implemented": false, "kind": "function", "modifiers": [], "name": "unpause", "nameLocation": "347:7:46", "nodeType": "FunctionDefinition", "parameters": { "id": 23470, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 23469, "mutability": "mutable", "name": "id", "nameLocation": "363:2:46", "nodeType": "VariableDeclaration", "scope": 23472, "src": "355:10:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 23468, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "355:7:46", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "354:12:46" }, "returnParameters": { "id": 23471, "nodeType": "ParameterList", "parameters": [], "src": "375:0:46" }, "scope": 23478, "src": "338:38:46", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "93c829fc", "id": 23477, "implemented": false, "kind": "function", "modifiers": [], "name": "archive", "nameLocation": "393:7:46", "nodeType": "FunctionDefinition", "parameters": { "id": 23475, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 23474, "mutability": "mutable", "name": "id", "nameLocation": "409:2:46", "nodeType": "VariableDeclaration", "scope": 23477, "src": "401:10:46", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 23473, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "401:7:46", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "400:12:46" }, "returnParameters": { "id": 23476, "nodeType": "ParameterList", "parameters": [], "src": "421:0:46" }, "scope": 23478, "src": "384:38:46", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" } ], "scope": 23479, "src": "108:317:46" } ], "src": "40:385:46" }, "bytecode": "", "bytecodeSha1": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "compiler": { "evm_version": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "version": "0.8.2+commit.661d1103" }, "contractName": "IComponentOwnerService", "coverageMap": { "branches": {}, "statements": {} }, "dependencies": [ "etherisc/gif-interface@3b0002a/IComponent", "etherisc/gif-interface@3b0002a/IRegistry" ], "deployedBytecode": "", "deployedSourceMap": "", "language": "Solidity", "natspec": { "kind": "dev", "methods": {}, "version": 1 }, "offset": [ 108, 425 ], "opcodes": "", "pcMap": {}, "sha1": "b42cb39241d7448d8d5b7a10fd16ce548446a89a", "source": "// SPDX-License-Identifier: Apache-2.0\npragma solidity 0.8.2;\n\nimport \"../components/IComponent.sol\";\n\ninterface IComponentOwnerService {\n\n function propose(IComponent component) external;\n\n function stake(uint256 id) external;\n function withdraw(uint256 id) external;\n\n function pause(uint256 id) external; \n function unpause(uint256 id) external;\n\n function archive(uint256 id) external;\n}", "sourceMap": "", "sourcePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IComponentOwnerService.sol", "type": "interface" }