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: Derivation Test Fixtures #34

Merged
merged 5 commits into from
Jul 25, 2024
Merged

Conversation

refcell
Copy link
Collaborator

@refcell refcell commented Jul 24, 2024

Description

Introduces the basic derivation test fixture format.

This should be everything we need to derive L2 Blocks from L1 while allowing for flexibility of reorgs.

{
	// List of l2 output roots to assert derivation against
	"l2OutputRoots": [ "0x...", ... ],
	// List of L1 blocks to derive from
	"l1Blocks": [
	  {
	    // A list of encoded blob data
	    "blobs": [ "0x...", ... ],
	    // A list of EIP-2718 encoded raw transactions
	    "transactions": [ "0x...", ... ],
	    // Since we know block numbers are sequential, the parent block is number - 1
	    // If the block number is the same as the last one in the array, we know the previous block in the array was re-org'd out.
	    "number": 1_000,
	    // Block timestamp is used in the derivation pipeline.
	    "timestamp": 1_000,
	    // ... any other metadata required for the pipeline
	  }
  ]

@refcell refcell self-assigned this Jul 24, 2024
@refcell refcell marked this pull request as ready for review July 25, 2024 00:20
@refcell refcell requested review from 0xKitsune and 0xOsiris July 25, 2024 00:21
@refcell refcell requested a review from 0xKitsune July 25, 2024 11:30
@refcell refcell requested a review from 0xKitsune July 25, 2024 13:37
@0xKitsune
Copy link
Contributor

Lgtm!

@0xKitsune 0xKitsune merged commit b0d7a84 into main Jul 25, 2024
5 checks passed
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.

2 participants