Skip to content

@gala-chain/apiAPI


API > ChainObject

Class: abstract ChainObject

Contents

Extended By

Constructors

new ChainObject()

new ChainObject(): ChainObject

Properties

COMPOSITEKEY_NS

static COMPOSITEKEY_NS: string = "\x00"

Source

chain-api/src/types/ChainObject.ts:43


ID_SPLIT_CHAR

static ID_SPLIT_CHAR: string = "$"

Source

chain-api/src/types/ChainObject.ts:46


ID_SUB_SPLIT_CHAR

static ID_SUB_SPLIT_CHAR: string = "|"

Source

chain-api/src/types/ChainObject.ts:48


MIN_UNICODE_RUNE_VALUE

static MIN_UNICODE_RUNE_VALUE: string = "\u0000"

Source

chain-api/src/types/ChainObject.ts:41

Methods

getCompositeKey()

getCompositeKey(): string

Source

chain-api/src/types/ChainObject.ts:77


serialize()

serialize(): string

Source

chain-api/src/types/ChainObject.ts:50


toPlainObject()

toPlainObject(): Record\<string, unknown>

Source

chain-api/src/types/ChainObject.ts:66


validate()

validate(): Promise\<ValidationError[]>

Source

chain-api/src/types/ChainObject.ts:54


validateOrReject()

validateOrReject(): Promise\<void>

Source

chain-api/src/types/ChainObject.ts:58


deserialize()

static deserialize\<T>(constructor, object): T

Type parameters

T

Parameters

constructor: ClassConstructor\<Inferred\<T, ChainObject>>

object: string | Record\<string, unknown> | Record\<string, unknown>[]

Source

chain-api/src/types/ChainObject.ts:70


getCompositeKeyFromParts()

static getCompositeKeyFromParts(indexKey, parts): string

Parameters

indexKey: string

parts: unknown[]

Source

chain-api/src/types/ChainObject.ts:102


getStringKeyFromParts()

static getStringKeyFromParts(parts): string

Parameters

parts: string[]

Source

chain-api/src/types/ChainObject.ts:122