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
34 changes: 17 additions & 17 deletions Cargo.lock

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

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ fluentbase-codec-derive = { path = "./crates/codec-derive", default-features = f
fluentbase-contracts = { path = "./crates/contracts", default-features = false }
fluentbase-evm = { path = "./crates/evm", default-features = false }
fluentbase-genesis = { path = "./crates/genesis", default-features = false }
fluentbase-revm = { path = "./crates/revm", default-features = false }
fluentbase-runtime = { path = "./crates/runtime", default-features = false }
fluentbase-sdk = { path = "./crates/sdk", default-features = false }
fluentbase-sdk-derive = { path = "./crates/sdk-derive", default-features = false }
Expand All @@ -42,6 +43,7 @@ fluentbase-svm = { path = "./crates/svm", default-features = false }
fluentbase-svm-shared = { path = "./crates/svm-shared", default-features = false }
fluentbase-erc20 = { path = "./crates/erc20", default-features = false }

# solana
solana-pubkey = { git = "https://github.com/fluentlabs-xyz/agave", branch = "feat/svm", default-features = false }
solana-instruction = { git = "https://github.com/fluentlabs-xyz/agave", branch = "feat/svm", default-features = false }
solana-account-info = { git = "https://github.com/fluentlabs-xyz/agave", branch = "feat/svm", default-features = false }
Expand Down Expand Up @@ -149,6 +151,7 @@ bincode = { version = "2.0.1", default-features = false, features = ["alloc", "d
convert_case = "0.8.0"
proc-macro2 = { version = "1.0", default-features = false }
quote = { version = "1.0" }

# revm
revm = { path = "revm/crates/revm", default-features = false, features = ["secp256r1"] }
primitives = { path = "revm/crates/primitives", package = "revm-primitives", default-features = false }
Expand All @@ -164,7 +167,6 @@ context = { path = "revm/crates/context", package = "revm-context", default-feat
context-interface = { path = "revm/crates/context/interface", package = "revm-context-interface", default-features = false }
handler = { path = "revm/crates/handler", package = "revm-handler", default-features = false }
op-revm = { path = "revm/crates/op-revm", default-features = false }
rwasm-revm = { path = "revm/crates/rwasm-revm", default-features = false }

# alloy
alloy-eip2930 = { version = "0.2.0", default-features = false }
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Core libraries and infrastructure:
* `erc20` — ERC20 contract utilities (marked for deprecation).
* `evm` — EVM execution support.
* `genesis` — Build scripts for generating Fluent L2 genesis files with precompiled contracts.
* `revm` — A driver for Revm integration.
* `runtime` — rWASM/WebAssembly runtime enabling host function integrations.
* `sdk` — Developer SDK with all necessary types, macros, entrypoint definitions, and allocators.
* `svm` — SVM execution engine.
Expand Down
24 changes: 12 additions & 12 deletions contracts/Cargo.lock

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

2 changes: 2 additions & 0 deletions crates/genesis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ use fluentbase_genesis::devnet_genesis_from_file;
let genesis = devnet_genesis_from_file();
```

---

This crate is part of the [Fluentbase](https://github.com/fluentlabs-xyz/fluentbase) project.
87 changes: 87 additions & 0 deletions crates/revm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
[package]
name = "fluentbase-revm"
description = "Fluent variant of Revm"
version.workspace = true
authors.workspace = true
edition.workspace = true
keywords.workspace = true
license.workspace = true
repository.workspace = true
readme.workspace = true

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[lints.rust]
unreachable_pub = "warn"
unused_must_use = "deny"
rust_2018_idioms = "deny"

[lints.rustdoc]
all = "warn"

[dependencies]
# revm
revm = { workspace = true }
rwasm = { workspace = true }

# Optional
serde = { workspace = true, features = ["derive", "rc"], optional = true }

# fluentbase
fluentbase-runtime.workspace = true
fluentbase-sdk.workspace = true

[dev-dependencies]
alloy-sol-types.workspace = true
sha2.workspace = true
serde_json = { workspace = true, features = ["alloc"] }
alloy-primitives.workspace = true

[features]
default = ["std", "c-kzg", "secp256k1", "portable", "blst"]
std = [
"serde?/std",
"revm/std",
"alloy-sol-types/std",
"sha2/std",
"serde_json/std",
"alloy-primitives/std"
]
hashbrown = ["revm/hashbrown"]
serde = [
"dep:serde",
"revm/serde",
"alloy-primitives/serde"
]
portable = ["revm/portable"]

dev = [
"memory_limit",
"optional_balance_check",
"optional_block_gas_limit",
"optional_eip3607",
"optional_no_base_fee",
]
memory_limit = ["revm/memory_limit"]
optional_balance_check = ["revm/optional_balance_check"]
optional_block_gas_limit = ["revm/optional_block_gas_limit"]
optional_eip3607 = ["revm/optional_eip3607"]
optional_no_base_fee = ["revm/optional_no_base_fee"]

# See comments in `revm-precompile`
secp256k1 = ["revm/secp256k1"]
c-kzg = ["revm/c-kzg"]
# `kzg-rs` is not audited but useful for `no_std` environment, use it with causing and default to `c-kzg` if possible.
kzg-rs = ["revm/kzg-rs"]
blst = ["revm/blst"]
bn = ["revm/bn"]

# fluentbase
debug-print = ["fluentbase-runtime/debug-print"]
wasmtime = ["fluentbase-runtime/wasmtime"]
json = [
"fluentbase-sdk/json",
"revm/json"
]
8 changes: 8 additions & 0 deletions crates/revm/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Fluentbase Revm

A driver for integrating Revm with Fluentbase.
It is widely used by both Reth and Foundry.

---

This crate is part of the [Fluentbase](https://github.com/fluentlabs-xyz/fluentbase) project.
Loading