Struct era_test_node::http_fork_source::HttpForkSource
source · pub struct HttpForkSource {
pub fork_url: String,
/* private fields */
}
Expand description
Fork source that gets the data via HTTP requests.
Fields§
§fork_url: String
URL for the network to fork.
Implementations§
source§impl HttpForkSource
impl HttpForkSource
pub fn new(fork_url: String, cache_config: CacheConfig) -> Self
pub fn create_client(&self) -> HttpClient
Trait Implementations§
source§impl Debug for HttpForkSource
impl Debug for HttpForkSource
source§impl ForkSource for HttpForkSource
impl ForkSource for HttpForkSource
source§fn get_block_transaction_count_by_hash(
&self,
block_hash: H256
) -> Result<Option<U256>>
fn get_block_transaction_count_by_hash( &self, block_hash: H256 ) -> Result<Option<U256>>
Returns the transaction count for a given block hash.
source§fn get_block_transaction_count_by_number(
&self,
block_number: BlockNumber
) -> Result<Option<U256>>
fn get_block_transaction_count_by_number( &self, block_number: BlockNumber ) -> Result<Option<U256>>
Returns the transaction count for a given block number.
source§fn get_transaction_by_block_hash_and_index(
&self,
block_hash: H256,
index: Index
) -> Result<Option<Transaction>>
fn get_transaction_by_block_hash_and_index( &self, block_hash: H256, index: Index ) -> Result<Option<Transaction>>
Returns information about a transaction by block hash and transaction index position.
source§fn get_transaction_by_block_number_and_index(
&self,
block_number: BlockNumber,
index: Index
) -> Result<Option<Transaction>>
fn get_transaction_by_block_number_and_index( &self, block_number: BlockNumber, index: Index ) -> Result<Option<Transaction>>
Returns information about a transaction by block number and transaction index position.
source§fn get_storage_at(
&self,
address: Address,
idx: U256,
block: Option<BlockIdVariant>
) -> Result<H256>
fn get_storage_at( &self, address: Address, idx: U256, block: Option<BlockIdVariant> ) -> Result<H256>
Returns the Storage value at a given index for given address.
source§fn get_bytecode_by_hash(&self, hash: H256) -> Result<Option<Vec<u8>>>
fn get_bytecode_by_hash(&self, hash: H256) -> Result<Option<Vec<u8>>>
Returns the bytecode stored under this hash (if available).
source§fn get_transaction_by_hash(&self, hash: H256) -> Result<Option<Transaction>>
fn get_transaction_by_hash(&self, hash: H256) -> Result<Option<Transaction>>
Returns the transaction for a given hash.
source§fn get_raw_block_transactions(
&self,
block_number: MiniblockNumber
) -> Result<Vec<Transaction>>
fn get_raw_block_transactions( &self, block_number: MiniblockNumber ) -> Result<Vec<Transaction>>
Gets all transactions that belong to a given miniblock.
Auto Trait Implementations§
impl RefUnwindSafe for HttpForkSource
impl Send for HttpForkSource
impl Sync for HttpForkSource
impl Unpin for HttpForkSource
impl UnwindSafe for HttpForkSource
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more