Skip to content

Instantly share code, notes, and snippets.

@Sowmayjain
Last active April 23, 2018 15:38
Show Gist options
  • Save Sowmayjain/1cae7bb6146ca0a14426d72e52473bd1 to your computer and use it in GitHub Desktop.
Save Sowmayjain/1cae7bb6146ca0a14426d72e52473bd1 to your computer and use it in GitHub Desktop.
[
{
"constant": true,
"inputs": [
{
"name": "",
"type": "uint256"
}
],
"name": "proposals",
"outputs": [
{
"name": "recipient",
"type": "address"
},
{
"name": "amount",
"type": "uint256"
},
{
"name": "description",
"type": "string"
},
{
"name": "votingDeadline",
"type": "uint256"
},
{
"name": "executed",
"type": "bool"
},
{
"name": "proposalPassed",
"type": "bool"
},
{
"name": "numberOfVotes",
"type": "uint256"
},
{
"name": "currentResult",
"type": "int256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "proposalNumber",
"type": "uint256"
}
],
"name": "executeProposal",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "numProposals",
"outputs": [{
"name": "",
"type": "uint256"
}],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "weiAmount",
"type": "uint256"
},
{
"name": "proposalDescription",
"type": "string"
}
],
"name": "newProposal",
"outputs": [
{
"name": "proposalID",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "proposalNumber",
"type": "uint256"
},
{
"name": "supportsProposal",
"type": "bool"
},
{
"name": "justificationText",
"type": "string"
}
],
"name": "vote",
"outputs": [
{
"name": "voteID",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment