Skip to content

Commit

Permalink
updated utils name
Browse files Browse the repository at this point in the history
  • Loading branch information
ManojJiSharma committed Sep 23, 2024
1 parent bc4fdd8 commit 26a21e7
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 19 deletions.
20 changes: 10 additions & 10 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ members = [
"chains/polygon/rosetta-testing-polygon",
"chains/binance",
"chains/avalanche",
"chains/utils",
"chains/rosetta-chain-testing",
]
resolver = "2"

Expand Down
2 changes: 1 addition & 1 deletion chains/avalanche/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ ethers = { version = "2.0", default-features = true, features = ["abigen", "rust
ethers-solc = "2.0"
hex-literal = "0.4"
rand_core = { version = "0.6", features = ["getrandom"] }
rosetta-chain-testing = { path = "../rosetta-chain-testing" }
rosetta-client.workspace = true
rosetta-config-ethereum.workspace = true
rosetta-core.workspace = true
Expand All @@ -22,7 +23,6 @@ sha3 = "0.10"
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
tracing = "0.1.40"
url = "2.4"
utils = { path = "../utils" }

[dev-dependencies]
serial_test = "3.1.1"
2 changes: 1 addition & 1 deletion chains/avalanche/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ mod tests {
use ethers::types::H256;
use ethers_solc::{artifacts::Source, CompilerInput, EvmVersion, Solc};
use hex_literal::hex;
use rosetta_chain_testing::run_test;
use rosetta_client::Wallet;
use rosetta_config_ethereum::{AtBlock, CallResult};
use rosetta_core::BlockchainClient;
use rosetta_server_ethereum::MaybeWsEthereumClient;
use serial_test::serial;
use sha3::Digest;
use std::{collections::BTreeMap, path::Path};
use utils::run_test;

/// Account used to fund other testing accounts.
const FUNDING_ACCOUNT_PRIVATE_KEY: [u8; 32] =
Expand Down
2 changes: 1 addition & 1 deletion chains/binance/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ anyhow = "1.0"
ethers = { version = "2.0", default-features = true, features = ["abigen", "rustls", "ws"] }
ethers-solc = "2.0"
hex-literal = "0.4"
rosetta-chain-testing = { path = "../rosetta-chain-testing" }
rosetta-client.workspace = true
rosetta-config-ethereum.workspace = true
rosetta-core.workspace = true
rosetta-server-ethereum.workspace = true
sha3 = "0.10"
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
utils = { path = "../utils" }
2 changes: 1 addition & 1 deletion chains/binance/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ mod tests {

use ethers_solc::{artifacts::Source, CompilerInput, EvmVersion, Solc};
use hex_literal::hex;
use rosetta_chain_testing::run_test;
use rosetta_client::Wallet;
use rosetta_config_ethereum::{AtBlock, CallResult};
use rosetta_core::BlockchainClient;
use rosetta_server_ethereum::MaybeWsEthereumClient;
use sha3::Digest;
use std::{collections::BTreeMap, path::Path};
use utils::run_test;

/// Binance rpc url
const BINANCE_RPC_WS_URL: &str = "ws://127.0.0.1:8546";
Expand Down
2 changes: 1 addition & 1 deletion chains/polygon/rosetta-testing-polygon/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ anyhow = "1.0"
ethers = { version = "2.0", default-features = true, features = ["abigen", "rustls", "ws"] }
ethers-solc = "2.0"
hex-literal = "0.4"
rosetta-chain-testing = { path = "../../rosetta-chain-testing" }
rosetta-client.workspace = true
rosetta-config-ethereum.workspace = true
rosetta-core.workspace = true
rosetta-server-ethereum.workspace = true
sha3 = "0.10"
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
utils = { path = "../../utils" }
2 changes: 1 addition & 1 deletion chains/polygon/rosetta-testing-polygon/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ mod tests {

use ethers_solc::{artifacts::Source, CompilerInput, EvmVersion, Solc};
use hex_literal::hex;
use rosetta_chain_testing::run_test;
use rosetta_client::Wallet;
use rosetta_config_ethereum::{AtBlock, CallResult};
use rosetta_core::BlockchainClient;
use rosetta_server_ethereum::MaybeWsEthereumClient;
use sha3::Digest;
use std::{collections::BTreeMap, path::Path};
use utils::run_test;

/// Polygon rpc url
const POLYGON_RPC_WS_URL: &str = "ws://127.0.0.1:8546";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "utils"
name = "rosetta-chain-testing"
version = "0.1.0"
edition = "2021"
license = "MIT"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::future::Future;

/// Run the test in another thread while sending txs to force binance to mine new blocks
/// Run the test in another thread while sending txs
/// # Panic
/// Panics if the future panics
pub async fn run_test<Fut: Future<Output = ()> + Send + 'static>(future: Fut) {
Expand Down

0 comments on commit 26a21e7

Please sign in to comment.