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§
Required Methods§
Sourcefn 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,
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.