Class: InstructionSet
@fuel-ts/program.InstructionSet
A wrapper around fuel-asm to make dynamic instructions and convert to different formats
Constructors
constructor
• new InstructionSet(...args
): InstructionSet
Parameters
Name | Type |
---|---|
...args | Instruction [] |
Returns
Defined in
instruction-set.ts:10
Properties
#operations
• Private
#operations: Instruction
[]
Defined in
instruction-set.ts:8
Methods
byteLength
▸ byteLength(): number
Returns
number
Defined in
instruction-set.ts:47
concat
▸ concat(ops
): Instruction
[]
Parameters
Name | Type |
---|---|
ops | Instruction [] |
Returns
Instruction
[]
Defined in
instruction-set.ts:22
entries
▸ entries(): Instruction
[]
Returns
Instruction
[]
Defined in
instruction-set.ts:14
extend
▸ extend(ops
): void
Parameters
Name | Type |
---|---|
ops | Instruction [] |
Returns
void
Defined in
instruction-set.ts:26
push
▸ push(...args
): void
Parameters
Name | Type |
---|---|
...args | Instruction [] |
Returns
void
Defined in
instruction-set.ts:18
toBytes
▸ toBytes(): Uint8Array
Returns
Uint8Array
Defined in
instruction-set.ts:30
toHex
▸ toHex(): string
Returns
string
Defined in
instruction-set.ts:39
toString
▸ toString(): string
Returns
string
Defined in
instruction-set.ts:43