referrerpolicy=no-referrer-when-downgrade
pub trait SuffixedCommonTransactionExtensionExt<Suffix>
where Suffix: TransactionExtensionSchema,
{ // Required methods fn from_params( spec_version: u32, transaction_version: u32, era: TransactionEra<u32, <BlakeTwo256 as Hasher>::Out>, genesis_hash: <BlakeTwo256 as Hasher>::Out, nonce: u32, tip: u128, extra: (<Suffix as TransactionExtensionSchema>::Payload, <Suffix as TransactionExtensionSchema>::Implicit), ) -> Self; fn nonce(&self) -> u32; fn tip(&self) -> u128; }
Expand description

Helper trait to define some extra methods on SuffixedCommonTransactionExtension.

Required Methods§

fn from_params( spec_version: u32, transaction_version: u32, era: TransactionEra<u32, <BlakeTwo256 as Hasher>::Out>, genesis_hash: <BlakeTwo256 as Hasher>::Out, nonce: u32, tip: u128, extra: (<Suffix as TransactionExtensionSchema>::Payload, <Suffix as TransactionExtensionSchema>::Implicit), ) -> Self

Create signed extension from its components.

fn nonce(&self) -> u32

Return transaction nonce.

fn tip(&self) -> u128

Return transaction tip.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl<Suffix> SuffixedCommonTransactionExtensionExt<Suffix> for GenericTransactionExtension<((GenericTransactionExtensionSchema<(), ()>, GenericTransactionExtensionSchema<(), u32>, GenericTransactionExtensionSchema<(), u32>, GenericTransactionExtensionSchema<(), <BlakeTwo256 as Hasher>::Out>, GenericTransactionExtensionSchema<Era, <BlakeTwo256 as Hasher>::Out>, GenericTransactionExtensionSchema<Compact<u32>, ()>, GenericTransactionExtensionSchema<(), ()>, GenericTransactionExtensionSchema<Compact<u128>, ()>), Suffix)>
where Suffix: TransactionExtensionSchema,

§

fn from_params( spec_version: u32, transaction_version: u32, era: TransactionEra<u32, <BlakeTwo256 as Hasher>::Out>, genesis_hash: <BlakeTwo256 as Hasher>::Out, nonce: u32, tip: u128, extra: (<Suffix as TransactionExtensionSchema>::Payload, <Suffix as TransactionExtensionSchema>::Implicit), ) -> GenericTransactionExtension<((GenericTransactionExtensionSchema<(), ()>, GenericTransactionExtensionSchema<(), u32>, GenericTransactionExtensionSchema<(), u32>, GenericTransactionExtensionSchema<(), <BlakeTwo256 as Hasher>::Out>, GenericTransactionExtensionSchema<Era, <BlakeTwo256 as Hasher>::Out>, GenericTransactionExtensionSchema<Compact<u32>, ()>, GenericTransactionExtensionSchema<(), ()>, GenericTransactionExtensionSchema<Compact<u128>, ()>), Suffix)>

§

fn nonce(&self) -> u32

§

fn tip(&self) -> u128

Implementors§