pub type PricingParametersOf<T> = PricingParameters<BalanceOf<T>>;
Aliased Type§
struct PricingParametersOf<T> {
pub exchange_rate: FixedU128,
pub rewards: Rewards<<<T as Config>::Token as Inspect<<T as Config>::AccountId>>::Balance>,
pub fee_per_gas: U256,
pub multiplier: FixedU128,
}
Fields§
§exchange_rate: FixedU128
ETH/DOT exchange rate
rewards: Rewards<<<T as Config>::Token as Inspect<<T as Config>::AccountId>>::Balance>
Relayer rewards
fee_per_gas: U256
Ether (wei) fee per gas unit
multiplier: FixedU128
Fee multiplier
Implementations
Trait Implementations
§impl<Balance> Decode for PricingParameters<Balance>where
Rewards<Balance>: Decode,
impl<Balance> Decode for PricingParameters<Balance>where
Rewards<Balance>: Decode,
§fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<PricingParameters<Balance>, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<PricingParameters<Balance>, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.
§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
Attempt to skip the encoded value from input. Read more
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
§impl<Balance> Encode for PricingParameters<Balance>where
Rewards<Balance>: Encode,
impl<Balance> Encode for PricingParameters<Balance>where
Rewards<Balance>: Encode,
§fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
fn encode_to<__CodecOutputEdqy>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.
§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
§impl<Balance> MaxEncodedLen for PricingParameters<Balance>where
Rewards<Balance>: MaxEncodedLen,
impl<Balance> MaxEncodedLen for PricingParameters<Balance>where
Rewards<Balance>: MaxEncodedLen,
§fn max_encoded_len() -> usize
fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.