override conversion rate in estimate-message-fee RPC (#1189)

This commit is contained in:
Svyatoslav Nikolsky
2021-12-17 16:54:29 +03:00
committed by Bastian Köcher
parent 22b1e456ab
commit 741484214e
16 changed files with 85 additions and 71 deletions
+2 -1
View File
@@ -30,7 +30,7 @@ use frame_system::limits;
use sp_core::Hasher as HasherT;
use sp_runtime::{
traits::{BlakeTwo256, Convert, IdentifyAccount, Verify},
MultiSignature, MultiSigner, Perbill,
FixedU128, MultiSignature, MultiSigner, Perbill,
};
use sp_std::prelude::*;
@@ -291,6 +291,7 @@ sp_api::decl_runtime_apis! {
fn estimate_message_delivery_and_dispatch_fee(
lane_id: LaneId,
payload: OutboundPayload,
rialto_to_this_conversion_rate: Option<FixedU128>,
) -> Option<OutboundMessageFee>;
/// Returns dispatch weight, encoded payload size and delivery+dispatch fee of all
/// messages in given inclusive range.