Crates.io | libuptest |
lib.rs | libuptest |
version | 0.1.41 |
source | src |
created_at | 2023-07-07 17:58:09.417441 |
updated_at | 2023-12-13 01:41:08.833801 |
description | Core Substrate runtime upgrade Library for UpTest |
homepage | https://github.com/uptest-sc/uptest/ |
repository | |
max_upload_size | |
id | 910992 |
size | 85,508 |
Substrate rUntime uPgrade TESTing library
Initally funded by:
0.1.4
https://uptest-sc.github.io/
https://docs.rs/libuptest/0.1.1/libuptest/
Uptest aims to be an easy stand alone library for testing runtime upgrades before they are deployed.
Use libuptest to execute extrensic test before and after the upgrade is pushed
use libuptest::jsonrpseeclient::JsonrpseeClient;
use libuptest::ws_mod::get_metadata_version;
println!("Connecting to Edgeware");
let dial_edg: JsonrpseeClient = JsonrpseeClient::edgeware_default_url().unwrap();//.unwrap();//.unwrap();
let edg_version: u8 = get_metadata_version(dial_edg).await?;
println!("Connected to chain: {:?} and got metadata version: {:?}", "Edgeware", edg_version);
cargo run -p uptest-examples --example metadata_version
cargo run -p uptest-examples --example get_pallet_storagemaps_storagevalues
The rpcclient comes with 5 different "default" chain endpoints: