Represents an object or resource in the Polymesh Ecosystem with its own set of properties and functionality
▪ UniqueIdentifiers: object
• context: Context
Defined in src/base/Entity.ts:49
• uuid: string
Defined in src/base/Entity.ts:47
▸ generateUuid‹Identifiers›(identifiers
: Identifiers): string
Defined in src/base/Entity.ts:15
Generate the Entity's UUID from its identifying properties
Type parameters:
▪ Identifiers: object
Parameters:
Name | Type | Description |
---|---|---|
identifiers |
Identifiers |
Returns: string
▸ isUniqueIdentifiers(identifiers
: unknown): boolean
Defined in src/base/Entity.ts:43
Typeguard that checks whether the object passed corresponds to the unique identifiers of the class. Must be overridden
Parameters:
Name | Type | Description |
---|---|---|
identifiers |
unknown | object to type check |
Returns: boolean
▸ unserialize‹Identifiers›(serialized
: string): Identifiers
Defined in src/base/Entity.ts:24
Unserialize a UUID into its Unique Identifiers
Type parameters:
▪ Identifiers: object
Parameters:
Name | Type | Description |
---|---|---|
serialized |
string | UUID to unserialize |
Returns: Identifiers