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
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.
Object Safety§
This trait is not object safe.