564 lines
9.5 KiB
JSON
564 lines
9.5 KiB
JSON
[
|
|
{
|
|
"constant": true,
|
|
"inputs": [
|
|
{
|
|
"name": "_id",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "getQuorumState",
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [
|
|
{
|
|
"name": "_id",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"name": "_votingKey",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "isValidVote",
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [],
|
|
"name": "initDisabled",
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [],
|
|
"name": "getTime",
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [
|
|
{
|
|
"name": "_id",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "isActive",
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [],
|
|
"name": "proxyStorage",
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [
|
|
{
|
|
"name": "_id",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "getMinThresholdOfVoters",
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [
|
|
{
|
|
"name": "_id",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"name": "_votingKey",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "hasAlreadyVoted",
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [
|
|
{
|
|
"name": "_id",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"name": "_miningKey",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "areOldMiningKeysVoted",
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [],
|
|
"name": "nextBallotId",
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"name": "id",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"name": "votingKey",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "BallotCanceled",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"name": "id",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"name": "ballotType",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"name": "creator",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "BallotCreated",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"name": "id",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"name": "voter",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "BallotFinalized",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"anonymous": false,
|
|
"inputs": [
|
|
{
|
|
"indexed": true,
|
|
"name": "id",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"name": "decision",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": true,
|
|
"name": "voter",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"name": "time",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"indexed": false,
|
|
"name": "voterMiningKey",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "Vote",
|
|
"type": "event"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [],
|
|
"name": "ballotCancelingThreshold",
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "pure",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [
|
|
{
|
|
"name": "_id",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "canBeFinalizedNow",
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"inputs": [],
|
|
"name": "cancelNewBallot",
|
|
"outputs": [],
|
|
"payable": false,
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"inputs": [
|
|
{
|
|
"name": "_startTime",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"name": "_endTime",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"name": "_receiver",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"name": "_memo",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"name": "createBallot",
|
|
"outputs": [],
|
|
"payable": false,
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [],
|
|
"name": "distributionThreshold",
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [],
|
|
"name": "emissionFunds",
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [],
|
|
"name": "emissionReleaseThreshold",
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [],
|
|
"name": "emissionReleaseTime",
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"inputs": [
|
|
{
|
|
"name": "_id",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "finalize",
|
|
"outputs": [],
|
|
"payable": false,
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [
|
|
{
|
|
"name": "_id",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "getBallotInfo",
|
|
"outputs": [
|
|
{
|
|
"name": "creationTime",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"name": "startTime",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"name": "endTime",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"name": "isCanceled",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"name": "isFinalized",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"name": "creator",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"name": "memo",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"name": "burnVotes",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"name": "freezeVotes",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"name": "sendVotes",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"name": "receiver",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [
|
|
{
|
|
"name": "_id",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "getTotalVoters",
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"inputs": [
|
|
{
|
|
"name": "_emissionReleaseTime",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"name": "_emissionReleaseThreshold",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"name": "_distributionThreshold",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"name": "_emissionFunds",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "init",
|
|
"outputs": [],
|
|
"payable": false,
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": true,
|
|
"inputs": [],
|
|
"name": "noActiveBallotExists",
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"inputs": [],
|
|
"name": "refreshEmissionReleaseTime",
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"payable": false,
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"constant": false,
|
|
"inputs": [
|
|
{
|
|
"name": "_id",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"name": "_choice",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "vote",
|
|
"outputs": [],
|
|
"payable": false,
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
}
|
|
] |