Skip to content

Instantly share code, notes, and snippets.

@alexvandesande
Created December 3, 2015 17:39
Show Gist options
  • Save alexvandesande/5843810278da2d1c68dc to your computer and use it in GitHub Desktop.
Save alexvandesande/5843810278da2d1c68dc to your computer and use it in GitHub Desktop.
Uses Mist Coin for voting: 0xf4eced2f682ce333f96f2d8966c613ded8fc95dd
Owns 100,000 Mist coins for further distribution of funds
ADDRESS:
0x8d554c6c1631e44706e502433f0f958287d9b8dc
INTERFACE:
[
{
"constant": true,
"inputs": [
{
"name": "",
"type": "uint256",
"typeShort": "uint",
"bits": "256",
"template": "elements_input_uint"
}
],
"name": "proposals",
"outputs": [
{
"name": "recipient",
"type": "address"
},
{
"name": "amount",
"type": "uint256"
},
{
"name": "description",
"type": "string"
},
{
"name": "votingDeadline",
"type": "uint256"
},
{
"name": "openToVote",
"type": "bool"
},
{
"name": "proposalPassed",
"type": "bool"
},
{
"name": "numberOfVotes",
"type": "uint256"
},
{
"name": "proposalHash",
"type": "bytes32"
}
],
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "proposalNumber",
"type": "uint256",
"typeShort": "uint",
"bits": "256",
"template": "elements_input_uint"
},
{
"name": "transactionBytecode",
"type": "bytes",
"typeShort": "bytes",
"bits": "",
"template": "elements_input_bytes"
}
],
"name": "executeProposal",
"outputs": [
{
"name": "result",
"type": "int256"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "sharesTokenAddress",
"outputs": [
{
"name": "",
"type": "address",
"value": "0xf4eced2f682ce333f96f2d8966c613ded8fc95dd"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "numProposals",
"outputs": [
{
"name": "",
"type": "uint256",
"value": "0"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "debatingPeriodInMinutes",
"outputs": [
{
"name": "",
"type": "uint256",
"value": "10000"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "minimumQuorum",
"outputs": [
{
"name": "",
"type": "uint256",
"value": "1000000"
}
],
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "beneficiary",
"type": "address",
"typeShort": "address",
"bits": "",
"template": "elements_input_address"
},
{
"name": "etherAmount",
"type": "uint256",
"typeShort": "uint",
"bits": "256",
"template": "elements_input_uint"
},
{
"name": "JobDescription",
"type": "string",
"typeShort": "string",
"bits": "",
"template": "elements_input_string"
},
{
"name": "transactionBytecode",
"type": "bytes",
"typeShort": "bytes",
"bits": "",
"template": "elements_input_bytes"
}
],
"name": "newProposal",
"outputs": [
{
"name": "proposalID",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "proposalNumber",
"type": "uint256",
"typeShort": "uint",
"bits": "256",
"template": "elements_input_uint"
},
{
"name": "supportsProposal",
"type": "bool",
"typeShort": "bool",
"bits": "",
"template": "elements_input_bool"
}
],
"name": "vote",
"outputs": [
{
"name": "voteID",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "proposalNumber",
"type": "uint256",
"typeShort": "uint",
"bits": "256",
"template": "elements_input_uint"
},
{
"name": "beneficiary",
"type": "address",
"typeShort": "address",
"bits": "",
"template": "elements_input_address"
},
{
"name": "etherAmount",
"type": "uint256",
"typeShort": "uint",
"bits": "256",
"template": "elements_input_uint"
},
{
"name": "transactionBytecode",
"type": "bytes",
"typeShort": "bytes",
"bits": "",
"template": "elements_input_bytes"
}
],
"name": "checkProposalCode",
"outputs": [
{
"name": "codeChecksOut",
"type": "bool",
"value": false
}
],
"type": "function"
},
{
"inputs": [
{
"name": "sharesAddress",
"type": "address",
"typeShort": "address",
"bits": "",
"template": "elements_input_address",
"value": "0xf4eced2f682ce333f96f2d8966c613ded8fc95dd"
},
{
"name": "minimumSharesForVoting",
"type": "uint256",
"typeShort": "uint",
"bits": "256",
"template": "elements_input_uint",
"value": "1000000"
},
{
"name": "minutesForDebate",
"type": "uint256",
"typeShort": "uint",
"bits": "256",
"template": "elements_input_uint",
"value": "10000"
}
],
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "proposalID",
"type": "uint256"
},
{
"indexed": false,
"name": "recipient",
"type": "address"
},
{
"indexed": false,
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"name": "description",
"type": "string"
}
],
"name": "ProposalAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "proposalID",
"type": "uint256"
},
{
"indexed": false,
"name": "position",
"type": "bool"
},
{
"indexed": false,
"name": "voter",
"type": "address"
}
],
"name": "Voted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "proposalID",
"type": "uint256"
},
{
"indexed": false,
"name": "result",
"type": "int256"
},
{
"indexed": false,
"name": "quorum",
"type": "uint256"
},
{
"indexed": false,
"name": "active",
"type": "bool"
}
],
"name": "ProposalTallied",
"type": "event"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment