pallet_frequency_tx_payment/types.rs
extern crate alloc;
use alloc::vec::Vec;
/// Gets stable weights for a capacity Call
pub trait GetStableWeight<RuntimeCall, Weight> {
/// Get stable weights for Call
fn get_stable_weight(call: &RuntimeCall) -> Option<Weight>;
/// Get inner calls from a Call if any exist,
/// e.g. in case of `pay_with_capacity` and `pay_with_capacity_batch_all`
fn get_inner_calls(outer_call: &RuntimeCall) -> Option<Vec<&RuntimeCall>>;
}
/// Filters calls that match Msa::add_public_key_to_msa
pub trait GetAddKeyData<RuntimeCall, AccountId, MessageSourceId> {
/// If the call matches Msa::add_public_key_to_msa, return the owner account id and msa id
/// from the call parameters
fn get_add_key_data(call: &RuntimeCall) -> Option<(AccountId, AccountId, MessageSourceId)>;
}