Some checks failed
CodeQL / Analyze (push) Waiting to run
golangci-lint / lint (push) Waiting to run
Tests / Code Coverage / build (amd64) (push) Waiting to run
Tests / Code Coverage / build (arm64) (push) Waiting to run
Tests / Code Coverage / unit-tests (map[additional-args:-tags="test_e2e" name:e2e path:./e2e]) (push) Waiting to run
Tests / Code Coverage / unit-tests (map[name:08-wasm path:./modules/light-clients/08-wasm]) (push) Waiting to run
Tests / Code Coverage / unit-tests (map[name:ibc-go path:.]) (push) Waiting to run
Docker Build & Push Simapp (main) / docker-build (push) Has been cancelled
41 lines
922 B
Go
41 lines
922 B
Go
package cli
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
|
)
|
|
|
|
// GetQueryCmd returns the query commands for the ICA host submodule
|
|
func GetQueryCmd() *cobra.Command {
|
|
queryCmd := &cobra.Command{
|
|
Use: "host",
|
|
Short: "IBC interchain accounts host query subcommands",
|
|
DisableFlagParsing: true,
|
|
SuggestionsMinimumDistance: 2,
|
|
}
|
|
|
|
queryCmd.AddCommand(
|
|
GetCmdParams(),
|
|
GetCmdPacketEvents(),
|
|
)
|
|
|
|
return queryCmd
|
|
}
|
|
|
|
// NewTxCmd creates and returns the tx command
|
|
func NewTxCmd() *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "host",
|
|
Short: "IBC interchain accounts host transaction subcommands",
|
|
DisableFlagParsing: true,
|
|
SuggestionsMinimumDistance: 2,
|
|
RunE: client.ValidateCmd,
|
|
}
|
|
|
|
cmd.AddCommand(
|
|
generatePacketDataCmd(),
|
|
)
|
|
|
|
return cmd
|
|
}
|