pub trait EthereumExt {
    // Required methods
    fn eth_deploy_contract<'life0, 'async_trait>(
        &'life0 self,
        bytecode: Vec<u8>
    ) -> Pin<Box<dyn Future<Output = Result<TransactionIdentifier>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn eth_view_call<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        contract_address: &'life1 str,
        method_signature: &'life2 str,
        params: &'life3 [String]
    ) -> Pin<Box<dyn Future<Output = Result<CallResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn eth_send_call<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        contract_address: &'life1 str,
        method_signature: &'life2 str,
        params: &'life3 [String],
        amount: u128
    ) -> Pin<Box<dyn Future<Output = Result<TransactionIdentifier>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn eth_storage<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        contract_address: &'life1 str,
        storage_slot: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<CallResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn eth_storage_proof<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        contract_address: &'life1 str,
        storage_slot: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<CallResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn eth_transaction_receipt<'life0, 'life1, 'async_trait>(
        &'life0 self,
        tx_hash: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<CallResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Extension trait for the wallet. for ethereum chain

Required Methods§

source

fn eth_deploy_contract<'life0, 'async_trait>( &'life0 self, bytecode: Vec<u8> ) -> Pin<Box<dyn Future<Output = Result<TransactionIdentifier>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

deploys contract to chain

source

fn eth_view_call<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, contract_address: &'life1 str, method_signature: &'life2 str, params: &'life3 [String] ) -> Pin<Box<dyn Future<Output = Result<CallResponse>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

calls a contract view call function

source

fn eth_send_call<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, contract_address: &'life1 str, method_signature: &'life2 str, params: &'life3 [String], amount: u128 ) -> Pin<Box<dyn Future<Output = Result<TransactionIdentifier>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

calls contract send call function

source

fn eth_storage<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, contract_address: &'life1 str, storage_slot: &'life2 str ) -> Pin<Box<dyn Future<Output = Result<CallResponse>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

gets storage from ethereum contract

source

fn eth_storage_proof<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, contract_address: &'life1 str, storage_slot: &'life2 str ) -> Pin<Box<dyn Future<Output = Result<CallResponse>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

gets storage proof from ethereum contract

source

fn eth_transaction_receipt<'life0, 'life1, 'async_trait>( &'life0 self, tx_hash: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<CallResponse>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

gets transaction receipt of specific hash

Implementors§