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

Ceramic SDK can write data into ceramic-one after read #27

Open
3 tasks
nathanielc opened this issue Nov 8, 2024 · 2 comments
Open
3 tasks

Ceramic SDK can write data into ceramic-one after read #27

nathanielc opened this issue Nov 8, 2024 · 2 comments
Assignees

Comments

@nathanielc
Copy link
Collaborator

nathanielc commented Nov 8, 2024

The SDK should provide an API to write an event to ceramic-one. The API should accept the JSON content of the document. It should then compute the diff and sign the event build the CAR file and submit the event to ceramic-one.

Implementation Notes

In order to do the diff the SDK will need to know the current state of the document. There are two ways know the state:

  • Query the state via the ceramic-one API
  • Cache the state from a previous write

We should prefer to cache the state over doing a read from the API for every write.

DOD

  • Be able to write data to ceramic-one with a convenient API that abstract the details of constructing the event CAR data
  • Code is browser compatible
  • Minimize the amount of read call to the API that are needed
@stephhuynh18
Copy link

read api will be merged today (nov 13)

@mzkrasner mzkrasner self-assigned this Dec 3, 2024
@mzkrasner
Copy link
Contributor

Work to date is reflected in this branch: https://github.com/ceramicnetwork/ceramic-sdk/tree/mzk/stream-client

To-Do:

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

3 participants