mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-04 20:57:24 +00:00
chainSpec: Stabilize chainSpec methods to V1 (#1206)
* chainSpec: Stabilize chainSpec methods to V1 Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * chainSpec/api: Remove unstable documentation Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> --------- Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> Co-authored-by: James Wilson <james@jsdw.me>
This commit is contained in:
@@ -24,30 +24,18 @@ use sc_chain_spec::Properties;
|
||||
#[rpc(client, server)]
|
||||
pub trait ChainSpecApi {
|
||||
/// Get the chain name, as present in the chain specification.
|
||||
///
|
||||
/// # Unstable
|
||||
///
|
||||
/// This method is unstable and subject to change in the future.
|
||||
#[method(name = "chainSpec_unstable_chainName")]
|
||||
fn chain_spec_unstable_chain_name(&self) -> RpcResult<String>;
|
||||
#[method(name = "chainSpec_v1_chainName")]
|
||||
fn chain_spec_v1_chain_name(&self) -> RpcResult<String>;
|
||||
|
||||
/// Get the chain's genesis hash.
|
||||
///
|
||||
/// # Unstable
|
||||
///
|
||||
/// This method is unstable and subject to change in the future.
|
||||
#[method(name = "chainSpec_unstable_genesisHash")]
|
||||
fn chain_spec_unstable_genesis_hash(&self) -> RpcResult<String>;
|
||||
#[method(name = "chainSpec_v1_genesisHash")]
|
||||
fn chain_spec_v1_genesis_hash(&self) -> RpcResult<String>;
|
||||
|
||||
/// Get the properties of the chain, as present in the chain specification.
|
||||
///
|
||||
/// # Note
|
||||
///
|
||||
/// The json whitespaces are not guaranteed to persist.
|
||||
///
|
||||
/// # Unstable
|
||||
///
|
||||
/// This method is unstable and subject to change in the future.
|
||||
#[method(name = "chainSpec_unstable_properties")]
|
||||
fn chain_spec_unstable_properties(&self) -> RpcResult<Properties>;
|
||||
#[method(name = "chainSpec_v1_properties")]
|
||||
fn chain_spec_v1_properties(&self) -> RpcResult<Properties>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user