Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ alloy-rlp = { version = "0.3", default-features = false }
alloy-sol-types = { version = "0.8.12", default-features = false }
alloy-primitives = { version = "0.8.12", default-features = false }

# Maili
maili-protocol = { version = "0.1.0", default-features = false }

# Revm
revm = "19.0.0"

Expand Down
69 changes: 7 additions & 62 deletions crates/protocol/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "op-alloy-protocol"
description = "Optimism protocol-specific types"
description = "Re-export of op-rs/maili-protocol"

version.workspace = true
edition.workspace = true
Expand All @@ -15,67 +15,12 @@ exclude.workspace = true
workspace = true

[dependencies]
# Workspace
op-alloy-genesis.workspace = true
op-alloy-consensus.workspace = true

# Alloy
alloy-primitives = { workspace = true, features = ["map"] }
alloy-sol-types.workspace = true
alloy-rlp.workspace = true
alloy-eips.workspace = true
alloy-consensus.workspace = true

# Misc
derive_more = { workspace = true, default-features = false, features = ["from", "as_ref"] }
tracing.workspace = true
thiserror.workspace = true
async-trait.workspace = true
unsigned-varint.workspace = true

# Compression
brotli.workspace = true
miniz_oxide.workspace = true
alloc-no-stdlib.workspace = true

# `arbitrary` feature
arbitrary = { workspace = true, features = ["derive"], optional = true }

# `serde` feature
serde = { workspace = true, optional = true }
alloy-serde = { workspace = true, optional = true }

# `test-utils` feature
spin = { workspace = true, optional = true }
tracing-subscriber = { workspace = true, features = ["fmt"], optional = true }

[dev-dependencies]
brotli = { workspace = true, features = ["std"] }
revm.workspace = true
spin.workspace = true
rand.workspace = true
rstest.workspace = true
proptest.workspace = true
serde_json.workspace = true
alloy-sol-types.workspace = true
tokio = { workspace = true, features = ["full"] }
arbitrary = { workspace = true, features = ["derive"] }
tracing-subscriber = { workspace = true, features = ["fmt"] }
alloy-primitives = { workspace = true, features = ["arbitrary"] }
# Maili
maili-protocol = { workspace = true, default-features = false }

[features]
default = ["serde", "std"]
test-utils = [
"dep:spin",
"dep:tracing-subscriber",
]
arbitrary = [
"std",
"dep:arbitrary",
"alloy-consensus/arbitrary",
"alloy-eips/arbitrary",
"alloy-primitives/rand",
"alloy-primitives/arbitrary",
]
std = ["op-alloy-consensus/std", "op-alloy-genesis/std", "brotli/std"]
serde = ["dep:serde", "dep:alloy-serde", "op-alloy-consensus/serde", "op-alloy-genesis/serde"]
test-utils = ["maili-protocol/test-utils"]
arbitrary = ["maili-protocol/arbitrary"]
std = ["maili-protocol/std"]
serde = ["maili-protocol/serde"]
10 changes: 2 additions & 8 deletions crates/protocol/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
<a href="https://alloy-rs.github.io/op-alloy"><img src="https://img.shields.io/badge/Book-854a15?logo=mdBook&labelColor=2a2f35" alt="Book"></a>


Core protocol types for Optimism.
See [maili-protocol]

These include types, constants, and methods for derivation as well as batch-submission.

### Provenance

This code was initially ported from [kona-primitives] as part of ongoing op-alloy migrations.

[kona-primitives]: https://github.com/ethereum-optimism/kona/tree/main/crates/kona-primitives
[maili-protocol]: https://github.com/op-rs/maili/blob/main/crates/protocol/README.md
113 changes: 0 additions & 113 deletions crates/protocol/examples/batch_to_frames.rs

This file was deleted.

101 changes: 0 additions & 101 deletions crates/protocol/examples/frames_to_batch.rs

This file was deleted.

Loading