Created
October 8, 2018 12:58
-
-
Save danlipert/bd6b7da116585e60c6fbf08c9c72cfda to your computer and use it in GitHub Desktop.
Masternode Reward Contract
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"functionHashes": { | |
"balances(address)": "27e235e3", | |
"deposit()": "d0e30db0", | |
"getRegisteredLength()": "e98dcfd3", | |
"getWaitingLength()": "d1abc62a", | |
"isOwner()": "8f32d59b", | |
"owner()": "8da5cb5b", | |
"registered(uint256)": "e6cf1346", | |
"renounceOwnership()": "715018a6", | |
"reward()": "228cb733", | |
"setRewardAmount(uint256)": "a8a65a78", | |
"setRewardInterval(uint256)": "e3e84213", | |
"setTokenAddress(address)": "26a4e8d2", | |
"transferOwnership(address)": "f2fde38b", | |
"waiting(uint256)": "7c0415ca", | |
"withdrawal()": "d4e93292" | |
}, | |
"abiDefinition": [ | |
{ | |
"constant": false, | |
"inputs": [], | |
"name": "reward", | |
"outputs": [ | |
{ | |
"name": "winner", | |
"type": "address" | |
} | |
], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function", | |
"signature": "0x228cb733" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_address", | |
"type": "address" | |
} | |
], | |
"name": "setTokenAddress", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function", | |
"signature": "0x26a4e8d2" | |
}, | |
{ | |
"constant": true, | |
"inputs": [ | |
{ | |
"name": "", | |
"type": "address" | |
} | |
], | |
"name": "balances", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function", | |
"signature": "0x27e235e3" | |
}, | |
{ | |
"constant": false, | |
"inputs": [], | |
"name": "renounceOwnership", | |
"outputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function", | |
"signature": "0x715018a6" | |
}, | |
{ | |
"constant": true, | |
"inputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"name": "waiting", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "address" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function", | |
"signature": "0x7c0415ca" | |
}, | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "owner", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "address" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function", | |
"signature": "0x8da5cb5b" | |
}, | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "isOwner", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function", | |
"signature": "0x8f32d59b" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "amount", | |
"type": "uint256" | |
} | |
], | |
"name": "setRewardAmount", | |
"outputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function", | |
"signature": "0xa8a65a78" | |
}, | |
{ | |
"constant": false, | |
"inputs": [], | |
"name": "deposit", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function", | |
"signature": "0xd0e30db0" | |
}, | |
{ | |
"constant": false, | |
"inputs": [], | |
"name": "getWaitingLength", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function", | |
"signature": "0xd1abc62a" | |
}, | |
{ | |
"constant": false, | |
"inputs": [], | |
"name": "withdrawal", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function", | |
"signature": "0xd4e93292" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "interval", | |
"type": "uint256" | |
} | |
], | |
"name": "setRewardInterval", | |
"outputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function", | |
"signature": "0xe3e84213" | |
}, | |
{ | |
"constant": true, | |
"inputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"name": "registered", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "address" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function", | |
"signature": "0xe6cf1346" | |
}, | |
{ | |
"constant": false, | |
"inputs": [], | |
"name": "getRegisteredLength", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function", | |
"signature": "0xe98dcfd3" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "newOwner", | |
"type": "address" | |
} | |
], | |
"name": "transferOwnership", | |
"outputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function", | |
"signature": "0xf2fde38b" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"name": "_tokenAddress", | |
"type": "address" | |
} | |
], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "constructor", | |
"signature": "constructor" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"name": "from", | |
"type": "address" | |
} | |
], | |
"name": "Deposit", | |
"type": "event", | |
"signature": "0x8ce0bd46ec50cf39f0d0ea8686a686eb226af5796dcda4231b26fb84b5ef1234" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"name": "to", | |
"type": "address" | |
} | |
], | |
"name": "Withdrawal", | |
"type": "event", | |
"signature": "0xe19ed71156e31b3c9e18ac7ad8d1b79f0a0feb3be18d23dae612e52040aada4b" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"name": "to", | |
"type": "address" | |
} | |
], | |
"name": "Reward", | |
"type": "event", | |
"signature": "0x57488064f1b56247ef7f5b82afeb370a20fd2967bedd713db4cd87fcd4f89726" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"name": "setter", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"name": "value", | |
"type": "uint256" | |
} | |
], | |
"name": "SetReward", | |
"type": "event", | |
"signature": "0x47df87b2d8295190528d53d2aa17482e79c609a908425cea226c34b69733dd38" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"name": "setter", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"name": "tokenAddress", | |
"type": "address" | |
} | |
], | |
"name": "SetTokenAddress", | |
"type": "event", | |
"signature": "0x1afd2fbd87820e90f7fd536cc3da7004a6a6d7f06da7f35b995b505b1ccf6f00" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"name": "setter", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"name": "interval", | |
"type": "uint256" | |
} | |
], | |
"name": "SetRewardInterval", | |
"type": "event", | |
"signature": "0x75ffd45e63c88e367cbd1a564562ee36bf4a4f8707f2e68428b5f75f69cfbe4b" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"name": "previousOwner", | |
"type": "address" | |
} | |
], | |
"name": "OwnershipRenounced", | |
"type": "event", | |
"signature": "0xf8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c64820" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"name": "previousOwner", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"name": "newOwner", | |
"type": "address" | |
} | |
], | |
"name": "OwnershipTransferred", | |
"type": "event", | |
"signature": "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment