pop-fork 0.13.0

Library for forking live Substrate chains.
Documentation
// SPDX-License-Identifier: GPL-3.0

//! String constants for the RPC client module.

/// JSON-RPC method names used for error reporting.
///
/// These match the actual RPC method names in the Polkadot SDK JSON-RPC specification.
pub mod methods {
	pub const CHAIN_GET_FINALIZED_HEAD: &str = "chain_getFinalisedHead";
	pub const CHAIN_GET_HEADER: &str = "chain_getHeader";
	pub const CHAIN_GET_BLOCK_HASH: &str = "chain_getBlockHash";
	pub const CHAIN_GET_BLOCK: &str = "chain_getBlock";
	pub const STATE_GET_STORAGE: &str = "state_getStorage";
	pub const STATE_QUERY_STORAGE_AT: &str = "state_queryStorageAt";
	pub const STATE_GET_KEYS_PAGED: &str = "state_getKeysPaged";
	pub const STATE_GET_METADATA: &str = "state_getMetadata";
	pub const STATE_CALL: &str = "state_call";
	pub const SYSTEM_CHAIN: &str = "system_chain";
	pub const SYSTEM_PROPERTIES: &str = "system_properties";
}

/// Well-known storage key identifiers.
pub mod storage_keys {
	/// The `:code` storage key containing the runtime WASM blob.
	pub const CODE: &str = ":code";
}