Transaction payment runtime apis: query call info and fee details (#1535)

Co-authored-by: Alexander Theißen <alex.theissen@me.com>
This commit is contained in:
Muharem IsmailovandAlexander Theißen authored and GitHub committed 2022-08-18 11:01:56 +00:00
1 parent 967409e3be
commit 1680ae3fe8
8 files changed
+389 -252

No files matched your search

+17
View File
@@ -613,6 +613,23 @@ impl_runtime_apis! {
}
}
impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentCallApi<Block, Balance, Call>
for Runtime
{
fn query_call_info(
call: Call,
len: u32,
) -> pallet_transaction_payment::RuntimeDispatchInfo<Balance> {
TransactionPayment::query_call_info(call, len)
}
fn query_call_fee_details(
call: Call,
len: u32,
) -> pallet_transaction_payment::FeeDetails<Balance> {
TransactionPayment::query_call_fee_details(call, len)
}
}
impl cumulus_primitives_core::CollectCollationInfo<Block> for Runtime {
fn collect_collation_info(header: &<Block as BlockT>::Header) -> cumulus_primitives_core::CollationInfo {
ParachainSystem::collect_collation_info(header)