* fix queries * proto stuff * rebuild proto-tools off old makefile * rm buf-stamp * fix godoc * rename and fix implementation of UnreceivedAcks * lint * Update proto/ibc/channel/query.proto Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com> * Update x/ibc/04-channel/client/cli/query.go Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com> Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com> Co-authored-by: Jack Zampolin <jack.zampolin@gmail.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
57 lines
1.4 KiB
Go
57 lines
1.4 KiB
Go
package cli
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/cosmos/cosmos-sdk/client"
|
|
"github.com/cosmos/cosmos-sdk/x/ibc/04-channel/types"
|
|
)
|
|
|
|
// GetQueryCmd returns the query commands for IBC channels
|
|
func GetQueryCmd() *cobra.Command {
|
|
queryCmd := &cobra.Command{
|
|
Use: types.SubModuleName,
|
|
Short: "IBC channel query subcommands",
|
|
DisableFlagParsing: true,
|
|
SuggestionsMinimumDistance: 2,
|
|
RunE: client.ValidateCmd,
|
|
}
|
|
|
|
queryCmd.AddCommand(
|
|
GetCmdQueryChannels(),
|
|
GetCmdQueryChannel(),
|
|
GetCmdQueryConnectionChannels(),
|
|
GetCmdQueryChannelClientState(),
|
|
GetCmdQueryPacketCommitment(),
|
|
GetCmdQueryPacketCommitments(),
|
|
GetCmdQueryUnreceivedPackets(),
|
|
GetCmdQueryUnrelayedAcks(),
|
|
GetCmdQueryNextSequenceReceive(),
|
|
// TODO: next sequence Send ?
|
|
)
|
|
|
|
return queryCmd
|
|
}
|
|
|
|
// NewTxCmd returns a CLI command handler for all x/ibc channel transaction commands.
|
|
func NewTxCmd() *cobra.Command {
|
|
txCmd := &cobra.Command{
|
|
Use: types.SubModuleName,
|
|
Short: "IBC channel transaction subcommands",
|
|
DisableFlagParsing: true,
|
|
SuggestionsMinimumDistance: 2,
|
|
RunE: client.ValidateCmd,
|
|
}
|
|
|
|
txCmd.AddCommand(
|
|
NewChannelOpenInitCmd(),
|
|
NewChannelOpenTryCmd(),
|
|
NewChannelOpenAckCmd(),
|
|
NewChannelOpenConfirmCmd(),
|
|
NewChannelCloseInitCmd(),
|
|
NewChannelCloseConfirmCmd(),
|
|
)
|
|
|
|
return txCmd
|
|
}
|