@gala-chain/api • Readme | API
@gala-chain/api / RangedChainObject
Class: abstract RangedChainObject
Extended by
Constructors
new RangedChainObject()
new RangedChainObject():
RangedChainObject
Returns
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()
staticdeserialize\<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()
staticgetRangedKeyFromParts(indexKey,parts):string
Parameters
• indexKey: string
• parts: unknown[]
Returns
string
Source
chain-api/src/types/RangedChainObject.ts:86
getStringKeyFromParts()
staticgetStringKeyFromParts(parts):string
Parameters
• parts: string[]
Returns
string