ChainIdentity

Trait ChainIdentity 

Source
pub trait ChainIdentity {
    // Required methods
    fn get_chain_id(&self) -> usize;
    fn get_id_address(&self) -> Address;
    fn get_adapter_address(&self) -> Address;
    fn get_client(&self) -> Arc<WsWalletSigner>;
    fn get_contract_transaction_retry_descriptor(
        &self,
    ) -> ExponentialBackoffRetryDescriptor;
    fn get_contract_view_retry_descriptor(
        &self,
    ) -> ExponentialBackoffRetryDescriptor;
    fn get_current_gas_price<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<U256, ProviderError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_block_timestamp<'life0, 'async_trait>(
        &'life0 self,
        block_number: BlockNumber,
    ) -> Pin<Box<dyn Future<Output = Result<Option<U256>, ProviderError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn get_chain_id(&self) -> usize

Source

fn get_id_address(&self) -> Address

Source

fn get_adapter_address(&self) -> Address

Source

fn get_client(&self) -> Arc<WsWalletSigner>

Source

fn get_contract_transaction_retry_descriptor( &self, ) -> ExponentialBackoffRetryDescriptor

Source

fn get_contract_view_retry_descriptor( &self, ) -> ExponentialBackoffRetryDescriptor

Source

fn get_current_gas_price<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<U256, ProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_block_timestamp<'life0, 'async_trait>( &'life0 self, block_number: BlockNumber, ) -> Pin<Box<dyn Future<Output = Result<Option<U256>, ProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§