Skip to content

Commit

Permalink
feat!: leonidas library (#11596)
Browse files Browse the repository at this point in the history
Fixes #11521, slaying the king. Pushes a bunch of the functions that
lived in the "rollup" our from the core, such that there now is a
`RollupCore` with the logic that we need to run the rollup and `Rollup`
extending it with a bunch of helpers and such.

TBH, the `RollupCore` is still pretty disgusting to look at, but some of
this should be helped as we split the state transition function checks
further from the sequencer selection. Will alos allow us to get rid of
some of the existing bundling libraries and improve clarity.


Makes a tiny update in the forwarder and one of the tests for it.
  • Loading branch information
LHerskind authored Feb 5, 2025
1 parent 7b30758 commit e8cfed7
Show file tree
Hide file tree
Showing 29 changed files with 1,387 additions and 1,402 deletions.
2 changes: 1 addition & 1 deletion docs/docs/guides/developer_guides/js_apps/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ The [`CheatCodes`](../../../reference/developer_references/sandbox_reference/che
### Set next block timestamp

Since the rollup time is dependent on what "slot" the block is included in, time can be progressed by progressing slots.
The duration of a slot is available by calling `getSlotDuration()` on the Rollup (code in Leonidas.sol).
The duration of a slot is available by calling `getSlotDuration()` on the Rollup (code in Rollup.sol).

You can then use the `warp` function on the EthCheatCodes to progress the underlying chain.

Expand Down
Loading

0 comments on commit e8cfed7

Please sign in to comment.