github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/libs/ibc-go/modules/apps/transfer/client/cli/cli.go (about) 1 package cli 2 3 import ( 4 "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/client" 5 "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/codec" 6 interfacetypes "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/codec/types" 7 "github.com/spf13/cobra" 8 ) 9 10 // GetQueryCmd returns the query commands for IBC connections 11 func GetQueryCmd(cdc *codec.CodecProxy, reg interfacetypes.InterfaceRegistry) *cobra.Command { 12 queryCmd := &cobra.Command{ 13 Use: "ibc-transfer", 14 Short: "IBC fungible token transfer query subcommands", 15 DisableFlagParsing: true, 16 SuggestionsMinimumDistance: 2, 17 } 18 19 queryCmd.AddCommand( 20 GetCmdQueryDenomTrace(cdc, reg), 21 GetCmdQueryDenomTraces(cdc, reg), 22 GetCmdParams(cdc, reg), 23 GetCmdQueryEscrowAddress(cdc, reg), 24 ) 25 26 return queryCmd 27 } 28 29 // NewTxCmd returns the transaction commands for IBC fungible token transfer 30 func NewTxCmd(cdc *codec.CodecProxy, reg interfacetypes.InterfaceRegistry) *cobra.Command { 31 txCmd := &cobra.Command{ 32 Use: "ibc-transfer", 33 Short: "IBC fungible token transfer transaction subcommands", 34 DisableFlagParsing: true, 35 SuggestionsMinimumDistance: 2, 36 RunE: client.ValidateCmd, 37 } 38 39 txCmd.AddCommand( 40 NewTransferTxCmd(cdc, reg), 41 ) 42 43 return txCmd 44 }