You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The collections package has been added to cosmos sdk v0.50, and we should see if we can leverage this. This package will help improve clarity and may improve performance of our storage usage. A simple module that we can easily integrate this into and use for gathering metrics is the name module.
Problem Definition
The current way that we use state is quite cumbersome and it may not be optimal.
Proposal
The following steps are one of many ways to implement this and can be followed loosely to incorporate this into the name module:
Create a codec for Record message
Update the prefixes to use collections.Prefix.
Store the params as an Item
Store the name as a Map<String, Record>
Store the addresses with as a Map<Pair<Addr, String>, Record>
Update pagination queries to use collections.Paginate
Some useful metrics to gather, compare, and discuss are:
Gas usage when adding, removing, and editing entries
Runtime performance under different loads
For Admin Use
Not duplicate issue
Appropriate labels applied
Appropriate contributors tagged
Contributor assigned/self-assigned
The text was updated successfully, but these errors were encountered:
Summary
The collections package has been added to cosmos sdk v0.50, and we should see if we can leverage this. This package will help improve clarity and may improve performance of our storage usage. A simple module that we can easily integrate this into and use for gathering metrics is the
name
module.Problem Definition
The current way that we use state is quite cumbersome and it may not be optimal.
Proposal
The following steps are one of many ways to implement this and can be followed loosely to incorporate this into the
name
module:Some useful metrics to gather, compare, and discuss are:
For Admin Use
The text was updated successfully, but these errors were encountered: