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

feat: Herodotus Data Commitment Facts #120

Merged
merged 8 commits into from
Mar 27, 2024

Conversation

b-j-roberts
Copy link
Contributor

@b-j-roberts b-j-roberts commented Mar 15, 2024

Contains the initial work to have BlobstreamX Starknet use state_dataCommitments from BlobstreamX L1. This is done by using Herodotus Storage Proofs to relay all missing state_dataCommitments from L1.

The PR contains :

  • Scripts :

    • request-data-commitments.sh : This makes a request to the Herodotus API for all DC yet to be included on Starknet.
    • wait-for-herodotus-fulfill.sh : Helper script used to monitor Starknet Herodotus Fact registry until expected value relay is done.
  • Src :

    • update_data_commitments_from_facts(l1_block) : New BlobstreamX entry point which tries to fetch and update the latest state_proof_nonce and state_data_commitments from the Herodotus Fact Registry. ( includes tests )
    • EVMFactRegistryMock : Mock of the necessary storage/functions from the Herodotus EVM Fact Registry Contract.

    Expected BlobstreamX update control flow :
    request-data-commitments.sh -> update_data_commitments_from_facts(l1_block)

…Starknet, also includes a wait script to hold until relay is done and in Herodotus Fact Registry on Starknet
Copy link

vercel bot commented Mar 15, 2024

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
blobstream-starknet ⬜️ Ignored (Inspect) Visit Preview Mar 25, 2024 1:54pm

Copy link
Contributor

@drspacemn drspacemn left a comment

Choose a reason for hiding this comment

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

great work

@drspacemn drspacemn merged commit e5885e3 into main Mar 27, 2024
5 checks passed
@drspacemn drspacemn deleted the feat/herodotus-data-commitment-facts branch March 27, 2024 14:33
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.

None yet

2 participants