Skip to content

Commit

Permalink
Add sandbox feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
karim-en committed Oct 18, 2023
1 parent d1b5a98 commit a4cf88b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 4 additions & 1 deletion eth2near/contract_wrapper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ serde_json = "1.0.74"
serde = { version = "1.0", features = ["derive"] }
eth-types = { path = "../../contracts/near/eth-types/" }
eth2-utility = { path = "../../contracts/near/eth2-utility/" }
workspaces = { version = "0.7", optional = true }

[dev-dependencies]
workspaces = "0.7"
futures = "0.3.21"
anyhow = "1.0"

[features]
sandbox = ["workspaces"]
2 changes: 1 addition & 1 deletion eth2near/contract_wrapper/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ pub mod file_eth_client_contract;
pub mod near_contract_wrapper;
pub mod near_network;
pub mod near_rpc_client;
#[cfg(test)]
#[cfg(feature = "sandbox")]
pub mod sandbox_contract_wrapper;
pub mod utils;
7 changes: 4 additions & 3 deletions eth2near/eth2-contract-init/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ edition = "2021"
[dependencies]
tree_hash = { git = "https://github.com/aurora-is-near/lighthouse.git", tag = "v3.5.1-wasm" }
merkle_proof = { git = "https://github.com/aurora-is-near/lighthouse.git", tag = "v3.5.1-wasm" }
types = { git = "https://github.com/aurora-is-near/lighthouse.git", tag = "v3.5.1-wasm" }
eth2_to_near_relay = { path = "../eth2near-block-relay-rs"}
types = { git = "https://github.com/aurora-is-near/lighthouse.git", tag = "v3.5.1-wasm" }
eth2_to_near_relay = { path = "../eth2near-block-relay-rs" }
eth_rpc_client = { path = "../eth_rpc_client" }
eth-types = { path = "../../contracts/near/eth-types/" }
eth2-utility = { path = "../../contracts/near/eth2-utility" }
eth2-utility = { path = "../../contracts/near/eth2-utility" }
contract_wrapper = { path = "../contract_wrapper" }
log = { version = "0.4", features = ["std", "serde"] }
clap = { version = "3.1.6", features = ["derive"] }
Expand All @@ -26,3 +26,4 @@ dotenv = "0.15.0"
[dev-dependencies]
workspaces = "0.7"
tokio = { version = "1.1", features = ["macros", "rt", "time"] }
contract_wrapper = { path = "../contract_wrapper", features = ["sandbox"] }
1 change: 1 addition & 0 deletions eth2near/eth2near-block-relay-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,4 @@ dotenv = "0.15.0"
[dev-dependencies]
workspaces = "0.7"
eth2-contract-init = { path = "../eth2-contract-init" }
contract_wrapper = { path = "../contract_wrapper", features = ["sandbox"] }

0 comments on commit a4cf88b

Please sign in to comment.