Trait sui_faucet::Faucet

source ·
pub trait Faucet {
    // Required methods
    fn send<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: Uuid,
        recipient: SuiAddress,
        amounts: &'life1 [u64]
    ) -> Pin<Box<dyn Future<Output = Result<FaucetReceipt, FaucetError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn batch_send<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: Uuid,
        recipient: SuiAddress,
        amounts: &'life1 [u64]
    ) -> Pin<Box<dyn Future<Output = Result<BatchFaucetReceipt, FaucetError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_batch_send_status<'life0, 'async_trait>(
        &'life0 self,
        task_id: Uuid
    ) -> Pin<Box<dyn Future<Output = Result<BatchSendStatus, FaucetError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn send<'life0, 'life1, 'async_trait>( &'life0 self, id: Uuid, recipient: SuiAddress, amounts: &'life1 [u64] ) -> Pin<Box<dyn Future<Output = Result<FaucetReceipt, FaucetError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Send Coin<SUI> of the specified amount to the recipient

source

fn batch_send<'life0, 'life1, 'async_trait>( &'life0 self, id: Uuid, recipient: SuiAddress, amounts: &'life1 [u64] ) -> Pin<Box<dyn Future<Output = Result<BatchFaucetReceipt, FaucetError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Send Coin<SUI> of the specified amount to the recipient in a batch request

source

fn get_batch_send_status<'life0, 'async_trait>( &'life0 self, task_id: Uuid ) -> Pin<Box<dyn Future<Output = Result<BatchSendStatus, FaucetError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the status of a batch_send request

Implementors§