pub enum BlockchainCommand {
SyncBlocks {
chain: String,
from_block: Option<u64>,
to_block: Option<u64>,
database: DatabaseConfig,
},
SyncDex {
chain: String,
dex: String,
rpc_url: Option<String>,
reset: bool,
database: DatabaseConfig,
},
AnalyzePool {
chain: String,
dex: String,
address: String,
from_block: Option<u64>,
to_block: Option<u64>,
rpc_url: Option<String>,
reset: bool,
database: DatabaseConfig,
},
}
Expand description
Available blockchain management commands.
Variants§
SyncBlocks
Syncs blockchain blocks.
Fields
chain: String
The blockchain chain name (case-insensitive). Examples: ethereum, arbitrum, base, polygon, bsc
database: DatabaseConfig
Database configuration options
SyncDex
Sync DEX pools.
Fields
chain: String
The blockchain chain name (case-insensitive). Examples: ethereum, arbitrum, base, polygon, bsc
dex: String
The DEX name (case-insensitive). Examples: UniswapV3
, uniswapv3, SushiSwapV2
, PancakeSwapV3
rpc_url: Option<String>
RPC HTTP URL for blockchain calls (optional, falls back to RPC_HTTP_URL
env var)
database: DatabaseConfig
Database configuration options
AnalyzePool
Analyze a specific DEX pool.
Fields
chain: String
The blockchain chain name (case-insensitive). Examples: ethereum, arbitrum, base, polygon, bsc
dex: String
The DEX name (case-insensitive). Examples: UniswapV3, uniswapv3, SushiSwapV2, PancakeSwapV3
rpc_url: Option<String>
RPC HTTP URL for blockchain calls (optional, falls back to RPC_HTTP_URL env var)
database: DatabaseConfig
Database configuration options
Trait Implementations§
Source§impl Clone for BlockchainCommand
impl Clone for BlockchainCommand
Source§fn clone(&self) -> BlockchainCommand
fn clone(&self) -> BlockchainCommand
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl CommandFactory for BlockchainCommand
impl CommandFactory for BlockchainCommand
Source§impl Debug for BlockchainCommand
impl Debug for BlockchainCommand
Source§impl FromArgMatches for BlockchainCommand
impl FromArgMatches for BlockchainCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches
to self
.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches
to self
.Source§impl Parser for BlockchainCommand
impl Parser for BlockchainCommand
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Source§impl Subcommand for BlockchainCommand
impl Subcommand for BlockchainCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command
] so it can instantiate self
via
[FromArgMatches::update_from_arg_matches_mut
] Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self
can parse a specific subcommandAuto Trait Implementations§
impl Freeze for BlockchainCommand
impl RefUnwindSafe for BlockchainCommand
impl Send for BlockchainCommand
impl Sync for BlockchainCommand
impl Unpin for BlockchainCommand
impl UnwindSafe for BlockchainCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more