Skip to content

Instantly share code, notes, and snippets.

@danielmcclure
Created April 22, 2016 03:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielmcclure/44cf4cb8d416a067cc91ae6b5fb956a2 to your computer and use it in GitHub Desktop.
Save danielmcclure/44cf4cb8d416a067cc91ae6b5fb956a2 to your computer and use it in GitHub Desktop.
This is the Contract JSON Interface for the Standard DAO Framework at https://github.com/slockit/DAO
[ { "constant": true, "inputs": [ { "name": "", "type": "uint256", "index": 0, "typeShort": "uint", "bits": "256", "displayName": "", "template": "elements_input_uint", "value": "" } ], "name": "proposals", "outputs": [ { "name": "recipient", "type": "address", "value": "0x0000000000000000000000000000000000000000", "displayName": "recipient" }, { "name": "amount", "type": "uint256", "value": "0", "displayName": "amount" }, { "name": "description", "type": "string", "value": "", "displayName": "description" }, { "name": "votingDeadline", "type": "uint256", "value": "0", "displayName": "voting Deadline" }, { "name": "open", "type": "bool", "value": false, "displayName": "open" }, { "name": "proposalPassed", "type": "bool", "value": false, "displayName": "proposal Passed" }, { "name": "proposalHash", "type": "bytes32", "value": "0x0000000000000000000000000000000000000000000000000000000000000000", "displayName": "proposal Hash" }, { "name": "proposalDeposit", "type": "uint256", "value": "0", "displayName": "proposal Deposit" }, { "name": "newCurator", "type": "bool", "value": false, "displayName": "new Curator" }, { "name": "yea", "type": "uint256", "value": "0", "displayName": "yea" }, { "name": "nay", "type": "uint256", "value": "0", "displayName": "nay" }, { "name": "creator", "type": "address", "value": "0x0000000000000000000000000000000000000000", "displayName": "creator" } ], "type": "function", "displayName": "proposals" }, { "constant": false, "inputs": [ { "name": "_spender", "type": "address", "index": 0, "typeShort": "address", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;spender", "template": "elements_input_address" }, { "name": "_amount", "type": "uint256", "index": 1, "typeShort": "uint", "bits": "256", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;amount", "template": "elements_input_uint" } ], "name": "approve", "outputs": [ { "name": "success", "type": "bool" } ], "type": "function", "displayName": "approve" }, { "constant": true, "inputs": [], "name": "minTokensToCreate", "outputs": [ { "name": "", "type": "uint256", "value": "100000", "displayName": "" } ], "type": "function", "displayName": "min Tokens To Create" }, { "constant": true, "inputs": [], "name": "rewardAccount", "outputs": [ { "name": "", "type": "address", "value": "0x53ea271a1f4e9d99b0fa559b764afe9e7a04bb63", "displayName": "" } ], "type": "function", "displayName": "reward Account" }, { "constant": true, "inputs": [], "name": "daoCreator", "outputs": [ { "name": "", "type": "address", "value": "0xaf38df37acf4c8c83a8dcea5299f36eb8ddeb629", "displayName": "" } ], "type": "function", "displayName": "dao Creator" }, { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [ { "name": "", "type": "uint256", "value": "0", "displayName": "" } ], "type": "function", "displayName": "total Supply" }, { "constant": false, "inputs": [], "name": "divisor", "outputs": [ { "name": "divisor", "type": "uint256" } ], "type": "function", "displayName": "divisor" }, { "constant": true, "inputs": [], "name": "extraBalance", "outputs": [ { "name": "", "type": "address", "value": "0x4709e7dad75fd3e8ffd02d630e8830f7b35f2deb", "displayName": "" } ], "type": "function", "displayName": "extra Balance" }, { "constant": true, "inputs": [ { "name": "_proposalID", "type": "uint256", "index": 0, "typeShort": "uint", "bits": "256", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;proposal I D", "template": "elements_input_uint", "value": "" } ], "name": "getNewDAOAdress", "outputs": [ { "name": "_newDAO", "type": "address", "value": "0x", "displayName": "_new D A O" } ], "type": "function", "displayName": "get New DAOAdress" }, { "constant": false, "inputs": [ { "name": "_proposalID", "type": "uint256", "index": 0, "typeShort": "uint", "bits": "256", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;proposal I D", "template": "elements_input_uint" }, { "name": "_transactionData", "type": "bytes", "index": 1, "typeShort": "bytes", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;transaction Data", "template": "elements_input_bytes" } ], "name": "executeProposal", "outputs": [ { "name": "_success", "type": "bool" } ], "type": "function", "displayName": "execute Proposal" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address", "index": 0, "typeShort": "address", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;from", "template": "elements_input_address" }, { "name": "_to", "type": "address", "index": 1, "typeShort": "address", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;to", "template": "elements_input_address" }, { "name": "_value", "type": "uint256", "index": 2, "typeShort": "uint", "bits": "256", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;value", "template": "elements_input_uint" } ], "name": "transferFrom", "outputs": [ { "name": "success", "type": "bool" } ], "type": "function", "displayName": "transfer From" }, { "constant": true, "inputs": [], "name": "totalRewardToken", "outputs": [ { "name": "", "type": "uint256", "value": "0", "displayName": "" } ], "type": "function", "displayName": "total Reward Token" }, { "constant": true, "inputs": [], "name": "actualBalance", "outputs": [ { "name": "_actualBalance", "type": "uint256", "value": "0", "displayName": "_actual Balance" } ], "type": "function", "displayName": "actual Balance" }, { "constant": true, "inputs": [], "name": "closingTime", "outputs": [ { "name": "", "type": "uint256", "value": "1462924800", "displayName": "" } ], "type": "function", "displayName": "closing Time" }, { "constant": true, "inputs": [ { "name": "", "type": "address", "index": 0, "typeShort": "address", "bits": "", "displayName": "", "template": "elements_input_address", "value": "" } ], "name": "allowedRecipients", "outputs": [ { "name": "", "type": "bool", "value": false, "displayName": "" } ], "type": "function", "displayName": "allowed Recipients" }, { "constant": false, "inputs": [ { "name": "_to", "type": "address", "index": 0, "typeShort": "address", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;to", "template": "elements_input_address" }, { "name": "_value", "type": "uint256", "index": 1, "typeShort": "uint", "bits": "256", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;value", "template": "elements_input_uint" } ], "name": "transferWithoutReward", "outputs": [ { "name": "success", "type": "bool" } ], "type": "function", "displayName": "transfer Without Reward" }, { "constant": false, "inputs": [], "name": "refund", "outputs": [], "type": "function", "displayName": "refund" }, { "constant": false, "inputs": [ { "name": "_recipient", "type": "address", "index": 0, "typeShort": "address", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;recipient", "template": "elements_input_address" }, { "name": "_amount", "type": "uint256", "index": 1, "typeShort": "uint", "bits": "256", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;amount", "template": "elements_input_uint" }, { "name": "_description", "type": "string", "index": 2, "typeShort": "string", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;description", "template": "elements_input_string" }, { "name": "_transactionData", "type": "bytes", "index": 3, "typeShort": "bytes", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;transaction Data", "template": "elements_input_bytes" }, { "name": "_debatingPeriod", "type": "uint256", "index": 4, "typeShort": "uint", "bits": "256", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;debating Period", "template": "elements_input_uint" }, { "name": "_newCurator", "type": "bool", "index": 5, "typeShort": "bool", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;new Curator", "template": "elements_input_bool" } ], "name": "newProposal", "outputs": [ { "name": "_proposalID", "type": "uint256" } ], "type": "function", "displayName": "new Proposal" }, { "constant": true, "inputs": [ { "name": "", "type": "address", "index": 0, "typeShort": "address", "bits": "", "displayName": "", "template": "elements_input_address", "value": "" } ], "name": "DAOpaidOut", "outputs": [ { "name": "", "type": "uint256", "value": "0", "displayName": "" } ], "type": "function", "displayName": " DAOpaid Out" }, { "constant": true, "inputs": [], "name": "minQuorumDivisor", "outputs": [ { "name": "", "type": "uint256", "value": "5", "displayName": "" } ], "type": "function", "displayName": "min Quorum Divisor" }, { "constant": false, "inputs": [ { "name": "_newContract", "type": "address", "index": 0, "typeShort": "address", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;new Contract", "template": "elements_input_address" } ], "name": "newContract", "outputs": [], "type": "function", "displayName": "new Contract" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address", "index": 0, "typeShort": "address", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;owner", "template": "elements_input_address", "value": "" } ], "name": "balanceOf", "outputs": [ { "name": "balance", "type": "uint256", "value": "0", "displayName": "balance" } ], "type": "function", "displayName": "balance Of" }, { "constant": false, "inputs": [ { "name": "_recipient", "type": "address", "index": 0, "typeShort": "address", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;recipient", "template": "elements_input_address" }, { "name": "_allowed", "type": "bool", "index": 1, "typeShort": "bool", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;allowed", "template": "elements_input_bool" } ], "name": "changeAllowedRecipients", "outputs": [ { "name": "_success", "type": "bool" } ], "type": "function", "displayName": "change Allowed Recipients" }, { "constant": false, "inputs": [], "name": "halveMinQuorum", "outputs": [ { "name": "_success", "type": "bool" } ], "type": "function", "displayName": "halve Min Quorum" }, { "constant": true, "inputs": [ { "name": "", "type": "address", "index": 0, "typeShort": "address", "bits": "", "displayName": "", "template": "elements_input_address", "value": "" } ], "name": "paidOut", "outputs": [ { "name": "", "type": "uint256", "value": "0", "displayName": "" } ], "type": "function", "displayName": "paid Out" }, { "constant": false, "inputs": [ { "name": "_proposalID", "type": "uint256", "index": 0, "typeShort": "uint", "bits": "256", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;proposal I D", "template": "elements_input_uint" }, { "name": "_newCurator", "type": "address", "index": 1, "typeShort": "address", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;new Curator", "template": "elements_input_address" } ], "name": "splitDAO", "outputs": [ { "name": "_success", "type": "bool" } ], "type": "function", "displayName": "split DAO" }, { "constant": true, "inputs": [], "name": "DAOrewardAccount", "outputs": [ { "name": "", "type": "address", "value": "0x819cea3c1b4c08789d827cb620f4899d9179af78", "displayName": "" } ], "type": "function", "displayName": " DAOreward Account" }, { "constant": true, "inputs": [], "name": "proposalDeposit", "outputs": [ { "name": "", "type": "uint256", "value": "100000", "displayName": "" } ], "type": "function", "displayName": "proposal Deposit" }, { "constant": true, "inputs": [], "name": "numberOfProposals", "outputs": [ { "name": "_numberOfProposals", "type": "uint256", "value": "0", "displayName": "_number Of Proposals" } ], "type": "function", "displayName": "number Of Proposals" }, { "constant": true, "inputs": [], "name": "lastTimeMinQuorumMet", "outputs": [ { "name": "", "type": "uint256", "value": "1461225451", "displayName": "" } ], "type": "function", "displayName": "last Time Min Quorum Met" }, { "constant": false, "inputs": [ { "name": "_toMembers", "type": "bool", "index": 0, "typeShort": "bool", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;to Members", "template": "elements_input_bool" } ], "name": "retrieveDAOReward", "outputs": [ { "name": "_success", "type": "bool" } ], "type": "function", "displayName": "retrieve DAOReward" }, { "constant": false, "inputs": [], "name": "receiveEther", "outputs": [ { "name": "", "type": "bool" } ], "type": "function", "displayName": "receive Ether" }, { "constant": false, "inputs": [ { "name": "_to", "type": "address", "index": 0, "typeShort": "address", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;to", "template": "elements_input_address" }, { "name": "_value", "type": "uint256", "index": 1, "typeShort": "uint", "bits": "256", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;value", "template": "elements_input_uint" } ], "name": "transfer", "outputs": [ { "name": "success", "type": "bool" } ], "type": "function", "displayName": "transfer" }, { "constant": true, "inputs": [], "name": "isFueled", "outputs": [ { "name": "", "type": "bool", "value": false, "displayName": "" } ], "type": "function", "displayName": "is Fueled" }, { "constant": false, "inputs": [ { "name": "_tokenHolder", "type": "address", "index": 0, "typeShort": "address", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;token Holder", "template": "elements_input_address", "value": "0x33d0EdC9d1F0407eD7bDD0637dE74cfdd24a56eE" } ], "name": "createTokenProxy", "outputs": [ { "name": "success", "type": "bool" } ], "type": "function", "displayName": "create Token Proxy" }, { "constant": false, "inputs": [ { "name": "_proposalID", "type": "uint256", "index": 0, "typeShort": "uint", "bits": "256", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;proposal I D", "template": "elements_input_uint" }, { "name": "_supportsProposal", "type": "bool", "index": 1, "typeShort": "bool", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;supports Proposal", "template": "elements_input_bool" } ], "name": "vote", "outputs": [ { "name": "_voteID", "type": "uint256" } ], "type": "function", "displayName": "vote" }, { "constant": false, "inputs": [], "name": "getMyReward", "outputs": [ { "name": "_success", "type": "bool" } ], "type": "function", "displayName": "get My Reward" }, { "constant": true, "inputs": [ { "name": "", "type": "address", "index": 0, "typeShort": "address", "bits": "", "displayName": "", "template": "elements_input_address", "value": "" } ], "name": "rewardToken", "outputs": [ { "name": "", "type": "uint256", "value": "0", "displayName": "" } ], "type": "function", "displayName": "reward Token" }, { "constant": false, "inputs": [ { "name": "_from", "type": "address", "index": 0, "typeShort": "address", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;from", "template": "elements_input_address" }, { "name": "_to", "type": "address", "index": 1, "typeShort": "address", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;to", "template": "elements_input_address" }, { "name": "_value", "type": "uint256", "index": 2, "typeShort": "uint", "bits": "256", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;value", "template": "elements_input_uint" } ], "name": "transferFromWithoutReward", "outputs": [ { "name": "success", "type": "bool" } ], "type": "function", "displayName": "transfer From Without Reward" }, { "constant": true, "inputs": [ { "name": "_owner", "type": "address", "index": 0, "typeShort": "address", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;owner", "template": "elements_input_address", "value": "" }, { "name": "_spender", "type": "address", "index": 1, "typeShort": "address", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;spender", "template": "elements_input_address", "value": "" } ], "name": "allowance", "outputs": [ { "name": "remaining", "type": "uint256", "value": "0", "displayName": "remaining" } ], "type": "function", "displayName": "allowance" }, { "constant": false, "inputs": [ { "name": "_proposalDeposit", "type": "uint256", "index": 0, "typeShort": "uint", "bits": "256", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;proposal Deposit", "template": "elements_input_uint" } ], "name": "changeProposalDeposit", "outputs": [], "type": "function", "displayName": "change Proposal Deposit" }, { "constant": true, "inputs": [ { "name": "", "type": "address", "index": 0, "typeShort": "address", "bits": "", "displayName": "", "template": "elements_input_address", "value": "" } ], "name": "blocked", "outputs": [ { "name": "", "type": "uint256", "value": "0", "displayName": "" } ], "type": "function", "displayName": "blocked" }, { "constant": true, "inputs": [], "name": "curator", "outputs": [ { "name": "", "type": "address", "value": "0x33d0edc9d1f0407ed7bdd0637de74cfdd24a56ee", "displayName": "" } ], "type": "function", "displayName": "curator" }, { "constant": true, "inputs": [ { "name": "_proposalID", "type": "uint256", "index": 0, "typeShort": "uint", "bits": "256", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;proposal I D", "template": "elements_input_uint", "value": "" }, { "name": "_recipient", "type": "address", "index": 1, "typeShort": "address", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;recipient", "template": "elements_input_address", "value": "" }, { "name": "_amount", "type": "uint256", "index": 2, "typeShort": "uint", "bits": "256", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;amount", "template": "elements_input_uint", "value": "" }, { "name": "_transactionData", "type": "bytes", "index": 3, "typeShort": "bytes", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;transaction Data", "template": "elements_input_bytes", "value": "" } ], "name": "checkProposalCode", "outputs": [ { "name": "_codeChecksOut", "type": "bool", "value": false, "displayName": "_code Checks Out" } ], "type": "function", "displayName": "check Proposal Code" }, { "constant": true, "inputs": [], "name": "privateCreation", "outputs": [ { "name": "", "type": "address", "value": "0x0000000000000000000000000000000000000000", "displayName": "" } ], "type": "function", "displayName": "private Creation" }, { "constant": false, "inputs": [ { "name": "_account", "type": "address", "index": 0, "typeShort": "address", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;account", "template": "elements_input_address" } ], "name": "isBlocked", "outputs": [ { "name": "", "type": "bool" } ], "type": "function", "displayName": "is Blocked" }, { "inputs": [ { "name": "_curator", "type": "address", "index": 0, "typeShort": "address", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;curator", "template": "elements_input_address", "value": "0x33d0edc9d1f0407ed7bdd0637de74cfdd24a56ee" }, { "name": "_daoCreator", "type": "address", "index": 1, "typeShort": "address", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;dao Creator", "template": "elements_input_address", "value": "0xaf38DF37acf4C8c83a8dcea5299f36EB8Ddeb629" }, { "name": "_proposalDeposit", "type": "uint256", "index": 2, "typeShort": "uint", "bits": "256", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;proposal Deposit", "template": "elements_input_uint", "value": "100000" }, { "name": "_minTokensToCreate", "type": "uint256", "index": 3, "typeShort": "uint", "bits": "256", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;min Tokens To Create", "template": "elements_input_uint", "value": "100000" }, { "name": "_closingTime", "type": "uint256", "index": 4, "typeShort": "uint", "bits": "256", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;closing Time", "template": "elements_input_uint", "value": "1462924800" }, { "name": "_privateCreation", "type": "address", "index": 5, "typeShort": "address", "bits": "", "displayName": "&thinsp;<span class=\"punctuation\">_</span>&thinsp;private Creation", "template": "elements_input_address", "value": "" } ], "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_from", "type": "address" }, { "indexed": true, "name": "_to", "type": "address" }, { "indexed": false, "name": "_amount", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_owner", "type": "address" }, { "indexed": true, "name": "_spender", "type": "address" }, { "indexed": false, "name": "_amount", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "value", "type": "uint256" } ], "name": "FuelingToDate", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "to", "type": "address" }, { "indexed": false, "name": "amount", "type": "uint256" } ], "name": "CreatedToken", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "to", "type": "address" }, { "indexed": false, "name": "value", "type": "uint256" } ], "name": "Refund", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "proposalID", "type": "uint256" }, { "indexed": false, "name": "recipient", "type": "address" }, { "indexed": false, "name": "amount", "type": "uint256" }, { "indexed": false, "name": "newCurator", "type": "bool" }, { "indexed": false, "name": "description", "type": "string" } ], "name": "ProposalAdded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "proposalID", "type": "uint256" }, { "indexed": false, "name": "position", "type": "bool" }, { "indexed": true, "name": "voter", "type": "address" } ], "name": "Voted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "proposalID", "type": "uint256" }, { "indexed": false, "name": "result", "type": "bool" }, { "indexed": false, "name": "quorum", "type": "uint256" } ], "name": "ProposalTallied", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_newCurator", "type": "address" } ], "name": "NewCurator", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_recipient", "type": "address" }, { "indexed": false, "name": "_allowed", "type": "bool" } ], "name": "AllowedRecipientChanged", "type": "event" } ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment