ChainWriteSafeOperations

Trait ChainWriteSafeOperations 

Source
pub trait ChainWriteSafeOperations {
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn deploy_safe<'a, 'async_trait>(
        &'a self,
        balance: HoprBalance,
    ) -> Pin<Box<dyn Future<Output = Result<BoxFuture<'a, Result<ChainReceipt, Self::Error>>, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait;
}
Expand description

Operations for writing Safe information.

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

Required Methods§

Source

fn deploy_safe<'a, 'async_trait>( &'a self, balance: HoprBalance, ) -> Pin<Box<dyn Future<Output = Result<BoxFuture<'a, Result<ChainReceipt, Self::Error>>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait,

Deploys Safe with the given balance of wxHOPR tokens.

The admin of the deployed Safe is always only the Connector’s own signer. Only one Safe can be deployed per signer.

Implementations on Foreign Types§

Source§

impl<'b, T: 'b + ChainWriteSafeOperations + ?Sized> ChainWriteSafeOperations for &'b T

Source§

type Error = <T as ChainWriteSafeOperations>::Error

Source§

fn deploy_safe<'a, 'async_trait>( &'a self, balance: HoprBalance, ) -> Pin<Box<dyn Future<Output = Result<BoxFuture<'a, Result<ChainReceipt, Self::Error>>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait,

Source§

impl<T: ChainWriteSafeOperations + ?Sized> ChainWriteSafeOperations for Box<T>

Source§

type Error = <T as ChainWriteSafeOperations>::Error

Source§

fn deploy_safe<'a, 'async_trait>( &'a self, balance: HoprBalance, ) -> Pin<Box<dyn Future<Output = Result<BoxFuture<'a, Result<ChainReceipt, Self::Error>>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait,

Source§

impl<T: ChainWriteSafeOperations + ?Sized> ChainWriteSafeOperations for Arc<T>

Source§

type Error = <T as ChainWriteSafeOperations>::Error

Source§

fn deploy_safe<'a, 'async_trait>( &'a self, balance: HoprBalance, ) -> Pin<Box<dyn Future<Output = Result<BoxFuture<'a, Result<ChainReceipt, Self::Error>>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait,

Implementors§