-
Notifications
You must be signed in to change notification settings - Fork 335
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
Thoughts on keys #1676
Thoughts on keys #1676
Conversation
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.
LGTM, nice to have a key prefix explanation in this repo now.
Only left a few small comments
f648196
to
83f456e
Compare
83f456e
to
f5dad70
Compare
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.
LGTM.
I understand this as the first step towards moving the storage keys functionality from cw-storage-plus
to cosmwasm-std
.
Given the importance of Length-prefixed keys for the entire CosmWasm ecosystem, | ||
those implementations should be maintained in cosmwasm-std. The generic approach | ||
allows building all sorts of storage solutions on top of it and it allows | ||
indexers to parse storage keys for all of them. |
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.
👍🏼
Co-authored-by: Mauro Lacy <[email protected]>
The motivation is a combination of the following:
|
Explains the basics and history of the CosmWasm key storage layout and aims to claify a few confusing things for the future.