#[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

Generate an arbitrary value of Self from the given unstructured data. Read more
Generate an arbitrary value of Self from the entirety of the given unstructured data. Read more
Get a size hint for how many bytes out of an Unstructured this type needs to construct itself. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Converts to this type from the input type.
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more
The type returned in the event of a conversion error.
Performs the conversion.

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.

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.