docs.rs failed to build pop-chains-0.10.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
pop-chains-0.14.0
pop-chains
A crate for generating, building and running chains and pallets. Used by
pop-cli.
Usage
Generate a new chain:
use ;
use Path;
let destination_path = new;
let tag_version = None; // Latest
let config = Config ;
let tag = instantiate_template_dir;
Build a chain:
use Profile;
use build_chain;
use Path;
let path = new;
let package = None; // The optional package to be built.
let binary_path = build_chain.unwrap;
Build a chain with runtime-benchmarks feature:
let binary_path = build_chain.unwrap;
Generate a plain chain specification file and customize it with your specific chain values:
use Profile;
use ;
use Path;
let path = new; // Location of the parachain project.
let package = None; // The optional package to be built.
// The path to the node binary executable.
let binary_path = build_chain.unwrap;;
// Generate a plain chain specification file of a parachain
let plain_chain_spec_path = path.join;
generate_plain_chain_spec;
// Customize your chain specification
let mut chain_spec = from.unwrap;
chain_spec.replace_para_id;
chain_spec.replace_relay_chain;
chain_spec.replace_chain_type;
chain_spec.replace_protocol_id;
// Writes the chain specification to a file
chain_spec.to_file.unwrap;
Generate a raw chain specification file and export the WASM and genesis state files:
use Profile;
use ;
use Path;
let path = new; // Location of the parachain project.
let package = None; // The optional package to be built.
// The path to the node binary executable.
let binary_path = build_chain.unwrap;;
// Generate a plain chain specification file of a parachain
let plain_chain_spec_path = path.join;
generate_plain_chain_spec;
// Generate a raw chain specification file of a parachain
let chain_spec = generate_raw_chain_spec.unwrap;
// Export the WebAssembly runtime for the parachain.
let wasm_file = export_wasm_file.unwrap;
// Generate the parachain genesis state.
let genesis_state_file = generate_genesis_state_file.unwrap;
Run a chain:
use Zombienet;
use Path;
use tokio_test;
block_on
Generate a new Pallet:
use ;
use PathBuf;
let path = "./";
let pallet_config = TemplatePalletConfig ;
create_pallet_template;
Acknowledgements
pop-chains would not be possible without the awesome
crate: zombienet-sdk.