@rsksmart/rsk-contract-parser
Version:
A tool to parse/interact with contracts and decode events from the Rootstock blockchain.
555 lines (554 loc) • 9.74 kB
JSON
[
{
"constant": false,
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "isOwner",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "moneyToPayPerBlock",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "maxMiners",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "maxBlocksToPayPerCall",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "lastPaidBlock",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"name": "_blockInfoProvider",
"type": "address"
},
{
"name": "_moneyToPayPerBlock",
"type": "uint256"
},
{
"name": "_maxBlocksToPayPerCall",
"type": "uint256"
},
{
"name": "_maxMiners",
"type": "uint256"
},
{
"name": "_lockupInMonths",
"type": "uint256"
},
{
"name": "_dateTimeContract",
"type": "address"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"payable": true,
"stateMutability": "payable",
"type": "fallback"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "miner",
"type": "address"
},
{
"indexed": false,
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"name": "period",
"type": "uint256"
}
],
"name": "PayToMiner",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "miner",
"type": "address"
},
{
"indexed": false,
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"name": "period",
"type": "uint256"
}
],
"name": "PayToMinerFailed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"name": "period",
"type": "uint256"
}
],
"name": "PayToMiners",
"type": "event"
},
{
"anonymous": false,
"inputs": [],
"name": "DonationReceived",
"type": "event"
},
{
"anonymous": false,
"inputs": [],
"name": "InsufficientBalance",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "from",
"type": "uint256"
},
{
"indexed": false,
"name": "to",
"type": "uint256"
},
{
"indexed": false,
"name": "totalBlocksCollected",
"type": "uint256"
}
],
"name": "BlockRangeCollected",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "maxBlocks",
"type": "uint256"
}
],
"name": "MaxBlocksToPayPerCallChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "payPerBlock",
"type": "uint256"
}
],
"name": "MoneyToPayPerBlockChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "maxMiners",
"type": "uint256"
}
],
"name": "MaxMinersChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "miner",
"type": "address"
},
{
"indexed": false,
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"name": "releasePeriod",
"type": "uint256"
}
],
"name": "DepositedToMiner",
"type": "event"
},
{
"anonymous": false,
"inputs": [],
"name": "SomethingIsWorkingWrong",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "from",
"type": "uint256"
},
{
"indexed": false,
"name": "to",
"type": "uint256"
},
{
"indexed": false,
"name": "totalBlocksSkipped",
"type": "uint256"
}
],
"name": "SkipPayments",
"type": "event"
},
{
"anonymous": false,
"inputs": [],
"name": "NothingToPay",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "blockNumber",
"type": "uint256"
},
{
"indexed": false,
"name": "minerAddress",
"type": "address"
}
],
"name": "CollectedBlock",
"type": "event"
},
{
"anonymous": false,
"inputs": [],
"name": "NothingToCollect",
"type": "event"
},
{
"constant": false,
"inputs": [
{
"name": "_newMax",
"type": "uint256"
}
],
"name": "setMaxBlocksToPayPerCall",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_newPay",
"type": "uint256"
}
],
"name": "setMoneyToPayPerBlock",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_newMax",
"type": "uint256"
}
],
"name": "setMaxMiners",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "getBalance",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "collectProfits",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "addressMiner",
"type": "address"
}
],
"name": "payToMiner",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": true,
"stateMutability": "payable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "addressMiner",
"type": "address"
},
{
"name": "month",
"type": "uint8"
},
{
"name": "year",
"type": "uint16"
}
],
"name": "payToMinerInPeriod",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "payToMiners",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": true,
"stateMutability": "payable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "month",
"type": "uint8"
},
{
"name": "year",
"type": "uint16"
}
],
"name": "payToMinersInPeriod",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "minerAddress",
"type": "address"
}
],
"name": "getBalanceForCurrentPeriod",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "minerAddress",
"type": "address"
},
{
"name": "month",
"type": "uint8"
},
{
"name": "year",
"type": "uint16"
}
],
"name": "getBalanceForPeriod",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
]