poa-governance-notifications/abis/v2/VotingToChangeKeys.abi.json

631 lines
11 KiB
JSON
Raw Normal View History

2018-04-21 09:59:11 -07:00
[
{
"constant": true,
"inputs": [
{
"name": "_id",
"type": "uint256"
}
],
"name": "canBeFinalizedNow",
2018-04-21 09:59:11 -07:00
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "minBallotDuration",
2018-04-21 09:59:11 -07:00
"outputs": [
{
"name": "",
"type": "uint256"
2018-04-21 09:59:11 -07:00
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
2018-04-21 09:59:11 -07:00
{
"name": "_id",
"type": "uint256"
2018-04-21 09:59:11 -07:00
}
],
"name": "finalize",
"outputs": [],
2018-04-21 09:59:11 -07:00
"payable": false,
"stateMutability": "nonpayable",
2018-04-21 09:59:11 -07:00
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_id",
2018-04-21 09:59:11 -07:00
"type": "uint256"
}
],
"name": "getQuorumState",
2018-04-21 09:59:11 -07:00
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_id",
"type": "uint256"
},
2018-04-21 09:59:11 -07:00
{
"name": "_votingKey",
"type": "address"
2018-04-21 09:59:11 -07:00
}
],
"name": "isValidVote",
2018-04-21 09:59:11 -07:00
"outputs": [
{
"name": "",
"type": "bool"
2018-04-21 09:59:11 -07:00
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_index",
"type": "uint256"
2018-04-21 09:59:11 -07:00
}
],
"name": "activeBallots",
2018-04-21 09:59:11 -07:00
"outputs": [
{
"name": "",
"type": "uint256"
2018-04-21 09:59:11 -07:00
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "initDisabled",
2018-04-21 09:59:11 -07:00
"outputs": [
{
"name": "",
"type": "bool"
2018-04-21 09:59:11 -07:00
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "getTime",
2018-04-21 09:59:11 -07:00
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "activeBallotsLength",
2018-04-21 09:59:11 -07:00
"outputs": [
{
"name": "",
"type": "uint256"
2018-04-21 09:59:11 -07:00
}
],
"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": "_id",
"type": "uint256"
}
],
"name": "getIndex",
2018-04-21 09:59:11 -07:00
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "maxBallotDuration",
"outputs": [
2018-04-21 09:59:11 -07:00
{
"name": "",
2018-04-21 09:59:11 -07:00
"type": "uint256"
}
],
"payable": false,
"stateMutability": "pure",
2018-04-21 09:59:11 -07:00
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "migrateDisabled",
2018-04-21 09:59:11 -07:00
"outputs": [
{
"name": "",
"type": "bool"
2018-04-21 09:59:11 -07:00
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "migrateDisable",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
2018-04-21 09:59:11 -07:00
{
"constant": true,
"inputs": [],
"name": "proxyStorage",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
2018-04-21 09:59:11 -07:00
{
"name": "_id",
"type": "uint256"
},
{
"name": "_choice",
"type": "uint256"
2018-04-21 09:59:11 -07:00
}
],
"name": "vote",
"outputs": [],
2018-04-21 09:59:11 -07:00
"payable": false,
"stateMutability": "nonpayable",
2018-04-21 09:59:11 -07:00
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_id",
"type": "uint256"
}
],
"name": "getMinThresholdOfVoters",
2018-04-21 09:59:11 -07:00
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_id",
"type": "uint256"
},
{
"name": "_votingKey",
"type": "address"
2018-04-21 09:59:11 -07:00
}
],
"name": "hasAlreadyVoted",
2018-04-21 09:59:11 -07:00
"outputs": [
{
"name": "",
"type": "bool"
2018-04-21 09:59:11 -07:00
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_id",
"type": "uint256"
},
{
"name": "_miningKey",
2018-04-21 09:59:11 -07:00
"type": "address"
}
],
"name": "areOldMiningKeysVoted",
2018-04-21 09:59:11 -07:00
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "nextBallotId",
2018-04-21 09:59:11 -07:00
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_miningKey",
"type": "address"
}
],
"name": "validatorActiveBallots",
2018-04-21 09:59:11 -07:00
"outputs": [
{
"name": "",
"type": "uint256"
2018-04-21 09:59:11 -07:00
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
2018-04-21 09:59:11 -07:00
"inputs": [
{
"name": "_prevVotingToChange",
"type": "address"
2018-04-21 09:59:11 -07:00
}
],
"name": "migrateBasicAll",
"outputs": [],
2018-04-21 09:59:11 -07:00
"payable": false,
"stateMutability": "nonpayable",
2018-04-21 09:59:11 -07:00
"type": "function"
},
{
"anonymous": false,
"inputs": [
2018-04-21 09:59:11 -07:00
{
"indexed": true,
"name": "id",
2018-04-21 09:59:11 -07:00
"type": "uint256"
},
{
"indexed": true,
"name": "ballotType",
"type": "uint256"
},
{
"indexed": true,
"name": "creator",
"type": "address"
2018-04-21 09:59:11 -07:00
}
],
"name": "BallotCreated",
"type": "event"
2018-04-21 09:59:11 -07:00
},
{
"anonymous": false,
2018-04-21 09:59:11 -07:00
"inputs": [
{
"indexed": true,
"name": "id",
2018-04-21 09:59:11 -07:00
"type": "uint256"
},
{
"indexed": true,
"name": "voter",
"type": "address"
2018-04-21 09:59:11 -07:00
}
],
"name": "BallotFinalized",
"type": "event"
},
{
"anonymous": false,
"inputs": [
2018-04-21 09:59:11 -07:00
{
"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"
2018-04-21 09:59:11 -07:00
}
],
"name": "Vote",
"type": "event"
2018-04-21 09:59:11 -07:00
},
{
"constant": false,
2018-04-21 09:59:11 -07:00
"inputs": [
{
"name": "_startTime",
"type": "uint256"
},
{
"name": "_endTime",
"type": "uint256"
},
{
"name": "_ballotType",
"type": "uint256"
},
{
"name": "_affectedKeyType",
"type": "uint256"
},
{
"name": "_memo",
"type": "string"
},
{
"name": "_affectedKey",
"type": "address"
},
{
"name": "_miningKey",
2018-04-21 09:59:11 -07:00
"type": "address"
}
],
"name": "createBallot",
2018-04-21 09:59:11 -07:00
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
2018-04-21 09:59:11 -07:00
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_startTime",
"type": "uint256"
},
{
"name": "_endTime",
"type": "uint256"
},
{
"name": "_memo",
"type": "string"
},
{
"name": "_newMiningKey",
"type": "address"
},
{
"name": "_newVotingKey",
"type": "address"
},
{
"name": "_newPayoutKey",
"type": "address"
}
],
"name": "createBallotToAddNewValidator",
2018-04-21 09:59:11 -07:00
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
2018-04-21 09:59:11 -07:00
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_id",
2018-04-21 09:59:11 -07:00
"type": "uint256"
}
],
"name": "getBallotInfo",
2018-04-21 09:59:11 -07:00
"outputs": [
{
"name": "startTime",
"type": "uint256"
},
{
"name": "endTime",
"type": "uint256"
},
{
"name": "affectedKey",
"type": "address"
},
{
"name": "affectedKeyType",
2018-04-21 09:59:11 -07:00
"type": "uint256"
},
{
"name": "newVotingKey",
"type": "address"
2018-04-21 09:59:11 -07:00
},
{
"name": "newPayoutKey",
"type": "address"
2018-04-21 09:59:11 -07:00
},
{
"name": "miningKey",
"type": "address"
2018-04-21 09:59:11 -07:00
},
{
"name": "totalVoters",
2018-04-21 09:59:11 -07:00
"type": "uint256"
},
{
"name": "progress",
"type": "int256"
2018-04-21 09:59:11 -07:00
},
{
"name": "isFinalized",
"type": "bool"
},
{
"name": "ballotType",
2018-04-21 09:59:11 -07:00
"type": "uint256"
},
{
"name": "creator",
"type": "address"
},
{
"name": "memo",
"type": "string"
},
{
"name": "canBeFinalizedNow",
"type": "bool"
2018-04-21 09:59:11 -07:00
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
2018-04-21 09:59:11 -07:00
"inputs": [
{
"name": "_minBallotDuration",
"type": "uint256"
2018-04-21 09:59:11 -07:00
}
],
"name": "init",
"outputs": [],
2018-04-21 09:59:11 -07:00
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
2018-04-21 09:59:11 -07:00
},
{
"constant": false,
2018-04-21 09:59:11 -07:00
"inputs": [
{
"name": "_id",
2018-04-21 09:59:11 -07:00
"type": "uint256"
},
{
"name": "_prevVotingToChange",
2018-04-21 09:59:11 -07:00
"type": "address"
},
{
"name": "_voters",
"type": "address[]"
2018-04-21 09:59:11 -07:00
}
],
"name": "migrateBasicOne",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
2018-04-21 09:59:11 -07:00
}
]