pub enum FuelVmInstruction {
    GetStorageKey,
    Gtf {
        index: Value,
        tx_field_id: u64,
    },
    Log {
        log_val: Value,
        log_ty: Type,
        log_id: Value,
    },
    ReadRegister(Register),
    Revert(Value),
    Smo {
        recipient_and_message: Value,
        message_size: Value,
        output_index: Value,
        coins: Value,
    },
    StateLoadQuadWord {
        load_val: Value,
        key: Value,
        number_of_slots: Value,
    },
    StateLoadWord(Value),
    StateStoreQuadWord {
        stored_val: Value,
        key: Value,
        number_of_slots: Value,
    },
    StateStoreWord {
        stored_val: Value,
        key: Value,
    },
}

Variants§

§

GetStorageKey

Generate a unique integer value

§

Gtf

Fields

§index: Value
§tx_field_id: u64
§

Log

Fields

§log_val: Value
§log_ty: Type
§log_id: Value

Logs a value along with an identifier.

§

ReadRegister(Register)

Reads a special register in the VM.

§

Revert(Value)

Revert VM execution.

§

Smo

Fields

§recipient_and_message: Value
§message_size: Value
§output_index: Value
§coins: Value
  • Sends a message to an output via the smo FuelVM instruction. The first operand must be a struct with the first field being a B256 representing the recipient. The rest of the struct is the message data being sent.
  • Assumes the existence of an OutputMessage at output_index
  • message_size, output_index, and coins must be of type U64.
§

StateLoadQuadWord

Fields

§load_val: Value
§key: Value
§number_of_slots: Value

Read a quad word from a storage slot. Type of load_val must be a B256 ptr.

§

StateLoadWord(Value)

Read a single word from a storage slot.

§

StateStoreQuadWord

Fields

§stored_val: Value
§key: Value
§number_of_slots: Value

Write a value to a storage slot. Key must be a B256, type of stored_val must be a Uint(256) ptr.

§

StateStoreWord

Fields

§stored_val: Value
§key: Value

Write a value to a storage slot. Key must be a B256, type of stored_val must be a Uint(64) value.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

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.

Calls U::from(self).

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

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.