openzeppelin_relayer::services::providerTrait StellarProviderTrait
Source pub trait StellarProviderTrait: Send + Sync {
// Required methods
fn get_account<'life0, 'life1, 'async_trait>(
&'life0 self,
account_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<AccountEntry>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn simulate_transaction_envelope<'life0, 'life1, 'async_trait>(
&'life0 self,
tx_envelope: &'life1 TransactionEnvelope,
) -> Pin<Box<dyn Future<Output = Result<SimulateTransactionResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn send_transaction_polling<'life0, 'life1, 'async_trait>(
&'life0 self,
tx_envelope: &'life1 TransactionEnvelope,
) -> Pin<Box<dyn Future<Output = Result<SorobanTransactionResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_network<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<GetNetworkResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_latest_ledger<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<GetLatestLedgerResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn send_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
tx_envelope: &'life1 TransactionEnvelope,
) -> Pin<Box<dyn Future<Output = Result<Hash>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
tx_id: &'life1 Hash,
) -> Pin<Box<dyn Future<Output = Result<GetTransactionResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_transactions<'life0, 'async_trait>(
&'life0 self,
request: GetTransactionsRequest,
) -> Pin<Box<dyn Future<Output = Result<GetTransactionsResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_ledger_entries<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [LedgerKey],
) -> Pin<Box<dyn Future<Output = Result<GetLedgerEntriesResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_events<'life0, 'async_trait>(
&'life0 self,
request: GetEventsRequest,
) -> Pin<Box<dyn Future<Output = Result<GetEventsResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}