-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Youngjoon Lee
committed
Jun 16, 2021
1 parent
6003855
commit 2901ef0
Showing
5 changed files
with
142 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package cmd | ||
|
||
import ( | ||
wasmcli "github.com/CosmWasm/wasmd/x/wasm/client/cli" | ||
"github.com/cosmos/cosmos-sdk/client" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
func AddGenesisWasmMsgCmd(defaultNodeHome string) *cobra.Command { | ||
txCmd := &cobra.Command{ | ||
Use: "add-wasm-genesis-message", | ||
Short: "Wasm genesis subcommands", | ||
DisableFlagParsing: true, | ||
SuggestionsMinimumDistance: 2, | ||
RunE: client.ValidateCmd, | ||
} | ||
genesisIO := wasmcli.NewDefaultGenesisIO() | ||
txCmd.AddCommand( | ||
wasmcli.GenesisStoreCodeCmd(defaultNodeHome, genesisIO), | ||
wasmcli.GenesisInstantiateContractCmd(defaultNodeHome, genesisIO), | ||
wasmcli.GenesisExecuteContractCmd(defaultNodeHome, genesisIO), | ||
wasmcli.GenesisListContractsCmd(defaultNodeHome, genesisIO), | ||
wasmcli.GenesisListCodesCmd(defaultNodeHome, genesisIO), | ||
) | ||
return txCmd | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters