-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: common aliases in alias.rs (#1535)
- Loading branch information
1 parent
4a6bad9
commit e9ddf5d
Showing
24 changed files
with
90 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
//! Type aliases for external crates types that conflict with our own types or are too verbose. | ||
use ethereum_types::H256; | ||
|
||
use crate::eth::primitives::ExternalTransaction; | ||
|
||
// ----------------------------------------------------------------------------- | ||
// Serde | ||
// ----------------------------------------------------------------------------- | ||
pub type JsonValue = serde_json::Value; | ||
|
||
// ----------------------------------------------------------------------------- | ||
// Ethers | ||
// ----------------------------------------------------------------------------- | ||
pub type EthersBlockVoid = ethers_core::types::Block<()>; | ||
pub type EthersBlockEthersTransaction = ethers_core::types::Block<ethers_core::types::Transaction>; | ||
pub type EthersBlockExternalTransaction = ethers_core::types::Block<ExternalTransaction>; | ||
pub type EthersBlockH256 = ethers_core::types::Block<H256>; | ||
pub type EthersBytes = ethers_core::types::Bytes; | ||
pub type EthersLog = ethers_core::types::Log; | ||
pub type EthersReceipt = ethers_core::types::TransactionReceipt; | ||
pub type EthersTransaction = ethers_core::types::Transaction; | ||
|
||
// ----------------------------------------------------------------------------- | ||
// REVM | ||
// ----------------------------------------------------------------------------- | ||
pub type RevmAccountInfo = revm::primitives::AccountInfo; | ||
pub type RevmAddress = revm::primitives::Address; | ||
pub type RevmB256 = revm::primitives::B256; | ||
pub type RevmBytecode = revm::primitives::Bytecode; | ||
pub type RevmBytes = revm::primitives::Bytes; | ||
pub type RevmLog = revm::primitives::Log; | ||
pub type RevmOutput = revm::primitives::Output; | ||
pub type RevmState = revm::primitives::State; | ||
pub type RevmU256 = revm::primitives::U256; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.