Trait brontes_types::db::traits::DBWriter

source ·
pub trait DBWriter:
    Send
    + Unpin
    + 'static {
    type Inner: DBWriter;

Show 13 methods // Required method fn inner(&self) -> &Self::Inner; // Provided methods fn write_block_analysis( &self, block_analysis: BlockAnalysis, ) -> impl Future<Output = Result<()>> + Send { ... } fn write_dex_quotes( &self, block_number: u64, quotes: Option<DexQuotes>, ) -> impl Future<Output = Result<()>> + Send { ... } fn write_token_info( &self, address: Address, decimals: u8, symbol: String, ) -> impl Future<Output = Result<()>> + Send { ... } fn save_mev_blocks( &self, block_number: u64, block: MevBlock, mev: Vec<Bundle>, ) -> impl Future<Output = Result<()>> + Send { ... } fn write_searcher_info( &self, eoa_address: Address, contract_address: Option<Address>, eoa_info: SearcherInfo, contract_info: Option<SearcherInfo>, ) -> impl Future<Output = Result<()>> + Send { ... } fn write_searcher_eoa_info( &self, searcher_eoa: Address, searcher_info: SearcherInfo, ) -> impl Future<Output = Result<()>> + Send { ... } fn write_searcher_contract_info( &self, searcher_contract: Address, searcher_info: SearcherInfo, ) -> impl Future<Output = Result<()>> + Send { ... } fn write_builder_info( &self, builder_address: Address, builder_info: BuilderInfo, ) -> impl Future<Output = Result<()>> + Send { ... } fn write_address_meta( &self, address: Address, metadata: AddressMetadata, ) -> impl Future<Output = Result<()>> + Send { ... } fn insert_pool( &self, block: u64, address: Address, tokens: &[Address], curve_lp_token: Option<Address>, classifier_name: Protocol, ) -> impl Future<Output = Result<()>> + Send { ... } fn insert_tree( &self, tree: BlockTree<Action>, ) -> impl Future<Output = Result<()>> + Send { ... } fn save_traces( &self, block: u64, traces: Vec<TxTrace>, ) -> impl Future<Output = Result<()>> + Send { ... }
}

Required Associated Types§

source

type Inner: DBWriter

allows for writing results to multiple databases

Required Methods§

source

fn inner(&self) -> &Self::Inner

Provided Methods§

source

fn write_block_analysis( &self, block_analysis: BlockAnalysis, ) -> impl Future<Output = Result<()>> + Send

source

fn write_dex_quotes( &self, block_number: u64, quotes: Option<DexQuotes>, ) -> impl Future<Output = Result<()>> + Send

source

fn write_token_info( &self, address: Address, decimals: u8, symbol: String, ) -> impl Future<Output = Result<()>> + Send

source

fn save_mev_blocks( &self, block_number: u64, block: MevBlock, mev: Vec<Bundle>, ) -> impl Future<Output = Result<()>> + Send

source

fn write_searcher_info( &self, eoa_address: Address, contract_address: Option<Address>, eoa_info: SearcherInfo, contract_info: Option<SearcherInfo>, ) -> impl Future<Output = Result<()>> + Send

source

fn write_searcher_eoa_info( &self, searcher_eoa: Address, searcher_info: SearcherInfo, ) -> impl Future<Output = Result<()>> + Send

source

fn write_searcher_contract_info( &self, searcher_contract: Address, searcher_info: SearcherInfo, ) -> impl Future<Output = Result<()>> + Send

source

fn write_builder_info( &self, builder_address: Address, builder_info: BuilderInfo, ) -> impl Future<Output = Result<()>> + Send

source

fn write_address_meta( &self, address: Address, metadata: AddressMetadata, ) -> impl Future<Output = Result<()>> + Send

source

fn insert_pool( &self, block: u64, address: Address, tokens: &[Address], curve_lp_token: Option<Address>, classifier_name: Protocol, ) -> impl Future<Output = Result<()>> + Send

source

fn insert_tree( &self, tree: BlockTree<Action>, ) -> impl Future<Output = Result<()>> + Send

source

fn save_traces( &self, block: u64, traces: Vec<TxTrace>, ) -> impl Future<Output = Result<()>> + Send

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a, T: 'a + DBWriter + ?Sized> DBWriter for &'a T
where &'a T: Send + Unpin + 'static,

§

type Inner = <T as DBWriter>::Inner

source§

fn inner(&self) -> &Self::Inner

source§

fn write_block_analysis( &self, block_analysis: BlockAnalysis, ) -> impl Future<Output = Result<()>> + Send

source§

fn write_dex_quotes( &self, block_number: u64, quotes: Option<DexQuotes>, ) -> impl Future<Output = Result<()>> + Send

source§

fn write_token_info( &self, address: Address, decimals: u8, symbol: String, ) -> impl Future<Output = Result<()>> + Send

source§

fn save_mev_blocks( &self, block_number: u64, block: MevBlock, mev: Vec<Bundle>, ) -> impl Future<Output = Result<()>> + Send

source§

fn write_searcher_info( &self, eoa_address: Address, contract_address: Option<Address>, eoa_info: SearcherInfo, contract_info: Option<SearcherInfo>, ) -> impl Future<Output = Result<()>> + Send

source§

fn write_searcher_eoa_info( &self, searcher_eoa: Address, searcher_info: SearcherInfo, ) -> impl Future<Output = Result<()>> + Send

source§

fn write_searcher_contract_info( &self, searcher_contract: Address, searcher_info: SearcherInfo, ) -> impl Future<Output = Result<()>> + Send

source§

fn write_builder_info( &self, builder_address: Address, builder_info: BuilderInfo, ) -> impl Future<Output = Result<()>> + Send

source§

fn write_address_meta( &self, address: Address, metadata: AddressMetadata, ) -> impl Future<Output = Result<()>> + Send

source§

fn insert_pool( &self, block: u64, address: Address, tokens: &[Address], curve_lp_token: Option<Address>, classifier_name: Protocol, ) -> impl Future<Output = Result<()>> + Send

source§

fn insert_tree( &self, tree: BlockTree<Action>, ) -> impl Future<Output = Result<()>> + Send

source§

fn save_traces( &self, block: u64, traces: Vec<TxTrace>, ) -> impl Future<Output = Result<()>> + Send

Implementors§