-
Notifications
You must be signed in to change notification settings - Fork 30
Conversation
im not sure if this constitutes as a module. @fedekunze @alexanderbez would you guys want this in the sdk instead of here? |
This should be proposed as an addition to @cosmos/cosmossdk |
Somethings from |
See cosmos/cosmos-sdk#5491 for more information @mslipper |
@alexanderbez do you suggest to put this on hold until the protobuf PR is merged?
Yes, the SDK per se makes no use of it, though it'd be used by other applications out there. It'll be surely used by the dex modules we're planning to import in this repo. We factored this out of the dex-demo repo are prepared it for an inclusion proposal into the SDK. @mslipper either way this should not be a module. This should be proposed as |
It would just seem strange to have logic around sequential IDs in |
I think we need a place in the SDK to store a repository of common store access patterns. Using sequential IDs is a one that is common. Btw, we do use it in governance, for the proposalIDs. It's also used in CosmWasm for codeID and contractID. Another one is time queues (for example, the unbonding and redelegation queues in staking and the deposit period and voting period queues in governance). I think it will be very useful for having this standard in the SDK somewhere, so each module writer doesn't keep rewriting these common patterns. |
@mslipper and I are more than happy to drop this into the |
This PR arises out of the discussion on cosmos/modules#24.
Hey all!
Was chatting with @alessio, and he mentioned that extracting these helper methods from the
dex-demo
repository into this one would be helpful for the ecosystem. These utilities make it easier to get and set data in a KVStore, and provide a framework for incrementing and getting integer sequences from a KVStore in order to mimic a primary key in SQL.