Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade to 1.12.0 #193

Merged
merged 94 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
464519b
chore: upgrade to v1.9.0
chungquantin Aug 12, 2024
26af9de
chore: upgrade to 1.10.0
chungquantin Aug 13, 2024
52ed359
refactor: remove native executor, add unified host functions
chungquantin Aug 13, 2024
e0ff905
feat: pov claim feature
chungquantin Aug 13, 2024
7998178
feat: pov claim feature
chungquantin Aug 13, 2024
551218b
chore: upgrade to 1.10.0
chungquantin Aug 13, 2024
787d39a
chore: rebase upstream 1.8.0
chungquantin Aug 14, 2024
939ba7a
chore: update cargo.lock
chungquantin Aug 14, 2024
db16f2b
Merge branch 'chungquantin/chore-polkadot-v1.9.0' into chungquantin/c…
chungquantin Aug 14, 2024
2b7428c
fix: undo benchmarking host functions removal
chungquantin Aug 14, 2024
17fcfd1
chore: upgrade to v1.11.0
chungquantin Aug 14, 2024
a5630f0
fix: add missing signed extra
chungquantin Aug 14, 2024
4bdae59
chore: upgrade to 1.10.0
chungquantin Aug 13, 2024
f4813dd
refactor: remove native executor, add unified host functions
chungquantin Aug 13, 2024
63dd2d8
feat: pov claim feature
chungquantin Aug 13, 2024
efac88e
chore: upgrade to 1.10.0
chungquantin Aug 13, 2024
c2ec0e0
chore: rebase upstream 1.8.0
chungquantin Aug 14, 2024
c2fe9b3
chore: update cargo.lock
chungquantin Aug 14, 2024
1bdc5b8
fix: undo benchmarking host functions removal
chungquantin Aug 14, 2024
ba35239
Merge remote-tracking branch 'refs/remotes/origin/chungquantin/chore-…
chungquantin Aug 14, 2024
f7b5b53
fix: remove pov reclaim from testnet
chungquantin Aug 14, 2024
06fbb92
fix: remove signed extra
chungquantin Aug 14, 2024
76b0712
feat: update the authoring duration
chungquantin Aug 14, 2024
fcbecff
fix: comment identation
chungquantin Aug 14, 2024
676023d
chore: upgrade to v1.11.0
chungquantin Aug 14, 2024
36440f9
fix: comment identation
chungquantin Aug 14, 2024
dbfaa40
Merge remote-tracking branch 'refs/remotes/origin/chungquantin/chore-…
chungquantin Aug 14, 2024
36f7bf1
fix: remove signed extra from testnet
chungquantin Aug 14, 2024
6a21b84
fix: mismatch dependency version
chungquantin Aug 14, 2024
8b085e2
chore(upgrade): add feature gate to the unified host functions
chungquantin Aug 14, 2024
a127f44
chore: rebase v1.10.0
chungquantin Aug 14, 2024
6950395
fix: comment identation
chungquantin Aug 14, 2024
6a1f0ca
fix: remove signed extra from testnet
chungquantin Aug 14, 2024
5503e5f
fix: mismatch dependency version
chungquantin Aug 14, 2024
45b59e2
Merge remote-tracking branch 'refs/remotes/origin/chungquantin/chore-…
chungquantin Aug 14, 2024
a2025a1
chore: upgrade to v1.12.0
chungquantin Aug 14, 2024
2352a50
chore: revert pov reclaim feature
chungquantin Aug 15, 2024
f554468
Merge branch 'chungquantin/chore-polkadot-v1.9.0' into chungquantin/c…
chungquantin Aug 15, 2024
cfbd5d4
Merge branch 'developer' into chungquantin/chore-polkadot-v1.10.0
chungquantin Aug 15, 2024
0d8e50a
chore: update lock file
chungquantin Aug 15, 2024
9cd01dd
chore: upgrade to v1.9.0
chungquantin Aug 12, 2024
e68615e
feat: pov claim feature
chungquantin Aug 13, 2024
f22d339
fix: add missing signed extra
chungquantin Aug 14, 2024
a3e6de2
chore: upgrade to 1.10.0
chungquantin Aug 13, 2024
7943f0a
refactor: remove native executor, add unified host functions
chungquantin Aug 13, 2024
8e91a8d
feat: pov claim feature
chungquantin Aug 13, 2024
833e4ba
chore: upgrade to 1.10.0
chungquantin Aug 13, 2024
ea2adee
chore: rebase upstream 1.8.0
chungquantin Aug 14, 2024
e923e9e
chore: update cargo.lock
chungquantin Aug 14, 2024
be53317
fix: undo benchmarking host functions removal
chungquantin Aug 14, 2024
48803bd
chore: upgrade to 1.10.0
chungquantin Aug 13, 2024
2b91db6
refactor: remove native executor, add unified host functions
chungquantin Aug 13, 2024
10ebaa6
feat: pov claim feature
chungquantin Aug 13, 2024
c9abfa2
chore: upgrade to 1.10.0
chungquantin Aug 13, 2024
a258bf6
chore: rebase upstream 1.8.0
chungquantin Aug 14, 2024
88f423d
chore: update cargo.lock
chungquantin Aug 14, 2024
fb8c6eb
fix: undo benchmarking host functions removal
chungquantin Aug 14, 2024
8257cc4
fix: remove signed extra
chungquantin Aug 14, 2024
ff33961
feat: update the authoring duration
chungquantin Aug 14, 2024
587dc45
chore(upgrade): add feature gate to the unified host functions
chungquantin Aug 14, 2024
5608785
chore: revert pov reclaim feature
chungquantin Aug 15, 2024
827dc84
chore: update lock file
chungquantin Aug 15, 2024
ab65d6a
Merge remote-tracking branch 'refs/remotes/origin/chungquantin/chore-…
chungquantin Aug 15, 2024
1257186
feat: pov claim feature
chungquantin Aug 13, 2024
81115f5
chore: upgrade to 1.10.0
chungquantin Aug 13, 2024
242b68a
refactor: remove native executor, add unified host functions
chungquantin Aug 13, 2024
62ca070
feat: pov claim feature
chungquantin Aug 13, 2024
a72b206
chore: upgrade to 1.10.0
chungquantin Aug 13, 2024
9863cff
fix: undo benchmarking host functions removal
chungquantin Aug 14, 2024
d058b22
refactor: remove native executor, add unified host functions
chungquantin Aug 13, 2024
5344837
fix: undo benchmarking host functions removal
chungquantin Aug 14, 2024
b981174
chore: revert pov reclaim feature
chungquantin Aug 15, 2024
c9416ea
Merge branch 'developer' into chungquantin/chore-polkadot-v1.10.0
chungquantin Aug 15, 2024
256e8d4
Merge branch 'developer' into chungquantin/chore-polkadot-v1.10.0
chungquantin Aug 15, 2024
fff8d0d
fix: add missing experimental feature
chungquantin Aug 15, 2024
84d9334
chore: revert experimental flag
chungquantin Aug 15, 2024
764e41d
fix: remove EOL space
chungquantin Aug 15, 2024
b8d61ea
chore: rebase v1.10.0
chungquantin Aug 14, 2024
0db3bb9
fix: comment identation
chungquantin Aug 14, 2024
b6ee08f
fix: remove signed extra from testnet
chungquantin Aug 14, 2024
2b4ce6d
fix: mismatch dependency version
chungquantin Aug 14, 2024
a544bef
chore: upgrade to v1.11.0
chungquantin Aug 14, 2024
ff34782
fix: remove signed extra from testnet
chungquantin Aug 14, 2024
b33a5bc
fix: mismatch dependency version
chungquantin Aug 14, 2024
a624454
Merge remote-tracking branch 'refs/remotes/origin/chungquantin/chore-…
chungquantin Aug 15, 2024
410039e
Merge branch 'chungquantin/chore-polkadot-v1.11.0' into chungquantin/…
chungquantin Aug 15, 2024
9de05d8
fix: remove metadata hash from testnet
chungquantin Aug 15, 2024
3e9d856
fix: remove metadata hash extension
chungquantin Aug 15, 2024
b88473e
Merge branch 'developer' into chungquantin/chore-polkadot-v1.11.0
chungquantin Aug 16, 2024
d222eb6
refactor: simplify wasm build script
chungquantin Aug 16, 2024
fb24dc5
Merge branch 'chungquantin/chore-polkadot-v1.11.0' into chungquantin/…
chungquantin Aug 16, 2024
90b6ca8
Merge branch 'developer' into chungquantin/chore-polkadot-v1.12.0
chungquantin Aug 16, 2024
564c6d5
fix: remove frame metadata hash extension
chungquantin Aug 16, 2024
3ef3849
fix: remove metadata hash from testnet
chungquantin Aug 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6,384 changes: 3,353 additions & 3,031 deletions Cargo.lock

Large diffs are not rendered by default.

197 changes: 98 additions & 99 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,114 +57,113 @@ pop-runtime-common = { path = "runtime/common", default-features = false }
pop-primitives = { path = "./primitives", default-features = false }

# Substrate
sc-basic-authorship = "0.39.0"
sc-chain-spec = "32.0.0"
sc-cli = "0.41.0"
sc-client-api = "33.0.0"
sc-offchain = "34.0.0"
sc-consensus = "0.38.0"
sc-executor = "0.37.0"
sc-network = "0.39.0"
sc-network-sync = "0.38.0"
sc-rpc = "34.0.0"
sc-service = "0.40.0"
sc-sysinfo = "32.0.0"
sc-telemetry = "19.0.0"
sc-tracing = "33.0.0"
sc-transaction-pool = "33.0.0"
sc-transaction-pool-api = "33.0.0"
frame-benchmarking = { version = "33.0.0", default-features = false }
frame-benchmarking-cli = "37.0.0"
frame-executive = { version = "33.0.0", default-features = false }
frame-metadata-hash-extension = { version = "0.2.0", default-features = false }
frame-support = { version = "33.0.0", default-features = false }
frame-system = { version = "33.0.0", default-features = false }
frame-system-benchmarking = { version = "33.0.0", default-features = false }
frame-system-rpc-runtime-api = { version = "31.0.0", default-features = false }
frame-try-runtime = { version = "0.39.0", default-features = false }
pallet-aura = { version = "32.0.0", default-features = false }
pallet-authorship = { version = "33.0.0", default-features = false }
pallet-assets = { version = "34.0.0", default-features = false }
pallet-balances = { version = "34.0.0", default-features = false }
pallet-contracts = { version = "32.0.0", default-features = false }
pallet-message-queue = { version = "36.0.0", default-features = false }
pallet-multisig = { version = "33.0.0", default-features = false }
pallet-nft-fractionalization = { version = "15.0.0", default-features = false }
pallet-nfts = { version = "27.0.0", default-features = false }
pallet-nfts-runtime-api = { version = "19.0.0", default-features = false }
pallet-preimage = { version = "33.0.0", default-features = false }
pallet-proxy = { version = "33.0.0", default-features = false }
pallet-scheduler = { version = "34.0.0", default-features = false }
pallet-session = { version = "33.0.0", default-features = false }
pallet-sudo = { version = "33.0.0", default-features = false }
pallet-timestamp = { version = "32.0.0", default-features = false }
pallet-transaction-payment = { version = "33.0.0", default-features = false }
pallet-transaction-payment-rpc = "35.0.0"
pallet-transaction-payment-rpc-runtime-api = { version = "33.0.0", default-features = false }
pallet-utility = { version = "33.0.0", default-features = false }
sp-api = { version = "31.0.0", default-features = false }
sp-authority-discovery = { version = "31.0.0", default-features = false }
sp-block-builder = { version = "31.0.0", default-features = false }
sp-blockchain = "33.0.0"
sp-consensus-aura = { version = "0.37.0", default-features = false }
sp-consensus-babe = { version = "0.37.0", default-features = false }
sp-consensus-beefy = { version = "18.0.0", default-features = false }
sp-consensus-grandpa = { version = "18.0.0", default-features = false }
sp-core = { version = "32.0.0", default-features = false }
sp-keystore = "0.38.0"
sp-io = { version = "35.0.0", default-features = false }
sp-genesis-builder = { version = "0.12.0", default-features = false }
sp-inherents = { version = "31.0.0", default-features = false }
sp-offchain = { version = "31.0.0", default-features = false }
sp-runtime = { version = "36.0.0", default-features = false }
sp-timestamp = "31.0.0"
substrate-frame-rpc-system = "33.0.0"
sc-basic-authorship = "0.40.0"
sc-chain-spec = "33.0.0"
sc-cli = "0.42.0"
sc-client-api = "34.0.0"
sc-offchain = "35.0.0"
sc-consensus = "0.39.1"
sc-executor = "0.38.0"
sc-network = "0.40.0"
sc-network-sync = "0.39.0"
sc-rpc = "35.0.0"
sc-service = "0.41.0"
sc-sysinfo = "33.0.0"
sc-telemetry = "20.0.0"
sc-tracing = "34.0.0"
sc-transaction-pool = "34.0.0"
sc-transaction-pool-api = "34.0.0"
frame-benchmarking = { version = "34.0.0", default-features = false }
frame-benchmarking-cli = "38.0.0"
frame-executive = { version = "34.0.0", default-features = false }
frame-support = { version = "34.0.0", default-features = false }
frame-system = { version = "34.0.1", default-features = false }
frame-system-benchmarking = { version = "34.0.0", default-features = false }
frame-system-rpc-runtime-api = { version = "32.0.0", default-features = false }
frame-try-runtime = { version = "0.40.0", default-features = false }
pallet-aura = { version = "33.0.0", default-features = false }
pallet-authorship = { version = "34.0.0", default-features = false }
pallet-assets = { version = "35.0.0", default-features = false }
pallet-balances = { version = "35.0.0", default-features = false }
pallet-contracts = { version = "33.0.0", default-features = false }
pallet-message-queue = { version = "37.0.0", default-features = false }
pallet-multisig = { version = "34.0.0", default-features = false }
pallet-nft-fractionalization = { version = "16.0.0", default-features = false }
pallet-nfts = { version = "28.0.0", default-features = false }
pallet-nfts-runtime-api = { version = "20.0.0", default-features = false }
pallet-preimage = { version = "34.0.0", default-features = false }
pallet-proxy = { version = "34.0.0", default-features = false }
pallet-scheduler = { version = "35.0.0", default-features = false }
pallet-session = { version = "34.0.0", default-features = false }
pallet-sudo = { version = "34.0.0", default-features = false }
pallet-timestamp = { version = "33.0.0", default-features = false }
pallet-transaction-payment = { version = "34.0.0", default-features = false }
pallet-transaction-payment-rpc = "36.0.0"
pallet-transaction-payment-rpc-runtime-api = { version = "34.0.0", default-features = false }
pallet-utility = { version = "34.0.0", default-features = false }
sp-api = { version = "32.0.0", default-features = false }
sp-authority-discovery = { version = "32.0.0", default-features = false }
sp-block-builder = { version = "32.0.0", default-features = false }
sp-blockchain = "34.0.0"
sp-consensus-aura = { version = "0.38.0", default-features = false }
sp-consensus-babe = { version = "0.38.0", default-features = false }
sp-consensus-beefy = { version = "19.0.0", default-features = false }
sp-consensus-grandpa = { version = "19.0.0", default-features = false }
sp-core = { version = "33.0.1", default-features = false }
sp-keystore = "0.39.0"
sp-io = { version = "36.0.0", default-features = false }
sp-genesis-builder = { version = "0.13.0", default-features = false }
sp-inherents = { version = "32.0.0", default-features = false }
sp-offchain = { version = "32.0.0", default-features = false }
sp-runtime = { version = "37.0.0", default-features = false }
sp-timestamp = "32.0.0"
substrate-frame-rpc-system = "34.0.0"
substrate-prometheus-endpoint = "0.17.0"
sp-session = { version = "32.0.0", default-features = false }
sp-session = { version = "33.0.0", default-features = false }
sp-std = { version = "14.0.0", default-features = false }
sp-transaction-pool = { version = "31.0.0", default-features = false }
sp-version = { version = "34.0.0", default-features = false }
sp-transaction-pool = { version = "32.0.0", default-features = false }
sp-version = { version = "35.0.0", default-features = false }

# Polkadot
pallet-xcm = { version = "12.0.0", default-features = false }
polkadot-cli = "12.0.0"
polkadot-parachain-primitives = { version = "11.0.0", default-features = false }
polkadot-runtime-parachains = { version = "12.0.0", default-features = false }
polkadot-primitives = { version = "12.0.0", default-features = false }
polkadot-runtime-common = { version = "12.0.0", default-features = false }
rococo-runtime-constants = { version = "12.0.0", default-features = false }
rococo-runtime = { version = "12.0.1", default-features = false }
xcm = { version = "12.0.0", package = "staging-xcm", default-features = false }
xcm-builder = { version = "12.0.0", package = "staging-xcm-builder", default-features = false }
xcm-executor = { version = "12.0.0", package = "staging-xcm-executor", default-features = false }
pallet-xcm = { version = "13.0.0", default-features = false }
polkadot-cli = "13.0.0"
polkadot-parachain-primitives = { version = "12.0.0", default-features = false }
polkadot-runtime-parachains = { version = "13.0.0", default-features = false }
polkadot-primitives = { version = "13.0.0", default-features = false }
polkadot-runtime-common = { version = "13.0.0", default-features = false }
rococo-runtime-constants = { version = "13.0.0", default-features = false }
rococo-runtime = { version = "13.0.0", default-features = false }
xcm = { version = "13.0.1", package = "staging-xcm", default-features = false }
xcm-builder = { version = "13.0.0", package = "staging-xcm-builder", default-features = false }
xcm-executor = { version = "13.0.0", package = "staging-xcm-executor", default-features = false }

# Cumulus
asset-hub-rococo-runtime = { version = "0.16.1", default-features = false }
asset-test-utils = { version = "12.0.0", default-features = false }
cumulus-pallet-aura-ext = { version = "0.12.0", default-features = false }
cumulus-pallet-parachain-system = { version = "0.12.0", default-features = false, features = [
asset-hub-rococo-runtime = { version = "0.17.0", default-features = false }
asset-test-utils = { version = "13.0.0", default-features = false }
cumulus-pallet-aura-ext = { version = "0.13.0", default-features = false }
cumulus-pallet-parachain-system = { version = "0.13.0", default-features = false, features = [
"parameterized-consensus-hook",
] }
cumulus-pallet-session-benchmarking = { version = "14.0.0", default-features = false }
cumulus-pallet-xcm = { version = "0.12.0", default-features = false }
cumulus-pallet-xcmp-queue = { version = "0.12.0", default-features = false }
cumulus-primitives-aura = { version = "0.12.0", default-features = false }
cumulus-primitives-core = { version = "0.12.0", default-features = false }
cumulus-primitives-storage-weight-reclaim = { version = "3.0.0", default-features = false }
cumulus-primitives-utility = { version = "0.12.0", default-features = false }
emulated-integration-tests-common = { version = "8.0.0", default-features = false }
pallet-collator-selection = { version = "14.0.0", default-features = false }
parachains-common = { version = "12.0.0", default-features = false }
parachain-info = { version = "0.12.0", package = "staging-parachain-info", default-features = false }
cumulus-primitives-parachain-inherent = "0.12.0"
cumulus-relay-chain-interface = "0.12.0"
cumulus-pallet-session-benchmarking = { version = "15.0.0", default-features = false }
cumulus-pallet-xcm = { version = "0.13.0", default-features = false }
cumulus-pallet-xcmp-queue = { version = "0.13.0", default-features = false }
cumulus-primitives-aura = { version = "0.13.0", default-features = false }
cumulus-primitives-core = { version = "0.13.0", default-features = false }
cumulus-primitives-storage-weight-reclaim = { version = "4.0.0", default-features = false }
cumulus-primitives-utility = { version = "0.13.0", default-features = false }
emulated-integration-tests-common = { version = "9.0.0", default-features = false }
pallet-collator-selection = { version = "15.0.0", default-features = false }
parachains-common = { version = "13.0.0", default-features = false }
parachain-info = { version = "0.13.0", package = "staging-parachain-info", default-features = false }
cumulus-primitives-parachain-inherent = "0.13.0"
cumulus-relay-chain-interface = "0.13.0"
color-print = "0.3.4"
cumulus-client-cli = "0.12.0"
cumulus-client-collator = "0.12.0"
cumulus-client-consensus-aura = "0.12.0"
cumulus-client-consensus-common = "0.12.0"
cumulus-client-consensus-proposer = "0.12.0"
cumulus-client-service = "0.12.0"
cumulus-client-cli = "0.13.0"
cumulus-client-collator = "0.13.0"
cumulus-client-consensus-aura = "0.13.0"
cumulus-client-consensus-common = "0.13.0"
cumulus-client-consensus-proposer = "0.13.0"
cumulus-client-service = "0.13.0"

# Paseo
asset-hub-paseo-runtime = { git = "https://github.com/paseo-network/runtimes/", tag = "v1.2.5-system-chains", default-features = false }
Expand Down
3 changes: 2 additions & 1 deletion node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ pub fn get_from_seed<TPublic: Public>(seed: &str) -> <TPublic::Pair as Pair>::Pu

/// The extensions for the [`ChainSpec`].
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, ChainSpecGroup, ChainSpecExtension)]
#[serde(deny_unknown_fields)]
pub struct Extensions {
/// The relay chain of the Parachain.
#[serde(alias = "relayChain", alias = "RelayChain")]
pub relay_chain: String,
/// The id of the Parachain.
#[serde(alias = "paraId", alias = "ParaId")]
pub para_id: u32,
}

Expand Down
6 changes: 3 additions & 3 deletions node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ where
config: parachain_config,
keystore: params.keystore_container.keystore(),
backend: backend.clone(),
network: network.clone(),
network,
sync_service: sync_service.clone(),
system_rpc_tx,
tx_handler_controller,
Expand Down Expand Up @@ -334,9 +334,9 @@ where
prometheus_registry.as_ref(),
telemetry.as_ref().map(|t| t.handle()),
&task_manager,
relay_chain_interface.clone(),
relay_chain_interface,
transaction_pool,
sync_service.clone(),
sync_service,
params.keystore_container.keystore(),
relay_chain_slot_duration,
para_id,
Expand Down
16 changes: 0 additions & 16 deletions runtime/devnet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ pop-runtime-common = { workspace = true, default-features = false }
# Substrate
frame-benchmarking.workspace = true
frame-executive.workspace = true
frame-metadata-hash-extension.workspace = true
frame-support.workspace = true
frame-system.workspace = true
frame-system-benchmarking.workspace = true
Expand Down Expand Up @@ -224,18 +223,3 @@ try-runtime = [
"polkadot-runtime-common/try-runtime",
"sp-runtime/try-runtime",
]

experimental = []

# Enable the metadata hash generation.
#
# This is hidden behind a feature because it increases the compile time.
# The wasm binary needs to be compiled twice, once to fetch the metadata,
# generate the metadata hash and then a second time with the
# `RUNTIME_METADATA_HASH` environment variable set for the `CheckMetadataHash`
# extension.
metadata-hash = ["substrate-wasm-builder/metadata-hash"]
peterwht marked this conversation as resolved.
Show resolved Hide resolved

# A convenience feature for enabling things when doing a build
# for an on-chain release.
on-chain-release-build = ["metadata-hash"]
9 changes: 1 addition & 8 deletions runtime/devnet/build.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
#[cfg(all(feature = "std", feature = "metadata-hash"))]
fn main() {
substrate_wasm_builder::WasmBuilder::init_with_defaults()
.enable_metadata_hash("UNIT", 12)
.build()
}

#[cfg(all(feature = "std", not(feature = "metadata-hash")))]
#[cfg(feature = "std")]
fn main() {
substrate_wasm_builder::WasmBuilder::build_using_defaults()
}
Expand Down
1 change: 1 addition & 0 deletions runtime/devnet/src/config/xcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ impl xcm_executor::Config for XcmConfig {
type HrmpNewChannelOpenRequestHandler = ();
type HrmpChannelAcceptedHandler = ();
type HrmpChannelClosingHandler = ();
type XcmRecorder = PolkadotXcm;
}

/// No local origins on this chain are allowed to dispatch XCM sends/executions.
Expand Down
1 change: 0 additions & 1 deletion runtime/devnet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ pub type SignedExtra = (
frame_system::CheckNonce<Runtime>,
frame_system::CheckWeight<Runtime>,
pallet_transaction_payment::ChargeTransactionPayment<Runtime>,
frame_metadata_hash_extension::CheckMetadataHash<Runtime>,
);

/// Unchecked extrinsic type as expected by this runtime.
Expand Down
14 changes: 0 additions & 14 deletions runtime/testnet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ pop-runtime-common = { workspace = true, default-features = false }
# Substrate
frame-benchmarking.workspace = true
frame-executive.workspace = true
frame-metadata-hash-extension.workspace = true
frame-support.workspace = true
frame-system.workspace = true
frame-system-benchmarking.workspace = true
Expand Down Expand Up @@ -223,16 +222,3 @@ try-runtime = [
"polkadot-runtime-common/try-runtime",
"sp-runtime/try-runtime",
]

# Enable the metadata hash generation.
#
# This is hidden behind a feature because it increases the compile time.
# The wasm binary needs to be compiled twice, once to fetch the metadata,
# generate the metadata hash and then a second time with the
# `RUNTIME_METADATA_HASH` environment variable set for the `CheckMetadataHash`
# extension.
metadata-hash = ["substrate-wasm-builder/metadata-hash"]

# A convenience feature for enabling things when doing a build
# for an on-chain release.
on-chain-release-build = ["metadata-hash"]
9 changes: 1 addition & 8 deletions runtime/testnet/build.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
#[cfg(all(feature = "std", feature = "metadata-hash"))]
fn main() {
substrate_wasm_builder::WasmBuilder::init_with_defaults()
.enable_metadata_hash("UNIT", 12)
.build()
}

#[cfg(all(feature = "std", not(feature = "metadata-hash")))]
#[cfg(feature = "std")]
fn main() {
substrate_wasm_builder::WasmBuilder::build_using_defaults()
}
Expand Down
1 change: 1 addition & 0 deletions runtime/testnet/src/config/xcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ impl xcm_executor::Config for XcmConfig {
type HrmpNewChannelOpenRequestHandler = ();
type HrmpChannelAcceptedHandler = ();
type HrmpChannelClosingHandler = ();
type XcmRecorder = PolkadotXcm;
}

/// No local origins on this chain are allowed to dispatch XCM sends/executions.
Expand Down
1 change: 0 additions & 1 deletion runtime/testnet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ pub type SignedExtra = (
frame_system::CheckNonce<Runtime>,
frame_system::CheckWeight<Runtime>,
pallet_transaction_payment::ChargeTransactionPayment<Runtime>,
frame_metadata_hash_extension::CheckMetadataHash<Runtime>,
);

/// Unchecked extrinsic type as expected by this runtime.
Expand Down
Loading