Expand description
§pop-common
A crate that provides a collection of essential utilities and shared functionality for pop. Used by
pop-cli
, pop-parachains
and pop-contracts
.
Re-exports§
pub use account_id::parse_account;
pub use account_id::parse_h160_account;
pub use build::Profile;
pub use errors::Error;
pub use git::Git;
pub use git::GitHub;
pub use git::Release;
pub use helpers::get_project_name_from_path;
pub use helpers::get_relative_or_absolute_path;
pub use helpers::prefix_with_current_dir_if_needed;
pub use helpers::replace_in_file;
pub use manifest::add_crate_to_workspace;
pub use manifest::find_workspace_toml;
pub use metadata::format_type;
pub use signer::create_signer;
pub use sourcing::set_executable_permission;
pub use templates::extractor::extract_template_files;
pub use test::test_project;
Modules§
- account_
id - Module for parsing and handling account IDs.
- build
- Provides build profiles for usage when building Rust projects.
- call
- Provides functionality for making calls to parachains or smart contracts.
- errors
- Represents the various errors that can occur in the crate.
- git
- Provides functionality for interacting with Git, GitHub, repositories and releases.
- helpers
- Provides general purpose file and path helpers.
- manifest
- Provides functionality for resolving and managing Cargo manifests.
- metadata
- Provides functionality for formatting and resolving metadata types.
- polkadot_
sdk - Provides parsers for determining Polkadot SDK versions. Parses and identifies the latest version tags for Polkadot SDK releases.
- signer
- Provides functionality for creating a signer from a secret URI.
- sourcing
- Provides functionality for sourcing binaries from a variety of different sources.
- templates
- Provides traits and functions used for templates and template extraction.
- test
- Module for testing utilities and functionality.
Macros§
- enum_
variants - The possible values from the variants of an enum.
- enum_
variants_ without_ deprecated - The possible values from the variants of an enum which are not deprecated.
Structs§
- Keypair
- An sr25519 keypair implementation. While the API is slightly different, the logic for
this has been taken from
sp_core::sr25519
and we test against this to ensure conformity.
Enums§
- Default
Config - Default set of commonly used types by Polkadot nodes.
Traits§
Functions§
- find_
free_ port - Checks if preferred port is available, otherwise returns a random available port.
- target
- Determines the target triple based on the current platform.