pub trait ChainWriteAccountOperations {
type Error: Error + Send + Sync + 'static;
// Required methods
fn announce<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
multiaddrs: &'life1 [Multiaddr],
key: &'life2 OffchainKeypair,
) -> Pin<Box<dyn Future<Output = Result<BoxFuture<'_, Result<ChainReceipt, Self::Error>>, AnnouncementError<Self::Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn withdraw<'life0, 'life1, 'async_trait, C>(
&'life0 self,
balance: Balance<C>,
recipient: &'life1 Address,
) -> Pin<Box<dyn Future<Output = Result<BoxFuture<'_, Result<ChainReceipt, Self::Error>>, Self::Error>> + Send + 'async_trait>>
where C: 'async_trait + Currency + Send,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn register_safe<'life0, 'life1, 'async_trait>(
&'life0 self,
safe_address: &'life1 Address,
) -> Pin<Box<dyn Future<Output = Result<BoxFuture<'_, Result<ChainReceipt, Self::Error>>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
On-chain write operations regarding on-chain node accounts.
Required Associated Types§
Required Methods§
Sourcefn announce<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
multiaddrs: &'life1 [Multiaddr],
key: &'life2 OffchainKeypair,
) -> Pin<Box<dyn Future<Output = Result<BoxFuture<'_, Result<ChainReceipt, Self::Error>>, AnnouncementError<Self::Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn announce<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
multiaddrs: &'life1 [Multiaddr],
key: &'life2 OffchainKeypair,
) -> Pin<Box<dyn Future<Output = Result<BoxFuture<'_, Result<ChainReceipt, Self::Error>>, AnnouncementError<Self::Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Announces transport key and list of multi addresses.
Sourcefn withdraw<'life0, 'life1, 'async_trait, C>(
&'life0 self,
balance: Balance<C>,
recipient: &'life1 Address,
) -> Pin<Box<dyn Future<Output = Result<BoxFuture<'_, Result<ChainReceipt, Self::Error>>, Self::Error>> + Send + 'async_trait>>
fn withdraw<'life0, 'life1, 'async_trait, C>( &'life0 self, balance: Balance<C>, recipient: &'life1 Address, ) -> Pin<Box<dyn Future<Output = Result<BoxFuture<'_, Result<ChainReceipt, Self::Error>>, Self::Error>> + Send + 'async_trait>>
Withdraws native or token currency.
Sourcefn register_safe<'life0, 'life1, 'async_trait>(
&'life0 self,
safe_address: &'life1 Address,
) -> Pin<Box<dyn Future<Output = Result<BoxFuture<'_, Result<ChainReceipt, Self::Error>>, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn register_safe<'life0, 'life1, 'async_trait>(
&'life0 self,
safe_address: &'life1 Address,
) -> Pin<Box<dyn Future<Output = Result<BoxFuture<'_, Result<ChainReceipt, Self::Error>>, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Registers Safe address with the current node.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.