Skip to content

@fuel-ts/program v0.94.5Docs


Class: InstructionSet

A wrapper around fuel-asm to make dynamic instructions and convert to different formats

Constructors

new InstructionSet()

new InstructionSet(...args): InstructionSet

Parameters

• ...args: Instruction[]

Returns

InstructionSet

Defined in

instruction-set.ts:10

Methods

byteLength()

byteLength(): number

Returns

number

Defined in

instruction-set.ts:47


concat()

concat(ops): Instruction[]

Parameters

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

ops: Instruction[]

Returns

void

Defined in

instruction-set.ts:26


push()

push(...args): void

Parameters

• ...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