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

Content Publishing Service Success Webhook #315

Open
wilwade opened this issue Jul 30, 2024 · 0 comments
Open

Content Publishing Service Success Webhook #315

wilwade opened this issue Jul 30, 2024 · 0 comments
Labels

Comments

@wilwade
Copy link
Contributor

wilwade commented Jul 30, 2024

Context

When integrating with the Content Publisher, I want to be able to know for sure that a piece of content has successfully met these criteria:

  1. The content is published to IPFS
  2. The content is in a batch
  3. That batch is in a finalized block

Outline or additional Details

How to handle error cases?

When content has an error, it should error out.

Any other comments?

This should be as close to Graph Service webhook as possible.

Success Payload

  • Id
  • Block number (if success)
  • Status
  • Message Content (Maybe future)

Railroad

  1. Submit content to content publisher (Respond with 201 and Id)
  2. Perform validations, Error: Webhook(error)
  3. Submit to chain, Error: Webhook(error)
  4. Wait for finalized block, Mortality/RPC Error: Webhook(error)
  5. In finalized block Webhook(success)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant