Skip to content

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

NameType
...argsInstruction[]

Returns

InstructionSet

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

NameType
opsInstruction[]

Returns

Instruction[]

Defined in

instruction-set.ts:22


entries

entries(): Instruction[]

Returns

Instruction[]

Defined in

instruction-set.ts:14


extend

extend(ops): void

Parameters

NameType
opsInstruction[]

Returns

void

Defined in

instruction-set.ts:26


push

push(...args): void

Parameters

NameType
...argsInstruction[]

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