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

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

    // Provided method
    fn into_checked(
        self,
        block_height: BlockHeight,
        params: &ConsensusParameters,
        gas_costs: &GasCosts
    ) -> 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, params: &ConsensusParameters ) -> Result<Checked<Self>, CheckError>

Returns transaction that passed only Checks::Basic.

Provided Methods§

source

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

Returns transaction that passed all Checks.

Implementations on Foreign Types§

source§

impl IntoChecked for Create

source§

impl IntoChecked for Mint

source§

impl IntoChecked for Transaction

source§

impl IntoChecked for Script

Implementors§