diff --git a/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs b/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs index 45ed56e133f..a9960be1c49 100644 --- a/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs +++ b/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs @@ -952,6 +952,11 @@ impl_runtime_apis! { fn endow_account(_: &AccountId) {} fn is_message_dispatched(_: bp_messages::MessageNonce) -> bool { true } + fn is_relayer_rewarded(_: &Self::AccountId) -> bool { + // TODO: implement me properly + true + } + fn prepare_message_proof( params: MessageProofParams, ) -> (bridge_hub_rococo_config::FromWococoBridgeHubMessagesProof, Weight) { @@ -984,6 +989,11 @@ impl_runtime_apis! { fn endow_account(_: &AccountId) {} fn is_message_dispatched(_: bp_messages::MessageNonce) -> bool { true } + fn is_relayer_rewarded(_: &Self::AccountId) -> bool { + // TODO: implement me properly + true + } + fn prepare_message_proof( params: MessageProofParams, ) -> (bridge_hub_wococo_config::FromRococoBridgeHubMessagesProof, Weight) { @@ -1017,6 +1027,11 @@ impl_runtime_apis! { }; impl BridgeParachainsConfig for Runtime { + fn parachains() -> Vec { + use bp_runtime::Parachain; + vec![bp_polkadot_core::parachains::ParaId(bp_bridge_hub_wococo::BridgeHubWococo::PARACHAIN_ID)] + } + fn prepare_parachain_heads_proof( parachains: &[bp_polkadot_core::parachains::ParaId], parachain_head_size: u32, @@ -1036,6 +1051,11 @@ impl_runtime_apis! { } impl BridgeParachainsConfig for Runtime { + fn parachains() -> Vec { + use bp_runtime::Parachain; + vec![bp_polkadot_core::parachains::ParaId(bp_bridge_hub_rococo::BridgeHubRococo::PARACHAIN_ID)] + } + fn prepare_parachain_heads_proof( parachains: &[bp_polkadot_core::parachains::ParaId], parachain_head_size: u32,