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
43 lines
1 KiB
Go
43 lines
1 KiB
Go
package cli
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
"git.cw.tr/mukan-network/mukan-sdk/client"
|
|
)
|
|
|
|
// GetQueryCmd returns the query commands for IBC channels
|
|
func GetQueryCmd() *cobra.Command {
|
|
queryCmd := &cobra.Command{
|
|
Use: "ibc-wasm",
|
|
Short: "IBC wasm manager module query subcommands",
|
|
DisableFlagParsing: true,
|
|
SuggestionsMinimumDistance: 2,
|
|
RunE: client.ValidateCmd,
|
|
}
|
|
|
|
queryCmd.AddCommand(
|
|
getCmdCode(),
|
|
getCmdChecksums(),
|
|
)
|
|
|
|
return queryCmd
|
|
}
|
|
|
|
// NewTxCmd returns a CLI command handler for all x/ibc channel transaction commands.
|
|
func NewTxCmd() *cobra.Command {
|
|
txCmd := &cobra.Command{
|
|
Use: "ibc-wasm",
|
|
Short: "IBC wasm manager module transaction subcommands",
|
|
DisableFlagParsing: true,
|
|
SuggestionsMinimumDistance: 2,
|
|
RunE: client.ValidateCmd,
|
|
}
|
|
|
|
txCmd.AddCommand(
|
|
newSubmitStoreCodeProposalCmd(),
|
|
newMigrateContractCmd(),
|
|
)
|
|
|
|
return txCmd
|
|
}
|