From 80cfd9c0727b4a04d87aaee3b8e16e9e8ecc1fa1 Mon Sep 17 00:00:00 2001 From: zzphust <1255950918@qq.com> Date: Mon, 30 Oct 2023 17:16:55 +0800 Subject: [PATCH] Update contracts' abi --- abi/bscvalidatorset.abi | 83 ++++++++++++++++ abi/relayerhub.abi | 169 ++++++++++++++++++++++++++++---- abi/slashindicator.abi | 45 +++++++++ abi/tendermintlightclient.abi | 176 +++++++++++++++++++--------------- 4 files changed, 378 insertions(+), 95 deletions(-) diff --git a/abi/bscvalidatorset.abi b/abi/bscvalidatorset.abi index 207effaf..7494dc6c 100644 --- a/abi/bscvalidatorset.abi +++ b/abi/bscvalidatorset.abi @@ -675,6 +675,19 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [], + "name": "MAX_SYSTEM_REWARD_BALANCE", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [], "name": "PRECISION", @@ -978,6 +991,25 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "currentVoteAddrFullSet", + "outputs": [ + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { @@ -1248,6 +1280,25 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "voteAddr", + "type": "bytes" + } + ], + "name": "isMonitoredForMaliciousVote", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { @@ -1371,6 +1422,19 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [], + "name": "previousBalanceOfSystemReward", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [], "name": "previousHeight", @@ -1384,6 +1448,25 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "previousVoteAddrFullSet", + "outputs": [ + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [], "name": "totalInComing", diff --git a/abi/relayerhub.abi b/abi/relayerhub.abi index b712a5c7..57dfe071 100644 --- a/abi/relayerhub.abi +++ b/abi/relayerhub.abi @@ -1,4 +1,30 @@ [ + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "_addedManager", + "type": "address" + } + ], + "name": "managerAdded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "_removedManager", + "type": "address" + } + ], + "name": "managerRemoved", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -28,7 +54,7 @@ "type": "address" } ], - "name": "relayerRegister", + "name": "relayerAddedProvisionally", "type": "event" }, { @@ -44,6 +70,25 @@ "name": "relayerUnRegister", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "_from", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "_to", + "type": "address" + } + ], + "name": "relayerUpdated", + "type": "event" + }, { "inputs": [], "name": "BIND_CHANNELID", @@ -332,12 +377,12 @@ }, { "inputs": [], - "name": "alreadyInit", + "name": "WHITELIST_1", "outputs": [ { - "internalType": "bool", + "internalType": "address", "name": "", - "type": "bool" + "type": "address" } ], "stateMutability": "view", @@ -345,25 +390,51 @@ }, { "inputs": [], - "name": "bscChainID", + "name": "WHITELIST_2", "outputs": [ { - "internalType": "uint16", + "internalType": "address", "name": "", - "type": "uint16" + "type": "address" } ], "stateMutability": "view", "type": "function" }, + { + "inputs": [ + { + "internalType": "address", + "name": "manager", + "type": "address" + } + ], + "name": "acceptBeingRelayer", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [], - "name": "dues", + "name": "alreadyInit", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "bscChainID", + "outputs": [ + { + "internalType": "uint16", + "name": "", + "type": "uint16" } ], "stateMutability": "view", @@ -380,11 +451,11 @@ "inputs": [ { "internalType": "address", - "name": "sender", + "name": "managerAddress", "type": "address" } ], - "name": "isRelayer", + "name": "isManager", "outputs": [ { "internalType": "bool", @@ -396,25 +467,50 @@ "type": "function" }, { - "inputs": [], - "name": "register", - "outputs": [], - "stateMutability": "payable", + "inputs": [ + { + "internalType": "address", + "name": "relayerAddress", + "type": "address" + } + ], + "name": "isProvisionalRelayer", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", "type": "function" }, { - "inputs": [], - "name": "requiredDeposit", + "inputs": [ + { + "internalType": "address", + "name": "relayerAddress", + "type": "address" + } + ], + "name": "isRelayer", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" } ], "stateMutability": "view", "type": "function" }, + { + "inputs": [], + "name": "removeManagerByHimself", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [], "name": "unregister", @@ -439,5 +535,38 @@ "outputs": [], "stateMutability": "nonpayable", "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "relayerToBeAdded", + "type": "address" + } + ], + "name": "updateRelayer", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "whitelistInit", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "whitelistInitDone", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" } ] \ No newline at end of file diff --git a/abi/slashindicator.abi b/abi/slashindicator.abi index 83152d12..afda8113 100644 --- a/abi/slashindicator.abi +++ b/abi/slashindicator.abi @@ -30,6 +30,25 @@ "name": "failedFelony", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "voteAddrSlice", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "failReason", + "type": "bytes" + } + ], + "name": "failedMaliciousVoteSlash", + "type": "event" + }, { "anonymous": false, "inputs": [], @@ -49,6 +68,19 @@ "name": "knownResponse", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "voteAddrSlice", + "type": "bytes32" + } + ], + "name": "maliciousVoteSlashed", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -452,6 +484,19 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [], + "name": "enableMaliciousVoteSlash", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [], "name": "felonyThreshold", diff --git a/abi/tendermintlightclient.abi b/abi/tendermintlightclient.abi index 93dc47fc..9807729c 100644 --- a/abi/tendermintlightclient.abi +++ b/abi/tendermintlightclient.abi @@ -112,6 +112,19 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [], + "name": "CROSS_STAKE_CHANNELID", + "outputs": [ + { + "internalType": "uint8", + "name": "", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [], "name": "ERROR_FAIL_DECODE", @@ -255,6 +268,19 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [], + "name": "STAKING_CONTRACT_ADDR", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [], "name": "SYSTEM_REWARD_ADDR", @@ -372,61 +398,20 @@ "stateMutability": "view", "type": "function" }, - { - "inputs": [], - "name": "initialHeight", - "outputs": [ - { - "internalType": "uint64", - "name": "", - "type": "uint64" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "latestHeight", - "outputs": [ - { - "internalType": "uint64", - "name": "", - "type": "uint64" - } - ], - "stateMutability": "view", - "type": "function" - }, { "inputs": [ { "internalType": "uint64", - "name": "", + "name": "height", "type": "uint64" } ], - "name": "lightClientConsensusStates", + "name": "getAppHash", "outputs": [ - { - "internalType": "uint64", - "name": "preValidatorSetChangeHeight", - "type": "uint64" - }, { "internalType": "bytes32", - "name": "appHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "curValidatorSetHash", + "name": "", "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "nextValidatorSet", - "type": "bytes" } ], "stateMutability": "view", @@ -434,12 +419,12 @@ }, { "inputs": [], - "name": "rewardForValidatorSetChange", + "name": "getChainID", "outputs": [ { - "internalType": "uint256", + "internalType": "string", "name": "", - "type": "uint256" + "type": "string" } ], "stateMutability": "view", @@ -449,11 +434,11 @@ "inputs": [ { "internalType": "uint64", - "name": "", + "name": "height", "type": "uint64" } ], - "name": "submitters", + "name": "getSubmitter", "outputs": [ { "internalType": "address payable", @@ -472,27 +457,16 @@ "type": "function" }, { - "inputs": [ - { - "internalType": "bytes", - "name": "header", - "type": "bytes" - }, - { - "internalType": "uint64", - "name": "height", - "type": "uint64" - } - ], - "name": "syncTendermintHeader", + "inputs": [], + "name": "initialHeight", "outputs": [ { - "internalType": "bool", + "internalType": "uint64", "name": "", - "type": "bool" + "type": "uint64" } ], - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { @@ -514,20 +488,61 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [], + "name": "latestHeight", + "outputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { "internalType": "uint64", - "name": "height", + "name": "", "type": "uint64" } ], - "name": "getAppHash", + "name": "lightClientConsensusStates", "outputs": [ + { + "internalType": "uint64", + "name": "preValidatorSetChangeHeight", + "type": "uint64" + }, { "internalType": "bytes32", - "name": "", + "name": "appHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "curValidatorSetHash", "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "nextValidatorSet", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "rewardForValidatorSetChange", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" } ], "stateMutability": "view", @@ -537,11 +552,11 @@ "inputs": [ { "internalType": "uint64", - "name": "height", + "name": "", "type": "uint64" } ], - "name": "getSubmitter", + "name": "submitters", "outputs": [ { "internalType": "address payable", @@ -553,16 +568,27 @@ "type": "function" }, { - "inputs": [], - "name": "getChainID", + "inputs": [ + { + "internalType": "bytes", + "name": "header", + "type": "bytes" + }, + { + "internalType": "uint64", + "name": "height", + "type": "uint64" + } + ], + "name": "syncTendermintHeader", "outputs": [ { - "internalType": "string", + "internalType": "bool", "name": "", - "type": "string" + "type": "bool" } ], - "stateMutability": "view", + "stateMutability": "nonpayable", "type": "function" }, {