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

Preliminary draft of a (non-functional) unit test for svm #33

Open
wants to merge 15 commits into
base: feat/fuel-vm
Choose a base branch
from
75 changes: 75 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ anyhow = { version = "1.0.86", default-features = false }
syn = "2.0"
clap = { version = "4.5", features = ["derive"] }
phantom-type = { version = "0.5.0", default-features = false }
solana_rbpf = "0.8.5"

[profile.bench]
lto = "fat"
Expand Down
Binary file modified crates/contracts/assets/precompile_blake2.wasm
Binary file not shown.
Binary file modified crates/contracts/assets/precompile_ecrecover.wasm
Binary file not shown.
Binary file modified crates/contracts/assets/precompile_evm.wasm
Binary file not shown.
Binary file modified crates/contracts/assets/precompile_fvm.rwasm
Binary file not shown.
Binary file modified crates/contracts/assets/precompile_fvm.wasm
Binary file not shown.
Binary file modified crates/contracts/assets/precompile_greeting.wasm
Binary file not shown.
Binary file modified crates/contracts/assets/precompile_identity.wasm
Binary file not shown.
Binary file modified crates/contracts/assets/precompile_modexp.wasm
Binary file not shown.
Binary file modified crates/contracts/assets/precompile_ripemd160.wasm
Binary file not shown.
Binary file modified crates/contracts/assets/precompile_sha256.wasm
Binary file not shown.
4 changes: 4 additions & 0 deletions crates/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@ anyhow = { workspace = true, default-features = false }
postcard = { workspace = true, default-features = false, features = ["alloc"] }
keccak-hash = { version = "0.11.0", default-features = false }
phantom-type = { workspace = true }
solana_rbpf = { workspace = true }

# sp1 executor for ELF binaries
sp1-core-executor = { version = "2.0.0", optional = true }
thiserror = "1.0.64"
base64 = "0.22.1"
itertools = "0.10.5"

[dev-dependencies]
fluentbase-sdk = { workspace = true, default-features = false }
Expand Down
4 changes: 3 additions & 1 deletion crates/core/src/blended.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ mod evm;
mod syscall;
mod util;
mod wasm;
pub mod svm;

use crate::{debug_log, helpers::evm_error_from_exit_code, types::NextAction};
use alloc::{boxed::Box, str::from_utf8};
use alloc::boxed::Box;
use fluentbase_sdk::{
codec::Encoder,
env_from_context,
Expand Down
Loading