@etherisc/terraguard-poc-contracts
Version:
Etherisc's smart contracts for the terraguard poc
522 lines • 16.4 kB
JSON
{
"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": {
"21": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/modules/IRegistry.sol",
"23": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IComponentOwnerService.sol",
"9": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol"
},
"ast": {
"absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IComponentOwnerService.sol",
"exportedSymbols": {
"IComponent": [
5218
],
"IComponentOwnerService": [
7044
],
"IRegistry": [
7009
]
},
"id": 7045,
"license": "Apache-2.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 7011,
"literals": [
"solidity",
"0.8",
".2"
],
"nodeType": "PragmaDirective",
"src": "40:22:23"
},
{
"absolutePath": "/home/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/components/IComponent.sol",
"file": "../components/IComponent.sol",
"id": 7012,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 7045,
"sourceUnit": 5219,
"src": "66:38:23",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 7044,
"linearizedBaseContracts": [
7044
],
"name": "IComponentOwnerService",
"nameLocation": "118:22:23",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "01267951",
"id": 7018,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "propose",
"nameLocation": "159:7:23",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 7016,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7015,
"mutability": "mutable",
"name": "component",
"nameLocation": "178:9:23",
"nodeType": "VariableDeclaration",
"scope": 7018,
"src": "167:20:23",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IComponent_$5218",
"typeString": "contract IComponent"
},
"typeName": {
"id": 7014,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 7013,
"name": "IComponent",
"nodeType": "IdentifierPath",
"referencedDeclaration": 5218,
"src": "167:10:23"
},
"referencedDeclaration": 5218,
"src": "167:10:23",
"typeDescriptions": {
"typeIdentifier": "t_contract$_IComponent_$5218",
"typeString": "contract IComponent"
}
},
"visibility": "internal"
}
],
"src": "166:22:23"
},
"returnParameters": {
"id": 7017,
"nodeType": "ParameterList",
"parameters": [],
"src": "197:0:23"
},
"scope": 7044,
"src": "150:48:23",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "a694fc3a",
"id": 7023,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "stake",
"nameLocation": "215:5:23",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 7021,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7020,
"mutability": "mutable",
"name": "id",
"nameLocation": "229:2:23",
"nodeType": "VariableDeclaration",
"scope": 7023,
"src": "221:10:23",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 7019,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "221:7:23",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "220:12:23"
},
"returnParameters": {
"id": 7022,
"nodeType": "ParameterList",
"parameters": [],
"src": "241:0:23"
},
"scope": 7044,
"src": "206:36:23",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "2e1a7d4d",
"id": 7028,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "withdraw",
"nameLocation": "257:8:23",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 7026,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7025,
"mutability": "mutable",
"name": "id",
"nameLocation": "274:2:23",
"nodeType": "VariableDeclaration",
"scope": 7028,
"src": "266:10:23",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 7024,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "266:7:23",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "265:12:23"
},
"returnParameters": {
"id": 7027,
"nodeType": "ParameterList",
"parameters": [],
"src": "286:0:23"
},
"scope": 7044,
"src": "248:39:23",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "136439dd",
"id": 7033,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "pause",
"nameLocation": "304:5:23",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 7031,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7030,
"mutability": "mutable",
"name": "id",
"nameLocation": "318:2:23",
"nodeType": "VariableDeclaration",
"scope": 7033,
"src": "310:10:23",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 7029,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "310:7:23",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "309:12:23"
},
"returnParameters": {
"id": 7032,
"nodeType": "ParameterList",
"parameters": [],
"src": "330:0:23"
},
"scope": 7044,
"src": "295:36:23",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "fabc1cbc",
"id": 7038,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "unpause",
"nameLocation": "347:7:23",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 7036,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7035,
"mutability": "mutable",
"name": "id",
"nameLocation": "363:2:23",
"nodeType": "VariableDeclaration",
"scope": 7038,
"src": "355:10:23",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 7034,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "355:7:23",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "354:12:23"
},
"returnParameters": {
"id": 7037,
"nodeType": "ParameterList",
"parameters": [],
"src": "375:0:23"
},
"scope": 7044,
"src": "338:38:23",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "93c829fc",
"id": 7043,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "archive",
"nameLocation": "393:7:23",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 7041,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 7040,
"mutability": "mutable",
"name": "id",
"nameLocation": "409:2:23",
"nodeType": "VariableDeclaration",
"scope": 7043,
"src": "401:10:23",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 7039,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "401:7:23",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "400:12:23"
},
"returnParameters": {
"id": 7042,
"nodeType": "ParameterList",
"parameters": [],
"src": "421:0:23"
},
"scope": 7044,
"src": "384:38:23",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 7045,
"src": "108:317:23"
}
],
"src": "40:385:23"
},
"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/runner/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IComponentOwnerService.sol",
"type": "interface"
}