api.entities.PermissionGroup.PermissionGroup - PolymeshAssociation/polymesh-sdk GitHub Wiki
api/entities/PermissionGroup.PermissionGroup
Represents a group of permissions for an Asset
-
Entity<UniqueIdentifiers,unknown>↳
PermissionGroup
• asset: BaseAsset
Asset for which this group specifies permissions
api/entities/PermissionGroup.ts:19
• uuid: string
▸ Abstract exists(): Promise<boolean>
Determine whether this Entity exists on chain
Promise<boolean>
▸ Abstract getPermissions(): Promise<GroupPermissions>
Retrieve the Permissions associated with this Permission Group
Promise<GroupPermissions>
api/entities/PermissionGroup.ts:35
▸ isEqual(entity): boolean
Determine whether this Entity is the same as another one
| Name | Type |
|---|---|
entity |
Entity<unknown, unknown> |
boolean
▸ Abstract toHuman(): unknown
Returns Entity data in a human readable (JSON) format
unknown
▸ 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