#[repr(u16)]
pub enum GTFArgs {
Show 74 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,
InputMessageOwner,
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
InputMessageOwner
Set $rA
to Memory address of tx.inputs[$rB].owner
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
sourceimpl<'arbitrary> Arbitrary<'arbitrary> for GTFArgs
impl<'arbitrary> Arbitrary<'arbitrary> for GTFArgs
sourcefn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of Self
from the given unstructured data. Read more
sourcefn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
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
sourceimpl<'de> Deserialize<'de> for GTFArgs
impl<'de> Deserialize<'de> for GTFArgs
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<GTFArgs> for Immediate12
impl From<GTFArgs> for Immediate12
sourceimpl TryFrom<u16> for GTFArgs
impl TryFrom<u16> for GTFArgs
type Error = PanicReason
type Error = PanicReason
The type returned in the event of a conversion error.
sourcefn try_from(value: Immediate12) -> Result<Self, Self::Error>
fn try_from(value: Immediate12) -> Result<Self, Self::Error>
Performs the conversion.
impl Copy for GTFArgs
impl Eq for GTFArgs
impl StructuralEq for GTFArgs
impl StructuralPartialEq for GTFArgs
Auto Trait Implementations
impl RefUnwindSafe for GTFArgs
impl Send for GTFArgs
impl Sync for GTFArgs
impl Unpin for GTFArgs
impl UnwindSafe for GTFArgs
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more