Trait fuel_vm::checked_transaction::IntoChecked

source ·
pub trait IntoChecked: FormatValidityChecks + Sized {
    type Metadata: Sized;

    // Required method
    fn into_checked_basic(
        self,
        block_height: BlockHeight,
        consensus_params: &ConsensusParameters,
    ) -> Result<Checked<Self>, CheckError>;

    // Provided methods
    fn into_checked(
        self,
        block_height: BlockHeight,
        consensus_params: &ConsensusParameters,
    ) -> Result<Checked<Self>, CheckError>
       where Checked<Self>: CheckPredicates { ... }
    fn into_checked_reusable_memory(
        self,
        block_height: BlockHeight,
        consensus_params: &ConsensusParameters,
        memory: impl Memory,
    ) -> Result<Checked<Self>, CheckError>
       where Checked<Self>: CheckPredicates { ... }
}
Expand description

Performs checks for a transaction

Required Associated Types§

source

type Metadata: Sized

Metadata produced during the check.

Required Methods§

source

fn into_checked_basic( self, block_height: BlockHeight, consensus_params: &ConsensusParameters, ) -> Result<Checked<Self>, CheckError>

Returns transaction that passed only Checks::Basic.

Provided Methods§

source

fn into_checked( self, block_height: BlockHeight, consensus_params: &ConsensusParameters, ) -> Result<Checked<Self>, CheckError>
where Checked<Self>: CheckPredicates,

Returns transaction that passed all Checks.

source

fn into_checked_reusable_memory( self, block_height: BlockHeight, consensus_params: &ConsensusParameters, memory: impl Memory, ) -> Result<Checked<Self>, CheckError>
where Checked<Self>: CheckPredicates,

Returns transaction that passed all Checks accepting reusable memory to run predicates.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl IntoChecked for Transaction

§

type Metadata = CheckedMetadata

source§

fn into_checked_basic( self, block_height: BlockHeight, consensus_params: &ConsensusParameters, ) -> Result<Checked<Self>, CheckError>

source§

impl IntoChecked for Mint

§

type Metadata = ()

source§

fn into_checked_basic( self, block_height: BlockHeight, consensus_params: &ConsensusParameters, ) -> Result<Checked<Self>, CheckError>

source§

impl IntoChecked for Create

§

type Metadata = CheckedMetadata

source§

fn into_checked_basic( self, block_height: BlockHeight, consensus_params: &ConsensusParameters, ) -> Result<Checked<Self>, CheckError>

source§

impl IntoChecked for Script

§

type Metadata = CheckedMetadata

source§

fn into_checked_basic( self, block_height: BlockHeight, consensus_params: &ConsensusParameters, ) -> Result<Checked<Self>, CheckError>

source§

impl IntoChecked for Upgrade

§

type Metadata = CheckedMetadata

source§

fn into_checked_basic( self, block_height: BlockHeight, consensus_params: &ConsensusParameters, ) -> Result<Checked<Self>, CheckError>

source§

impl IntoChecked for Upload

§

type Metadata = CheckedMetadata

source§

fn into_checked_basic( self, block_height: BlockHeight, consensus_params: &ConsensusParameters, ) -> Result<Checked<Self>, CheckError>

Implementors§