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

[framework] OnChainEvent, Metaprotocol, Bitseed #2197

Merged
merged 24 commits into from
Aug 2, 2024
Merged

Conversation

jolestar
Copy link
Contributor

@jolestar jolestar commented Jul 16, 2024

Summary

  1. [moveos_std] Implement on-chain event queue, resolve [moveos_std] General OnChain EventQueue #2196
  2. [moveos_std] Implement result type for error handle.
  3. [moveos_std] Add copy, drop to SimpleMap.
  4. [bitcoin-move] Define InscriptionEvent in ord and emit events to the on-chain event queue.
  5. [bitcoin-move] Implement MetaprotocolRegistry and require the metaprotocol_validity type to be registered.
  6. [bitseed] Define Bitseed in Move and implement Bitseed TickInfo, MintGetFactory.

TODO:

  1. Implement Bitseed merge and split via Inscription.
  2. Handle the attributes in Bitseed.
  3. Handle the repeat in Bitseed.
  4. Handle the factory and factory argument in Bitseed.
  5. Implement leap.

Copy link

vercel bot commented Jul 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rooch-portal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 1, 2024 6:09am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
rooch ⬜️ Ignored (Inspect) Visit Preview Aug 1, 2024 6:09am

Copy link

github-actions bot commented Jul 16, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

@jolestar
Copy link
Contributor Author

jolestar commented Jul 30, 2024

//It means the subscriber is too slow to consume the event
//We should update the subscriber sequence number to the tail sequence number
subscriber_sequence_number = if (tail_sequence_number > subscriber_sequence_number) {
tail_sequence_number
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel that it is not appropriate to jump directly to the end of the queue here, which may cause inconsistent data on the consumer side. It feels better to return an error.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does the subscriber handle the error?

@jolestar
Copy link
Contributor Author

jolestar commented Aug 1, 2024

@pause125 @yubing744

@jolestar jolestar merged commit ca49b26 into main Aug 2, 2024
8 checks passed
@jolestar jolestar deleted the onchain_event_queue branch August 2, 2024 01:35
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.

[moveos_std] General OnChain EventQueue
3 participants