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

tip parser #14

Open
4 tasks
sponnet opened this issue Aug 24, 2018 · 1 comment
Open
4 tasks

tip parser #14

sponnet opened this issue Aug 24, 2018 · 1 comment

Comments

@sponnet
Copy link
Owner

sponnet commented Aug 24, 2018

  • create basic parser
  • create JSON schema for tip format
  • create link between tip and original peep (use IPFS hash as primary key)
  • create tree from parent to children - save it in local cache for easy lookup
@sponnet
Copy link
Owner Author

sponnet commented Aug 24, 2018

sample

{
    "type": "tip",
    "content": "Great job Bevan!",
    "parentID": "QmQfeQuPE3sxeCSrmHMLXxUZysRkA7YsodLYkPkrYXw9CU",
    "shareID": null,
    "untrustedAddress": "0x788d7dcc3c5a23ab08b343e25d76e0cd3174761c",
    "untrustedTimestamp": 1521156236
}

Tip is another data format that needs a JSON schema - it has different fields than a peep - but is similar in structure.
It seems that there is a difference when you

  • tip a peep or a reply ( parentID is filled in )
  • tip a share ( shareID is filled in ) ( to be verified )

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

No branches or pull requests

1 participant