Trait LedgerProvider
Source pub trait LedgerProvider {
// Required methods
fn read_utxos<'life0, 'async_trait>(
&'life0 mut self,
refs: Vec<TxoRef>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Utxo>, LedgerError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn search_utxos<'life0, 'async_trait>(
&'life0 mut self,
pattern: UtxoPattern,
start: Option<String>,
max_items: u32,
) -> Pin<Box<dyn Future<Output = Result<UtxoPage, LedgerError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn read_params<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Json, LedgerError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}