DataSource

Type Alias DataSource 

Source
pub type DataSource = SqlDataSource<SeqTypes, Provider>;

Aliased Type§

pub struct DataSource { /* private fields */ }

Trait Implementations§

Source§

impl CatchupStorage for DataSource

Source§

async fn get_accounts( &self, instance: &NodeState, height: u64, view: ViewNumber, accounts: &[FeeAccount], ) -> Result<(FeeMerkleTree, Leaf2)>

Get the state of the requested accounts. Read more
Source§

async fn get_reward_accounts_v2( &self, instance: &NodeState, height: u64, view: ViewNumber, accounts: &[RewardAccountV2], ) -> Result<(RewardMerkleTreeV2, Leaf2)>

Source§

async fn get_reward_accounts_v1( &self, instance: &NodeState, height: u64, view: ViewNumber, accounts: &[RewardAccountV1], ) -> Result<(RewardMerkleTreeV1, Leaf2)>

Source§

async fn get_frontier( &self, instance: &NodeState, height: u64, view: ViewNumber, ) -> Result<BlocksFrontier>

Get the blocks Merkle tree frontier. Read more
Source§

async fn get_chain_config( &self, commitment: Commitment<ChainConfig>, ) -> Result<ChainConfig>

Source§

async fn get_leaf_chain(&self, height: u64) -> Result<Vec<Leaf2>>

Source§

async fn get_all_reward_accounts( &self, height: u64, offset: u64, limit: u64, ) -> Result<Vec<(RewardAccountV2, RewardAmount)>>

Source§

impl RewardAccountProofDataSource for DataSource

Source§

impl SequencerDataSource for DataSource

Source§

type Options = Options

Source§

fn create<'async_trait>( opt: Self::Options, provider: Provider, reset: bool, ) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
where Self: 'async_trait,

Instantiate a data source from command line options.
Source§

impl TestableSequencerDataSource for DataSource

Source§

type Storage = TmpDb

Source§

fn create_storage<'async_trait>() -> Pin<Box<dyn Future<Output = Self::Storage> + Send + 'async_trait>>
where Self: 'async_trait,

Source§

fn persistence_options(storage: &Self::Storage) -> Self::Options

Source§

fn leaf_only_ds_options( storage: &Self::Storage, opt: Options, ) -> Result<Options>

Source§

fn options(storage: &Self::Storage, opt: Options) -> Options