@gooddollar/goodcontracts
Version:
GoodDollar Contracts
347 lines • 11.7 kB
JSON
{
"contractName": "ProposalExecuteInterface",
"abi": [
{
"constant": false,
"inputs": [
{
"internalType": "bytes32",
"name": "_proposalId",
"type": "bytes32"
},
{
"internalType": "int256",
"name": "_decision",
"type": "int256"
}
],
"name": "executeProposal",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":false,\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_proposalId\",\"type\":\"bytes32\"},{\"internalType\":\"int256\",\"name\":\"_decision\",\"type\":\"int256\"}],\"name\":\"executeProposal\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"@daostack/infra/contracts/votingMachines/ProposalExecuteInterface.sol\":\"ProposalExecuteInterface\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@daostack/infra/contracts/votingMachines/ProposalExecuteInterface.sol\":{\"keccak256\":\"0xb80a153793e1723b35e70ba1c3800975fbc1fae63c989cfb8134a4e58085e181\",\"urls\":[\"bzz-raw://7ea97373ca977623d4c480c1d03e0853b1b34d59df4928ef72548987b2943899\",\"dweb:/ipfs/QmZ1MmDX4ExZ1iEo9gFp3SHfpNjWoLHS9nVhFkTRokgoLS\"]}},\"version\":1}",
"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": [
20583
]
},
"id": 20584,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 20573,
"literals": [
"solidity",
"^",
"0.5",
".4"
],
"nodeType": "PragmaDirective",
"src": "0:23:68"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 20583,
"linearizedBaseContracts": [
20583
],
"name": "ProposalExecuteInterface",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 20582,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "executeProposal",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 20578,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20575,
"name": "_proposalId",
"nodeType": "VariableDeclaration",
"scope": 20582,
"src": "91:19:68",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20574,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "91:7:68",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20577,
"name": "_decision",
"nodeType": "VariableDeclaration",
"scope": 20582,
"src": "112:13:68",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_int256",
"typeString": "int256"
},
"typeName": {
"id": 20576,
"name": "int",
"nodeType": "ElementaryTypeName",
"src": "112:3:68",
"typeDescriptions": {
"typeIdentifier": "t_int256",
"typeString": "int256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "90:36:68"
},
"returnParameters": {
"id": 20581,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20580,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 20582,
"src": "144:4:68",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 20579,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "144:4:68",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "143:6:68"
},
"scope": 20583,
"src": "66:84:68",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
}
],
"scope": 20584,
"src": "25:127:68"
}
],
"src": "0:153:68"
},
"legacyAST": {
"absolutePath": "@daostack/infra/contracts/votingMachines/ProposalExecuteInterface.sol",
"exportedSymbols": {
"ProposalExecuteInterface": [
20583
]
},
"id": 20584,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 20573,
"literals": [
"solidity",
"^",
"0.5",
".4"
],
"nodeType": "PragmaDirective",
"src": "0:23:68"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 20583,
"linearizedBaseContracts": [
20583
],
"name": "ProposalExecuteInterface",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"id": 20582,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "executeProposal",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 20578,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20575,
"name": "_proposalId",
"nodeType": "VariableDeclaration",
"scope": 20582,
"src": "91:19:68",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 20574,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "91:7:68",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 20577,
"name": "_decision",
"nodeType": "VariableDeclaration",
"scope": 20582,
"src": "112:13:68",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_int256",
"typeString": "int256"
},
"typeName": {
"id": 20576,
"name": "int",
"nodeType": "ElementaryTypeName",
"src": "112:3:68",
"typeDescriptions": {
"typeIdentifier": "t_int256",
"typeString": "int256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "90:36:68"
},
"returnParameters": {
"id": 20581,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20580,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 20582,
"src": "144:4:68",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 20579,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "144:4:68",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "143:6:68"
},
"scope": 20583,
"src": "66:84:68",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
}
],
"scope": 20584,
"src": "25:127:68"
}
],
"src": "0:153:68"
},
"compiler": {
"name": "solc",
"version": "0.5.16+commit.9c3226ce.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.2.2",
"updatedAt": "2021-08-23T07:33:52.635Z",
"devdoc": {
"methods": {}
},
"userdoc": {
"methods": {}
}
}