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", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<N: ConnectedNetwork<PubKey>, D: Send + Sync, P: SequencerPersistence> TokenDataSource<SeqTypes> for ExtensibleDataSource<D, ApiState<N, P>>

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§