Skip to content
docs

DecoderRegistry

Defined in: registry.ts:7

Which decoder reads which program. One decoder per program address; registering a second one for the same program throws unless replace is set, so a protocol’s decoder never silently shadows a built-in.

new DecoderRegistry(decoders?): DecoderRegistry

Defined in: registry.ts:10

readonly InstructionDecoder[] = []

DecoderRegistry

get decoders(): readonly InstructionDecoder[]

Defined in: registry.ts:38

readonly InstructionDecoder[]

get(programAddress): InstructionDecoder | undefined

Defined in: registry.ts:23

string

InstructionDecoder | undefined


has(programAddress): boolean

Defined in: registry.ts:27

string

boolean


register(decoder, options?): this

Defined in: registry.ts:14

InstructionDecoder

boolean

this


with(decoders, options?): DecoderRegistry

Defined in: registry.ts:32

A copy with more decoders: the defaults stay as they are.

readonly InstructionDecoder[]

boolean

DecoderRegistry