Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(x/staking): add msg server tests for cons key rotation #18327

Closed
wants to merge 73 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
21e69ba
refactor(bank): add go module (#18279)
tac0turtle Oct 27, 2023
7bef022
refactor(mint): new go module (#18283)
tac0turtle Oct 28, 2023
7ad7f47
fix(x/group/internal/orm): use proper map type to string not interfac…
odeke-em Oct 28, 2023
32151e5
perf(x/group/internal/orm): move expensive prefix.NewStore calls to c…
odeke-em Oct 28, 2023
a378303
fix(snapshot): grant execution permissions to the snapshot dir for th…
luchenqun Oct 29, 2023
6af7f30
feat(x/counter): add module protos (#18291)
tac0turtle Oct 29, 2023
cce3c19
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/add-msg-s…
atheeshp Oct 30, 2023
4a63bde
conflicts
atheeshp Oct 30, 2023
798d6d2
build(deps): Bump bufbuild/buf-setup-action from 1.27.1 to 1.27.2 (#1…
dependabot[bot] Oct 30, 2023
661d201
remove unncessary comma from value of proposal_messages event (#18300)
Vritra4 Oct 30, 2023
0e94d74
fix(sim): set FlagSigverifyTxValue to newApp for TestAppSimulationAft…
luchenqun Oct 30, 2023
393de26
chore: update starshp-action version (#18301)
Anmol1696 Oct 30, 2023
4350e5b
review changes
atheeshp Oct 30, 2023
bbcb932
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/add-msg-s…
atheeshp Oct 30, 2023
d82503e
refactor(x/genutil,server): add export functions to x/gentutil (#18303)
julienrbrt Oct 30, 2023
44db964
test: add counter module (#18272)
tac0turtle Oct 30, 2023
15ccdcc
ci: debug golangci-lint for cosmovisor (#18304)
julienrbrt Oct 30, 2023
e6a4c78
refactor: remove usage of global basedenom (#18268)
tac0turtle Oct 30, 2023
5dae7d8
test(cosmovisor): improve TestParseUpgradeInfoFile with substring ass…
odeke-em Oct 30, 2023
88b7666
feat(version): Add extraInfo to version cmd (#18063)
samricotta Oct 30, 2023
7b2b9bd
fix tests
atheeshp Oct 31, 2023
6e8eb7f
review changes
atheeshp Oct 31, 2023
5c456e6
build(deps): Bump github.com/cosmos/ledger-cosmos-go from 0.13.2 to 0…
dependabot[bot] Oct 31, 2023
04f1cbe
Merge branch 'main' into ap/add-msg-srvr-code
atheeshp Oct 31, 2023
55496f9
Merge branch 'ap/add-msg-srvr-code' of github.com:cosmos/cosmos-sdk i…
atheeshp Oct 31, 2023
535d00f
review changes
atheeshp Oct 31, 2023
46ae281
review changes
atheeshp Oct 31, 2023
12274e9
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/add-msg-s…
atheeshp Oct 31, 2023
b19d163
Merge branch 'ap/add-msg-srvr-code' of github.com:cosmos/cosmos-sdk i…
atheeshp Oct 31, 2023
16c2abf
chore(upgrade): remove extra gov deps (#18316)
tac0turtle Oct 31, 2023
f03b396
chore: remove mint imports in the sdk (#18307)
tac0turtle Oct 31, 2023
e463855
go mod
atheeshp Oct 31, 2023
552e683
go mod
atheeshp Oct 31, 2023
2ea32bc
fix go mod
atheeshp Oct 31, 2023
fb3363f
Merge branch 'main' of github.com:cosmos/cosmos-sdk into ap/add-msg-s…
atheeshp Oct 31, 2023
9976530
go mod
atheeshp Oct 31, 2023
f0113eb
Merge branch 'ap/add-msg-srvr-code' of github.com:cosmos/cosmos-sdk i…
atheeshp Nov 1, 2023
0b00958
add `NewMsgRotateConsPubKey` helper
atheeshp Nov 1, 2023
2e6874f
added helper iteration methods
atheeshp Nov 1, 2023
a30ae89
add tests
atheeshp Nov 1, 2023
f06dd17
refactor(bank): add go module (#18279)
tac0turtle Oct 27, 2023
dfbb529
refactor(mint): new go module (#18283)
tac0turtle Oct 28, 2023
6a33764
fix(x/group/internal/orm): use proper map type to string not interfac…
odeke-em Oct 28, 2023
60ce99a
perf(x/group/internal/orm): move expensive prefix.NewStore calls to c…
odeke-em Oct 28, 2023
5743926
fix(snapshot): grant execution permissions to the snapshot dir for th…
luchenqun Oct 29, 2023
11dc329
feat(x/counter): add module protos (#18291)
tac0turtle Oct 29, 2023
2d94dd1
review changes
atheeshp Oct 30, 2023
981dcae
build(deps): Bump bufbuild/buf-setup-action from 1.27.1 to 1.27.2 (#1…
dependabot[bot] Oct 30, 2023
0ad3027
remove unncessary comma from value of proposal_messages event (#18300)
Vritra4 Oct 30, 2023
66d91eb
fix(sim): set FlagSigverifyTxValue to newApp for TestAppSimulationAft…
luchenqun Oct 30, 2023
a777c3c
chore: update starshp-action version (#18301)
Anmol1696 Oct 30, 2023
930453b
fix tests
atheeshp Oct 31, 2023
8a5d520
review changes
atheeshp Oct 31, 2023
1c7377c
refactor(x/genutil,server): add export functions to x/gentutil (#18303)
julienrbrt Oct 30, 2023
d718385
test: add counter module (#18272)
tac0turtle Oct 30, 2023
16386da
ci: debug golangci-lint for cosmovisor (#18304)
julienrbrt Oct 30, 2023
d437a51
refactor: remove usage of global basedenom (#18268)
tac0turtle Oct 30, 2023
53eed35
test(cosmovisor): improve TestParseUpgradeInfoFile with substring ass…
odeke-em Oct 30, 2023
5f4090a
feat(version): Add extraInfo to version cmd (#18063)
samricotta Oct 30, 2023
35100d9
build(deps): Bump github.com/cosmos/ledger-cosmos-go from 0.13.2 to 0…
dependabot[bot] Oct 31, 2023
3e5ce9f
review changes
atheeshp Oct 31, 2023
a085175
review changes
atheeshp Oct 31, 2023
d0f93b7
go mod
atheeshp Oct 31, 2023
cd80b9f
go mod
atheeshp Oct 31, 2023
e8cbdcd
fix go mod
atheeshp Oct 31, 2023
0f94594
chore(upgrade): remove extra gov deps (#18316)
tac0turtle Oct 31, 2023
e256e1e
chore: remove mint imports in the sdk (#18307)
tac0turtle Oct 31, 2023
064a427
go mod
atheeshp Oct 31, 2023
40f00a5
add `NewMsgRotateConsPubKey` helper
atheeshp Nov 1, 2023
81f2b10
added helper iteration methods
atheeshp Nov 1, 2023
1ed5ee3
add tests
atheeshp Nov 1, 2023
6ee12dc
rebase
atheeshp Nov 1, 2023
93905cb
Merge branch 'ap/key-rotation-tests' of github.com:cosmos/cosmos-sdk …
atheeshp Nov 1, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore(upgrade): remove extra gov deps (#18316)
  • Loading branch information
tac0turtle authored Oct 31, 2023
commit 16c2abffbe9e87ce3497701903fdc34b12b39ed5
3 changes: 1 addition & 2 deletions x/upgrade/keeper/grpc_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (

"cosmossdk.io/core/header"
storetypes "cosmossdk.io/store/types"
govtypes "cosmossdk.io/x/gov/types"
"cosmossdk.io/x/upgrade"
"cosmossdk.io/x/upgrade/keeper"
"cosmossdk.io/x/upgrade/types"
Expand Down Expand Up @@ -42,7 +41,7 @@ func (suite *UpgradeTestSuite) SetupTest() {
suite.ctx = testCtx.Ctx

skipUpgradeHeights := make(map[int64]bool)
authority, err := addresscodec.NewBech32Codec("cosmos").BytesToString(authtypes.NewModuleAddress(govtypes.ModuleName))
authority, err := addresscodec.NewBech32Codec("cosmos").BytesToString(authtypes.NewModuleAddress(govModuleName))
suite.Require().NoError(err)
suite.encodedAuthority = authority
suite.upgradeKeeper = keeper.NewKeeper(skipUpgradeHeights, storeService, suite.encCfg.Codec, suite.T().TempDir(), nil, authority)
Expand Down
5 changes: 3 additions & 2 deletions x/upgrade/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"cosmossdk.io/core/header"
"cosmossdk.io/log"
storetypes "cosmossdk.io/store/types"
govtypes "cosmossdk.io/x/gov/types"
"cosmossdk.io/x/upgrade"
"cosmossdk.io/x/upgrade/keeper"
"cosmossdk.io/x/upgrade/types"
Expand All @@ -28,6 +27,8 @@ import (
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
)

const govModuleName = "gov"

type KeeperTestSuite struct {
suite.Suite

Expand Down Expand Up @@ -66,7 +67,7 @@ func (s *KeeperTestSuite) SetupTest() {

homeDir := filepath.Join(s.T().TempDir(), "x_upgrade_keeper_test")
ac := addresscodec.NewBech32Codec("cosmos")
authority, err := ac.BytesToString(authtypes.NewModuleAddress(govtypes.ModuleName))
authority, err := ac.BytesToString(authtypes.NewModuleAddress(govModuleName))
s.Require().NoError(err)
s.encodedAuthority = authority
s.upgradeKeeper = keeper.NewKeeper(skipUpgradeHeights, storeService, s.encCfg.Codec, homeDir, s.baseApp, authority)
Expand Down
5 changes: 3 additions & 2 deletions x/upgrade/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"cosmossdk.io/core/appmodule"
"cosmossdk.io/core/store"
"cosmossdk.io/depinject"
govtypes "cosmossdk.io/x/gov/types"
"cosmossdk.io/x/upgrade/client/cli"
"cosmossdk.io/x/upgrade/keeper"
"cosmossdk.io/x/upgrade/types"
Expand All @@ -30,6 +29,8 @@ import (
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
)

const govModuleName = "gov"

func init() {
types.RegisterLegacyAminoCodec(codec.NewLegacyAmino())
}
Expand Down Expand Up @@ -206,7 +207,7 @@ func ProvideModule(in ModuleInputs) ModuleOutputs {
}

// default to governance authority if not provided
authority := authtypes.NewModuleAddress(govtypes.ModuleName)
authority := authtypes.NewModuleAddress(govModuleName)
if in.Config.Authority != "" {
authority = authtypes.NewModuleAddressOrBech32Address(in.Config.Authority)
}
Expand Down
Loading