diff --git a/abi/relayerincentivize.abi b/abi/relayerincentivize.abi index a3b1f36d8..b5e8b9265 100644 --- a/abi/relayerincentivize.abi +++ b/abi/relayerincentivize.abi @@ -24,6 +24,55 @@ "name": "LogDistributeCollectedReward", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "string", + "name": "key", + "type": "string" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "value", + "type": "bytes" + } + ], + "name": "paramChange", + "type": "event" + }, + { + "constant": true, + "inputs": [], + "name": "DENOMINATOR_CALLER_COMPENSATION", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "DENOMINATOR_HEADER_RELAYER", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, { "constant": true, "inputs": [], @@ -84,6 +133,36 @@ "stateMutability": "view", "type": "function" }, + { + "constant": true, + "inputs": [], + "name": "MOLECULE_CALLER_COMPENSATION", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "MOLECULE_HEADER_RELAYER", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, { "constant": true, "inputs": [], @@ -190,29 +269,40 @@ "type": "function" }, { - "constant": true, - "inputs": [], - "name": "_collectedRewardForHeaderRelayer", + "constant": false, + "inputs": [ + { + "internalType": "address payable", + "name": "headerRelayerAddr", + "type": "address" + }, + { + "internalType": "address payable", + "name": "caller", + "type": "address" + } + ], + "name": "addReward", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" } ], - "payable": false, - "stateMutability": "view", + "payable": true, + "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [], - "name": "_collectedRewardForTransferRelayer", + "name": "alreadyInit", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" } ], "payable": false, @@ -221,8 +311,14 @@ }, { "constant": true, - "inputs": [], - "name": "_countInRound", + "inputs": [ + { + "internalType": "uint256", + "name": "count", + "type": "uint256" + } + ], + "name": "calculateHeaderRelayerWeight", "outputs": [ { "internalType": "uint256", @@ -231,7 +327,7 @@ } ], "payable": false, - "stateMutability": "view", + "stateMutability": "pure", "type": "function" }, { @@ -239,32 +335,26 @@ "inputs": [ { "internalType": "uint256", - "name": "", + "name": "count", "type": "uint256" } ], - "name": "_headerRelayerAddressRecord", + "name": "calculateTransferRelayerWeight", "outputs": [ { - "internalType": "address payable", + "internalType": "uint256", "name": "", - "type": "address" + "type": "uint256" } ], "payable": false, - "stateMutability": "view", + "stateMutability": "pure", "type": "function" }, { "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "_headerRelayersSubmitCount", + "inputs": [], + "name": "collectedRewardForHeaderRelayer", "outputs": [ { "internalType": "uint256", @@ -279,7 +369,7 @@ { "constant": true, "inputs": [], - "name": "_roundSequence", + "name": "collectedRewardForTransferRelayer", "outputs": [ { "internalType": "uint256", @@ -293,19 +383,28 @@ }, { "constant": true, - "inputs": [ + "inputs": [], + "name": "countInRound", + "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], - "name": "_transferRelayerAddressRecord", + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "denominatorCallerCompensation", "outputs": [ { - "internalType": "address payable", + "internalType": "uint256", "name": "", - "type": "address" + "type": "uint256" } ], "payable": false, @@ -314,14 +413,8 @@ }, { "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "_transferRelayersSubmitCount", + "inputs": [], + "name": "denominatorHeaderRelayer", "outputs": [ { "internalType": "uint256", @@ -334,41 +427,36 @@ "type": "function" }, { - "constant": false, + "constant": true, "inputs": [ { - "internalType": "address payable", - "name": "headerRelayerAddr", - "type": "address" - }, - { - "internalType": "address payable", - "name": "caller", - "type": "address" + "internalType": "uint256", + "name": "", + "type": "uint256" } ], - "name": "addReward", + "name": "headerRelayerAddressRecord", "outputs": [ { - "internalType": "bool", + "internalType": "address payable", "name": "", - "type": "bool" + "type": "address" } ], - "payable": true, - "stateMutability": "payable", + "payable": false, + "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { - "internalType": "uint256", - "name": "count", - "type": "uint256" + "internalType": "address", + "name": "", + "type": "address" } ], - "name": "calculateHeaderRelayerWeight", + "name": "headerRelayersSubmitCount", "outputs": [ { "internalType": "uint256", @@ -377,19 +465,22 @@ } ], "payable": false, - "stateMutability": "pure", + "stateMutability": "view", + "type": "function" + }, + { + "constant": false, + "inputs": [], + "name": "init", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", "type": "function" }, { "constant": true, - "inputs": [ - { - "internalType": "uint256", - "name": "count", - "type": "uint256" - } - ], - "name": "calculateTransferRelayerWeight", + "inputs": [], + "name": "moleculeCallerCompensation", "outputs": [ { "internalType": "uint256", @@ -398,13 +489,13 @@ } ], "payable": false, - "stateMutability": "pure", + "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], - "name": "denominaroeCallerCompensation", + "name": "moleculeHeaderRelayer", "outputs": [ { "internalType": "uint256", @@ -419,7 +510,7 @@ { "constant": true, "inputs": [], - "name": "denominaroeHeaderRelayer", + "name": "roundSequence", "outputs": [ { "internalType": "uint256", @@ -433,23 +524,35 @@ }, { "constant": true, - "inputs": [], - "name": "moleculeCallerCompensation", - "outputs": [ + "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], + "name": "transferRelayerAddressRecord", + "outputs": [ + { + "internalType": "address payable", + "name": "", + "type": "address" + } + ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, - "inputs": [], - "name": "moleculeHeaderRelayer", + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "transferRelayersSubmitCount", "outputs": [ { "internalType": "uint256", @@ -460,5 +563,25 @@ "payable": false, "stateMutability": "view", "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "string", + "name": "key", + "type": "string" + }, + { + "internalType": "bytes", + "name": "value", + "type": "bytes" + } + ], + "name": "updateParam", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" } ] \ No newline at end of file diff --git a/abi/systemreward.abi b/abi/systemreward.abi index ab6fc58e2..78592ba54 100644 --- a/abi/systemreward.abi +++ b/abi/systemreward.abi @@ -69,6 +69,11 @@ "name": "RewardTo", "type": "event" }, + { + "payable": true, + "stateMutability": "payable", + "type": "fallback" + }, { "constant": true, "inputs": [], diff --git a/abi/tendermintlightclient.abi b/abi/tendermintlightclient.abi index c39b735ad..d927942bf 100644 --- a/abi/tendermintlightclient.abi +++ b/abi/tendermintlightclient.abi @@ -56,43 +56,53 @@ "type": "event" }, { - "constant": true, - "inputs": [], - "name": "GOV_HUB_ADDR", - "outputs": [ + "anonymous": false, + "inputs": [ { - "internalType": "address", - "name": "", - "type": "address" + "indexed": false, + "internalType": "string", + "name": "key", + "type": "string" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "value", + "type": "bytes" } ], - "payable": false, - "stateMutability": "view", - "type": "function" + "name": "paramChange", + "type": "event" }, { "constant": true, - "inputs": [], - "name": "INCENTIVIZE_ADDR", - "outputs": [ + "inputs": [ { - "internalType": "address", + "internalType": "uint64", "name": "", - "type": "address" + "type": "uint64" } ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "INIT_CONSENSUS_STATE_BYTES", + "name": "BCLightClientConsensusStates", "outputs": [ + { + "internalType": "uint64", + "name": "preValidatorSetChangeHeight", + "type": "uint64" + }, + { + "internalType": "bytes32", + "name": "appHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "curValidatorSetHash", + "type": "bytes32" + }, { "internalType": "bytes", - "name": "", + "name": "nextValidatorSet", "type": "bytes" } ], @@ -103,7 +113,7 @@ { "constant": true, "inputs": [], - "name": "LIGHT_CLIENT_ADDR", + "name": "GOV_HUB_ADDR", "outputs": [ { "internalType": "address", @@ -118,7 +128,7 @@ { "constant": true, "inputs": [], - "name": "RELAYERHUB_CONTRACT_ADDR", + "name": "INCENTIVIZE_ADDR", "outputs": [ { "internalType": "address", @@ -133,12 +143,12 @@ { "constant": true, "inputs": [], - "name": "RELAYER_REWARD", + "name": "INIT_CONSENSUS_STATE_BYTES", "outputs": [ { - "internalType": "uint256", + "internalType": "bytes", "name": "", - "type": "uint256" + "type": "bytes" } ], "payable": false, @@ -148,12 +158,12 @@ { "constant": true, "inputs": [], - "name": "SLASH_CONTRACT_ADDR", + "name": "INIT_REWARD_FOR_VALIDATOR_SER_CHANGE", "outputs": [ { - "internalType": "address", + "internalType": "uint256", "name": "", - "type": "address" + "type": "uint256" } ], "payable": false, @@ -163,7 +173,7 @@ { "constant": true, "inputs": [], - "name": "SYSTEM_REWARD_ADDR", + "name": "LIGHT_CLIENT_ADDR", "outputs": [ { "internalType": "address", @@ -178,7 +188,7 @@ { "constant": true, "inputs": [], - "name": "TOKEN_HUB_ADDR", + "name": "RELAYERHUB_CONTRACT_ADDR", "outputs": [ { "internalType": "address", @@ -193,12 +203,12 @@ { "constant": true, "inputs": [], - "name": "VALIDATOR_CONTRACT_ADDR", + "name": "RELAYER_REWARD", "outputs": [ { - "internalType": "address", + "internalType": "uint256", "name": "", - "type": "address" + "type": "uint256" } ], "payable": false, @@ -207,34 +217,13 @@ }, { "constant": true, - "inputs": [ - { - "internalType": "uint64", - "name": "", - "type": "uint64" - } - ], - "name": "_BBCLightClientConsensusState", + "inputs": [], + "name": "SLASH_CONTRACT_ADDR", "outputs": [ { - "internalType": "uint64", - "name": "preValidatorSetChangeHeight", - "type": "uint64" - }, - { - "internalType": "bytes32", - "name": "appHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "curValidatorSetHash", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "nextValidatorSet", - "type": "bytes" + "internalType": "address", + "name": "", + "type": "address" } ], "payable": false, @@ -244,12 +233,12 @@ { "constant": true, "inputs": [], - "name": "_alreadyInit", + "name": "SYSTEM_REWARD_ADDR", "outputs": [ { - "internalType": "bool", + "internalType": "address", "name": "", - "type": "bool" + "type": "address" } ], "payable": false, @@ -259,12 +248,12 @@ { "constant": true, "inputs": [], - "name": "_chainID", + "name": "TOKEN_HUB_ADDR", "outputs": [ { - "internalType": "bytes32", + "internalType": "address", "name": "", - "type": "bytes32" + "type": "address" } ], "payable": false, @@ -274,12 +263,12 @@ { "constant": true, "inputs": [], - "name": "_initialHeight", + "name": "VALIDATOR_CONTRACT_ADDR", "outputs": [ { - "internalType": "uint64", + "internalType": "address", "name": "", - "type": "uint64" + "type": "address" } ], "payable": false, @@ -289,12 +278,12 @@ { "constant": true, "inputs": [], - "name": "_latestHeight", + "name": "alreadyInit", "outputs": [ { - "internalType": "uint64", + "internalType": "bool", "name": "", - "type": "uint64" + "type": "bool" } ], "payable": false, @@ -303,19 +292,13 @@ }, { "constant": true, - "inputs": [ - { - "internalType": "uint64", - "name": "", - "type": "uint64" - } - ], - "name": "_submitters", + "inputs": [], + "name": "chainID", "outputs": [ { - "internalType": "address payable", + "internalType": "bytes32", "name": "", - "type": "address" + "type": "bytes32" } ], "payable": false, @@ -388,6 +371,21 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "constant": true, + "inputs": [], + "name": "initialHeight", + "outputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, { "constant": true, "inputs": [ @@ -409,6 +407,21 @@ "stateMutability": "view", "type": "function" }, + { + "constant": true, + "inputs": [], + "name": "latestHeight", + "outputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, { "constant": true, "inputs": [], @@ -424,6 +437,27 @@ "stateMutability": "view", "type": "function" }, + { + "constant": true, + "inputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "name": "submitters", + "outputs": [ + { + "internalType": "address payable", + "name": "", + "type": "address" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, { "constant": false, "inputs": [ @@ -449,5 +483,25 @@ "payable": false, "stateMutability": "nonpayable", "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "string", + "name": "key", + "type": "string" + }, + { + "internalType": "bytes", + "name": "value", + "type": "bytes" + } + ], + "name": "updateParam", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" } ] \ No newline at end of file diff --git a/abi/tokenhub.abi b/abi/tokenhub.abi index 270f1bddb..28ed43b91 100644 --- a/abi/tokenhub.abi +++ b/abi/tokenhub.abi @@ -9,9 +9,9 @@ "anonymous": false, "inputs": [ { - "indexed": false, + "indexed": true, "internalType": "uint256", - "name": "sequence", + "name": "transferOutSequenceBSC", "type": "uint256" }, { @@ -21,7 +21,7 @@ "type": "uint256[]" }, { - "indexed": false, + "indexed": true, "internalType": "address", "name": "contractAddr", "type": "address" @@ -52,9 +52,9 @@ "anonymous": false, "inputs": [ { - "indexed": false, + "indexed": true, "internalType": "uint256", - "name": "sequence", + "name": "transferOutSequenceBSC", "type": "uint256" }, { @@ -77,13 +77,13 @@ "anonymous": false, "inputs": [ { - "indexed": false, + "indexed": true, "internalType": "uint256", - "name": "sequence", + "name": "bindResponseSequence", "type": "uint256" }, { - "indexed": false, + "indexed": true, "internalType": "address", "name": "contractAddr", "type": "address" @@ -102,13 +102,13 @@ "anonymous": false, "inputs": [ { - "indexed": false, + "indexed": true, "internalType": "uint256", - "name": "sequence", + "name": "bindResponseSequence", "type": "uint256" }, { - "indexed": false, + "indexed": true, "internalType": "address", "name": "contractAddr", "type": "address" @@ -127,7 +127,13 @@ "anonymous": false, "inputs": [ { - "indexed": false, + "indexed": true, + "internalType": "uint256", + "name": "bindPackageSequence", + "type": "uint256" + }, + { + "indexed": true, "internalType": "address", "name": "contractAddr", "type": "address" @@ -158,13 +164,13 @@ "anonymous": false, "inputs": [ { - "indexed": false, + "indexed": true, "internalType": "uint256", - "name": "sequence", + "name": "bindResponseSequence", "type": "uint256" }, { - "indexed": false, + "indexed": true, "internalType": "address", "name": "contractAddr", "type": "address" @@ -201,13 +207,13 @@ "anonymous": false, "inputs": [ { - "indexed": false, + "indexed": true, "internalType": "uint256", - "name": "sequence", + "name": "bindResponseSequence", "type": "uint256" }, { - "indexed": false, + "indexed": true, "internalType": "address", "name": "contractAddr", "type": "address" @@ -226,7 +232,13 @@ "anonymous": false, "inputs": [ { - "indexed": false, + "indexed": true, + "internalType": "uint256", + "name": "transferOutSequenceBSC", + "type": "uint256" + }, + { + "indexed": true, "internalType": "address", "name": "contractAddr", "type": "address" @@ -248,12 +260,6 @@ "internalType": "uint16", "name": "reason", "type": "uint16" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "actualBalance", - "type": "uint256" } ], "name": "LogRefundFailureInsufficientBalance", @@ -263,7 +269,13 @@ "anonymous": false, "inputs": [ { - "indexed": false, + "indexed": true, + "internalType": "uint256", + "name": "transferOutSequenceBSC", + "type": "uint256" + }, + { + "indexed": true, "internalType": "address", "name": "contractAddr", "type": "address" @@ -294,7 +306,13 @@ "anonymous": false, "inputs": [ { - "indexed": false, + "indexed": true, + "internalType": "uint256", + "name": "transferOutSequenceBSC", + "type": "uint256" + }, + { + "indexed": true, "internalType": "address", "name": "contractAddr", "type": "address" @@ -325,7 +343,19 @@ "anonymous": false, "inputs": [ { - "indexed": false, + "indexed": true, + "internalType": "uint256", + "name": "refundPackageSequence", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "transferOutSequenceBSC", + "type": "uint256" + }, + { + "indexed": true, "internalType": "address", "name": "contractAddr", "type": "address" @@ -356,11 +386,17 @@ "anonymous": false, "inputs": [ { - "indexed": false, + "indexed": true, "internalType": "uint256", - "name": "sequence", + "name": "transferInFailureSequence", "type": "uint256" }, + { + "indexed": true, + "internalType": "uint64", + "name": "transferOutSequenceBC", + "type": "uint64" + }, { "indexed": false, "internalType": "address", @@ -380,7 +416,7 @@ "type": "uint256" }, { - "indexed": false, + "indexed": true, "internalType": "address", "name": "contractAddr", "type": "address" @@ -390,12 +426,6 @@ "internalType": "bytes32", "name": "bep2TokenSymbol", "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "actualBalance", - "type": "uint256" } ], "name": "LogTransferInFailureInsufficientBalance", @@ -405,11 +435,17 @@ "anonymous": false, "inputs": [ { - "indexed": false, + "indexed": true, "internalType": "uint256", - "name": "sequence", + "name": "transferInFailureSequence", "type": "uint256" }, + { + "indexed": true, + "internalType": "uint64", + "name": "transferOutSequenceBC", + "type": "uint64" + }, { "indexed": false, "internalType": "address", @@ -429,7 +465,7 @@ "type": "uint256" }, { - "indexed": false, + "indexed": true, "internalType": "address", "name": "contractAddr", "type": "address" @@ -439,12 +475,6 @@ "internalType": "bytes32", "name": "bep2TokenSymbol", "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "expireTime", - "type": "uint256" } ], "name": "LogTransferInFailureTimeout", @@ -454,11 +484,17 @@ "anonymous": false, "inputs": [ { - "indexed": false, + "indexed": true, "internalType": "uint256", - "name": "sequence", + "name": "transferInFailureSequence", "type": "uint256" }, + { + "indexed": true, + "internalType": "uint64", + "name": "transferOutSequenceBC", + "type": "uint64" + }, { "indexed": false, "internalType": "address", @@ -478,7 +514,7 @@ "type": "uint256" }, { - "indexed": false, + "indexed": true, "internalType": "address", "name": "contractAddr", "type": "address" @@ -497,11 +533,17 @@ "anonymous": false, "inputs": [ { - "indexed": false, + "indexed": true, "internalType": "uint256", - "name": "sequence", + "name": "transferInFailureSequence", "type": "uint256" }, + { + "indexed": true, + "internalType": "uint64", + "name": "transferOutSequenceBC", + "type": "uint64" + }, { "indexed": false, "internalType": "address", @@ -521,7 +563,7 @@ "type": "uint256" }, { - "indexed": false, + "indexed": true, "internalType": "address", "name": "contractAddr", "type": "address" @@ -540,13 +582,13 @@ "anonymous": false, "inputs": [ { - "indexed": false, + "indexed": true, "internalType": "uint256", - "name": "sequence", + "name": "transferOutSequenceBC", "type": "uint256" }, { - "indexed": false, + "indexed": true, "internalType": "address", "name": "recipient", "type": "address" @@ -558,7 +600,7 @@ "type": "uint256" }, { - "indexed": false, + "indexed": true, "internalType": "address", "name": "contractAddr", "type": "address" @@ -571,9 +613,9 @@ "anonymous": false, "inputs": [ { - "indexed": false, + "indexed": true, "internalType": "uint256", - "name": "sequence", + "name": "transferOutSequenceBSC", "type": "uint256" }, { @@ -595,7 +637,7 @@ "type": "uint256" }, { - "indexed": false, + "indexed": true, "internalType": "address", "name": "contractAddr", "type": "address" @@ -626,7 +668,7 @@ "anonymous": false, "inputs": [ { - "indexed": false, + "indexed": true, "internalType": "address", "name": "contractAddr", "type": "address" @@ -645,7 +687,7 @@ "anonymous": false, "inputs": [ { - "indexed": false, + "indexed": true, "internalType": "address", "name": "contractAddr", "type": "address" @@ -660,6 +702,25 @@ "name": "LogUnexpectedRevertInBEP2E", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "string", + "name": "key", + "type": "string" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "value", + "type": "bytes" + } + ], + "name": "paramChange", + "type": "event" + }, { "constant": true, "inputs": [], @@ -738,12 +799,12 @@ { "constant": true, "inputs": [], - "name": "LIGHT_CLIENT_ADDR", + "name": "INIT_DENOMINATOR_FOR_HEADER_RELAYER", "outputs": [ { - "internalType": "address", + "internalType": "uint256", "name": "", - "type": "address" + "type": "uint256" } ], "payable": false, @@ -753,12 +814,12 @@ { "constant": true, "inputs": [], - "name": "MAXIMUM_BEP2E_SYMBOL_LEN", + "name": "INIT_MINIMUM_RELAY_FEE", "outputs": [ { - "internalType": "uint8", + "internalType": "uint256", "name": "", - "type": "uint8" + "type": "uint256" } ], "payable": false, @@ -768,7 +829,7 @@ { "constant": true, "inputs": [], - "name": "MAX_BEP2_TOTAL_SUPPLY", + "name": "INIT_MOLECULE_FOR_HEADER_RELAYER", "outputs": [ { "internalType": "uint256", @@ -783,7 +844,7 @@ { "constant": true, "inputs": [], - "name": "MAX_GAS_FOR_CALLING_BEP2E", + "name": "INIT_REFUND_RELAY_REWARD", "outputs": [ { "internalType": "uint256", @@ -798,12 +859,12 @@ { "constant": true, "inputs": [], - "name": "MINIMUM_BEP2E_SYMBOL_LEN", + "name": "LIGHT_CLIENT_ADDR", "outputs": [ { - "internalType": "uint8", + "internalType": "address", "name": "", - "type": "uint8" + "type": "address" } ], "payable": false, @@ -813,7 +874,7 @@ { "constant": true, "inputs": [], - "name": "REFUND_CHANNEL_ID", + "name": "MAXIMUM_BEP2E_SYMBOL_LEN", "outputs": [ { "internalType": "uint8", @@ -828,22 +889,7 @@ { "constant": true, "inputs": [], - "name": "RELAYERHUB_CONTRACT_ADDR", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "RELAYER_REWARD", + "name": "MAX_BEP2_TOTAL_SUPPLY", "outputs": [ { "internalType": "uint256", @@ -858,27 +904,12 @@ { "constant": true, "inputs": [], - "name": "SLASH_CONTRACT_ADDR", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "SYSTEM_REWARD_ADDR", + "name": "MAX_GAS_FOR_CALLING_BEP2E", "outputs": [ { - "internalType": "address", + "internalType": "uint256", "name": "", - "type": "address" + "type": "uint256" } ], "payable": false, @@ -888,12 +919,12 @@ { "constant": true, "inputs": [], - "name": "TOKEN_HUB_ADDR", + "name": "MINIMUM_BEP2E_SYMBOL_LEN", "outputs": [ { - "internalType": "address", + "internalType": "uint8", "name": "", - "type": "address" + "type": "uint8" } ], "payable": false, @@ -903,7 +934,7 @@ { "constant": true, "inputs": [], - "name": "TRANSFER_IN_CHANNEL_ID", + "name": "REFUND_CHANNEL_ID", "outputs": [ { "internalType": "uint8", @@ -918,28 +949,7 @@ { "constant": true, "inputs": [], - "name": "VALIDATOR_CONTRACT_ADDR", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "_bep2SymbolToContractAddr", + "name": "RELAYERHUB_CONTRACT_ADDR", "outputs": [ { "internalType": "address", @@ -953,14 +963,8 @@ }, { "constant": true, - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "_bep2eContractDecimals", + "inputs": [], + "name": "RELAYER_REWARD", "outputs": [ { "internalType": "uint256", @@ -975,63 +979,12 @@ { "constant": true, "inputs": [], - "name": "_bindChannelSequence", - "outputs": [ - { - "internalType": "uint64", - "name": "", - "type": "uint64" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "_bindPackageRecord", + "name": "SLASH_CONTRACT_ADDR", "outputs": [ - { - "internalType": "bytes32", - "name": "bep2TokenSymbol", - "type": "bytes32" - }, { "internalType": "address", - "name": "contractAddr", + "name": "", "type": "address" - }, - { - "internalType": "uint256", - "name": "totalSupply", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "peggyAmount", - "type": "uint256" - }, - { - "internalType": "uint8", - "name": "bep2eDecimals", - "type": "uint8" - }, - { - "internalType": "uint64", - "name": "expireTime", - "type": "uint64" - }, - { - "internalType": "uint256", - "name": "relayFee", - "type": "uint256" } ], "payable": false, @@ -1041,35 +994,14 @@ { "constant": true, "inputs": [], - "name": "_bindResponseChannelSequence", + "name": "SYSTEM_REWARD_ADDR", "outputs": [ - { - "internalType": "uint64", - "name": "", - "type": "uint64" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], - "name": "_contractAddrToBEP2Symbol", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], "payable": false, "stateMutability": "view", "type": "function" @@ -1077,12 +1009,12 @@ { "constant": true, "inputs": [], - "name": "_refundChannelSequence", + "name": "TOKEN_HUB_ADDR", "outputs": [ { - "internalType": "uint64", + "internalType": "address", "name": "", - "type": "uint64" + "type": "address" } ], "payable": false, @@ -1092,12 +1024,12 @@ { "constant": true, "inputs": [], - "name": "_transferInChannelSequence", + "name": "TRANSFER_IN_CHANNEL_ID", "outputs": [ { - "internalType": "uint64", + "internalType": "uint8", "name": "", - "type": "uint64" + "type": "uint8" } ], "payable": false, @@ -1107,12 +1039,12 @@ { "constant": true, "inputs": [], - "name": "_transferInFailureChannelSequence", + "name": "VALIDATOR_CONTRACT_ADDR", "outputs": [ { - "internalType": "uint64", + "internalType": "address", "name": "", - "type": "uint64" + "type": "address" } ], "payable": false, @@ -1122,12 +1054,12 @@ { "constant": true, "inputs": [], - "name": "_transferOutChannelSequence", + "name": "alreadyInit", "outputs": [ { - "internalType": "uint64", + "internalType": "bool", "name": "", - "type": "uint64" + "type": "bool" } ], "payable": false, @@ -1210,79 +1142,108 @@ "constant": true, "inputs": [ { - "internalType": "string", - "name": "symbol", - "type": "string" + "internalType": "address", + "name": "", + "type": "address" } ], - "name": "bep2TokenSymbolConvert", + "name": "bep2eContractDecimals", "outputs": [ { - "internalType": "bytes32", + "internalType": "uint256", "name": "", - "type": "bytes32" + "type": "uint256" } ], "payable": false, - "stateMutability": "pure", + "stateMutability": "view", "type": "function" }, { "constant": true, - "inputs": [ - { - "internalType": "string", - "name": "bep2eSymbol", - "type": "string" - }, - { - "internalType": "bytes32", - "name": "bep2TokenSymbol", - "type": "bytes32" - } - ], - "name": "checkSymbol", + "inputs": [], + "name": "bindChannelSequence", "outputs": [ { - "internalType": "bool", + "internalType": "uint64", "name": "", - "type": "bool" + "type": "uint64" } ], "payable": false, - "stateMutability": "pure", + "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "name": "bindPackageRecord", + "outputs": [ + { + "internalType": "bytes32", + "name": "bep2TokenSymbol", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "contractAddr", + "type": "address" + }, { "internalType": "uint256", - "name": "amount", + "name": "totalSupply", "type": "uint256" }, { "internalType": "uint256", - "name": "bep2eTokenDecimals", + "name": "peggyAmount", + "type": "uint256" + }, + { + "internalType": "uint8", + "name": "bep2eDecimals", + "type": "uint8" + }, + { + "internalType": "uint64", + "name": "expireTime", + "type": "uint64" + }, + { + "internalType": "uint256", + "name": "relayFee", "type": "uint256" } ], - "name": "convertToBep2Amount", + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "bindResponseChannelSequence", "outputs": [ { - "internalType": "uint256", + "internalType": "uint64", "name": "", - "type": "uint256" + "type": "uint64" } ], "payable": false, - "stateMutability": "pure", + "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], - "name": "denominaroeHeaderRelayerSystemReward", + "name": "denominatorForHeaderRelayer", "outputs": [ { "internalType": "uint256", @@ -1315,6 +1276,48 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "constant": true, + "inputs": [ + { + "internalType": "address", + "name": "contractAddr", + "type": "address" + } + ], + "name": "getBoundBep2Symbol", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "internalType": "string", + "name": "bep2Symbol", + "type": "string" + } + ], + "name": "getBoundContract", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, { "constant": false, "inputs": [ @@ -1423,6 +1426,15 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "constant": false, + "inputs": [], + "name": "init", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, { "constant": true, "inputs": [], @@ -1441,7 +1453,7 @@ { "constant": true, "inputs": [], - "name": "moleculeHeaderRelayerSystemReward", + "name": "moleculeForHeaderRelayer", "outputs": [ { "internalType": "uint256", @@ -1453,6 +1465,21 @@ "stateMutability": "view", "type": "function" }, + { + "constant": true, + "inputs": [], + "name": "refundChannelSequence", + "outputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, { "constant": true, "inputs": [], @@ -1494,6 +1521,36 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "constant": true, + "inputs": [], + "name": "transferInChannelSequence", + "outputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "transferInFailureChannelSequence", + "outputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, { "constant": false, "inputs": [ @@ -1534,5 +1591,40 @@ "payable": true, "stateMutability": "payable", "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "transferOutChannelSequence", + "outputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "internalType": "string", + "name": "key", + "type": "string" + }, + { + "internalType": "bytes", + "name": "value", + "type": "bytes" + } + ], + "name": "updateParam", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" } ] \ No newline at end of file