From a3543ab4b8e4af9fc825333da68af1ada9d5777b Mon Sep 17 00:00:00 2001 From: dylanhuang Date: Fri, 26 Jan 2024 14:17:16 +0800 Subject: [PATCH] chore: refine codes (#1007) --- plugins/migrate/client/cli/commands.go | 6 ++++++ plugins/recover/client/cli/commands.go | 15 ++++++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/plugins/migrate/client/cli/commands.go b/plugins/migrate/client/cli/commands.go index 2e9ed3057..0b98caf12 100644 --- a/plugins/migrate/client/cli/commands.go +++ b/plugins/migrate/client/cli/commands.go @@ -10,6 +10,12 @@ func AddCommands(cmd *cobra.Command, cdc *codec.Codec) { ownerShipCmd := &cobra.Command{ Use: "validator-ownership", Short: "validator-ownership commands", + Long: `validator-ownership commands is a tool to help BSC validator operator create a mapping signature to New Validator on BSC + # For example: + bnbcli validator-ownership sign-validator-ownership \ + --bsc-operator-address 0x45737bAf95D995a963ab3a7c9AC66fC7A63ad76E \ + --from bsc-operator \ + --chain-id Binance-Chain-Tigris`, } ownerShipCmd.AddCommand( diff --git a/plugins/recover/client/cli/commands.go b/plugins/recover/client/cli/commands.go index 73be057dd..931b80ef0 100644 --- a/plugins/recover/client/cli/commands.go +++ b/plugins/recover/client/cli/commands.go @@ -7,16 +7,25 @@ import ( ) func AddCommands(cmd *cobra.Command, cdc *codec.Codec) { - airdropCmd := &cobra.Command{ + recoverCmd := &cobra.Command{ Use: "recover", Short: "recover commands", + Long: `recover commands is a tool for users to sign a request to recover their tokens from Binance Chain to Binance Smart Chain + # For example: + bnbcli recover sign-token-recover-request \ + --amount 19999999000000000 \ + --token-symbol BNB \ + --recipient 0x5b38da6a701c568545dcfcb03fcb875f56beddc4 \ + --from user1 \ + --chain-id Binance-Chain-Tigris + `, } - airdropCmd.AddCommand( + recoverCmd.AddCommand( client.PostCommands( SignTokenRecoverRequestCmd(cdc), )..., ) - cmd.AddCommand(airdropCmd) + cmd.AddCommand(recoverCmd) }