Trait rosetta_client::EthereumExt
source · 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§
sourcefn 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_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
sourcefn 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_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
sourcefn 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_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
sourcefn 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<'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
sourcefn 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_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