Trait era_test_node::namespaces::EthNamespaceT
source · pub trait EthNamespaceT: Sized + Send + Sync + 'static {
Show 36 methods
// Required methods
fn get_block_number(&self) -> BoxFuture<Result<U64>>;
fn chain_id(&self) -> BoxFuture<Result<U64>>;
fn call(
&self,
req: CallRequest,
block: Option<BlockIdVariant>
) -> BoxFuture<Result<Bytes>>;
fn estimate_gas(
&self,
req: CallRequest,
_block: Option<BlockNumber>
) -> BoxFuture<Result<U256>>;
fn gas_price(&self) -> BoxFuture<Result<U256>>;
fn new_filter(&self, filter: Filter) -> BoxFuture<Result<U256>>;
fn new_block_filter(&self) -> BoxFuture<Result<U256>>;
fn uninstall_filter(&self, idx: U256) -> BoxFuture<Result<bool>>;
fn new_pending_transaction_filter(&self) -> BoxFuture<Result<U256>>;
fn get_logs(&self, filter: Filter) -> BoxFuture<Result<Vec<Log>>>;
fn get_filter_logs(
&self,
filter_index: U256
) -> BoxFuture<Result<FilterChanges>>;
fn get_filter_changes(
&self,
filter_index: U256
) -> BoxFuture<Result<FilterChanges>>;
fn get_balance(
&self,
address: Address,
block: Option<BlockIdVariant>
) -> BoxFuture<Result<U256>>;
fn get_block_by_number(
&self,
block_number: BlockNumber,
full_transactions: bool
) -> BoxFuture<Result<Option<Block<TransactionVariant>>>>;
fn get_block_by_hash(
&self,
hash: H256,
full_transactions: bool
) -> BoxFuture<Result<Option<Block<TransactionVariant>>>>;
fn get_block_transaction_count_by_number(
&self,
block_number: BlockNumber
) -> BoxFuture<Result<Option<U256>>>;
fn get_block_transaction_count_by_hash(
&self,
block_hash: H256
) -> BoxFuture<Result<Option<U256>>>;
fn get_code(
&self,
address: Address,
block: Option<BlockIdVariant>
) -> BoxFuture<Result<Bytes>>;
fn get_storage(
&self,
address: Address,
idx: U256,
block: Option<BlockIdVariant>
) -> BoxFuture<Result<H256>>;
fn get_transaction_count(
&self,
address: Address,
block: Option<BlockIdVariant>
) -> BoxFuture<Result<U256>>;
fn get_transaction_by_hash(
&self,
hash: H256
) -> BoxFuture<Result<Option<Transaction>>>;
fn get_transaction_by_block_hash_and_index(
&self,
block_hash: H256,
index: Index
) -> BoxFuture<Result<Option<Transaction>>>;
fn get_transaction_by_block_number_and_index(
&self,
block_number: BlockNumber,
index: Index
) -> BoxFuture<Result<Option<Transaction>>>;
fn get_transaction_receipt(
&self,
hash: H256
) -> BoxFuture<Result<Option<TransactionReceipt>>>;
fn protocol_version(&self) -> BoxFuture<Result<String>>;
fn send_raw_transaction(&self, tx_bytes: Bytes) -> BoxFuture<Result<H256>>;
fn syncing(&self) -> BoxFuture<Result<SyncState>>;
fn accounts(&self) -> BoxFuture<Result<Vec<Address>>>;
fn coinbase(&self) -> BoxFuture<Result<Address>>;
fn compilers(&self) -> BoxFuture<Result<Vec<String>>>;
fn hashrate(&self) -> BoxFuture<Result<U256>>;
fn get_uncle_count_by_block_hash(
&self,
hash: H256
) -> BoxFuture<Result<Option<U256>>>;
fn get_uncle_count_by_block_number(
&self,
number: BlockNumber
) -> BoxFuture<Result<Option<U256>>>;
fn mining(&self) -> BoxFuture<Result<bool>>;
fn fee_history(
&self,
block_count: U64,
newest_block: BlockNumber,
reward_percentiles: Vec<f32>
) -> BoxFuture<Result<FeeHistory>>;
// Provided method
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M> { ... }
}
Required Methods§
fn get_block_number(&self) -> BoxFuture<Result<U64>>
fn chain_id(&self) -> BoxFuture<Result<U64>>
fn call( &self, req: CallRequest, block: Option<BlockIdVariant> ) -> BoxFuture<Result<Bytes>>
fn estimate_gas( &self, req: CallRequest, _block: Option<BlockNumber> ) -> BoxFuture<Result<U256>>
fn gas_price(&self) -> BoxFuture<Result<U256>>
fn new_filter(&self, filter: Filter) -> BoxFuture<Result<U256>>
fn new_block_filter(&self) -> BoxFuture<Result<U256>>
fn uninstall_filter(&self, idx: U256) -> BoxFuture<Result<bool>>
fn new_pending_transaction_filter(&self) -> BoxFuture<Result<U256>>
fn get_logs(&self, filter: Filter) -> BoxFuture<Result<Vec<Log>>>
fn get_filter_logs( &self, filter_index: U256 ) -> BoxFuture<Result<FilterChanges>>
fn get_filter_changes( &self, filter_index: U256 ) -> BoxFuture<Result<FilterChanges>>
fn get_balance( &self, address: Address, block: Option<BlockIdVariant> ) -> BoxFuture<Result<U256>>
fn get_block_by_number( &self, block_number: BlockNumber, full_transactions: bool ) -> BoxFuture<Result<Option<Block<TransactionVariant>>>>
fn get_block_by_hash( &self, hash: H256, full_transactions: bool ) -> BoxFuture<Result<Option<Block<TransactionVariant>>>>
fn get_block_transaction_count_by_number( &self, block_number: BlockNumber ) -> BoxFuture<Result<Option<U256>>>
fn get_block_transaction_count_by_hash( &self, block_hash: H256 ) -> BoxFuture<Result<Option<U256>>>
fn get_code( &self, address: Address, block: Option<BlockIdVariant> ) -> BoxFuture<Result<Bytes>>
fn get_storage( &self, address: Address, idx: U256, block: Option<BlockIdVariant> ) -> BoxFuture<Result<H256>>
fn get_transaction_count( &self, address: Address, block: Option<BlockIdVariant> ) -> BoxFuture<Result<U256>>
fn get_transaction_by_hash( &self, hash: H256 ) -> BoxFuture<Result<Option<Transaction>>>
fn get_transaction_by_block_hash_and_index( &self, block_hash: H256, index: Index ) -> BoxFuture<Result<Option<Transaction>>>
fn get_transaction_by_block_number_and_index( &self, block_number: BlockNumber, index: Index ) -> BoxFuture<Result<Option<Transaction>>>
fn get_transaction_receipt( &self, hash: H256 ) -> BoxFuture<Result<Option<TransactionReceipt>>>
fn protocol_version(&self) -> BoxFuture<Result<String>>
fn send_raw_transaction(&self, tx_bytes: Bytes) -> BoxFuture<Result<H256>>
fn syncing(&self) -> BoxFuture<Result<SyncState>>
fn accounts(&self) -> BoxFuture<Result<Vec<Address>>>
fn coinbase(&self) -> BoxFuture<Result<Address>>
fn compilers(&self) -> BoxFuture<Result<Vec<String>>>
fn hashrate(&self) -> BoxFuture<Result<U256>>
fn get_uncle_count_by_block_hash( &self, hash: H256 ) -> BoxFuture<Result<Option<U256>>>
fn get_uncle_count_by_block_number( &self, number: BlockNumber ) -> BoxFuture<Result<Option<U256>>>
fn mining(&self) -> BoxFuture<Result<bool>>
fn fee_history( &self, block_count: U64, newest_block: BlockNumber, reward_percentiles: Vec<f32> ) -> BoxFuture<Result<FeeHistory>>
Provided Methods§
sourcefn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
Create an IoDelegate
, wiring rpc calls to the trait methods.
Object Safety§
This trait is not object safe.