preload_market_state

Function preload_market_state 

Source
pub async fn preload_market_state<P, N, DB>(
    client: P,
    copied_accounts_vec: Vec<Address>,
    new_accounts_vec: Vec<(Address, u64, U256, Option<Bytes>)>,
    token_balances_vec: Vec<(Address, Address, U256)>,
    market_state: Arc<RwLock<MarketState<DB>>>,
    account_nonce_balance_state: Option<Arc<RwLock<AccountNonceAndBalanceState>>>,
) -> Result<()>
where N: Network, P: Provider<N> + Send + Sync + Clone + 'static, DB: DatabaseRef + Database + DatabaseCommit + Send + Sync + Clone + 'static,