Skip to content

Commit

Permalink
Upgrade CLI methods (#130)
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Kanefsky <[email protected]>
  • Loading branch information
agouin and boojamya authored Mar 17, 2023
1 parent 4584d9a commit 3512dd8
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ ictest-paramauthority:

ictest-paramauthorityChainUpgrade:
cd interchaintest && go test -race -v -run ^TestNobleChainUpgrade$$ .


###############################################################################
### Build Image ###
Expand Down
2 changes: 2 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
"github.com/spf13/cast"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
paramauthorityupgradecli "github.com/strangelove-ventures/paramauthority/x/upgrade/client/cli"
tmcli "github.com/tendermint/tendermint/libs/cli"
"github.com/tendermint/tendermint/libs/log"
dbm "github.com/tendermint/tm-db"
Expand Down Expand Up @@ -291,6 +292,7 @@ func txCommand(moduleBasics module.BasicManager) *cobra.Command {
authcmd.GetBroadcastCommand(),
authcmd.GetEncodeCommand(),
authcmd.GetDecodeCommand(),
paramauthorityupgradecli.GetTxCmd(),
)

moduleBasics.AddTxCommands(cmd)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ require (
github.com/spf13/cobra v1.6.1
github.com/spf13/pflag v1.0.5
github.com/strangelove-ventures/packet-forward-middleware/v3 v3.1.4
github.com/strangelove-ventures/paramauthority v0.1.1-0.20230120184403-39a8bf5f845d
github.com/strangelove-ventures/paramauthority v0.1.1
github.com/stretchr/testify v1.8.1
github.com/tendermint/tendermint v0.34.26
github.com/tendermint/tm-db v0.6.7
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -822,8 +822,8 @@ github.com/spf13/viper v1.14.0/go.mod h1:WT//axPky3FdvXHzGw33dNdXXXfFQqmEalje+eg
github.com/status-im/keycard-go v0.0.0-20190316090335-8537d3370df4/go.mod h1:RZLeN1LMWmRsyYjvAu+I6Dm9QmlDaIIt+Y+4Kd7Tp+Q=
github.com/strangelove-ventures/packet-forward-middleware/v3 v3.1.4 h1:YCm9tIMOwbjGL6U0ygIgh5+1FEiofgN3Y/D7Ia0BB18=
github.com/strangelove-ventures/packet-forward-middleware/v3 v3.1.4/go.mod h1:ncgsf5rykh36HkM16BNcKKx1XzVRdWXt+4pph1syDHE=
github.com/strangelove-ventures/paramauthority v0.1.1-0.20230120184403-39a8bf5f845d h1:jH4xK8y5uxG8fV2Onc1/fcBnsfDpGKHcb0g13tftuJk=
github.com/strangelove-ventures/paramauthority v0.1.1-0.20230120184403-39a8bf5f845d/go.mod h1:PHq/b8q6YfBDJpo34RlnWw+cL5m5Bids2prBUWzsoEM=
github.com/strangelove-ventures/paramauthority v0.1.1 h1:rvAnF+dTRMG+rHmD9LL8OWbxu1uFgo0Zi+JZ6cQ+I60=
github.com/strangelove-ventures/paramauthority v0.1.1/go.mod h1:PHq/b8q6YfBDJpo34RlnWw+cL5m5Bids2prBUWzsoEM=
github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw=
github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw=
github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI=
Expand Down
2 changes: 1 addition & 1 deletion interchaintest/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/icza/dyno v0.0.0-20220812133438-f0b6f8a18845
github.com/strangelove-ventures/interchaintest/v3 v3.0.0-20230131175816-13aaa823596e
github.com/strangelove-ventures/noble v0.0.0-00010101000000-000000000000
github.com/strangelove-ventures/paramauthority v0.1.1-0.20230120184403-39a8bf5f845d
github.com/strangelove-ventures/paramauthority v0.1.1
github.com/stretchr/testify v1.8.1
go.uber.org/zap v1.23.0
)
Expand Down
4 changes: 2 additions & 2 deletions interchaintest/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -929,8 +929,8 @@ github.com/strangelove-ventures/go-subkey v1.0.7 h1:cOP/Lajg3uxV/tvspu0m6+0Cu+DJ
github.com/strangelove-ventures/go-subkey v1.0.7/go.mod h1:E34izOIEm+sZ1YmYawYRquqBQWeZBjVB4pF7bMuhc1c=
github.com/strangelove-ventures/interchaintest/v3 v3.0.0-20230131175816-13aaa823596e h1:Y5zk+jpOuQ+ZgsEuypR+3VbEDmK39ioQlWhgsazhioo=
github.com/strangelove-ventures/interchaintest/v3 v3.0.0-20230131175816-13aaa823596e/go.mod h1:+OxlR7bg1H9THOEe7Wtkb2R2eu6FEUEPLLz0enHfJeE=
github.com/strangelove-ventures/paramauthority v0.1.1-0.20230120184403-39a8bf5f845d h1:jH4xK8y5uxG8fV2Onc1/fcBnsfDpGKHcb0g13tftuJk=
github.com/strangelove-ventures/paramauthority v0.1.1-0.20230120184403-39a8bf5f845d/go.mod h1:PHq/b8q6YfBDJpo34RlnWw+cL5m5Bids2prBUWzsoEM=
github.com/strangelove-ventures/paramauthority v0.1.1 h1:rvAnF+dTRMG+rHmD9LL8OWbxu1uFgo0Zi+JZ6cQ+I60=
github.com/strangelove-ventures/paramauthority v0.1.1/go.mod h1:PHq/b8q6YfBDJpo34RlnWw+cL5m5Bids2prBUWzsoEM=
github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw=
github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw=
github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI=
Expand Down
1 change: 1 addition & 0 deletions interchaintest/upgradeauthority_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ func TestNobleChainUpgrade(t *testing.T) {
require.NoError(t, err, "error stopping node(s)")

// upgrade version and repo on all nodes
// TODO: fix local testing
noble.UpgradeVersion(ctx, client, version)

// start all nodes back up.
Expand Down

0 comments on commit 3512dd8

Please sign in to comment.