somm_test_runner 0.1.0

This is a binary which runs tests against a cosmos chain
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::happy_path::test_valset_update;
use crate::utils::ValidatorKeys;
use clarity::Address as EthAddress;
use deep_space::Contact;
use web30::client::Web3;

pub async fn validator_set_stress_test(
    web30: &Web3,
    contact: &Contact,
    keys: Vec<ValidatorKeys>,
    gravity_address: EthAddress,
) {
    for _ in 0u32..10 {
        test_valset_update(&web30, contact, &keys, gravity_address).await;
    }
}