Skip to content

InstanceConfig

Defined in: astrobase/src/instance/instance.ts:17

An instance configuration object that can be passed in to createInstance and merged to create a full Instance.

optional clients: any[]

Defined in: astrobase/src/instance/instance.ts:19

A set of RPC clients.


optional codecs: Partial<Record<string, Codec<unknown>>>

Defined in: astrobase/src/instance/instance.ts:22

A map of content type string keys & codec implementation values.


optional hashAlgs: Partial<Record<number, HashFn>>

Defined in: astrobase/src/instance/instance.ts:28

A map of hashing algorithm code keys & hashing algorithm implementation values.


optional middlewares: Middleware[]

Defined in: astrobase/src/instance/instance.ts:31

A set of middlewares. These instance level middlewares are ran for all codecs.


optional procedures: Partial<Record<string, ProcedureExecutor<any, any>>>

Defined in: astrobase/src/instance/instance.ts:25

A map of procedure name keys & procedure implementation values.


optional schemes: Partial<Record<string, ContentIdentifierSchemeParser<unknown>>>

Defined in: astrobase/src/instance/instance.ts:34

A map of content identifier scheme keys & scheme parser values.


optional wraps: Partial<Record<string, WrapModule<any, any>>>

Defined in: astrobase/src/instance/instance.ts:37

A map of wrap name keys & wrap implementation values.