openzeppelin_monitor::bootstrap

Function get_contract_specs

Source
pub async fn get_contract_specs<P: ClientPoolTrait + 'static>(
    client_pool: &Arc<P>,
    network_monitors: &[(Network, Vec<Monitor>)],
) -> Vec<(String, ContractSpec)>
Expand description

Get contract specs for all applicable monitors

§Arguments

  • client_pool - The client pool to use to get the contract specs
  • network_monitors - The monitors to get the contract specs for

§Returns

Returns a vector of contract specs