{"id":13652359,"url":"https://github.com/uptest-sc/uptest","last_synced_at":"2025-04-23T03:30:46.006Z","repository":{"id":61108900,"uuid":"548393110","full_name":"uptest-sc/uptest","owner":"uptest-sc","description":"\"curl\" for substrate runtime upgrade testing","archived":false,"fork":false,"pushed_at":"2023-12-13T01:11:33.000Z","size":391,"stargazers_count":7,"open_issues_count":18,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T22:38:41.660Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uptest-sc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-10-09T13:31:57.000Z","updated_at":"2024-03-03T22:54:12.000Z","dependencies_parsed_at":"2024-01-03T05:16:26.335Z","dependency_job_id":"fe9ab8c6-247e-4aa5-bc6f-843a84e946cc","html_url":"https://github.com/uptest-sc/uptest","commit_stats":{"total_commits":32,"total_committers":3,"mean_commits":"10.666666666666666","dds":0.53125,"last_synced_commit":"16a72cea883eb8f953027121deb476a82eedccdb"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uptest-sc%2Fuptest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uptest-sc%2Fuptest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uptest-sc%2Fuptest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uptest-sc%2Fuptest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uptest-sc","download_url":"https://codeload.github.com/uptest-sc/uptest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250365257,"owners_count":21418655,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T02:00:58.620Z","updated_at":"2025-04-23T03:30:42.805Z","avatar_url":"https://github.com/uptest-sc.png","language":"Rust","funding_links":[],"categories":["Tools"],"sub_categories":[],"readme":"# Uptest     \n\nSubstrate r*U*ntime u*P*grade *TEST*ing library\n\n[![Crates.io LibUptest](https://img.shields.io/crates/v/libuptest.svg)](https://crates.io/crates/libuptest)\n[![Docs.rs Libuptest](https://img.shields.io/docsrs/libuptest/0.1.4)](https://docs.rs/libuptest)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)   \n\nFunded by:  \n![Polkadot Treasury](polkadot-treasury-logo.svg)\n\n\n### Documentation:    \n[https://uptest-sc.github.io/](https://uptest-sc.github.io/)   \n[https://docs.rs/libuptest/0.1.2/libuptest/](https://docs.rs/libuptest/0.1.2/libuptest/)   \n\n### Latest release:   \n0.1.2      \n\n## Uptest \n\nUptest aims to be an easy stand alone library for testing runtime upgrades before they are deployed.  \nUse libuptest to execute extrensic test before and after the upgrade is pushed\n\n#### substrate runtime *UP*grade *TEST*ing suit\n\nWith uptest you can: \n*  Easily query changes mades to types, storagemaps etc..  \n*  Quickly get started with writing extrinsic tests with libuptest, let the library handle the execution logic before and after the runtime upgrade takes place   \n*  More lightweight standalone version, rust code is not reliant on the main substrate repo   \n*  Utilize a standalone rust library to build out your integration tests\n*  Filter output based on pallet, to get a detailed change log    \n*  Schedule tests to execute before and/or after a runtime upgrade takes place, developers does not need to spend any extra time, tracking the state and execution flow of the runtime upgrade with polkadot.js typescript  \n*  no kitchensink-runtime needed  \n\nSee future [usage_future.md](usage_future.md) for more details\n\n\n\n### Got a feature you want us to add on the roadmap?   \n[Submit a github issue](https://github.com/uptest-sc/uptest/issues/new)\n\n\n### To be avaliable with cargo in the near future:  \nhttps://crates.io/crates/uptest\n\n### Check out future planned features here:   \nhttps://github.com/users/uptest-sc/projects/1/views/1   \n\n\n### Examples   \n\nRun examples:  \n```shell\n$ sh run_example.sh\n```\n\n#### Get metadata version:   \n```rust\nuse libuptest::jsonrpseeclient::JsonrpseeClient;\nuse libuptest::ws_mod::get_metadata_version;\n\nprintln!(\"Connecting to Edgeware\");\nlet dial_edg: JsonrpseeClient = JsonrpseeClient::edgeware_default_url().unwrap();//.unwrap();//.unwrap();\nlet edg_version: u8 = get_metadata_version(dial_edg).await?;\n   \nprintln!(\"Connected to chain: {:?} and got metadata version: {:?}\", \"Edgeware\", edg_version);\n```\n`cargo run -p uptest-examples --example metadata_version`   \n\n\n### Get all pallet's storagevalues and storage maps:   \n```shell\ncargo run -p uptest-examples --example get_pallet_storagemaps_storagevalues\n```\n\n### Default connection endpoints:    \nThe rpcclient comes with 5 different \"default\" chain endpoints:     \n*  with_default_url -\u003e ws://127.0.0.1:9944   \n*  edgeware_default_url -\u003e wss://edgeware.jelliedowl.net:443    \n*  polkadot_default_url -\u003e wss://polkadot-rpc-tn.dwellir.com:443   \n*  kusama_default_url -\u003e wss://kusama-rpc-tn.dwellir.com:443   \n*  sora_default_url -\u003e wss://ws.mof.sora.org:443   \n\n\n## Examples and Documentation:   \n[https://uptest-sc.github.io/](https://uptest-sc.github.io/)    \n\n\n## Runtime Migrations links:   \nhttps://github.com/apopiak/substrate-migrations   \nhttps://substrate-developer-hub.github.io/docs/en/knowledgebase/runtime/upgrades   \nhttps://docs.substrate.io/reference/how-to-guides/parachains/runtime-upgrade/   \nhttps://github.com/paritytech/substrate/issues?q=label%3AE1-runtimemigration%20     \nhttps://wiki.polkadot.network/docs/learn-runtime-upgrades   \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuptest-sc%2Fuptest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuptest-sc%2Fuptest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuptest-sc%2Fuptest/lists"}