-
Notifications
You must be signed in to change notification settings - Fork 359
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
Add stack and queue implementations to storage-plus #776
Comments
Doesn't seem like we have any overlap here with I imagine once we implement the core in |
After internal discussions we concluded that cosmwasm-storage is more or less deprecated and should not be enhanced anymore. Adding a stack and queue implementation to storage-plus would be nice though. Moving to the other repo ... |
That makes much more sense, tbh. Let me know what the team thinks. I'm very excited to contribute. Thanks |
Hi @itsHaseebSaeed |
The stack is almost ready but needs a few modifications plus the need to write documentation. Planning to complete it this weekend. Maybe check back on Sunday morning. In the meanwhile, if you see any errors feel free to comment. |
We just talked on Slack with @chipshort. Chris suggested having one double-ended queue instead of a separate queue and stack. And he suggested we could even call it a I'm also thinking if we skip having any sort of "stack of stacks" or "StackMap" functionality now, we could:
I'd rather move carefully with these complex storage types. Once we provide an implementation, it will be a bit hard to go back and change it. |
Sure I would love to work on Deque; I planned to propose stack and then deque. It all would be a little easier If I could have a list of DO and DON'T. I DM-ed you on discord. Let's talk there and make this happen. Thanks. |
I was hoping cosmwasm devs can add something like this; if not, I'd love to add such a package.
Description in mind: An "append store" is a storage wrapper that guarantees constant-cost appending to and popping from a list of items in storage. This is achieved by storing each item in a separate storage entry. A unique key is reserved for storing the length of the collection so far.
The text was updated successfully, but these errors were encountered: