Skip to content

Commit d1990d8

Browse files
committed
update to latest parachain-template release along with sub-dependencies
1 parent 478c327 commit d1990d8

File tree

20 files changed

+396
-100
lines changed

20 files changed

+396
-100
lines changed

.github/scripts/check_dependencies.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,23 @@ def get_latest_pypi_version(package_name):
5757
print(f"Error fetching PyPI package version for {package_name}: {e}")
5858
return None, None
5959

60+
def check_sub_dependencies(name, info, outdated_dependencies):
61+
"""Check sub-dependencies (crate versions) within a repository entry"""
62+
for key, current_version in info.items():
63+
if key.endswith("_version") and not key.startswith("docker_"):
64+
# Extract crate name from the key (remove _version suffix)
65+
crate_name = key.replace("_version", "").replace("_", "-")
66+
latest_version, latest_url = get_latest_crate_version(crate_name)
67+
68+
if latest_version and latest_version != current_version:
69+
outdated_dependencies.append({
70+
"name": f"{name}.{crate_name}",
71+
"category": "sub-dependency",
72+
"current_version": current_version,
73+
"latest_version": latest_version,
74+
"latest_release_url": latest_url,
75+
})
76+
6077
def check_releases(releases_source_file):
6178
try:
6279
with open(releases_source_file, "r") as file:
@@ -88,6 +105,10 @@ def check_releases(releases_source_file):
88105
"latest_version": latest_version,
89106
"latest_release_url": latest_url,
90107
})
108+
109+
# Check sub-dependencies for repositories
110+
if category == "repositories":
111+
check_sub_dependencies(name, info, outdated_dependencies)
91112

92113
return outdated_dependencies
93114

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
[workspace.package]
2+
license = "MIT-0"
3+
authors = ["Parity Technologies <[email protected]>"]
4+
homepage = "https://paritytech.github.io/polkadot-sdk/"
5+
repository = "https://github.com/paritytech/polkadot-sdk-parachain-template.git"
6+
edition = "2021"
7+
8+
[workspace]
9+
default-members = ["pallets/template", "runtime"]
10+
members = [
11+
"node",
12+
"pallets/template",
13+
"pallets/custom-pallet",
14+
"runtime",
15+
]
16+
resolver = "2"
17+
18+
[workspace.dependencies]
19+
parachain-template-runtime = { path = "./runtime", default-features = false }
20+
pallet-parachain-template = { path = "./pallets/template", default-features = false }
21+
custom-pallet = { path = "./pallets/custom-pallet", default-features = false }
22+
23+
clap = { version = "4.5.13" }
24+
color-print = { version = "0.3.4" }
25+
docify = { version = "0.2.9" }
26+
futures = { version = "0.3.31" }
27+
jsonrpsee = { version = "0.24.3" }
28+
log = { version = "0.4.22", default-features = false }
29+
polkadot-sdk = { version = "2503.0.1", default-features = false }
30+
prometheus-endpoint = { version = "0.17.2", default-features = false, package = "substrate-prometheus-endpoint" }
31+
serde = { version = "1.0.214", default-features = false }
32+
codec = { version = "3.7.4", default-features = false, package = "parity-scale-codec" }
33+
cumulus-pallet-parachain-system = { version = "0.20.0", default-features = false }
34+
hex-literal = { version = "0.4.1", default-features = false }
35+
scale-info = { version = "2.11.6", default-features = false }
36+
serde_json = { version = "1.0.132", default-features = false }
37+
smallvec = { version = "1.11.0", default-features = false }
38+
substrate-wasm-builder = { version = "26.0.1", default-features = false }
39+
frame = { version = "0.9.1", default-features = false, package = "polkadot-sdk-frame" }
40+
41+
[profile.release]
42+
opt-level = 3
43+
panic = "unwind"
44+
45+
[profile.production]
46+
codegen-units = 1
47+
inherits = "release"
48+
lto = true
49+

.snippets/code/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime/Cargo.toml renamed to .snippets/code/tutorials/polkadot-sdk/parachains/zero-to-hero/parachain-template/runtime/Cargo.toml

Lines changed: 53 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -13,80 +13,77 @@ publish = false
1313
targets = ["x86_64-unknown-linux-gnu"]
1414

1515
[build-dependencies]
16-
substrate-wasm-builder = { optional = true, workspace = true, default-features = true }
1716
docify = { workspace = true }
17+
substrate-wasm-builder = { optional = true, workspace = true, default-features = true }
1818

1919
[dependencies]
2020
codec = { features = ["derive"], workspace = true }
21+
cumulus-pallet-parachain-system.workspace = true
22+
docify = { workspace = true }
2123
hex-literal = { optional = true, workspace = true, default-features = true }
2224
log = { workspace = true }
25+
pallet-parachain-template.workspace = true
26+
polkadot-sdk = { workspace = true, features = [
27+
"pallet-utility",
28+
"cumulus-pallet-aura-ext",
29+
"cumulus-pallet-session-benchmarking",
30+
"cumulus-pallet-weight-reclaim",
31+
"cumulus-pallet-xcm",
32+
"cumulus-pallet-xcmp-queue",
33+
"cumulus-primitives-aura",
34+
"cumulus-primitives-core",
35+
"cumulus-primitives-utility",
36+
"pallet-aura",
37+
"pallet-authorship",
38+
"pallet-balances",
39+
"pallet-collator-selection",
40+
"pallet-message-queue",
41+
"pallet-session",
42+
"pallet-sudo",
43+
"pallet-timestamp",
44+
"pallet-transaction-payment",
45+
"pallet-transaction-payment-rpc-runtime-api",
46+
"pallet-xcm",
47+
"parachains-common",
48+
"polkadot-parachain-primitives",
49+
"polkadot-runtime-common",
50+
"runtime",
51+
"staging-parachain-info",
52+
"staging-xcm",
53+
"staging-xcm-builder",
54+
"staging-xcm-executor"
55+
], default-features = false }
2356
scale-info = { features = ["derive"], workspace = true }
57+
serde_json = { workspace = true, default-features = false, features = ["alloc"] }
2458
smallvec = { workspace = true, default-features = true }
25-
docify = { workspace = true }
26-
serde_json = { workspace = true, default-features = false, features = [
27-
"alloc",
28-
] }
29-
pallet-parachain-template = { path = "../pallets/template", default-features = false }
30-
polkadot-sdk = { workspace = true, features = [
31-
"cumulus-pallet-aura-ext",
32-
"cumulus-pallet-session-benchmarking",
33-
"cumulus-pallet-xcm",
34-
"cumulus-pallet-xcmp-queue",
35-
"cumulus-primitives-aura",
36-
"cumulus-primitives-core",
37-
"cumulus-primitives-storage-weight-reclaim",
38-
"cumulus-primitives-utility",
39-
"pallet-aura",
40-
"pallet-authorship",
41-
"pallet-balances",
42-
"pallet-collator-selection",
43-
"pallet-message-queue",
44-
"pallet-session",
45-
"pallet-sudo",
46-
"pallet-timestamp",
47-
"pallet-transaction-payment",
48-
"pallet-transaction-payment-rpc-runtime-api",
49-
"pallet-xcm",
50-
"parachains-common",
51-
"polkadot-parachain-primitives",
52-
"polkadot-runtime-common",
53-
"runtime",
54-
"staging-parachain-info",
55-
"staging-xcm",
56-
"staging-xcm-builder",
57-
"staging-xcm-executor",
58-
], default-features = false }
59-
cumulus-pallet-parachain-system.workspace = true
60-
pallet-utility = { version = "39.0.0", default-features = false }
61-
custom-pallet = { path = "../pallets/custom-pallet", default-features = false }
59+
60+
custom-pallet = { workspace = true }
6261

6362
[features]
6463
default = ["std"]
6564
std = [
66-
"codec/std",
67-
"cumulus-pallet-parachain-system/std",
68-
"log/std",
69-
"pallet-parachain-template/std",
70-
"polkadot-sdk/std",
71-
"scale-info/std",
72-
"serde_json/std",
73-
"substrate-wasm-builder",
74-
"pallet-utility/std",
75-
"custom-pallet/std",
65+
"codec/std",
66+
"cumulus-pallet-parachain-system/std",
67+
"log/std",
68+
"pallet-parachain-template/std",
69+
"polkadot-sdk/std",
70+
"scale-info/std",
71+
"serde_json/std",
72+
"substrate-wasm-builder",
73+
"custom-pallet/std",
7674
]
7775

7876
runtime-benchmarks = [
79-
"cumulus-pallet-parachain-system/runtime-benchmarks",
80-
"hex-literal",
81-
"pallet-parachain-template/runtime-benchmarks",
82-
"polkadot-sdk/runtime-benchmarks",
83-
"custom-pallet/runtime-benchmarks",
77+
"cumulus-pallet-parachain-system/runtime-benchmarks",
78+
"hex-literal",
79+
"pallet-parachain-template/runtime-benchmarks",
80+
"polkadot-sdk/runtime-benchmarks",
8481
]
8582

8683
try-runtime = [
87-
"cumulus-pallet-parachain-system/try-runtime",
88-
"pallet-parachain-template/try-runtime",
89-
"polkadot-sdk/try-runtime",
84+
"cumulus-pallet-parachain-system/try-runtime",
85+
"pallet-parachain-template/try-runtime",
86+
"polkadot-sdk/try-runtime",
9087
]
9188

9289
# Enable the metadata hash generation.

.snippets/code/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime/build.rs renamed to .snippets/code/tutorials/polkadot-sdk/parachains/zero-to-hero/parachain-template/runtime/build.rs

File renamed without changes.

.snippets/code/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime/src/apis.rs renamed to .snippets/code/tutorials/polkadot-sdk/parachains/zero-to-hero/parachain-template/runtime/src/apis.rs

File renamed without changes.

.snippets/code/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime/src/benchmarks.rs renamed to .snippets/code/tutorials/polkadot-sdk/parachains/zero-to-hero/parachain-template/runtime/src/benchmarks.rs

File renamed without changes.

.snippets/code/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime/src/configs/mod.rs renamed to .snippets/code/tutorials/polkadot-sdk/parachains/zero-to-hero/parachain-template/runtime/src/configs/mod.rs

File renamed without changes.

.snippets/code/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime/src/configs/xcm_config.rs renamed to .snippets/code/tutorials/polkadot-sdk/parachains/zero-to-hero/parachain-template/runtime/src/configs/xcm_config.rs

File renamed without changes.

.snippets/code/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime/src/genesis_config_presets.rs renamed to .snippets/code/tutorials/polkadot-sdk/parachains/zero-to-hero/parachain-template/runtime/src/genesis_config_presets.rs

File renamed without changes.

.snippets/code/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime/src/lib.rs renamed to .snippets/code/tutorials/polkadot-sdk/parachains/zero-to-hero/parachain-template/runtime/src/lib.rs

File renamed without changes.

0 commit comments

Comments
 (0)