pub struct InvokeContext<'a> {
    pub transaction_context: &'a mut TransactionContext,
    pub sysvar_cache: Cow<'a, SysvarCache>,
    pub feature_set: Arc<FeatureSet>,
    pub timings: ExecuteDetailsTimings,
    pub blockhash: Hash,
    pub lamports_per_signature: u64,
    /* private fields */
}

Fields

transaction_context: &'a mut TransactionContextsysvar_cache: Cow<'a, SysvarCache>feature_set: Arc<FeatureSet>timings: ExecuteDetailsTimingsblockhash: Hashlamports_per_signature: u64

Implementations

Push a stack frame onto the invocation stack

Pop a stack frame from the invocation stack

Current height of the invocation stack, top level instructions are height solana_sdk::instruction::TRANSACTION_LEVEL_STACK_HEIGHT

Entrypoint for a cross-program invocation from a builtin program

Helper to prepare for process_instruction()

Processes an instruction and returns how many compute units were used

👎 Deprecated since 1.9.0:

To be removed together with remove_native_loader

Removes the first keyed account

Get the list of keyed accounts including the chain of program accounts

Get this invocation’s LogCollector

Get this invocation’s ComputeMeter

Get this invocation’s AccountsDataMeter

Cache an executor that wasn’t found in the cache

Cache an executor that has changed

Get the completed loader work that can be re-used across execution

Get this invocation’s compute budget

Get cached sysvars

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more