-
Notifications
You must be signed in to change notification settings - Fork 355
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(app): Upgrading to v50 #1736
base: main
Are you sure you want to change the base?
Conversation
bumped PFM to v8 deprecated usage of /store/types
for _, m := range app.mm.Modules { | ||
if moduleWithName, ok := m.(module.HasName); ok { | ||
moduleName := moduleWithName.Name() | ||
if appModule, ok := moduleWithName.(appmodule.AppModule); ok { | ||
modules[moduleName] = appModule | ||
} | ||
} | ||
} |
Check warning
Code scanning / CodeQL
Iteration over map Warning
a.AccountKeeper, | ||
a.BankKeeper, | ||
govModuleAddress, | ||
appCodec, runtime.NewKVStoreService(a.keys[stakingtypes.StoreKey]), a.AccountKeeper, a.BankKeeper, authtypes.NewModuleAddress(govtypes.ModuleName).String(), authcodec.NewBech32Codec(appparams.Bech32PrefixValAddr), authcodec.NewBech32Codec(appparams.Bech32PrefixConsAddr), |
Check warning
Code scanning / CodeQL
Directly using the bech32 constants Warning
a.AccountKeeper, | ||
a.BankKeeper, | ||
govModuleAddress, | ||
appCodec, runtime.NewKVStoreService(a.keys[stakingtypes.StoreKey]), a.AccountKeeper, a.BankKeeper, authtypes.NewModuleAddress(govtypes.ModuleName).String(), authcodec.NewBech32Codec(appparams.Bech32PrefixValAddr), authcodec.NewBech32Codec(appparams.Bech32PrefixConsAddr), |
Check warning
Code scanning / CodeQL
Directly using the bech32 constants Warning
@@ -18,26 +21,37 @@ | |||
BaseDenomUnit = 18 | |||
|
|||
AccountAddressPrefix = "dym" | |||
Name = "dymension" | |||
) | |||
Bech32MainPrefix = AccountAddressPrefix |
Check warning
Code scanning / CodeQL
Directly using the bech32 constants Warning
// Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address | ||
Bech32PrefixConsAddr = Bech32MainPrefix + PrefixValidator + PrefixConsensus | ||
// Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key | ||
Bech32PrefixConsPub = Bech32MainPrefix + PrefixValidator + PrefixConsensus + PrefixPublic |
Check warning
Code scanning / CodeQL
Directly using the bech32 constants Warning
// Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address | ||
Bech32PrefixConsAddr = Bech32MainPrefix + PrefixValidator + PrefixConsensus | ||
// Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key | ||
Bech32PrefixConsPub = Bech32MainPrefix + PrefixValidator + PrefixConsensus + PrefixPublic |
Check warning
Code scanning / CodeQL
Directly using the bech32 constants Warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can also do make proto-format
to reformat all the proto files. and then make proto-gen
once again.
This PR bumps the dymension repo to use
cosmos-sdk v50.x
the main changes besides the straightforward syntax changes:
legacytx
Msg interface and the deprecated global amino variablesFew technical debts left:
msg.ValidateBasic
into the message handler #1742