referrerpolicy=no-referrer-when-downgrade
frame_system::offchain

Trait CreateTransaction

Source
pub trait CreateTransaction<LocalCall>: CreateTransactionBase<LocalCall> {
    type Extension: TypeInfo;

    // Required method
    fn create_transaction(
        call: <Self as CreateTransactionBase<LocalCall>>::RuntimeCall,
        extension: Self::Extension,
    ) -> Self::Extrinsic;
}
Expand description

Interface for creating a transaction.

Required Associated Types§

Source

type Extension: TypeInfo

The extension.

Required Methods§

Source

fn create_transaction( call: <Self as CreateTransactionBase<LocalCall>>::RuntimeCall, extension: Self::Extension, ) -> Self::Extrinsic

Create a transaction using the call and the desired transaction extension.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

impl<LocalCall> CreateTransaction<LocalCall> for Runtime
where RuntimeCall: From<LocalCall>,

impl<LocalCall> CreateTransaction<LocalCall> for Runtime
where RuntimeCall: From<LocalCall>,

impl<LocalCall> CreateTransaction<LocalCall> for Runtime
where RuntimeCall: From<LocalCall>,

impl<C> CreateTransaction<C> for Runtime
where RuntimeCall: From<C>,

impl<LocalCall> CreateTransaction<LocalCall> for Runtime
where RuntimeCall: From<LocalCall>,

impl<LocalCall> CreateTransaction<LocalCall> for Runtime
where RuntimeCall: From<LocalCall>,