Trait substrate_api_client::api::runtime_api::transaction_payment_call::TransactionPaymentCallApi
source · pub trait TransactionPaymentCallApi: RuntimeApi {
type FeeDetails;
type RuntimeDispatchInfo;
type Balance;
type Weight;
// Required methods
fn query_call_fee_details<'life0, 'async_trait, Call>(
&'life0 self,
call: Call,
length: u32,
at_block: Option<Self::Hash>
) -> Pin<Box<dyn Future<Output = Result<Self::FeeDetails>> + 'async_trait>>
where Call: 'async_trait + Encode,
Self: 'async_trait,
'life0: 'async_trait;
fn query_call_info<'life0, 'async_trait, Call>(
&'life0 self,
call: Call,
length: u32,
at_block: Option<Self::Hash>
) -> Pin<Box<dyn Future<Output = Result<Self::RuntimeDispatchInfo>> + 'async_trait>>
where Call: 'async_trait + Encode,
Self: 'async_trait,
'life0: 'async_trait;
fn query_length_to_fee_call<'life0, 'async_trait>(
&'life0 self,
length: u32,
at_block: Option<Self::Hash>
) -> Pin<Box<dyn Future<Output = Result<Self::Balance>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn query_weight_to_fee_call<'life0, 'async_trait>(
&'life0 self,
weight: Self::Weight,
at_block: Option<Self::Hash>
) -> Pin<Box<dyn Future<Output = Result<Self::Balance>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Required Associated Types§
Required Methods§
sourcefn query_call_fee_details<'life0, 'async_trait, Call>(
&'life0 self,
call: Call,
length: u32,
at_block: Option<Self::Hash>
) -> Pin<Box<dyn Future<Output = Result<Self::FeeDetails>> + 'async_trait>>where
Call: 'async_trait + Encode,
Self: 'async_trait,
'life0: 'async_trait,
fn query_call_fee_details<'life0, 'async_trait, Call>(
&'life0 self,
call: Call,
length: u32,
at_block: Option<Self::Hash>
) -> Pin<Box<dyn Future<Output = Result<Self::FeeDetails>> + 'async_trait>>where
Call: 'async_trait + Encode,
Self: 'async_trait,
'life0: 'async_trait,
Query the call fee details.
sourcefn query_call_info<'life0, 'async_trait, Call>(
&'life0 self,
call: Call,
length: u32,
at_block: Option<Self::Hash>
) -> Pin<Box<dyn Future<Output = Result<Self::RuntimeDispatchInfo>> + 'async_trait>>where
Call: 'async_trait + Encode,
Self: 'async_trait,
'life0: 'async_trait,
fn query_call_info<'life0, 'async_trait, Call>(
&'life0 self,
call: Call,
length: u32,
at_block: Option<Self::Hash>
) -> Pin<Box<dyn Future<Output = Result<Self::RuntimeDispatchInfo>> + 'async_trait>>where
Call: 'async_trait + Encode,
Self: 'async_trait,
'life0: 'async_trait,
Query the call info
sourcefn query_length_to_fee_call<'life0, 'async_trait>(
&'life0 self,
length: u32,
at_block: Option<Self::Hash>
) -> Pin<Box<dyn Future<Output = Result<Self::Balance>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn query_length_to_fee_call<'life0, 'async_trait>(
&'life0 self,
length: u32,
at_block: Option<Self::Hash>
) -> Pin<Box<dyn Future<Output = Result<Self::Balance>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Query the output of the current LengthToFee given some input.
sourcefn query_weight_to_fee_call<'life0, 'async_trait>(
&'life0 self,
weight: Self::Weight,
at_block: Option<Self::Hash>
) -> Pin<Box<dyn Future<Output = Result<Self::Balance>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn query_weight_to_fee_call<'life0, 'async_trait>(
&'life0 self,
weight: Self::Weight,
at_block: Option<Self::Hash>
) -> Pin<Box<dyn Future<Output = Result<Self::Balance>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Query the output of the current WeightToFee given some input.
Object Safety§
This trait is not object safe.