mirror of https://github.com/dap-ps/graph.git
287 lines
7.0 KiB
JSON
287 lines
7.0 KiB
JSON
[
|
|
{
|
|
"constant": false,
|
|
"inputs": [
|
|
{ "name": "_id", "type": "bytes32" },
|
|
{ "name": "_amount", "type": "uint256" }
|
|
],
|
|
"name": "withdraw",
|
|
"outputs": [],
|
|
"payable": false,
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [
|
|
{ "name": "_id", "type": "bytes32" },
|
|
{ "name": "_amount", "type": "uint256" }
|
|
],
|
|
"name": "upvoteEffect",
|
|
"outputs": [{ "name": "effect", "type": "uint256" }],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [],
|
|
"name": "safeMax",
|
|
"outputs": [{ "name": "", "type": "uint256" }],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"inputs": [
|
|
{ "name": "_id", "type": "bytes32" },
|
|
{ "name": "_amount", "type": "uint256" }
|
|
],
|
|
"name": "upvote",
|
|
"outputs": [],
|
|
"payable": false,
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [],
|
|
"name": "total",
|
|
"outputs": [{ "name": "", "type": "uint256" }],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [],
|
|
"name": "decimals",
|
|
"outputs": [{ "name": "", "type": "uint256" }],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"inputs": [{ "name": "_newController", "type": "address" }],
|
|
"name": "changeController",
|
|
"outputs": [],
|
|
"payable": false,
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [{ "name": "", "type": "bytes32" }],
|
|
"name": "existingIDs",
|
|
"outputs": [{ "name": "", "type": "bool" }],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [],
|
|
"name": "getDAppsCount",
|
|
"outputs": [{ "name": "", "type": "uint256" }],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [],
|
|
"name": "max",
|
|
"outputs": [{ "name": "", "type": "uint256" }],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [{ "name": "_id", "type": "bytes32" }],
|
|
"name": "downvoteCost",
|
|
"outputs": [
|
|
{ "name": "b", "type": "uint256" },
|
|
{ "name": "vR", "type": "uint256" },
|
|
{ "name": "c", "type": "uint256" }
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [],
|
|
"name": "ceiling",
|
|
"outputs": [{ "name": "", "type": "uint256" }],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"inputs": [
|
|
{ "name": "_id", "type": "bytes32" },
|
|
{ "name": "_amount", "type": "uint256" },
|
|
{ "name": "_metadata", "type": "bytes32" }
|
|
],
|
|
"name": "createDApp",
|
|
"outputs": [],
|
|
"payable": false,
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"inputs": [{ "name": "_newCeiling", "type": "uint256" }],
|
|
"name": "setCeiling",
|
|
"outputs": [],
|
|
"payable": false,
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"inputs": [
|
|
{ "name": "_from", "type": "address" },
|
|
{ "name": "_amount", "type": "uint256" },
|
|
{ "name": "_token", "type": "address" },
|
|
{ "name": "_data", "type": "bytes" }
|
|
],
|
|
"name": "receiveApproval",
|
|
"outputs": [],
|
|
"payable": false,
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [{ "name": "", "type": "uint256" }],
|
|
"name": "dapps",
|
|
"outputs": [
|
|
{ "name": "developer", "type": "address" },
|
|
{ "name": "id", "type": "bytes32" },
|
|
{ "name": "metadata", "type": "bytes32" },
|
|
{ "name": "balance", "type": "uint256" },
|
|
{ "name": "rate", "type": "uint256" },
|
|
{ "name": "available", "type": "uint256" },
|
|
{ "name": "votesMinted", "type": "uint256" },
|
|
{ "name": "votesCast", "type": "uint256" },
|
|
{ "name": "effectiveBalance", "type": "uint256" }
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [{ "name": "", "type": "bytes32" }],
|
|
"name": "id2index",
|
|
"outputs": [{ "name": "", "type": "uint256" }],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"inputs": [
|
|
{ "name": "_id", "type": "bytes32" },
|
|
{ "name": "_amount", "type": "uint256" }
|
|
],
|
|
"name": "downvote",
|
|
"outputs": [],
|
|
"payable": false,
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [{ "name": "_id", "type": "bytes32" }],
|
|
"name": "withdrawMax",
|
|
"outputs": [{ "name": "", "type": "uint256" }],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"inputs": [
|
|
{ "name": "_id", "type": "bytes32" },
|
|
{ "name": "_metadata", "type": "bytes32" }
|
|
],
|
|
"name": "setMetadata",
|
|
"outputs": [],
|
|
"payable": false,
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [],
|
|
"name": "controller",
|
|
"outputs": [{ "name": "", "type": "address" }],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [{ "name": "_SNT", "type": "address" }],
|
|
"payable": false,
|
|
"stateMutability": "nonpayable",
|
|
"type": "constructor"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{ "indexed": true, "name": "id", "type": "bytes32" },
|
|
{ "indexed": false, "name": "newEffectiveBalance", "type": "uint256" }
|
|
],
|
|
"name": "DAppCreated",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{ "indexed": true, "name": "id", "type": "bytes32" },
|
|
{ "indexed": false, "name": "newEffectiveBalance", "type": "uint256" }
|
|
],
|
|
"name": "Upvote",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{ "indexed": true, "name": "id", "type": "bytes32" },
|
|
{ "indexed": false, "name": "newEffectiveBalance", "type": "uint256" }
|
|
],
|
|
"name": "Downvote",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{ "indexed": true, "name": "id", "type": "bytes32" },
|
|
{ "indexed": false, "name": "newEffectiveBalance", "type": "uint256" }
|
|
],
|
|
"name": "Withdraw",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [{ "indexed": true, "name": "id", "type": "bytes32" }],
|
|
"name": "MetadataUpdated",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{ "indexed": false, "name": "oldCeiling", "type": "uint256" },
|
|
{ "indexed": false, "name": "newCeiling", "type": "uint256" }
|
|
],
|
|
"name": "CeilingUpdated",
|
|
"type": "event"
|
|
}
|
|
]
|