pop-chains 0.14.0

Library for generating, building and running parachains.
Documentation
// SPDX-License-Identifier: GPL-3.0

#![doc = include_str!("../README.md")]

/// Account management and utility functions.
mod accounts;
/// Provides functionality for benchmarking.
pub mod bench;
/// Provides functionality for building chain binaries and runtime artifacts.
mod build;
/// Provides functionality to construct, encode, sign, and submit chain extrinsics.
mod call;
/// Deployment providers' metadata and utility functions.
mod deployer_providers;
/// Error types and handling for the crate.
mod errors;
/// Code generation utilities.
mod generator;
/// Functionality for creating new blockchain implementations.
mod new_chain;
/// Tools for creating new runtime pallets.
mod new_pallet;
/// Provides functionality for running runtime-only parachains.
pub mod omni_node;
/// A registry of parachains.
pub mod registry;
/// Relay chain interaction and management.
mod relay;
/// Template definitions and processing.
mod templates;
/// Common traits used throughout the crate.
mod traits;
/// Provides functionality for testing runtime upgrades.
pub mod try_runtime;
/// Provides functionality for launching a local network.
pub mod up;
/// General utility functions and helpers.
pub mod utils;

pub use bench::{
	BenchmarkingCliCommand, GENESIS_BUILDER_DEV_PRESET, GenesisBuilderPolicy,
	PalletExtrinsicsRegistry, binary::*, generate_binary_benchmarks,
	generate_omni_bencher_benchmarks, generate_pallet_benchmarks, get_runtime_path,
	load_pallet_extrinsics,
};
pub use build::{
	ChainSpec, ChainSpecBuilder, binary_path, build_chain, build_project,
	export_wasm_file_with_node, generate_genesis_state_file_with_node,
	generate_plain_chain_spec_with_node, generate_raw_chain_spec_with_node, is_supported, runtime,
	runtime::DeterministicBuilder, runtime_binary_path,
};
pub use call::{
	CallData, construct_extrinsic, construct_proxy_extrinsic, construct_sudo_extrinsic,
	decode_call_data, encode_call_data,
	metadata::{
		CallItem, Constant, Function, Pallet, Storage,
		action::{Action, supported_actions},
		find_callable_by_name, find_pallet_by_name,
		params::{Param, field_to_param, type_to_param},
		parse_chain_metadata, parse_dispatchable_arguments, raw_value_to_string,
		render_storage_key_values,
	},
	parse_and_format_events, set_up_client, sign_and_submit_extrinsic, submit_signed_extrinsic,
};
pub use deployer_providers::{DeploymentProvider, SupportedChains};
pub use errors::Error;
pub use indexmap::IndexSet;
pub use new_chain::instantiate_template_dir;
pub use new_pallet::{TemplatePalletConfig, create_pallet_template, new_pallet_options::*};
pub use relay::{RelayChain, Reserved, clear_dmpq};
pub use try_runtime::{
	TryRuntimeCliCommand, binary::*, parse, parse_try_state_string, run_try_runtime,
	shared_parameters::*, state, try_state_details, try_state_label, upgrade_checks_details,
};
// External exports from subxt.
pub use subxt::{
	OnlineClient, SubstrateConfig,
	blocks::ExtrinsicEvents,
	tx::{DynamicPayload, Payload},
};
pub use templates::{ChainTemplate, Config, Provider};
pub use utils::helpers::{get_preset_names, is_initial_endowment_valid};
/// Information about the Node. External export from Zombienet-SDK.
pub use zombienet_sdk::NetworkNode;

const PASSET_HUB_SPEC_JSON: &str = include_str!("../artifacts/passet-hub-spec.json");
fn get_passet_hub_spec_content() -> &'static str {
	PASSET_HUB_SPEC_JSON
}