Skip to content

Commit fe82c5a

Browse files
Evalirprestwich
andauthored
feat(driver): BundleDriver for driving bundles to completion (#34)
* feat: BundleDriver * run txs -> run bundle * chore: install mev alloy types * bundle impl sketch * chore: unrelated error * chore: add to macro arms * chore: respect reverts/halts, handle tx decoding errors * manually impl debug * cleanup * feat: reverse params on with_block/try_with_block * switch to eip2718 decode * chore: dep cleanup * ethsendbundle impl * chore: bump to 0.5.0, make all with_ fns consistent * feat: greedily deser txs, avoid clones, and accept state if revert is allowed * wip: blocksimulator impl * refactor: remove clone (#35) * feat: accumulate bundle results * chore: light refactor * chore: refactor * feat: extra checks * feat: eip4844 checks * fix: if timestamp is not set in bundle, increase for sim * feat: ethsendbundle/ethbundle hash impl, bundlesimulator -> blockprocessor * chore: switch from memtake to clone to avoid setting default values on new blocks * feat: new macros * feat: use macros * chore: refactor tx processing to a function * chore: simplify decoding and validating transactions * chore: simplify reading initial balance * feat: add new try_with_ fns, use clone * fix: properly restore block env --------- Co-authored-by: James Prestwich <[email protected]>
1 parent 2f202db commit fe82c5a

File tree

8 files changed

+861
-17
lines changed

8 files changed

+861
-17
lines changed

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "trevm"
3-
version = "0.4.0"
3+
version = "0.5.0"
44
rust-version = "1.79.0"
55
edition = "2021"
66
authors = ["init4"]
@@ -31,10 +31,13 @@ alloy-consensus = { version = "0.2", features = ["k256"] }
3131
alloy-eips = "0.2.0"
3232
alloy-primitives = "0.7.6"
3333
alloy-rpc-types-eth = "0.2.0"
34+
alloy-rpc-types-mev = "0.2.0"
3435
alloy-sol-types = "0.7.7"
3536
revm = { version = "12.0.0", default-features = false, features = ["std"] }
3637
zenith-types = "0.3"
3738

39+
thiserror = "1.0"
40+
3841
[dev-dependencies]
3942
revm = { version = "12.0.0", features = ["test-utils", "serde-json", "std", "alloydb"] }
4043
tokio = { version = "1.39", features = ["macros", "rt-multi-thread"] }

0 commit comments

Comments
 (0)