Skip to content

Instantly share code, notes, and snippets.

@interfect
Created December 14, 2015 09:16
Show Gist options
  • Save interfect/7b1ab1c63a9100c6341d to your computer and use it in GitHub Desktop.
Save interfect/7b1ab1c63a9100c6341d to your computer and use it in GitHub Desktop.
JSON ABI for the Nomic contract
[
{
"constant": true,
"inputs": [
{
"name": "",
"type": "uint256",
"typeShort": "uint",
"bits": "256",
"template": "elements_input_uint"
}
],
"name": "proposals",
"outputs": [
{
"name": "description",
"type": "string"
},
{
"name": "ipfsHash",
"type": "string"
},
{
"name": "isUpgrade",
"type": "bool"
},
{
"name": "upgradeAddress",
"type": "address"
},
{
"name": "proposalPassed",
"type": "bool"
},
{
"name": "proposalFailed",
"type": "bool"
},
{
"name": "numberOfVotes",
"type": "uint32"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
"type": "string",
"value": "SubEthaNomic"
}
],
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "proposalNumber",
"type": "uint256",
"typeShort": "uint",
"bits": "256",
"template": "elements_input_uint"
}
],
"name": "executeProposal",
"outputs": [],
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"name": "supply",
"type": "uint256",
"value": "1"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "founder",
"outputs": [
{
"name": "",
"type": "address",
"value": "0x157d22269fdf6bf34050d7ab74b8cd27a3916265"
}
],
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_address",
"type": "address",
"typeShort": "address",
"bits": "",
"template": "elements_input_address"
}
],
"name": "removePlayer",
"outputs": [],
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_address",
"type": "address",
"typeShort": "address",
"bits": "",
"template": "elements_input_address"
}
],
"name": "balanceOf",
"outputs": [
{
"name": "balance",
"type": "uint256",
"value": "0"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "isSetup",
"outputs": [
{
"name": "",
"type": "bool",
"value": true
}
],
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "symbol",
"outputs": [
{
"name": "",
"type": "string",
"value": "SEN"
}
],
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_to",
"type": "address",
"typeShort": "address",
"bits": "",
"template": "elements_input_address"
},
{
"name": "_value",
"type": "uint256",
"typeShort": "uint",
"bits": "256",
"template": "elements_input_uint"
}
],
"name": "transfer",
"outputs": [
{
"name": "_success",
"type": "bool"
}
],
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_address",
"type": "address",
"typeShort": "address",
"bits": "",
"template": "elements_input_address"
}
],
"name": "addPlayer",
"outputs": [],
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "",
"type": "address",
"typeShort": "address",
"bits": "",
"template": "elements_input_address"
}
],
"name": "isPlaying",
"outputs": [
{
"name": "",
"type": "bool",
"value": false
}
],
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_description",
"type": "string",
"typeShort": "string",
"bits": "",
"template": "elements_input_string"
},
{
"name": "_ipfsHash",
"type": "string",
"typeShort": "string",
"bits": "",
"template": "elements_input_string"
},
{
"name": "_isUpgrade",
"type": "bool",
"typeShort": "bool",
"bits": "",
"template": "elements_input_bool"
},
{
"name": "_upgradeAddress",
"type": "address",
"typeShort": "address",
"bits": "",
"template": "elements_input_address"
}
],
"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": [],
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "startGame",
"outputs": [],
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "totalPlayers",
"outputs": [
{
"name": "",
"type": "uint32",
"value": "1"
}
],
"type": "function"
},
{
"inputs": [
{
"name": "_name",
"type": "string"
},
{
"name": "_symbol",
"type": "string"
}
],
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "from",
"type": "address"
},
{
"indexed": true,
"name": "to",
"type": "address"
},
{
"indexed": false,
"name": "value",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "proposalID",
"type": "uint256"
},
{
"indexed": false,
"name": "description",
"type": "string"
},
{
"indexed": false,
"name": "ipfsHash",
"type": "string"
},
{
"indexed": false,
"name": "isUpgrade",
"type": "bool"
},
{
"indexed": false,
"name": "upgradeAddress",
"type": "address"
}
],
"name": "ProposalAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "proposalID",
"type": "uint256"
},
{
"indexed": false,
"name": "voter",
"type": "address"
},
{
"indexed": false,
"name": "position",
"type": "bool"
}
],
"name": "Voted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "proposalID",
"type": "uint256"
},
{
"indexed": false,
"name": "passed",
"type": "bool"
}
],
"name": "ProposalClosed",
"type": "event"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment