Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ Changelog for the runtimes governed by the Polkadot Fellowship.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]

### Fixed

- [BHP](https://github.com/polkadot-fellows/runtimes/pull/978) Add missing snowbridge runtime API to the BridgeHub
runtime.

## [1.9.2] 08.10.2025

### Added
Expand Down
29 changes: 29 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ snowbridge-beacon-primitives = { version = "0.15.0", default-features = false }
snowbridge-core = { version = "0.15.0", default-features = false }
snowbridge-merkle-tree = { version = "0.4.0", default-features = false }
snowbridge-outbound-queue-runtime-api = { version = "0.15.0", default-features = false }
snowbridge-outbound-queue-v2-runtime-api = { version = "0.4.0", default-features = false }
snowbridge-outbound-queue-primitives = { version = "0.4.0", default-features = false }
snowbridge-pallet-ethereum-client = { version = "0.15.0", default-features = false }
snowbridge-pallet-inbound-queue = { version = "0.15.0", default-features = false }
Expand All @@ -230,6 +231,7 @@ snowbridge-inbound-queue-primitives = { version = "0.4.0", default-features = fa
snowbridge-runtime-common = { version = "0.16.0", default-features = false }
snowbridge-runtime-test-common = { version = "0.18.0" }
snowbridge-system-runtime-api = { version = "0.15.0", default-features = false }
snowbridge-system-v2-runtime-api = { version = "0.4.0", default-features = false }
sp-api = { version = "38.0.0", default-features = false }
sp-application-crypto = { version = "42.0.0", default-features = false }
sp-arithmetic = { version = "28.0.0", default-features = false }
Expand Down Expand Up @@ -275,12 +277,8 @@ ss58-registry = { version = "1.47.0" }
resolver = "2"

members = [
"integration-tests/ahm",
"pallets/ah-migrator",
"pallets/ah-ops",
"pallets/rc-migrator",

"chain-spec-generator",
"integration-tests/ahm",
"integration-tests/emulated/chains/parachains/assets/asset-hub-kusama",
"integration-tests/emulated/chains/parachains/assets/asset-hub-polkadot",
"integration-tests/emulated/chains/parachains/bridges/bridge-hub-kusama",
Expand Down Expand Up @@ -311,6 +309,9 @@ members = [
"integration-tests/emulated/tests/people/people-kusama",
"integration-tests/emulated/tests/people/people-polkadot",
"integration-tests/zombienet",
"pallets/ah-migrator",
"pallets/ah-ops",
"pallets/rc-migrator",
"pallets/remote-proxy",
"relay/common",
"relay/kusama",
Expand Down
4 changes: 4 additions & 0 deletions system-parachains/bridge-hubs/bridge-hub-polkadot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ snowbridge-beacon-primitives = { workspace = true }
snowbridge-pallet-system = { workspace = true }
snowbridge-pallet-system-v2 = { workspace = true }
snowbridge-system-runtime-api = { workspace = true }
snowbridge-system-v2-runtime-api = { workspace = true }
snowbridge-core = { workspace = true }
snowbridge-merkle-tree = { workspace = true }
snowbridge-pallet-ethereum-client = { workspace = true }
Expand All @@ -117,6 +118,7 @@ snowbridge-pallet-outbound-queue = { workspace = true }
snowbridge-pallet-outbound-queue-v2 = { workspace = true }
snowbridge-outbound-queue-primitives = { workspace = true }
snowbridge-outbound-queue-runtime-api = { workspace = true }
snowbridge-outbound-queue-v2-runtime-api = { workspace = true }
snowbridge-inbound-queue-primitives = { workspace = true }
snowbridge-runtime-common = { workspace = true }

Expand Down Expand Up @@ -200,6 +202,7 @@ std = [
"snowbridge-merkle-tree/std",
"snowbridge-outbound-queue-primitives/std",
"snowbridge-outbound-queue-runtime-api/std",
"snowbridge-outbound-queue-v2-runtime-api/std",
"snowbridge-pallet-ethereum-client/std",
"snowbridge-pallet-inbound-queue-v2/std",
"snowbridge-pallet-inbound-queue/std",
Expand All @@ -209,6 +212,7 @@ std = [
"snowbridge-pallet-system/std",
"snowbridge-runtime-common/std",
"snowbridge-system-runtime-api/std",
"snowbridge-system-v2-runtime-api/std",
"sp-api/std",
"sp-block-builder/std",
"sp-consensus-aura/std",
Expand Down
12 changes: 12 additions & 0 deletions system-parachains/bridge-hubs/bridge-hub-polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1377,12 +1377,24 @@ impl_runtime_apis! {
}
}

impl snowbridge_outbound_queue_v2_runtime_api::OutboundQueueV2Api<Block, Balance> for Runtime {
fn prove_message(leaf_index: u64) -> Option<snowbridge_merkle_tree::MerkleProof> {
snowbridge_pallet_outbound_queue_v2::api::prove_message::<Runtime>(leaf_index)
}
}

impl snowbridge_system_runtime_api::ControlApi<Block> for Runtime {
fn agent_id(location: VersionedLocation) -> Option<AgentId> {
snowbridge_pallet_system::api::agent_id::<Runtime>(location)
}
}

impl snowbridge_system_v2_runtime_api::ControlV2Api<Block> for Runtime {
fn agent_id(location: VersionedLocation) -> Option<AgentId> {
snowbridge_pallet_system_v2::api::agent_id::<Runtime>(location)
}
}

impl cumulus_primitives_core::GetParachainInfo<Block> for Runtime {
fn parachain_id() -> ParaId {
ParachainInfo::parachain_id()
Expand Down
Loading