Skip to main content

TokenDataSource

Trait TokenDataSource 

Source
pub(crate) trait TokenDataSource<T: NodeType> {
    // Required methods
    fn get_initial_supply_l1(&self) -> impl Send + Future<Output = Result<U256>>;
    fn get_total_supply_l1(&self) -> impl Send + Future<Output = Result<U256>>;
    fn get_decided_header(&self) -> impl Send + Future<Output = Header>;
}

Required Methods§

Source

fn get_initial_supply_l1(&self) -> impl Send + Future<Output = Result<U256>>

Source

fn get_total_supply_l1(&self) -> impl Send + Future<Output = Result<U256>>

Source

fn get_decided_header(&self) -> impl Send + Future<Output = Header>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<D: Send + Sync> TokenDataSource<SeqTypes> for ExtensibleDataSource<D, ApiState>

Source§

async fn get_initial_supply_l1(&self) -> Result<U256>

Source§

async fn get_total_supply_l1(&self) -> Result<U256>

Source§

async fn get_decided_header(&self) -> Header

Implementors§