pub trait NativeTokenManagementDataSource {
// Required method
fn get_total_native_token_transfer<'life0, 'async_trait>(
&'life0 self,
after_block: Option<McBlockHash>,
to_block: McBlockHash,
scripts: MainChainScripts,
) -> Pin<Box<dyn Future<Output = Result<NativeTokenAmount, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Interface for a data source serving native token transfer data compatible with NativeTokenManagementInherentDataProvider.
Required Methods§
Sourcefn get_total_native_token_transfer<'life0, 'async_trait>(
&'life0 self,
after_block: Option<McBlockHash>,
to_block: McBlockHash,
scripts: MainChainScripts,
) -> Pin<Box<dyn Future<Output = Result<NativeTokenAmount, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_total_native_token_transfer<'life0, 'async_trait>(
&'life0 self,
after_block: Option<McBlockHash>,
to_block: McBlockHash,
scripts: MainChainScripts,
) -> Pin<Box<dyn Future<Output = Result<NativeTokenAmount, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves total of native token transfers into the illiquid supply in the range (after_block, to_block]