UNPKG

metronome-contracts

Version:
431 lines 7.51 kB
[ { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "proposals", "outputs": [ { "name": "proposalId", "type": "uint256" }, { "name": "action", "type": "bytes32" }, { "name": "expiry", "type": "uint256" }, { "name": "validator", "type": "address" }, { "name": "newThreshold", "type": "uint256" }, { "name": "supportCount", "type": "uint256" }, { "name": "passed", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "votingPeriod", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_proposalId", "type": "uint256" } ], "name": "closeProposal", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_validator", "type": "address" } ], "name": "setValidator", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newOwner", "type": "address" } ], "name": "changeOwnership", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "validator", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_proposalId", "type": "uint256" }, { "name": "_support", "type": "bool" } ], "name": "voteForProposal", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [], "name": "acceptOwnership", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_validator", "type": "address" }, { "name": "_newThreshold", "type": "uint256" } ], "name": "proposeNewValidator", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "actions", "outputs": [ { "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "owner", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_validator", "type": "address" }, { "name": "_newThreshold", "type": "uint256" } ], "name": "proposeRemoveValidator", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "newOwner", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_newThreshold", "type": "uint256" } ], "name": "proposeNewThreshold", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "address" } ], "name": "valProposals", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "_t", "type": "uint256" } ], "name": "updateVotingPeriod", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "proposalId", "type": "uint256" }, { "indexed": true, "name": "voter", "type": "address" }, { "indexed": false, "name": "support", "type": "bool" } ], "name": "LogVoted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "proposalId", "type": "uint256" }, { "indexed": true, "name": "newValidator", "type": "address" }, { "indexed": false, "name": "newThreshold", "type": "uint256" }, { "indexed": false, "name": "creator", "type": "address" }, { "indexed": false, "name": "expiry", "type": "uint256" }, { "indexed": true, "name": "action", "type": "bytes32" } ], "name": "LogProposalCreated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "proposalId", "type": "uint256" }, { "indexed": true, "name": "newValidator", "type": "address" }, { "indexed": false, "name": "newThreshold", "type": "uint256" }, { "indexed": true, "name": "action", "type": "bytes32" }, { "indexed": false, "name": "expiry", "type": "uint256" }, { "indexed": false, "name": "supportCount", "type": "uint256" }, { "indexed": false, "name": "passed", "type": "bool" } ], "name": "LogProposalClosed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "prevOwner", "type": "address" }, { "indexed": true, "name": "newOwner", "type": "address" } ], "name": "OwnershipChanged", "type": "event" } ]