Skip to content
This repository has been archived by the owner on Feb 6, 2025. It is now read-only.

Commit

Permalink
feat: add opbnb features
Browse files Browse the repository at this point in the history
  • Loading branch information
j75689 committed Apr 30, 2024
1 parent 4b4ceeb commit ded0b63
Show file tree
Hide file tree
Showing 9 changed files with 546 additions and 147 deletions.
666 changes: 523 additions & 143 deletions Cargo.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,6 @@ similar-asserts = "1.5.0"
test-fuzz = "5"

[patch.crates-io]
revm = { git = "https://github.com/bnb-chain/revm.git", rev = "622e017", features = ["std", "secp256k1"], default-features = false }
revm-primitives = { git = "https://github.com/bnb-chain/revm.git", rev = "622e017", features = ["std"], default-features = false }
alloy-chains = { git = "https://github.com/bnb-chain/alloy-chains-rs.git", branch = "feat/v0.1.15-opbnb", feature = ["serde", "rlp", "arbitrary"] }
revm = { git = "https://github.com/bnb-chain/revm.git", rev = "06873c9" }
revm-primitives = { git = "https://github.com/bnb-chain/revm.git", rev = "06873c9" }
alloy-chains = { git = "https://github.com/bnb-chain/alloy-chains-rs.git", branch = "feat/v0.1.15-opbnb" }
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ install: ## Build and install the reth binary under `~/.cargo/bin`.
.PHONY: install-op
install-op: ## Build and install the op-reth binary under `~/.cargo/bin`.
cargo install --path bin/reth --bin op-reth --force --locked \
--features "optimism,$(FEATURES)" \
--features "optimism,opbnb,$(FEATURES)" \
--profile "$(PROFILE)" \
$(CARGO_INSTALL_EXTRA_FLAGS)

Expand Down
4 changes: 4 additions & 0 deletions bin/reth/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ optimism = [
"reth-node-core/optimism",
]

opbnb = [
"reth-revm/opbnb",
]

# no-op feature flag for switching between the `optimism` and default functionality in CI matrices
ethereum = []

Expand Down
3 changes: 3 additions & 0 deletions crates/blockchain-tree/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,6 @@ assert_matches.workspace = true
[features]
test-utils = []
optimism = ["reth-primitives/optimism", "reth-interfaces/optimism", "reth-provider/optimism", "reth-revm/optimism"]
opbnb = [
"reth-revm/opbnb",
]
3 changes: 3 additions & 0 deletions crates/optimism/node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,6 @@ optimism = [
"reth-revm/optimism",
"reth-optimism-payload-builder/optimism",
]
opbnb = [
"reth-revm/opbnb",
]
3 changes: 3 additions & 0 deletions crates/payload/optimism/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,7 @@ optimism = [
"reth-revm/optimism",
"reth-provider/optimism",
"reth-rpc-types-compat/optimism",
]
opbnb = [
"reth-revm/opbnb",
]
3 changes: 3 additions & 0 deletions crates/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ optimism = [
"reth-ethereum-forks/optimism",
"revm/optimism",
]
opbnb = [
"revm/opbnb",
]
test-utils = ["dep:plain_hasher", "dep:hash-db"]

[[bench]]
Expand Down
3 changes: 3 additions & 0 deletions crates/revm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ optimism = [
"reth-interfaces/optimism",
]
js-tracer = ["revm-inspectors/js-tracer"]
opbnb = [
"revm/opbnb",
]

0 comments on commit ded0b63

Please sign in to comment.