Skip to content
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

Bounty schema #12

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Bounty schema #12

wants to merge 3 commits into from

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