Enum fuel_asm::GTFArgs

source ·
#[repr(u16)]
pub enum GTFArgs {
Show 73 variants Type, ScriptGasPrice, ScriptGasLimit, ScriptMaturity, ScriptLength, ScriptDataLength, ScriptInputsCount, ScriptOutputsCount, ScriptWitnessesCound, ScriptReceiptsRoot, Script, ScriptData, ScriptInputAtIndex, ScriptOutputAtIndex, ScriptWitnessAtIndex, CreateGasPrice, CreateGasLimit, CreateMaturity, CreateBytecodeLength, CreateBytecodeWitnessIndex, CreateStorageSlotsCount, CreateInputsCount, CreateOutputsCount, CreateWitnessesCount, CreateSalt, CreateStorageSlotAtIndex, CreateInputAtIndex, CreateOutputAtIndex, CreateWitnessAtIndex, InputType, InputCoinTxId, InputCoinOutputIndex, InputCoinOwner, InputCoinAmount, InputCoinAssetId, InputCoinTxPointer, InputCoinWitnessIndex, InputCoinMaturity, InputCoinPredicateLength, InputCoinPredicateDataLength, InputCoinPredicate, InputCoinPredicateData, InputContractTxId, InputContractOutputIndex, InputContractBalanceRoot, InputContractStateRoot, InputContractTxPointer, InputContractId, InputMessageId, InputMessageSender, InputMessageRecipient, InputMessageAmount, InputMessageNonce, InputMessageWitnessIndex, InputMessageDataLength, InputMessagePredicateLength, InputMessagePredicateDataLength, InputMessageData, InputMessagePredicate, InputMessagePredicateData, OutputType, OutputCoinTo, OutputCoinAmount, OutputCoinAssetId, OutputContractInputIndex, OutputContractBalanceRoot, OutputContractStateRoot, OutputMessageRecipient, OutputMessageAmount, OutputContractCreatedContractId, OutputContractCreatedStateRoot, WitnessDataLength, WitnessData,
}
Expand description

Argument list for GTF (get tx fields) instruction

Variants§

§

Type

Set $rA to tx.type

§

ScriptGasPrice

Set $rA to tx.gasPrice

§

ScriptGasLimit

Set $rA to tx.gasLimit

§

ScriptMaturity

Set $rA to tx.maturity

§

ScriptLength

Set $rA to tx.scriptLength

§

ScriptDataLength

Set $rA to tx.scriptDataLength

§

ScriptInputsCount

Set $rA to tx.inputsCount

§

ScriptOutputsCount

Set $rA to tx.outputsCount

§

ScriptWitnessesCound

Set $rA to tx.witnessesCount

§

ScriptReceiptsRoot

Set $rA to Memory address of tx.receiptsRoot

§

Script

Set $rA to Memory address of tx.script

§

ScriptData

Set $rA to Memory address of tx.scriptData

§

ScriptInputAtIndex

Set $rA to Memory address of tx.inputs[$rB]

§

ScriptOutputAtIndex

Set $rA to Memory address of t.outputs[$rB]

§

ScriptWitnessAtIndex

Set $rA to Memory address of tx.witnesses[$rB]

§

CreateGasPrice

Set $rA to tx.gasPrice

§

CreateGasLimit

Set $rA to tx.gasLimit

§

CreateMaturity

Set $rA to tx.maturity

§

CreateBytecodeLength

Set $rA to tx.bytecodeLength

§

CreateBytecodeWitnessIndex

Set $rA to tx.bytecodeWitnessIndex

§

CreateStorageSlotsCount

Set $rA to tx.storageSlotsCount

§

CreateInputsCount

Set $rA to tx.inputsCount

§

CreateOutputsCount

Set $rA to tx.outputsCount

§

CreateWitnessesCount

Set $rA to tx.witnessesCount

§

CreateSalt

Set $rA to Memory address of tx.salt

§

CreateStorageSlotAtIndex

Set $rA to Memory address of tx.storageSlots[$rB]

§

CreateInputAtIndex

Set $rA to Memory address of tx.inputs[$rB]

§

CreateOutputAtIndex

Set $rA to Memory address of t.outputs[$rB]

§

CreateWitnessAtIndex

Set $rA to Memory address of tx.witnesses[$rB]

§

InputType

Set $rA to tx.inputs[$rB].type

§

InputCoinTxId

Set $rA to Memory address of tx.inputs[$rB].txID

§

InputCoinOutputIndex

Set $rA to tx.inputs[$rB].outputIndex

§

InputCoinOwner

Set $rA to Memory address of tx.inputs[$rB].owner

§

InputCoinAmount

Set $rA to tx.inputs[$rB].amount

§

InputCoinAssetId

Set $rA to Memory address of tx.inputs[$rB].asset_id

§

InputCoinTxPointer

Set $rA to Memory address of tx.inputs[$rB].txPointer

§

InputCoinWitnessIndex

Set $rA to tx.inputs[$rB].witnessIndex

§

InputCoinMaturity

Set $rA to tx.inputs[$rB].maturity

§

InputCoinPredicateLength

Set $rA to tx.inputs[$rB].predicateLength

§

InputCoinPredicateDataLength

Set $rA to tx.inputs[$rB].predicateDataLength

§

InputCoinPredicate

Set $rA to Memory address of tx.inputs[$rB].predicate

§

InputCoinPredicateData

Set $rA to Memory address of tx.inputs[$rB].predicateData

§

InputContractTxId

Set $rA to Memory address of tx.inputs[$rB].txID

§

InputContractOutputIndex

Set $rA to tx.inputs[$rB].outputIndex

§

InputContractBalanceRoot

Set $rA to Memory address of tx.inputs[$rB].balanceRoot

§

InputContractStateRoot

Set $rA to Memory address of tx.inputs[$rB].stateRoot

§

InputContractTxPointer

Set $rA to Memory address of tx.inputs[$rB].txPointer

§

InputContractId

Set $rA to Memory address of tx.inputs[$rB].contractID

§

InputMessageId

Set $rA to Memory address of tx.inputs[$rB].messageID

§

InputMessageSender

Set $rA to Memory address of tx.inputs[$rB].sender

§

InputMessageRecipient

Set $rA to Memory address of tx.inputs[$rB].recipient

§

InputMessageAmount

Set $rA to tx.inputs[$rB].amount

§

InputMessageNonce

Set $rA to Memory address of tx.inputs[$rB].nonce

§

InputMessageWitnessIndex

Set $rA to tx.inputs[$rB].witnessIndex

§

InputMessageDataLength

Set $rA to tx.inputs[$rB].dataLength

§

InputMessagePredicateLength

Set $rA to tx.inputs[$rB].predicateLength

§

InputMessagePredicateDataLength

Set $rA to tx.inputs[$rB].predicateDataLength

§

InputMessageData

Set $rA to Memory address of tx.inputs[$rB].data

§

InputMessagePredicate

Set $rA to Memory address of tx.inputs[$rB].predicate

§

InputMessagePredicateData

Set $rA to Memory address of tx.inputs[$rB].predicateData

§

OutputType

Set $rA to tx.outputs[$rB].type

§

OutputCoinTo

Set $rA to Memory address of tx.outputs[$rB].to

§

OutputCoinAmount

Set $rA to tx.outputs[$rB].amount

§

OutputCoinAssetId

Set $rA to Memory address of tx.outputs[$rB].asset_id

§

OutputContractInputIndex

Set $rA to tx.outputs[$rB].inputIndex

§

OutputContractBalanceRoot

Set $rA to Memory address of tx.outputs[$rB].balanceRoot

§

OutputContractStateRoot

Set $rA to Memory address of tx.outputs[$rB].stateRoot

§

OutputMessageRecipient

Set $rA to Memory address of tx.outputs[$rB].recipient

§

OutputMessageAmount

Set $rA to tx.outputs[$rB].amount

§

OutputContractCreatedContractId

Set $rA to Memory address of tx.outputs[$rB].contractID

§

OutputContractCreatedStateRoot

Set $rA to Memory address of tx.outputs[$rB].stateRoot

§

WitnessDataLength

Set $rA to tx.witnesses[$rB].dataLength

§

WitnessData

Set $rA to Memory address of tx.witnesses[$rB].data

Trait Implementations§

source§

impl<'arbitrary> Arbitrary<'arbitrary> for GTFArgs

source§

fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>

Generate an arbitrary value of Self from the given unstructured data. Read more
source§

fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>

Generate an arbitrary value of Self from the entirety of the given unstructured data. Read more
source§

fn size_hint(depth: usize) -> (usize, Option<usize>)

Get a size hint for how many bytes out of an Unstructured this type needs to construct itself. Read more
source§

impl Clone for GTFArgs

source§

fn clone(&self) -> GTFArgs

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for GTFArgs

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for GTFArgs

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<GTFArgs> for Immediate12

source§

fn from(args: GTFArgs) -> Self

Converts to this type from the input type.
source§

impl Hash for GTFArgs

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where
    H: Hasher,
    Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq<GTFArgs> for GTFArgs

source§

fn eq(&self, other: &GTFArgs) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for GTFArgs

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TryFrom<u16> for GTFArgs

§

type Error = PanicReason

The type returned in the event of a conversion error.
source§

fn try_from(value: Immediate12) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Copy for GTFArgs

source§

impl Eq for GTFArgs

source§

impl StructuralEq for GTFArgs

source§

impl StructuralPartialEq for GTFArgs

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere
    T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere
    U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for Twhere
    T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere
    U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
    U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere
    T: for<'de> Deserialize<'de>,