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§
Required Methods§
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
Object Safety§
This trait is not object safe.