UNPKG

@gooddollar/goodcontracts

Version:
344 lines 10.5 kB
{ "contractName": "ProposalExecuteInterface", "abi": [ { "constant": false, "inputs": [ { "name": "_proposalId", "type": "bytes32" }, { "name": "_decision", "type": "int256" } ], "name": "executeProposal", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "metadata": "", "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity ^0.5.4;\n\ninterface ProposalExecuteInterface {\n function executeProposal(bytes32 _proposalId, int _decision) external returns(bool);\n}\n", "sourcePath": "@daostack/infra/contracts/votingMachines/ProposalExecuteInterface.sol", "ast": { "absolutePath": "@daostack/infra/contracts/votingMachines/ProposalExecuteInterface.sol", "exportedSymbols": { "ProposalExecuteInterface": [ 15194 ] }, "id": 15195, "nodeType": "SourceUnit", "nodes": [ { "id": 15184, "literals": [ "solidity", "^", "0.5", ".4" ], "nodeType": "PragmaDirective", "src": "0:23:59" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 15194, "linearizedBaseContracts": [ 15194 ], "name": "ProposalExecuteInterface", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 15193, "implemented": false, "kind": "function", "modifiers": [], "name": "executeProposal", "nodeType": "FunctionDefinition", "parameters": { "id": 15189, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 15186, "name": "_proposalId", "nodeType": "VariableDeclaration", "scope": 15193, "src": "91:19:59", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 15185, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "91:7:59", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 15188, "name": "_decision", "nodeType": "VariableDeclaration", "scope": 15193, "src": "112:13:59", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 15187, "name": "int", "nodeType": "ElementaryTypeName", "src": "112:3:59", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "value": null, "visibility": "internal" } ], "src": "90:36:59" }, "returnParameters": { "id": 15192, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 15191, "name": "", "nodeType": "VariableDeclaration", "scope": 15193, "src": "144:4:59", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 15190, "name": "bool", "nodeType": "ElementaryTypeName", "src": "144:4:59", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "143:6:59" }, "scope": 15194, "src": "66:84:59", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" } ], "scope": 15195, "src": "25:127:59" } ], "src": "0:153:59" }, "legacyAST": { "absolutePath": "@daostack/infra/contracts/votingMachines/ProposalExecuteInterface.sol", "exportedSymbols": { "ProposalExecuteInterface": [ 15194 ] }, "id": 15195, "nodeType": "SourceUnit", "nodes": [ { "id": 15184, "literals": [ "solidity", "^", "0.5", ".4" ], "nodeType": "PragmaDirective", "src": "0:23:59" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 15194, "linearizedBaseContracts": [ 15194 ], "name": "ProposalExecuteInterface", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 15193, "implemented": false, "kind": "function", "modifiers": [], "name": "executeProposal", "nodeType": "FunctionDefinition", "parameters": { "id": 15189, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 15186, "name": "_proposalId", "nodeType": "VariableDeclaration", "scope": 15193, "src": "91:19:59", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 15185, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "91:7:59", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 15188, "name": "_decision", "nodeType": "VariableDeclaration", "scope": 15193, "src": "112:13:59", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" }, "typeName": { "id": 15187, "name": "int", "nodeType": "ElementaryTypeName", "src": "112:3:59", "typeDescriptions": { "typeIdentifier": "t_int256", "typeString": "int256" } }, "value": null, "visibility": "internal" } ], "src": "90:36:59" }, "returnParameters": { "id": 15192, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 15191, "name": "", "nodeType": "VariableDeclaration", "scope": 15193, "src": "144:4:59", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 15190, "name": "bool", "nodeType": "ElementaryTypeName", "src": "144:4:59", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "143:6:59" }, "scope": 15194, "src": "66:84:59", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" } ], "scope": 15195, "src": "25:127:59" } ], "src": "0:153:59" }, "compiler": { "name": "solc", "version": "0.5.4+commit.9549d8ff.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.0.16", "updatedAt": "2020-07-07T14:28:02.343Z", "devdoc": { "methods": {} }, "userdoc": { "methods": {} } }