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