setup

Function setup 

Source
pub(super) async fn setup(
    signer_providers: &[(PrivateKeySigner, DynProvider<TempoNetwork>)],
    user_tokens: usize,
    max_concurrent_requests: usize,
    max_concurrent_transactions: usize,
) -> Result<(Address, Vec<Address>)>
Expand description

This method performs a one-time setup for sending a lot of transactions:

  • Deploys the specified number of user tokens.
  • Creates DEX pairs of user tokens with the quote token.
  • Mints user tokens for all signers and approves unlimited spending for DEX.
  • Seeds initial liquidity by placing DEX flip orders.