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

refactor: Migrate to Collections #192

Merged
merged 9 commits into from
May 2, 2024
Merged

Conversation

jim380
Copy link
Contributor

@jim380 jim380 commented Feb 2, 2024

Overview

This PR migrates the custom modules to Collections, a new module state management system introduced in SDK v0.50. This is a fundamental change to how we think of state in modules.

  • Before - state as raw bytes
  • After - state as concrete golang objects

Related

#116

@jim380 jim380 marked this pull request as ready for review February 2, 2024 07:27
@jim380 jim380 changed the title Migrate to Collections [SDK v0.50] Migrate to Collections Feb 2, 2024
@jim380 jim380 requested a review from hacheigriega February 2, 2024 07:50
@hacheigriega
Copy link
Member

There is a slight chance this is relevant or helpful for the failing simulation tests. I will address this PR in a few days.

@hacheigriega hacheigriega changed the title [SDK v0.50] Migrate to Collections refactor: Migrate to Collections Mar 19, 2024
@hacheigriega hacheigriega force-pushed the jay/migrate-to-collections branch from 47f9832 to 4636f64 Compare April 24, 2024 20:21
Copy link
Contributor

@DeshErBojhaa DeshErBojhaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utAck!

x/wasm-storage/keeper/keeper.go Outdated Show resolved Hide resolved
x/wasm-storage/keeper/keeper.go Outdated Show resolved Hide resolved
x/wasm-storage/keeper/keeper.go Outdated Show resolved Hide resolved
x/wasm-storage/keeper/keeper.go Outdated Show resolved Hide resolved
x/wasm-storage/keeper/keeper.go Outdated Show resolved Hide resolved
x/wasm-storage/keeper/keeper.go Outdated Show resolved Hide resolved
x/wasm-storage/keeper/keeper.go Outdated Show resolved Hide resolved
x/wasm-storage/keeper/keeper.go Outdated Show resolved Hide resolved
@DeshErBojhaa DeshErBojhaa force-pushed the jay/migrate-to-collections branch from b529c15 to a4b89d1 Compare May 2, 2024 18:30
jim380 and others added 8 commits May 3, 2024 01:33
SetProxyContractRegistry and
GetProxyContractRegistry can be easily replaced with the underlying collection's Get and Set methods
GetParams and
SetParams can be easily replaced with the underlying collection's Get and Set methods
@DeshErBojhaa DeshErBojhaa force-pushed the jay/migrate-to-collections branch from 0a2baff to 82f7637 Compare May 2, 2024 19:37
@hacheigriega hacheigriega self-requested a review May 2, 2024 19:47
@DeshErBojhaa DeshErBojhaa merged commit 62cfbab into main May 2, 2024
16 of 17 checks passed
@DeshErBojhaa DeshErBojhaa deleted the jay/migrate-to-collections branch May 2, 2024 19:52
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.

3 participants