Function try_runtime::init_env
source · pub(crate) fn init_env()
diff --git a/src/try_runtime/main.rs.html b/src/try_runtime/main.rs.html index db362c846e1..5fef69711d4 100644 --- a/src/try_runtime/main.rs.html +++ b/src/try_runtime/main.rs.html @@ -329,6 +329,10 @@ 329 330 331 +332 +333 +334 +335
// This file is part of try-runtime-cli.
// Copyright (C) Parity Technologies (UK) Ltd.
@@ -360,9 +364,9 @@
//!
//! Some resources about the above:
//!
-//! 1. <https://docs.substrate.io/reference/command-line-tools/try-runtime/>
-//! 2. <https://www.crowdcast.io/e/substrate-seminar/41>
-//! 3. <https://docs.substrate.io/fundamentals/runtime-development/>
+//! 1. <https://www.crowdcast.io/e/substrate-seminar/41>
+//! 2. <https://docs.substrate.io/fundamentals/runtime-development/>
+//! 3. <https://www.youtube.com/watch?v=a_u3KMG-n-I>
//!
//! ---
//!
@@ -398,7 +402,10 @@
//! ## Installation
//!```bash
+//! # Install latest version (recommended for local development)
//! cargo install --git https://github.com/paritytech/try-runtime-cli --locked
+//! # Install a specific version (recommended for tools like CI)
+//! cargo install --git https://github.com/paritytech/try-runtime-cli --tag vX.Y.Z --locked
//! try-runtime --help
//! try-runtime on-runtime-upgrade --help
//! ```
@@ -535,14 +542,15 @@
//! live --uri ws://localhost:9999
//! ```
//!
-//! * Same as the previous one, but run it at specific block number's state. This means that this
-//! block hash's state shall not yet have been pruned in `rpc.polkadot.io`.
+//! * Same as the previous example, but run it at specific block number's state and using the live
+//! polkadot network. This means that this block hash's state should not yet have been pruned by the
+//! node running at `rpc.polkadot.io`.
//!
//! ```bash
//! try-runtime \
-//! --runtime /path-to-substrate/target/release/wbuild/my-runtime.wasm \
+//! --runtime /path-to-polkadot-runtimes/target/release/wbuild/polkadot-runtime/polkadot-runtime.wasm \
//! on-runtime-upgrade \
-//! live --uri ws://localhost:9999 \
+//! live --uri wss://rpc.polkadot.io:443 \
//! # replace with your desired block hash!
//! --at 0xa1b16c1efd889a9f17375ec4dd5c1b4351a2be17fa069564fced10d23b9b3836
//! ```
diff --git a/try_runtime/fn.init_env.html b/try_runtime/fn.init_env.html
index 81f6eaf5007..9a666e1d451 100644
--- a/try_runtime/fn.init_env.html
+++ b/try_runtime/fn.init_env.html
@@ -1 +1 @@
-init_env in try_runtime - Rust Function try_runtime::init_env
source · pub(crate) fn init_env()
\ No newline at end of file
+init_env in try_runtime - Rust Function try_runtime::init_env
source · pub(crate) fn init_env()
\ No newline at end of file
diff --git a/try_runtime/fn.main.html b/try_runtime/fn.main.html
index 5f9c32bd861..d37274022b0 100644
--- a/try_runtime/fn.main.html
+++ b/try_runtime/fn.main.html
@@ -1 +1 @@
-main in try_runtime - Rust Function try_runtime::main
source · pub(crate) fn main()
\ No newline at end of file
+main in try_runtime - Rust Function try_runtime::main
source · pub(crate) fn main()
\ No newline at end of file
diff --git a/try_runtime/index.html b/try_runtime/index.html
index 6d95da985f1..b13076c5821 100644
--- a/try_runtime/index.html
+++ b/try_runtime/index.html
@@ -1,4 +1,4 @@
-try_runtime - Rust Crate try_runtime
source · Expand description
Try-runtime
+try_runtime - Rust Crate try_runtime
source · Expand description
Try-runtime
Substrate’s programmatic testing framework.
As the name suggests, try-runtime
is a detailed testing framework that gives you a lot of
@@ -10,9 +10,9 @@
Resources
Some resources about the above:
-- https://docs.substrate.io/reference/command-line-tools/try-runtime/
- https://www.crowdcast.io/e/substrate-seminar/41
- https://docs.substrate.io/fundamentals/runtime-development/
+- https://www.youtube.com/watch?v=a_u3KMG-n-I
Background Knowledge
@@ -45,7 +45,10 @@ Background Knowled
Overwrite the :CODE:
with a given wasm blob
Test some functionality via calling a runtime-api.
-Installation
cargo install --git https://github.com/paritytech/try-runtime-cli --locked
+Installation
# Install latest version (recommended for local development)
+ cargo install --git https://github.com/paritytech/try-runtime-cli --locked
+ # Install a specific version (recommended for tools like CI)
+ cargo install --git https://github.com/paritytech/try-runtime-cli --tag vX.Y.Z --locked
try-runtime --help
try-runtime on-runtime-upgrade --help
Usage
@@ -152,13 +155,14 @@ Examples
live --uri ws://localhost:9999
-- Same as the previous one, but run it at specific block number’s state. This means that this
-block hash’s state shall not yet have been pruned in
rpc.polkadot.io
.
+- Same as the previous example, but run it at specific block number’s state and using the live
+polkadot network. This means that this block hash’s state should not yet have been pruned by the
+node running at
rpc.polkadot.io
.
try-runtime \
- --runtime /path-to-substrate/target/release/wbuild/my-runtime.wasm \
+ --runtime /path-to-polkadot-runtimes/target/release/wbuild/polkadot-runtime/polkadot-runtime.wasm \
on-runtime-upgrade \
- live --uri ws://localhost:9999 \
+ live --uri wss://rpc.polkadot.io:443 \
# replace with your desired block hash!
--at 0xa1b16c1efd889a9f17375ec4dd5c1b4351a2be17fa069564fced10d23b9b3836