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
@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
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
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
@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