@rsksmart/rsk-contract-parser
Version:
A tool to parse/interact with contracts and decode events from the Rootstock blockchain.
1,548 lines • 27.3 kB
JSON
[
{
"name": "getBtcBlockchainBestChainHeight",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "int"
}
]
},
{
"name": "getStateForBtcReleaseClient",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes"
}
]
},
{
"name": "getStateForSvpClient",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes"
}
]
},
{
"name": "getStateForDebugging",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes"
}
]
},
{
"name": "getBtcBlockchainInitialBlockHeight",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "int"
}
]
},
{
"name": "getBtcBlockchainBlockHashAtDepth",
"type": "function",
"stateMutability": "view",
"inputs": [
{
"name": "depth",
"type": "int256"
}
],
"outputs": [
{
"name": "",
"type": "bytes"
}
]
},
{
"name": "getBtcTxHashProcessedHeight",
"type": "function",
"stateMutability": "view",
"inputs": [
{
"name": "hash",
"type": "string"
}
],
"outputs": [
{
"name": "",
"type": "int64"
}
]
},
{
"name": "isBtcTxHashAlreadyProcessed",
"type": "function",
"stateMutability": "view",
"inputs": [
{
"name": "hash",
"type": "string"
}
],
"outputs": [
{
"name": "",
"type": "bool"
}
]
},
{
"name": "getFederationAddress",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string"
}
]
},
{
"name": "registerBtcTransaction",
"type": "function",
"stateMutability": "nonpayable",
"inputs": [
{
"name": "tx",
"type": "bytes"
},
{
"name": "height",
"type": "int256"
},
{
"name": "pmt",
"type": "bytes"
}
],
"outputs": []
},
{
"name": "addSignature",
"type": "function",
"stateMutability": "nonpayable",
"inputs": [
{
"name": "pubkey",
"type": "bytes"
},
{
"name": "signatures",
"type": "bytes[]"
},
{
"name": "txhash",
"type": "bytes"
}
],
"outputs": []
},
{
"name": "receiveHeaders",
"type": "function",
"stateMutability": "nonpayable",
"inputs": [
{
"name": "blocks",
"type": "bytes[]"
}
],
"outputs": []
},
{
"name": "receiveHeader",
"type": "function",
"stateMutability": "nonpayable",
"inputs": [
{
"name": "block",
"type": "bytes"
}
],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "getFederationSize",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "getFederationThreshold",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "getFederatorPublicKey",
"type": "function",
"stateMutability": "view",
"inputs": [
{
"name": "index",
"type": "int256"
}
],
"outputs": [
{
"name": "",
"type": "bytes"
}
]
},
{
"name": "getFederatorPublicKeyOfType",
"type": "function",
"stateMutability": "view",
"inputs": [
{
"name": "index",
"type": "int256"
},
{
"name": "type",
"type": "string"
}
],
"outputs": [
{
"name": "",
"type": "bytes"
}
]
},
{
"name": "getFederationCreationTime",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "getFederationCreationBlockNumber",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "getRetiringFederationAddress",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string"
}
]
},
{
"name": "getRetiringFederationSize",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "getRetiringFederationThreshold",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "getRetiringFederatorPublicKey",
"type": "function",
"stateMutability": "view",
"inputs": [
{
"name": "index",
"type": "int256"
}
],
"outputs": [
{
"name": "",
"type": "bytes"
}
]
},
{
"name": "getRetiringFederatorPublicKeyOfType",
"type": "function",
"stateMutability": "view",
"inputs": [
{
"name": "index",
"type": "int256"
},
{
"name": "type",
"type": "string"
}
],
"outputs": [
{
"name": "",
"type": "bytes"
}
]
},
{
"name": "getRetiringFederationCreationTime",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "getRetiringFederationCreationBlockNumber",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "createFederation",
"type": "function",
"stateMutability": "nonpayable",
"inputs": [],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "addFederatorPublicKey",
"type": "function",
"stateMutability": "nonpayable",
"inputs": [
{
"name": "key",
"type": "bytes"
}
],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "addFederatorPublicKeyMultikey",
"type": "function",
"stateMutability": "nonpayable",
"inputs": [
{
"name": "btcKey",
"type": "bytes"
},
{
"name": "rskKey",
"type": "bytes"
},
{
"name": "mstKey",
"type": "bytes"
}
],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "commitFederation",
"type": "function",
"stateMutability": "nonpayable",
"inputs": [
{
"name": "hash",
"type": "bytes"
}
],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "rollbackFederation",
"type": "function",
"stateMutability": "nonpayable",
"inputs": [],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "getPendingFederationHash",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes"
}
]
},
{
"name": "getPendingFederationSize",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "getPendingFederatorPublicKey",
"type": "function",
"stateMutability": "view",
"inputs": [
{
"name": "index",
"type": "int256"
}
],
"outputs": [
{
"name": "",
"type": "bytes"
}
]
},
{
"name": "getPendingFederatorPublicKeyOfType",
"type": "function",
"stateMutability": "view",
"inputs": [
{
"name": "index",
"type": "int256"
},
{
"name": "type",
"type": "string"
}
],
"outputs": [
{
"name": "",
"type": "bytes"
}
]
},
{
"name": "getProposedFederationAddress",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string"
}
]
},
{
"name": "getProposedFederationSize",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "getProposedFederatorPublicKeyOfType",
"type": "function",
"stateMutability": "view",
"inputs": [
{
"name": "index",
"type": "int256"
},
{
"name": "type",
"type": "string"
}
],
"outputs": [
{
"name": "",
"type": "bytes"
}
]
},
{
"name": "getProposedFederationCreationTime",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "getProposedFederationCreationBlockNumber",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "getLockWhitelistSize",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "getLockWhitelistAddress",
"type": "function",
"stateMutability": "view",
"inputs": [
{
"name": "index",
"type": "int256"
}
],
"outputs": [
{
"name": "",
"type": "string"
}
]
},
{
"name": "getLockWhitelistEntryByAddress",
"type": "function",
"stateMutability": "view",
"inputs": [
{
"name": "address",
"type": "string"
}
],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "addLockWhitelistAddress",
"type": "function",
"stateMutability": "nonpayable",
"inputs": [
{
"name": "address",
"type": "string"
},
{
"name": "maxTransferValue",
"type": "int256"
}
],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "addOneOffLockWhitelistAddress",
"type": "function",
"stateMutability": "nonpayable",
"inputs": [
{
"name": "address",
"type": "string"
},
{
"name": "maxTransferValue",
"type": "int256"
}
],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "addUnlimitedLockWhitelistAddress",
"type": "function",
"stateMutability": "nonpayable",
"inputs": [
{
"name": "address",
"type": "string"
}
],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "removeLockWhitelistAddress",
"type": "function",
"stateMutability": "nonpayable",
"inputs": [
{
"name": "address",
"type": "string"
}
],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "setLockWhitelistDisableBlockDelay",
"type": "function",
"stateMutability": "nonpayable",
"inputs": [
{
"name": "disableDelay",
"type": "int256"
}
],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "getFeePerKb",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "voteFeePerKbChange",
"type": "function",
"stateMutability": "nonpayable",
"inputs": [
{
"name": "feePerKb",
"type": "int256"
}
],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "updateCollections",
"type": "function",
"stateMutability": "nonpayable",
"inputs": [],
"outputs": []
},
{
"name": "getMinimumLockTxValue",
"type": "function",
"stateMutability": "pure",
"inputs": [],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "getBtcTransactionConfirmations",
"type": "function",
"stateMutability": "view",
"inputs": [
{
"name": "txHash",
"type": "bytes32"
},
{
"name": "blockHash",
"type": "bytes32"
},
{
"name": "merkleBranchPath",
"type": "uint256"
},
{
"name": "merkleBranchHashes",
"type": "bytes32[]"
}
],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "getLockingCap",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "increaseLockingCap",
"type": "function",
"stateMutability": "nonpayable",
"inputs": [
{
"name": "newLockingCap",
"type": "int256"
}
],
"outputs": [
{
"name": "",
"type": "bool"
}
]
},
{
"name": "registerBtcCoinbaseTransaction",
"type": "function",
"stateMutability": "nonpayable",
"inputs": [
{
"name": "btcTxSerialized",
"type": "bytes"
},
{
"name": "blockHash",
"type": "bytes32"
},
{
"name": "pmtSerialized",
"type": "bytes"
},
{
"name": "witnessMerkleRoot",
"type": "bytes32"
}, {
"name": "witnessReservedValue",
"type": "bytes32"
}
],
"outputs": []
},
{
"name": "hasBtcBlockCoinbaseTransactionInformation",
"type": "function",
"stateMutability": "view",
"inputs": [
{
"name": "blockHash",
"type": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "bool"
}
]
},
{
"name": "registerFastBridgeBtcTransaction",
"type": "function",
"stateMutability": "nonpayable",
"inputs": [
{
"name": "btcTxSerialized",
"type": "bytes"
},
{
"name": "height",
"type": "uint256"
},
{
"name": "pmtSerialized",
"type": "bytes"
},
{
"name": "derivationArgumentsHash",
"type": "bytes32"
},
{
"name": "userRefundBtcAddress",
"type": "bytes"
},
{
"name": "liquidityBridgeContractAddress",
"type": "address"
},
{
"name": "liquidityProviderBtcAddress",
"type": "bytes"
},
{
"name": "shouldTransferToContract",
"type": "bool"
}
],
"outputs": [
{
"name": "",
"type": "int256"
}
]
},
{
"name": "getActiveFederationCreationBlockHeight",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
]
},
{
"name": "getBtcBlockchainBestBlockHeader",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes"
}
]
},
{
"name": "getBtcBlockchainBlockHeaderByHash",
"type": "function",
"stateMutability": "view",
"inputs": [
{
"name": "btcBlockHash",
"type": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "bytes"
}
]
},
{
"name": "getBtcBlockchainBlockHeaderByHeight",
"type": "function",
"stateMutability": "view",
"inputs": [
{
"name": "btcBlockHeight",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bytes"
}
]
},
{
"name": "getBtcBlockchainParentBlockHeaderByHash",
"type": "function",
"stateMutability": "view",
"inputs": [
{
"name": "btcBlockHash",
"type": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "bytes"
}
]
},
{
"name": "getEstimatedFeesForNextPegOutEvent",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
]
},
{
"name": "getNextPegoutCreationBlockNumber",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
]
},
{
"name": "getQueuedPegoutsCount",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
]
},
{
"name": "releaseBtc",
"type": "function",
"stateMutability": "payable",
"inputs": [],
"outputs": []
},
{
"name": "getActivePowpegRedeemScript",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes"
}
]
},
{
"name": "setUnionBridgeContractAddressForTestnet",
"type": "function",
"stateMutability": "nonpayable",
"inputs": [
{
"name": "unionBridgeContractAddress",
"type": "address"
}
],
"outputs": [
{
"name": "",
"type": "int"
}
]
},
{
"name": "getUnionBridgeContractAddress",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address"
}
]
},
{
"name": "getUnionBridgeLockingCap",
"type": "function",
"stateMutability": "view",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256"
}
]
},
{
"name": "increaseUnionBridgeLockingCap",
"type": "function",
"stateMutability": "nonpayable",
"inputs": [
{
"name": "newLockingCap",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "int"
}
]
},
{
"name": "requestUnionBridgeRbtc",
"type": "function",
"stateMutability": "nonpayable",
"inputs": [
{
"name": "amountRequested",
"type": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "int"
}
]
},
{
"name": "releaseUnionBridgeRbtc",
"type": "function",
"stateMutability": "payable",
"inputs": [],
"outputs": [
{
"name": "",
"type": "int"
}
]
},
{
"name": "setUnionBridgeTransferPermissions",
"type": "function",
"stateMutability": "nonpayable",
"inputs": [
{
"name": "requestEnabled",
"type": "bool"
},
{
"name": "releaseEnabled",
"type": "bool"
}
],
"outputs": [
{
"name": "",
"type": "int"
}
]
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "receiver",
"type": "address"
},
{
"indexed": false,
"name": "btcTxHash",
"type": "bytes32"
},
{
"indexed": false,
"name": "senderBtcAddress",
"type": "string"
},
{
"indexed": false,
"name": "amount",
"type": "int256"
}
],
"name": "lock_btc",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "sender",
"type": "address"
}
],
"name": "update_collections",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "releaseRskTxHash",
"type": "bytes32"
},
{
"indexed": true,
"name": "federatorRskAddress",
"type": "address"
},
{
"indexed": false,
"name": "federatorBtcPublicKey",
"type": "bytes"
}
],
"name": "add_signature",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "releaseRskTxHash",
"type": "bytes32"
},
{
"indexed": false,
"name": "btcRawTransaction",
"type": "bytes"
}
],
"name": "release_btc",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "oldFederationBtcPublicKeys",
"type": "bytes"
},
{
"indexed": false,
"name": "oldFederationBtcAddress",
"type": "string"
},
{
"indexed": false,
"name": "newFederationBtcPublicKeys",
"type": "bytes"
},
{
"indexed": false,
"name": "newFederationBtcAddress",
"type": "string"
},
{
"indexed": false,
"name": "activationHeight",
"type": "int256"
}
],
"name": "commit_federation",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "proposedFederationRedeemScript",
"type": "bytes"
},
{
"indexed": false,
"name": "blockNumber",
"type": "int256"
}
],
"name": "commit_federation_failed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "rskTxHash",
"type": "bytes32"
},
{
"indexed": true,
"name": "btcTxHash",
"type": "bytes32"
},
{
"indexed": false,
"name": "amount",
"type": "uint256"
}
],
"name": "release_requested",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "receiver",
"type": "address"
},
{
"indexed": true,
"name": "btcTxHash",
"type": "bytes32"
},
{
"indexed": false,
"name": "amount",
"type": "int256"
},
{
"indexed": false,
"name": "protocolVersion",
"type": "int256"
}
],
"name": "pegin_btc",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "btcTxHash",
"type": "bytes32"
},
{
"indexed": false,
"name": "reason",
"type": "int256"
}
],
"name": "rejected_pegin",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "btcTxHash",
"type": "bytes32"
},
{
"indexed": false,
"name": "reason",
"type": "int256"
}
],
"name": "unrefundable_pegin",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "sender",
"type": "address"
},
{
"indexed": false,
"name": "btcDestinationAddress",
"type": "string"
},
{
"indexed": false,
"name": "amount",
"type": "uint256"
}
],
"name": "release_request_received",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "sender",
"type": "address"
},
{
"indexed": false,
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"name": "reason",
"type": "int256"
}
],
"name": "release_request_rejected",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "btcTxHash",
"type": "bytes32"
},
{
"indexed": false,
"name": "releaseRskTxHashes",
"type": "bytes"
}
],
"name": "batch_pegout_created",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "btcTxHash",
"type": "bytes32"
},
{
"indexed": false,
"name": "pegoutCreationRskBlockNumber",
"type": "uint256"
}
],
"name": "pegout_confirmed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "btcTxHash",
"type": "bytes32"
},
{
"indexed": false,
"name": "utxoOutpointValues",
"type": "bytes"
}
],
"name": "pegout_transaction_created",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "caller",
"type": "address"
},
{
"indexed": false,
"name": "previousLockingCap",
"type": "uint256"
}
,
{
"indexed": false,
"name": "newLockingCap",
"type": "uint256"
}
],
"name": "union_bridge_locking_cap_increased",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "requester",
"type": "address"
},
{
"indexed": false,
"name": "amount",
"type": "uint256"
}
],
"name": "union_rbtc_requested",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "receiver",
"type": "address"
},
{
"indexed": false,
"name": "amount",
"type": "uint256"
}
],
"name": "union_rbtc_released",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "caller",
"type": "address"
},
{
"indexed": false,
"name": "enablePowPegToUnionBridge",
"type": "bool"
},
{
"indexed": false,
"name": "enableUnionBridgeToPowPeg",
"type": "bool"
}
],
"name": "union_bridge_transfer_permissions_updated",
"type": "event"
}
]