Skip to content

@gala-chain/apiReadme | API


@gala-chain/api / RangedChainObject

Class: abstract RangedChainObject

Extended by

Constructors

new RangedChainObject()

new RangedChainObject(): RangedChainObject

Returns

RangedChainObject

Methods

getRangedKey()

getRangedKey(): string

Returns

string

Source

chain-api/src/types/RangedChainObject.ts:63


serialize()

serialize(): string

Returns

string

Source

chain-api/src/types/RangedChainObject.ts:36


toPlainObject()

toPlainObject(): Record\<string, unknown>

Returns

Record\<string, unknown>

Source

chain-api/src/types/RangedChainObject.ts:52


validate()

validate(): Promise\<ValidationError[]>

Returns

Promise\<ValidationError[]>

Source

chain-api/src/types/RangedChainObject.ts:40


validateOrReject()

validateOrReject(): Promise\<void>

Returns

Promise\<void>

Source

chain-api/src/types/RangedChainObject.ts:44


deserialize()

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

Type parameters

T

Parameters

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

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

Returns

T

Source

chain-api/src/types/RangedChainObject.ts:56


getRangedKeyFromParts()

static getRangedKeyFromParts(indexKey, parts): string

Parameters

indexKey: string

parts: unknown[]

Returns

string

Source

chain-api/src/types/RangedChainObject.ts:86


getStringKeyFromParts()

static getStringKeyFromParts(parts): string

Parameters

parts: string[]

Returns

string

Source

chain-api/src/types/RangedChainObject.ts:103