Skip to content

Commit bfbc667

Browse files
authored
Add new GTF arguments for upload, upgrade, and blob transactions (#635)
1 parent 3d22608 commit bfbc667

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/fuel-vm/instruction-set.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2708,6 +2708,21 @@ Get [fields from the transaction](../tx-format/transaction.md).
27082708
| `GTF_POLICY_WITNESS_LIMIT` | `0x502` | `tx.policies[count_ones(0b11 & tx.policyTypes) - 1].witnessLimit` |
27092709
| `GTF_POLICY_MATURITY` | `0x503` | `tx.policies[count_ones(0b111 & tx.policyTypes) - 1].maturity` |
27102710
| `GTF_POLICY_MAX_FEE` | `0x504` | `tx.policies[count_ones(0b1111 & tx.policyTypes) - 1].maxFee` |
2711+
| `GTF_UPLOAD_ROOT` | `0x600` | Memory address of `tx.root` |
2712+
| `GTF_UPLOAD_WITNESS_INDEX` | `0x601` | Set `$rA` to `tx.witnessIndex` |
2713+
| `GTF_UPLOAD_SUBSECTION_INDEX` | `0x602` | Set `$rA` to `tx.subsectionIndex` |
2714+
| `GTF_UPLOAD_SUBSECTIONS_COUNT` | `0x603` | Set `$rA` to `tx.subsectionsNumber` |
2715+
| `GTF_UPLOAD_PROOF_SET_COUNT` | `0x604` | Set `$rA` to `tx.proofSetCount` |
2716+
| `GTF_UPLOAD_PROOF_SET_AT_INDEX` | `0x605` | Set `$rA` to `Memory address of tx.proofSet[$rB]` |
2717+
| `GTF_BLOB_ID` | `0x700` | Set `$rA` to `Memory address of tx.id` |
2718+
| `GTF_BLOB_WITNESS_INDEX` | `0x701` | Set `$rA` to the blob `tx.witnessIndex` |
2719+
| `GTF_UPGRADE_PURPOSE` | `0x800` | Set `$rA` to `Memory address of tx.purpose` |
2720+
| `GTF_TX_INPUTS_COUNT` | `0x900` | Set `$rA` to `tx.inputsCount` |
2721+
| `GTF_TX_OUTPUTS_COUNT` | `0x901` | Set `$rA` to `tx.outputsCount` |
2722+
| `GTF_TX_WITNESSES_COUNT` | `0x902` | Set `$rA` to `tx.witnessesCount` |
2723+
| `GTF_TX_INPUT_AT_INDEX` | `0x903` | Set `$rA` to `Memory address of tx.inputs[$rB]` |
2724+
| `GTF_TX_OUTPUT_AT_INDEX` | `0x904` | Set `$rA` to `Memory address of t.outputs[$rB]` |
2725+
| `GTF_TX_WITNESS_AT_INDEX` | `0x905` | Set `$rA` to `Memory address of tx.witnesses[$rB]` |
27112726

27122727
Panic if:
27132728

0 commit comments

Comments
 (0)