Skip to content

Commit

Permalink
feat(uniond): added snapshot subcommand (#716)
Browse files Browse the repository at this point in the history
* feat: fully vendor cosmos-sdk

* chore: go vendor

* feat(uniond): added snapshots subcommand

* fix: do not force vendor all of cosmos-sdk

* chore: go vendor
  • Loading branch information
PoisonPhang authored Sep 18, 2023
1 parent 45e1e07 commit 056fd21
Show file tree
Hide file tree
Showing 9 changed files with 434 additions and 4 deletions.
11 changes: 7 additions & 4 deletions uniond/cmd/uniond/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/keys"
"github.com/cosmos/cosmos-sdk/client/rpc"
"github.com/cosmos/cosmos-sdk/client/snapshot"
"github.com/cosmos/cosmos-sdk/server"
serverconfig "github.com/cosmos/cosmos-sdk/server/config"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
Expand Down Expand Up @@ -108,6 +109,11 @@ func initRootCmd(
initSDKConfig()

gentxModule := app.ModuleBasics[genutiltypes.ModuleName].(genutil.AppModuleBasic)

a := appCreator{
encodingConfig,
}

rootCmd.AddCommand(
genutilcli.InitCmd(app.ModuleBasics, app.DefaultNodeHome),
genutilcli.CollectGenTxsCmd(banktypes.GenesisBalancesIterator{}, app.DefaultNodeHome, gentxModule.GenTxValidator),
Expand All @@ -123,13 +129,10 @@ func initRootCmd(
tmcli.NewCompletionCmd(rootCmd, true),
debug.Cmd(),
config.Cmd(),
snapshot.Cmd(a.newApp),
// this line is used by starport scaffolding # root/commands
)

a := appCreator{
encodingConfig,
}

// add server commands
server.AddCommands(
rootCmd,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

125 changes: 125 additions & 0 deletions uniond/vendor/github.com/cosmos/cosmos-sdk/client/snapshot/dump.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 056fd21

Please sign in to comment.