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

SDK upgrade to v0.50.0 - part 1 #1528

Closed
wants to merge 12 commits into from
Closed

Conversation

alpe
Copy link
Contributor

@alpe alpe commented Jul 20, 2023

See #1438

⚠️ Using notionals IBC-Go fork

The export/import simulations fail currently with:

sim_test.go:179: compared 2 different key/value pairs between KVStoreKey{0xc001092a40, ibc} and KVStoreKey{0xc001a80c30, ibc}

See upgrade doc in the SDK

I have started with just the go.mod dependencies and some related changes to imports.

New modules

  • circuit

Removed: legacy proposals for x/upgrade

  • deprecate MakeEncodingConfig
  • wasm keeper: accept runtime.NewKVStoreService for keys[wasm.StoreKey],
  • handle storeservice.Get/Set errors
  • replace sdk.Context with stdlib context in keeper where it makes sense
  • use [(cosmos_proto.scalar) = "cosmos.AddressString"] for addresses in proto
  • set cosmos.msg.v1.service proto annotation
  • upgrade ante-handler
  • use new collections framework for params

Not started

  • remove non requires sdk modules from begin/ endblocker
  • replace ibc-go fork with official release

alpe and others added 3 commits July 20, 2023 18:14
* use a more stable ibc-go

* fix some small errors in accordance with what's working in ibc-go and wasmd

* temporarily disable rosetta

* add a few error checks and update some deprecated tendermint calls

* error checks in export.go
Comment on lines +1033 to +1040
for _, m := range app.ModuleManager.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

Iteration over map may be a possible source of non-determinism
app/app.go Fixed Show fixed Hide fixed
Comment on lines +171 to +173
for eventName, hasEvent := range hasEvents {
suite.Require().True(hasEvent, "event: %s was not found in events", eventName)
}

Check warning

Code scanning / CodeQL

Iteration over map

Iteration over map may be a possible source of non-determinism
maccPerms,
authcodec.NewBech32Codec(sdk.Bech32MainPrefix),

Check warning

Code scanning / CodeQL

Directly using the bech32 constants

Directly using the bech32 constants instead of the configuration values
maccPerms,
authcodec.NewBech32Codec(sdk.Bech32MainPrefix),
authcodec.NewBech32Codec(sdk.Bech32PrefixValAddr),

Check warning

Code scanning / CodeQL

Directly using the bech32 constants

Directly using the bech32 constants instead of the configuration values
@alpe alpe force-pushed the sdk-upgrade050_rebased2 branch from d8620bd to ac225c6 Compare July 21, 2023 07:19
Comment on lines +1064 to +1066
for _, key := range app.keys {
keys = append(keys, key)
}

Check warning

Code scanning / CodeQL

Iteration over map

Iteration over map may be a possible source of non-determinism
@alpe alpe changed the title [DO NOT MERGE] Sdk upgrade050 rebased [DO NOT MERGE] SDK upgrade to v0.50.0 Jul 21, 2023
@alpe alpe changed the base branch from main to develop_sdk50 July 21, 2023 09:00
@alpe alpe force-pushed the sdk-upgrade050_rebased2 branch from 8f78db2 to 1411dac Compare July 21, 2023 09:02
@alpe alpe changed the title [DO NOT MERGE] SDK upgrade to v0.50.0 SDK upgrade to v0.50.0 - part 1 Jul 21, 2023
@alpe alpe marked this pull request as ready for review July 21, 2023 09:05
@alpe alpe requested a review from pinosu July 21, 2023 09:05
@faddat
Copy link
Contributor

faddat commented Jul 24, 2023

@alpe -- this is looking good now:

@alpe
Copy link
Contributor Author

alpe commented Sep 19, 2023

Closing this in favour of #1611

@alpe alpe closed this Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants