Skip to content

Commit

Permalink
prepare refund extension infra to add refund extension for messages f…
Browse files Browse the repository at this point in the history
…rom standalone chain (#2558)

* prepare refund extension infra to add refund extension for messages from standalone chain

* spelling

* apply adapter to fix compilation

* clippy
  • Loading branch information
svyatonik authored Sep 14, 2023
1 parent e73f876 commit ace296f
Show file tree
Hide file tree
Showing 2 changed files with 284 additions and 206 deletions.
24 changes: 13 additions & 11 deletions bin/millau/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ pub use pallet_xcm::Call as XcmCall;
use bridge_runtime_common::{
generate_bridge_reject_obsolete_headers_and_messages,
refund_relayer_extension::{
ActualFeeRefund, RefundBridgedParachainMessages, RefundableMessagesLane,
RefundableParachain,
ActualFeeRefund, RefundBridgedParachainMessages, RefundSignedExtensionAdapter,
RefundableMessagesLane, RefundableParachain,
},
};
#[cfg(any(feature = "std", test))]
Expand Down Expand Up @@ -656,17 +656,19 @@ generate_bridge_reject_obsolete_headers_and_messages! {
bp_runtime::generate_static_str_provider!(BridgeRefundRialtoPara2000Lane0Msgs);
/// Signed extension that refunds relayers that are delivering messages from the Rialto parachain.
pub type PriorityBoostPerMessage = ConstU64<351_343_108>;
pub type BridgeRefundRialtoParachainMessages = RefundBridgedParachainMessages<
Runtime,
RefundableParachain<WithRialtoParachainsInstance, bp_rialto_parachain::RialtoParachain>,
RefundableMessagesLane<
pub type BridgeRefundRialtoParachainMessages = RefundSignedExtensionAdapter<
RefundBridgedParachainMessages<
Runtime,
WithRialtoParachainMessagesInstance,
rialto_parachain_messages::Lane,
RefundableParachain<WithRialtoParachainsInstance, bp_rialto_parachain::RialtoParachain>,
RefundableMessagesLane<
Runtime,
WithRialtoParachainMessagesInstance,
rialto_parachain_messages::Lane,
>,
ActualFeeRefund<Runtime>,
PriorityBoostPerMessage,
StrBridgeRefundRialtoPara2000Lane0Msgs,
>,
ActualFeeRefund<Runtime>,
PriorityBoostPerMessage,
StrBridgeRefundRialtoPara2000Lane0Msgs,
>;

/// The address format for describing accounts.
Expand Down
Loading

0 comments on commit ace296f

Please sign in to comment.