mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-06-15 19:31:03 +00:00
Remove unused imports
This commit is contained in:
+10
-22
@@ -1,26 +1,21 @@
|
|||||||
use std::{
|
use std::{
|
||||||
fs::{File, OpenOptions, create_dir_all, remove_dir_all},
|
fs::{File, create_dir_all},
|
||||||
io::{BufRead, Write},
|
path::PathBuf,
|
||||||
path::{Path, PathBuf},
|
|
||||||
pin::Pin,
|
pin::Pin,
|
||||||
process::{Child, Command, Stdio},
|
process::Child,
|
||||||
sync::{
|
sync::{
|
||||||
Arc,
|
Arc,
|
||||||
atomic::{AtomicU32, Ordering},
|
atomic::{AtomicU32, Ordering},
|
||||||
},
|
},
|
||||||
time::Duration,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
use alloy::{
|
use alloy::{
|
||||||
consensus::{BlockHeader, TxEnvelope},
|
genesis::Genesis,
|
||||||
eips::BlockNumberOrTag,
|
|
||||||
genesis::{Genesis, GenesisAccount},
|
|
||||||
network::{
|
network::{
|
||||||
self, Ethereum, EthereumWallet, Network, NetworkWallet, TransactionBuilder,
|
EthereumWallet, TransactionBuilder,
|
||||||
TransactionBuilderError, UnbuiltTransactionError,
|
|
||||||
},
|
},
|
||||||
primitives::{
|
primitives::{
|
||||||
Address, B64, B256, BlockHash, BlockNumber, BlockTimestamp, Bloom, Bytes, StorageKey,
|
Address, StorageKey,
|
||||||
TxHash, U256,
|
TxHash, U256,
|
||||||
},
|
},
|
||||||
providers::{
|
providers::{
|
||||||
@@ -30,29 +25,22 @@ use alloy::{
|
|||||||
},
|
},
|
||||||
rpc::types::{
|
rpc::types::{
|
||||||
EIP1186AccountProofResponse, TransactionReceipt,
|
EIP1186AccountProofResponse, TransactionReceipt,
|
||||||
eth::{Block, Header, Transaction},
|
trace::geth::{DiffMode, GethDebugTracingOptions},
|
||||||
trace::geth::{DiffMode, GethDebugTracingOptions, PreStateConfig, PreStateFrame},
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
use anyhow::Context as _;
|
use anyhow::Context as _;
|
||||||
use revive_common::EVMVersion;
|
use revive_common::EVMVersion;
|
||||||
use revive_dt_common::fs::clear_directory;
|
use revive_dt_common::fs::clear_directory;
|
||||||
use revive_dt_format::traits::ResolverApi;
|
use revive_dt_format::traits::ResolverApi;
|
||||||
use serde::{Deserialize, Serialize, de};
|
|
||||||
use serde_json::{Value as JsonValue, json};
|
|
||||||
use sp_core::crypto::Ss58Codec;
|
|
||||||
use sp_runtime::AccountId32;
|
|
||||||
|
|
||||||
use revive_dt_config::*;
|
use revive_dt_config::*;
|
||||||
use revive_dt_node_interaction::EthereumNode;
|
use revive_dt_node_interaction::EthereumNode;
|
||||||
use tracing::instrument;
|
|
||||||
use zombienet_sdk::{
|
use zombienet_sdk::{
|
||||||
LocalFileSystem, NetworkConfigBuilder, NetworkConfigExt, Orchestrator, OrchestratorError,
|
LocalFileSystem, NetworkConfigBuilder, NetworkConfigExt,
|
||||||
subxt::{client::OnlineClient, config, tx::TxClient},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
Node, common::FallbackGasFiller, constants::INITIAL_BALANCE, substrate::ReviveNetwork,
|
common::FallbackGasFiller, substrate::ReviveNetwork,
|
||||||
};
|
};
|
||||||
|
|
||||||
static NODE_COUNT: AtomicU32 = AtomicU32::new(0);
|
static NODE_COUNT: AtomicU32 = AtomicU32::new(0);
|
||||||
@@ -111,7 +99,7 @@ impl ZombieNode {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn init(&mut self, mut genesis: Genesis) -> anyhow::Result<&mut Self> {
|
fn init(&mut self, genesis: Genesis) -> anyhow::Result<&mut Self> {
|
||||||
let _ = clear_directory(&self.base_directory);
|
let _ = clear_directory(&self.base_directory);
|
||||||
let _ = clear_directory(&self.logs_directory);
|
let _ = clear_directory(&self.logs_directory);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user