mirror of
https://github.com/pezkuwichain/pez-minimal-template.git
synced 2026-06-09 20:01:04 +00:00
Update to 1.13.0 triggered by workflow_dispatch
This commit is contained in:
+24
-27
@@ -1,8 +1,8 @@
|
||||
[package]
|
||||
name = "minimal-template-node"
|
||||
description = "A minimal Substrate-based Substrate node, ready for hacking. (polkadot v1.12.0)"
|
||||
description = "A minimal Substrate-based Substrate node, ready for hacking. (polkadot v1.13.0)"
|
||||
version = "0.1.0"
|
||||
license = "MIT-0"
|
||||
license = "Unlicense"
|
||||
authors.workspace = true
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
@@ -10,9 +10,6 @@ edition.workspace = true
|
||||
publish = false
|
||||
build = "build.rs"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
@@ -22,31 +19,31 @@ futures = { version = "0.3.30", features = ["thread-pool"] }
|
||||
futures-timer = "3.0.1"
|
||||
jsonrpsee = { version = "0.22", features = ["server"] }
|
||||
serde_json = { workspace = true, default-features = true }
|
||||
sc-cli = { version = "0.42.0" }
|
||||
sc-executor = { version = "0.38.0" }
|
||||
sc-network = { version = "0.40.0" }
|
||||
sc-service = { version = "0.41.0" }
|
||||
sc-telemetry = { version = "20.0.0" }
|
||||
sc-transaction-pool = { version = "34.0.0" }
|
||||
sc-transaction-pool-api = { version = "34.0.0" }
|
||||
sc-consensus = { version = "0.39.1" }
|
||||
sc-consensus-manual-seal = { version = "0.41.0" }
|
||||
sc-rpc-api = { version = "0.39.0" }
|
||||
sc-basic-authorship = { version = "0.40.0" }
|
||||
sc-offchain = { version = "35.0.0" }
|
||||
sc-client-api = { version = "34.0.0" }
|
||||
sp-timestamp = { version = "32.0.0" }
|
||||
sp-keyring = { version = "37.0.0" }
|
||||
sp-api = { version = "32.0.0" }
|
||||
sp-blockchain = { version = "34.0.0" }
|
||||
sp-block-builder = { version = "32.0.0" }
|
||||
sp-io = { version = "36.0.0" }
|
||||
sp-runtime = { version = "37.0.0" }
|
||||
substrate-frame-rpc-system = { version = "34.0.0" }
|
||||
sc-cli = { version = "0.43.0" }
|
||||
sc-executor = { version = "0.39.0" }
|
||||
sc-network = { version = "0.41.0" }
|
||||
sc-service = { version = "0.42.0" }
|
||||
sc-telemetry = { version = "21.0.0" }
|
||||
sc-transaction-pool = { version = "35.0.0" }
|
||||
sc-transaction-pool-api = { version = "35.0.0" }
|
||||
sc-consensus = { version = "0.40.0" }
|
||||
sc-consensus-manual-seal = { version = "0.42.0" }
|
||||
sc-rpc-api = { version = "0.40.0" }
|
||||
sc-basic-authorship = { version = "0.41.0" }
|
||||
sc-offchain = { version = "36.0.0" }
|
||||
sc-client-api = { version = "35.0.0" }
|
||||
sp-timestamp = { version = "33.0.0" }
|
||||
sp-keyring = { version = "38.0.0" }
|
||||
sp-api = { version = "33.0.0" }
|
||||
sp-blockchain = { version = "35.0.0" }
|
||||
sp-block-builder = { version = "33.0.0" }
|
||||
sp-io = { version = "37.0.0" }
|
||||
sp-runtime = { version = "38.0.0" }
|
||||
substrate-frame-rpc-system = { version = "35.0.0" }
|
||||
|
||||
# Once the native runtime is gone, there should be little to no dependency on FRAME here, and
|
||||
# certainly no dependency on the runtime.
|
||||
frame = { version = "0.3.0", package = "polkadot-sdk-frame", features = ["experimental", "runtime"] }
|
||||
frame = { version = "0.4.0", package = "polkadot-sdk-frame", features = ["experimental", "runtime"] }
|
||||
runtime = { package = "minimal-template-runtime", path = "../runtime", version = "0.1.0" }
|
||||
|
||||
[build-dependencies]
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
# Node
|
||||
|
||||
ℹ️ A node - in Polkadot - is a binary executable, whose primary purpose is to execute the [runtime](../runtime/README.md).
|
||||
|
||||
🔗 It communicates with other nodes in the network, and aims for
|
||||
[consensus](https://wiki.polkadot.network/docs/learn-consensus) among them.
|
||||
|
||||
⚙️ It acts as a remote procedure call (RPC) server, allowing interaction with the blockchain.
|
||||
|
||||
👉 Learn more about the architecture, and a difference between a node and a runtime
|
||||
[here](https://paritytech.github.io/polkadot-sdk/master/polkadot_sdk_docs/reference_docs/wasm_meta_protocol/index.html).
|
||||
|
||||
👇 Here are the most important files in this node template:
|
||||
|
||||
- [`chain_spec.rs`](./src/chain_spec.rs): A chain specification is a source code file that defines the chain's
|
||||
initial (genesis) state.
|
||||
- [`service.rs`](./src/service.rs): This file defines the node implementation.
|
||||
It's a place to configure consensus-related topics. In favor of minimalism, this template has no consensus configured.
|
||||
@@ -21,7 +21,7 @@ use serde_json::{json, Value};
|
||||
use sp_keyring::AccountKeyring;
|
||||
|
||||
/// This is a specialization of the general Substrate ChainSpec type.
|
||||
pub type ChainSpec = sc_service::GenericChainSpec<()>;
|
||||
pub type ChainSpec = sc_service::GenericChainSpec;
|
||||
|
||||
fn props() -> Properties {
|
||||
let mut properties = Properties::new();
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ impl std::str::FromStr for Consensus {
|
||||
} else if let Some(block_time) = s.strip_prefix("manual-seal-") {
|
||||
Consensus::ManualSeal(block_time.parse().map_err(|_| "invalid block time")?)
|
||||
} else {
|
||||
return Err("incorrect consensus identifier".into())
|
||||
return Err("incorrect consensus identifier".into());
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -61,7 +61,7 @@ pub fn new_partial(config: &Configuration) -> Result<Service, ServiceError> {
|
||||
})
|
||||
.transpose()?;
|
||||
|
||||
let executor = sc_service::new_wasm_executor(&config);
|
||||
let executor = sc_service::new_wasm_executor(config);
|
||||
|
||||
let (client, backend, keystore_container, task_manager) =
|
||||
sc_service::new_full_parts::<Block, RuntimeApi, _>(
|
||||
|
||||
Reference in New Issue
Block a user