github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/libs/ibc-go/modules/apps/29-fee/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  func GetQueryCmd(cdc *codec.CodecProxy, reg interfacetypes.InterfaceRegistry) *cobra.Command {
    11  	queryCmd := &cobra.Command{
    12  		Use:                        "ibc-fee",
    13  		Short:                      "IBC relayer incentivization query subcommands",
    14  		DisableFlagParsing:         true,
    15  		SuggestionsMinimumDistance: 2,
    16  	}
    17  
    18  	queryCmd.AddCommand(
    19  		GetCmdIncentivizedPacket(cdc, reg),
    20  		GetCmdIncentivizedPackets(cdc, reg),
    21  		GetCmdTotalRecvFees(cdc, reg),
    22  		GetCmdTotalAckFees(cdc, reg),
    23  		GetCmdTotalTimeoutFees(cdc, reg),
    24  		GetCmdIncentivizedPacketsForChannel(cdc, reg),
    25  		GetCmdPayee(cdc, reg),
    26  		GetCmdCounterpartyPayee(cdc, reg),
    27  		GetCmdFeeEnabledChannel(cdc, reg),
    28  		GetCmdFeeEnabledChannels(cdc, reg),
    29  	)
    30  
    31  	return queryCmd
    32  }
    33  
    34  // NewTxCmd returns the transaction commands for 29-fee
    35  func NewTxCmd(cdc *codec.CodecProxy, reg interfacetypes.InterfaceRegistry) *cobra.Command {
    36  	txCmd := &cobra.Command{
    37  		Use:                        "ibc-fee",
    38  		Short:                      "IBC relayer incentivization transaction subcommands",
    39  		DisableFlagParsing:         true,
    40  		SuggestionsMinimumDistance: 2,
    41  		RunE:                       client.ValidateCmd,
    42  	}
    43  
    44  	txCmd.AddCommand(
    45  		NewRegisterPayeeCmd(cdc, reg),
    46  		NewRegisterCounterpartyPayeeCmd(cdc, reg),
    47  		NewPayPacketFeeAsyncTxCmd(cdc, reg),
    48  	)
    49  
    50  	return txCmd
    51  }