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

Optimism L1 -> L2 derivation #51

Merged
merged 86 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
7b08224
transactions module
hashcashier Aug 31, 2023
07c0335
TxEssence trait
hashcashier Aug 31, 2023
ff74eeb
Generic Transaction struct
hashcashier Aug 31, 2023
7fd240c
tx essence as a generic parameter
hashcashier Aug 31, 2023
cb1b7d5
OptimismTxEssence
hashcashier Aug 31, 2023
a3d826b
op chain spec
hashcashier Aug 31, 2023
c27cfcf
OpTxExecStrategy
hashcashier Aug 31, 2023
133e881
Merge branch 'main' of github.com:risc0/zeth into rkhalil/op
hashcashier Aug 31, 2023
b261dbf
redundant block builder type params
hashcashier Sep 5, 2023
3dc1629
strategy bundles
hashcashier Sep 5, 2023
ca30106
host binary parameters
hashcashier Sep 5, 2023
7e5ce52
profiling flag
hashcashier Sep 6, 2023
b267f3f
optimism
hashcashier Sep 6, 2023
16db242
new derivation binary skeleton, copy over libs
hashcashier Sep 6, 2023
dc4a251
providers and conversion utils
hashcashier Sep 7, 2023
2fa1919
epoch transitioning
hashcashier Sep 7, 2023
2ca612d
basic derive flow
hashcashier Sep 8, 2023
2482e7d
host-side derivation
hashcashier Sep 8, 2023
b67f8ba
read metadata from op head
hashcashier Sep 8, 2023
c8fdfb3
op-derive guest
hashcashier Sep 8, 2023
2b1df5c
disable guest memory leaks
hashcashier Sep 8, 2023
25b97c0
heapless batch derivation
hashcashier Sep 11, 2023
4839400
Merge branch 'main' of github.com:risc0/zeth into rkhalil/op-derive
hashcashier Sep 19, 2023
912786d
Pull from main
intoverflow Oct 16, 2023
f2c8076
Merge with main
intoverflow Oct 23, 2023
dd471d5
Add missing import
intoverflow Oct 23, 2023
187cebc
Remove heapless BinaryHeap
intoverflow Oct 27, 2023
33df195
Remove heapless
intoverflow Oct 27, 2023
4805a4b
Merge from main
intoverflow Oct 31, 2023
83f482d
Merge branch 'rkhalil/op-derive' of github.com:risc0/zeth into tcarst…
intoverflow Oct 31, 2023
5f958a7
Introduce op-derive tool
intoverflow Oct 31, 2023
a479a33
Remove ethers types from BatcherDb trait
intoverflow Nov 2, 2023
531a5e3
Verify new op block has correct transaction list
intoverflow Nov 2, 2023
1f94958
Move derive logic into library
intoverflow Nov 2, 2023
5aeb237
Fix bug in transaction trie reconstruction
intoverflow Nov 2, 2023
3842e72
Introduce get_op_header() to BatcherDb
intoverflow Nov 2, 2023
c6c02a2
Merge with main
intoverflow Nov 20, 2023
973c451
Clippy warning
intoverflow Nov 20, 2023
41d88a7
Default Serde value for FileProvider::receipts
intoverflow Nov 21, 2023
4a90227
Disable bloom filter checks
intoverflow Nov 21, 2023
7aa11fd
Clippy
intoverflow Nov 21, 2023
b541602
Clippy
intoverflow Nov 21, 2023
151b4e8
Fix parsing of from and to fields for deposits
intoverflow Nov 21, 2023
782c1ab
Merge branch 'main' of github.com:risc0/zeth into tcarstens/op-derive
intoverflow Nov 22, 2023
394f5ea
Reintroduce filtering by log bloom
intoverflow Nov 22, 2023
13254a9
Merge branch 'main' of github.com:risc0/zeth into tcarstens/op-derive
hashcashier Nov 27, 2023
8516a7d
fmt
hashcashier Nov 27, 2023
76402a3
Add support for local exec to op-derive
intoverflow Nov 27, 2023
a7cc496
Enforce block_number is correct in MemDb
intoverflow Nov 28, 2023
6a5435b
Split derive() into multiple functions
intoverflow Nov 30, 2023
7fbcce1
Remove redundant check for batch parent hash
intoverflow Nov 30, 2023
1e9441e
Remove redundant copy of system config
intoverflow Nov 30, 2023
fc696d2
Remove redundant block number check
intoverflow Nov 30, 2023
d9573ca
Cleanup
intoverflow Nov 30, 2023
a8748f6
Remove redundant vector of eth blocks
intoverflow Nov 30, 2023
65d04d8
Add base_fee_per_gas to Epoch
intoverflow Nov 30, 2023
1591bf1
Store deposits in Epoch
intoverflow Nov 30, 2023
b9a5eb6
Add Eth tail to DeriveOutput
intoverflow Nov 30, 2023
b843875
Cleanup
intoverflow Nov 30, 2023
7ed041f
Move deque_next_epoch_if_none to State
intoverflow Nov 30, 2023
944e6b0
Move eth block processing to Batches
intoverflow Nov 30, 2023
fe1c95e
Pull from main
intoverflow Dec 12, 2023
f24a477
Reorg and cleanup
intoverflow Dec 14, 2023
f25b30e
More cleanup
intoverflow Dec 14, 2023
76c98f6
run cargo fmt --all
Wollac Dec 14, 2023
f633fe0
fix clippy warnings
Wollac Dec 14, 2023
e2badf2
Merge branch 'main' into tcarstens/op-derive
Wollac Dec 14, 2023
a480a14
remove unused imports
Wollac Dec 14, 2023
6d7364c
format guest code
Wollac Dec 14, 2023
1538b26
add op-derive cmd test
Wollac Dec 15, 2023
0e08feb
add cmd tests
Wollac Dec 15, 2023
0cbb413
cleanup optimism/mod
Wollac Dec 15, 2023
2b0ada8
Rename command line args
intoverflow Dec 15, 2023
3b166b5
Fix test arguments
intoverflow Dec 15, 2023
bc1ec04
Rename config field to max_channel_bank_size
intoverflow Dec 15, 2023
2ab54b2
Enforce decompression limit of MAX_RLP_BYTES_PER_CHANNEL
intoverflow Dec 15, 2023
2d007dd
Use constant OPTIMISM_DEPOSITED_TX_TYPE when checking batch validity
intoverflow Dec 15, 2023
c81dd60
Import from std instead of alloc/core
intoverflow Dec 15, 2023
2f6a865
Re-enable core::mem::forget() optimization
intoverflow Dec 15, 2023
707b89b
Replace asserts with ensures; enforce absence of receipts for Op blocks
intoverflow Dec 15, 2023
098d82d
Simplfy iteration through derived transactions
intoverflow Dec 15, 2023
dae216a
Add Bonsai support to op-derive. Also add Bonsai session status to ou…
intoverflow Dec 15, 2023
040aa3a
More println
intoverflow Dec 15, 2023
2fd7c89
Rework Batcher initialization
intoverflow Dec 15, 2023
a08b13d
More logging
intoverflow Dec 16, 2023
2b7186a
More log output if Bonsai workflow fails
intoverflow Dec 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"./Cargo.toml",
"./guests/eth-block/Cargo.toml",
"./guests/op-block/Cargo.toml",
"./guests/op-derive/Cargo.toml",
"./testing/ef-tests/testguest/Cargo.toml"
]
}
93 changes: 78 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion guests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ edition = "2021"
risc0-build = { workspace = true }

[package.metadata.risc0]
methods = ["eth-block", "op-block"]
methods = ["eth-block", "op-block", "op-derive"]
Loading
Loading