pub enum AaveSub {
Activate,
Deactivate {
market_name: String,
},
Digest {
market_name: Option<String>,
drive_manifest: Option<PathBuf>,
},
Update {
chunk_size: u64,
max_block_range: u64,
to_block: String,
verify: VerifyFlags,
verify_all_interval: u64,
stop_after_one_chunk: bool,
dry_run: bool,
backup: bool,
no_backup: bool,
},
Reset {
market_name: String,
dry_run: bool,
},
Position {
command: AavePositionSub,
},
}Expand description
The aave command group.
Variants§
Activate
Activate an Aave market. Positions for activated markets are included
when running degenbot aave position update.
Deactivate
Deactivate an Aave market. Positions for deactivated markets are not
included when running degenbot aave position update.
Digest
Print one market’s completed-market record: per-table row counts + digests over the market tables, as the manifest JSON (redirect stdout to pin it).
Fields
Update
Update positions for active Aave markets.
Fields
max_block_range: u64The maximum number of blocks a single eth_getLogs request may
span, independent of --chunk. Lower it for RPC providers that
cap the eth_getLogs block range (e.g. dRPC’s free plan).
to_block: StringThe last block in the update range. Must be a valid block identifier: ‘earliest’, ‘finalized’, ‘safe’, ‘latest’, ‘pending’. An identifier can be given with an optional offset, e.g. ‘latest:-64’ stops 64 blocks before the chain tip, ‘safe:128’ stops 128 blocks after the last ‘safe’ block.
verify: VerifyFlagsThe pre-commit verification gates.
verify_all_interval: u64Block interval for the --verify-all full-verification gate. A chunk
that crosses or lands-on a multiple of this interval triggers a
pre-commit market-wide verify. Ignored unless --verify-all is set.
Reset
Reset one market: purge its populated state, then re-run the cold-boot update a fresh empty database takes for it.
Fields
Position
Position commands.
Fields
command: AavePositionSubThe position command.
Trait Implementations§
Source§impl FromArgMatches for AaveSub
impl FromArgMatches for AaveSub
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 Subcommand for AaveSub
impl Subcommand for AaveSub
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 Forget for AaveSub
impl Freeze for AaveSub
impl Move for AaveSub
impl RefUnwindSafe for AaveSub
impl Send for AaveSub
impl Sync for AaveSub
impl Unpin for AaveSub
impl UnsafeUnpin for AaveSub
impl UnwindSafe for AaveSub
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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