Skip to main content

prepare

Function prepare 

Source
pub async fn prepare(
    w: &Watchlist,
    src: Sources<'_>,
    out: &Output,
) -> Result<Ready>
Expand description

Makes the watchlist ready to run, once before the first tick: @label targets become their address and chain, and a token symbol that token metrics read is resolved to its contract. A symbol on many chains asks the user (in the TUI, as a list); the answer holds for the run.

ยงErrors

The address book cannot be read, or a symbol cannot be resolved.