Skip to content

Commit a529094

Browse files
authored
Polkadot Omni Node (#418)
* add to link to omni node in the docs * clean and test both templates locally * add genesis config presets to runtime * add genesis config presets to evm template and toml sort generic template * update abstractions to use runtime genesis presets * runtime tests for genesis config presets for both templates * H160 type does not require clone so satisfy clippy
1 parent 2bfcbf9 commit a529094

File tree

11 files changed

+586
-8
lines changed

11 files changed

+586
-8
lines changed

docs/modules/ROOT/pages/guides/quick_start.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ We use the `generic-template-node` executable throughout all the commands since
5555
./target/release/generic-template-node build-spec --chain plain-parachain-chainspec.json --disable-default-bootnode --raw > raw-parachain-chainspec.json
5656
```
5757

58+
[NOTE]
59+
====
60+
At this point, you are free to use the omni-node. The command for using omni-node takes the form: `polkadot-omni-node --chain <chain_spec.json>`. For more information about using omni-node, see the link:https://docs.polkadot.com/develop/toolkit/parachains/polkadot-omni-node/[polkadot-omni-node documentation].
61+
====
62+
5863
* Run two nodes and wait until it syncs with the Paseo relay chain. This can take a fairly long time(up to 2 days), so we can use the `fast-unsafe` flag to make the process faster since we are on a testnet(~ 3 hours). `fast` downloads the blocks without executing the transactions, and `unsafe` skips downloading the state proofs(which we are ok with since it is a testnet).
5964
+
6065
```bash

evm-template/Cargo.lock

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

evm-template/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ repository = "https://github.com/OpenZeppelin/polkadot-runtime-templates"
1212
[workspace.dependencies]
1313
clap = { version = "4.5.3", features = [ "derive" ] }
1414
color-print = "0.3.4"
15+
docify = { version = "0.2.9" }
1516
futures = "0.3.30"
1617
hex = "0.4.3"
1718
hex-literal = "0.4.1"
@@ -24,7 +25,7 @@ parity-scale-codec = { version = "3.6.12", default-features = false, features =
2425
scale-info = { version = "2.11.1", default-features = false }
2526
serde = { version = "1.0.197", default-features = false }
2627
serde_derive = { version = "1.0.121", default-features = false }
27-
serde_json = "1.0.121"
28+
serde_json = { version = "1.0.121", default-features = false }
2829
smallvec = "1.11.0"
2930

3031
frame-benchmarking = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
@@ -87,6 +88,7 @@ sp-core = { git = "https://github.com/paritytech/polkadot-sdk", default-features
8788
sp-genesis-builder = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
8889
sp-inherents = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
8990
sp-io = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
91+
sp-keyring = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
9092
sp-keystore = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
9193
sp-offchain = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }
9294
sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, tag = "polkadot-stable2503" }

evm-template/runtime/Cargo.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ version = "3.0.0"
1111
targets = [ "x86_64-unknown-linux-gnu" ]
1212

1313
[dependencies]
14-
hex-literal = { workspace = true, optional = true }
14+
docify = { workspace = true }
15+
hex-literal = { version = "0.4.1", default-features = false }
1516
log = { workspace = true }
1617
parity-scale-codec = { workspace = true, features = [ "derive" ] }
1718
scale-info = { workspace = true, features = [ "derive" ] }
19+
serde_json = { workspace = true, default-features = false, features = [ "alloc" ] }
1820
smallvec = { workspace = true }
1921

2022
openzeppelin-pallet-abstractions = { workspace = true }
@@ -57,6 +59,7 @@ sp-consensus-aura = { workspace = true }
5759
sp-core = { workspace = true }
5860
sp-genesis-builder = { workspace = true }
5961
sp-inherents = { workspace = true }
62+
sp-keyring = { workspace = true }
6063
sp-offchain = { workspace = true }
6164
sp-runtime = { workspace = true }
6265
sp-session = { workspace = true }
@@ -203,13 +206,15 @@ std = [
203206
"polkadot-parachain-primitives/std",
204207
"polkadot-runtime-common/std",
205208
"scale-info/std",
209+
"serde_json/std",
206210
"sp-api/std",
207211
"sp-arithmetic/std",
208212
"sp-block-builder/std",
209213
"sp-consensus-aura/std",
210214
"sp-core/std",
211215
"sp-genesis-builder/std",
212216
"sp-inherents/std",
217+
"sp-keyring/std",
213218
"sp-offchain/std",
214219
"sp-runtime/std",
215220
"sp-session/std",
@@ -234,7 +239,6 @@ runtime-benchmarks = [
234239
"frame-support/runtime-benchmarks",
235240
"frame-system-benchmarking/runtime-benchmarks",
236241
"frame-system/runtime-benchmarks",
237-
"hex-literal",
238242
"nimbus-primitives/runtime-benchmarks",
239243
"orml-oracle/runtime-benchmarks",
240244
"pallet-asset-manager/runtime-benchmarks",

0 commit comments

Comments
 (0)