Skip to content

Commit

Permalink
chore: refine codes (#1007)
Browse files Browse the repository at this point in the history
  • Loading branch information
j75689 authored Jan 26, 2024
1 parent 5975694 commit a3543ab
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
6 changes: 6 additions & 0 deletions plugins/migrate/client/cli/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
15 changes: 12 additions & 3 deletions plugins/recover/client/cli/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit a3543ab

Please sign in to comment.