Crates.io | uptest |
lib.rs | uptest |
version | 0.1.4 |
source | src |
created_at | 2022-10-09 13:51:13.158294 |
updated_at | 2023-12-13 01:10:25.123013 |
description | substrate rUntime uPgrade TESTing suit |
homepage | https://github.com/uptest-sc/uptest/ |
repository | |
max_upload_size | |
id | 684015 |
size | 12,494,074 |
Substrate rUntime uPgrade TESTing library
Funded by:
https://uptest-sc.github.io/
https://docs.rs/libuptest/0.1.2/libuptest/
0.1.2
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
With uptest you can:
See future usage_future.md for more details
https://crates.io/crates/uptest
https://github.com/users/uptest-sc/projects/1/views/1
Run examples:
$ sh run_examples.sh
Compile examples:
$ cargo build --release --examples -p uptest-examples
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:
with_default_url -> ws://127.0.0.1:9944
edgeware_default_url -> wss://edgeware.jelliedowl.net:443
polkadot_default_url -> wss://polkadot-rpc-tn.dwellir.com:443
kusama_default_url -> wss://kusama-rpc-tn.dwellir.com:443
sora_default_url -> wss://ws.mof.sora.org:443
https://github.com/apopiak/substrate-migrations
https://substrate-developer-hub.github.io/docs/en/knowledgebase/runtime/upgrades
https://docs.substrate.io/reference/how-to-guides/parachains/runtime-upgrade/
https://github.com/paritytech/substrate/issues?q=label%3AE1-runtimemigration%20
https://wiki.polkadot.network/docs/learn-runtime-upgrades