Trait Fetcher
Source pub trait Fetcher: Send + Sync {
// Required methods
fn fetch_account_info<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<AccountInfo, WError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn fetch_address_utxos<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
address: &'life1 str,
asset: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<UTxO>, WError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn fetch_asset_addresses<'life0, 'life1, 'async_trait>(
&'life0 self,
asset: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<(String, String)>, WError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn fetch_asset_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
asset: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<HashMap<String, Value>>, WError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn fetch_block_info<'life0, 'life1, 'async_trait>(
&'life0 self,
hash: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<BlockInfo, WError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn fetch_collection_assets<'life0, 'life1, 'async_trait>(
&'life0 self,
policy_id: &'life1 str,
cursor: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<(Vec<(String, String)>, Option<String>), WError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn fetch_protocol_parameters<'life0, 'async_trait>(
&'life0 self,
epoch: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<Protocol, WError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn fetch_tx_info<'life0, 'life1, 'async_trait>(
&'life0 self,
hash: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<TransactionInfo, WError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn fetch_utxos<'life0, 'life1, 'async_trait>(
&'life0 self,
hash: &'life1 str,
index: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<Vec<UTxO>, WError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Value, WError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}