This commit is contained in:
0xmuralik
2022-10-17 16:33:31 +05:30
parent 74ed0f7e0f
commit 482d597318
40 changed files with 636 additions and 628 deletions
+3 -3
View File
@@ -24,7 +24,7 @@ func GetQueryCmd() *cobra.Command {
bondQueryCmd.AddCommand(
GetQueryParamsCmd(),
GetQueryBondLists(),
GetBondByIdCmd(),
GetBondByIDCmd(),
GetBondListByOwnerCmd(),
GetBondModuleBalanceCmd(),
)
@@ -99,7 +99,7 @@ $ %s query %s list
}
// GetBondByIdCmd implements the bond info by id query command.
func GetBondByIdCmd() *cobra.Command {
func GetBondByIDCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "get [bond Id]",
Short: "Get bond.",
@@ -122,7 +122,7 @@ $ %s query bond get {BOND ID}
id := args[0]
res, err := queryClient.GetBondById(cmd.Context(), &types.QueryGetBondByIdRequest{Id: id})
res, err := queryClient.GetBondByID(cmd.Context(), &types.QueryGetBondByIDRequest{Id: id})
if err != nil {
return err
}
+6 -6
View File
@@ -65,13 +65,13 @@ func RefillBondCmd() *cobra.Command {
if err != nil {
return err
}
bondId := args[0]
bondID := args[0]
coin, err := sdk.ParseCoinNormalized(args[1])
if err != nil {
return err
}
msg := types.NewMsgRefillBond(bondId, coin, clientCtx.GetFromAddress())
msg := types.NewMsgRefillBond(bondID, coin, clientCtx.GetFromAddress())
return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg)
},
}
@@ -91,13 +91,13 @@ func WithdrawBondCmd() *cobra.Command {
if err != nil {
return err
}
bondId := args[0]
bondID := args[0]
coin, err := sdk.ParseCoinNormalized(args[1])
if err != nil {
return err
}
msg := types.NewMsgWithdrawBond(bondId, coin, clientCtx.GetFromAddress())
msg := types.NewMsgWithdrawBond(bondID, coin, clientCtx.GetFromAddress())
return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg)
},
}
@@ -117,8 +117,8 @@ func CancelBondCmd() *cobra.Command {
if err != nil {
return err
}
bondId := args[0]
msg := types.NewMsgCancelBond(bondId, clientCtx.GetFromAddress())
bondID := args[0]
msg := types.NewMsgCancelBond(bondID, clientCtx.GetFromAddress())
return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg)
},
}