-
Notifications
You must be signed in to change notification settings - Fork 46
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
Support for arbitrary data #52
Labels
Milestone
Comments
RiccardoM
added
x/posts
Post module
kind/new-feature
Propose the addition of a new feature that does not yet exist
status/specification
This feature is currently in the specification process
labels
Dec 10, 2019
RiccardoM
added
Status:WIP
and removed
status/specification
This feature is currently in the specification process
labels
Dec 17, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Context
As Desmos will be a public chain potentially used by many different applications as their backend storage, we might want to allow such applications to store arbitrary data inside posts.
Some examples can be the following.
Arbitrary data support proposal
In order to solve both issues in one single run, I suggest we implement the support for arbitrary data by adding a new field into the
Post
type.For sake of simplicity I recommend we only support
String -> String
associations, and not any king of value type that might be used inappropriately.With this, any developer can integrate whatever data he wants into the post itself, without having to add any overhead to the overall post structure.
Storage implementation
In order to implement such feature, we can change how
Post
objects are made, adding a newmap[string]string
field:I also think that we might want to move the existing
ExternalReference
field into such map to make the overall object more simple and having less fields leading thus to a smaller size on disk:The text was updated successfully, but these errors were encountered: