api.entities.Entity.Entity - PolymeshAssociation/polymesh-sdk GitHub Wiki
api/entities/Entity.Entity
Represents an object or resource in the Polymesh Ecosystem with its own set of properties and functionality
Name |
---|
UniqueIdentifiers |
HumanReadable |
• uuid: string
▸ Abstract
exists(): Promise
<boolean
>
Determine whether this Entity exists on chain
Promise
<boolean
>
▸ isEqual(entity
): boolean
Determine whether this Entity is the same as another one
Name | Type |
---|---|
entity |
Entity <unknown , unknown > |
boolean
▸ Abstract
toHuman(): HumanReadable
Returns Entity data in a human readable (JSON) format
HumanReadable
▸ Static
generateUuid<Identifiers
>(identifiers
): string
Generate the Entity's UUID from its identifying properties
Name |
---|
Identifiers |
Name | Type |
---|---|
identifiers |
Identifiers |
string
▸ Static
isUniqueIdentifiers(identifiers
): boolean
Typeguard that checks whether the object passed corresponds to the unique identifiers of the class. Must be overridden
Name | Type | Description |
---|---|---|
identifiers |
unknown |
object to type check |
boolean
▸ Static
unserialize<Identifiers
>(serialized
): Identifiers
Unserialize a UUID into its Unique Identifiers
Name |
---|
Identifiers |
Name | Type | Description |
---|---|---|
serialized |
string |
UUID to unserialize |
Identifiers