{"repo":"paritytech/try-runtime-cli","free":true,"listed":false,"github":"https://github.com/paritytech/try-runtime-cli","clone":"git clone https://github.com/paritytech/try-runtime-cli.git","description":"Substrate's programatic testing framework.","language":"Rust","stars":25,"topics":["blockchain","polkadot","substrate","testing"],"license":"GPL-3.0","category":"blockchain-web3","readme_excerpt":"Try-runtime Substrate's programmatic testing framework. As the name suggests, try-runtime is a detailed testing framework that gives you a lot of control over what is being executed in which environment. It is recommended that user's first familiarize themselves with substrate in depth, particularly the execution model. It is critical to deeply understand how the wasm/client/runtime interactions, and the runtime apis work in the substrate runtime, before commencing to working with try-runtime . Resources Some resources about the above: 1. 2. 3. --- Background Knowledge The basis of all try-runtime commands is the same: connect to a live node, scrape its state and put it inside a [ TestExternalities ], then call into a specific runtime-api using the given state and some runtime . Multiple node URIs can be provided to enable parallel state downloads for improved performance. Alternatively, the state could come from a snapshot file. All of the variables in the above statement are made italic . Let's look at each of them: 1. State is the key-value pairs of data that comprise the canonical information that any blockchain is keeping. A state can be full (all key-value pairs), or be partial (only pairs related to some pallets/prefixes). Moreover, some keys are special and are not related to specific pallets, known as [ well known keys ] in substrate. The most important of these is the :CODE: key, which contains the code used for execution, when wasm execution is chosen. 2. A runtime","default_branch":null,"files":null,"tree":[],"storefront":"/r/paritytech","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/paritytech/try-runtime-cli/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}