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) -> Client<L2>
Trait Implementations§
source§impl Clone for HttpForkSource
impl Clone for HttpForkSource
source§fn clone(&self) -> HttpForkSource
fn clone(&self) -> HttpForkSource
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§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_block_details(
&self,
miniblock: L2BlockNumber
) -> Result<Option<BlockDetails>>
fn get_block_details( &self, miniblock: L2BlockNumber ) -> Result<Option<BlockDetails>>
Returns details of a block, given miniblock number
source§fn get_fee_params(&self) -> Result<FeeParams>
fn get_fee_params(&self) -> Result<FeeParams>
Returns fee parameters for the give source.
source§fn get_bridge_contracts(&self) -> Result<BridgeAddresses>
fn get_bridge_contracts(&self) -> Result<BridgeAddresses>
Returns addresses of the default bridge contracts.
source§fn get_confirmed_tokens(&self, from: u32, limit: u8) -> Result<Vec<Token>>
fn get_confirmed_tokens(&self, from: u32, limit: u8) -> Result<Vec<Token>>
Returns known token addresses
source§fn get_fork_url(&self) -> Result<String>
fn get_fork_url(&self) -> Result<String>
Returns the forked URL.
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_transaction_details(
&self,
hash: H256
) -> Result<Option<TransactionDetails>>
fn get_transaction_details( &self, hash: H256 ) -> Result<Option<TransactionDetails>>
Returns the transaction details for a given hash.
source§fn get_raw_block_transactions(
&self,
block_number: L2BlockNumber
) -> Result<Vec<Transaction>>
fn get_raw_block_transactions( &self, block_number: L2BlockNumber ) -> 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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request