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

Deprecate all cosmwasm-storage types #1636

Merged
merged 7 commits into from
May 4, 2023

Conversation

webmaster128
Copy link
Member

Closes #1596

@webmaster128 webmaster128 force-pushed the deprecate-cosmwasm-storage-types branch from 0858f89 to 1862505 Compare May 3, 2023 10:18
Copy link
Member Author

@webmaster128 webmaster128 left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

pub const PREFIX_ACCOUNTS: &[u8] = b"accounts";
/// Upper bound for ranging over accounts
const PREFIX_ACCOUNTS_UPPER_BOUND: &[u8] = b"accountt";
Copy link
Member Author

Choose a reason for hiding this comment

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

Not for this PR, but it would be great to be able to calculate those things on demand with a well defined and well tested function. We do those things in a couple of places.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, there is namespace_upper_bound in storage and in storage-plus there's increment_last_byte and extend_one_byte (though all of them are private).
I just didn't want to copy that over for just this.

@webmaster128 webmaster128 merged commit 14864cc into main May 4, 2023
@webmaster128 webmaster128 deleted the deprecate-cosmwasm-storage-types branch May 4, 2023 12:50
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.

Add deprecation annotations to all cosmwasm-storage types
2 participants