Skip to content

Bounty schema#12

Open
jlwaugh wants to merge 3 commits intoNearSocial:mainfrom
jlwaugh:main
Open

Bounty schema#12
jlwaugh wants to merge 3 commits intoNearSocial:mainfrom
jlwaugh:main

Conversation

@jlwaugh
Copy link
Contributor

@jlwaugh jlwaugh commented Jan 3, 2023

starting point for discussion, based on examples

@evgenykuzyakov
Copy link

Context

The more I think about structure of the data in socialdb, the more I lean towards serializing as much as possible into JSON object and then store it as a string instead of sub-objects. This way it's still easy to read (so long as you always read the whole object) and easier to replace, since you don't need to cleanup recursively.

If the fields of the bounty don't have to be used independently by other contracts, then it should be a large serialized object instead. Also think about updates to the bounties, and whether they are more like posts (replaced), or more like profiles (persistent in latest state).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants