Entity
Last updated
Was this helpful?
Last updated
Was this helpful?
Represents an object or resource in the Polymesh Ecosystem with its own set of properties and functionality
▪ UniqueIdentifiers: object
Entity
↳
↳
↳
↳
↳
↳
↳
↳
↳
↳
↳
↳
↳
Protected
context• uuid: string
Whether this Entity is the same as another one
Parameters:
Name
Type
entity
Returns: boolean
Static
generateUuid▸ generateUuid‹Identifiers›(identifiers
: Identifiers): string
Generate the Entity's UUID from its identifying properties
Type parameters:
▪ Identifiers: object
Parameters:
Name
Type
Description
identifiers
Identifiers
Returns: string
Static
isUniqueIdentifiers▸ isUniqueIdentifiers(identifiers
: unknown): boolean
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
Static
unserialize▸ unserialize‹Identifiers›(serialized
: string): Identifiers
Unserialize a UUID into its Unique Identifiers
Type parameters:
▪ Identifiers: object
Parameters:
Name
Type
Description
serialized
string
UUID to unserialize
Returns: Identifiers
• context:
Defined in
Defined in
▸ isEqual(entity
: ‹object›): boolean
Defined in
‹object›
Defined in
Defined in
Defined in