-
Notifications
You must be signed in to change notification settings - Fork 11
api.entities.Identity.AssetPermissions.AssetPermissions
api/entities/Identity/AssetPermissions.AssetPermissions
Handles all Asset Permissions (External Agents) related functionality on the Identity side
-
Namespace
<Identity
>↳
AssetPermissions
▸ checkPermissions(args
): Promise
<CheckPermissionsResult
<Identity
>>
Check whether this Identity has specific transaction Permissions over an Asset
Name | Type |
---|---|
args |
Object |
args.asset |
string | BaseAsset
|
args.transactions |
null | TxTag [] |
Promise
<CheckPermissionsResult
<Identity
>>
api/entities/Identity/AssetPermissions.ts:133
▸ enabledAt(«destructured»
): Promise
<null
| EventIdentifier
>
Retrieve the identifier data (block number, date and event index) of the event that was emitted when this Identity was enabled/added as an Agent with permissions over a specific Asset
Name | Type |
---|---|
«destructured» |
Object |
› asset
|
string | Asset
|
Promise
<null
| EventIdentifier
>
Note
uses the middlewareV2
Note
there is a possibility that the data is not ready by the time it is requested. In that case, null
is returned
api/entities/Identity/AssetPermissions.ts:324
▸ get(): Promise
<AssetWithGroup
[]>
Retrieve all the Assets over which this Identity has permissions, with the corresponding Permission Group
Promise
<AssetWithGroup
[]>
api/entities/Identity/AssetPermissions.ts:104
▸ getGroup(«destructured»
): Promise
<CustomPermissionGroup
| KnownPermissionGroup
>
Retrieve this Identity's Permission Group for a specific Asset
Name | Type |
---|---|
«destructured» |
Object |
› asset
|
string | BaseAsset
|
Promise
<CustomPermissionGroup
| KnownPermissionGroup
>
api/entities/Identity/AssetPermissions.ts:283
▸ getOperationHistory(opts
): Promise
<ResultSet
<EventIdentifier
>>
Retrieve all Events triggered by Operations this Identity has performed on a specific Asset
Name | Type | Description |
---|---|---|
opts |
Object |
- |
opts.asset |
string | FungibleAsset
|
- |
opts.eventId? |
EventIdEnum |
filters results by event |
opts.moduleId? |
ModuleIdEnum |
filters results by module |
opts.size? |
BigNumber |
page size |
opts.start? |
BigNumber |
page offset |
Promise
<ResultSet
<EventIdentifier
>>
Note
uses the middlewareV2
Note
supports pagination
api/entities/Identity/AssetPermissions.ts:375
▸ setGroup(args
, opts?
): Promise
<GenericPolymeshTransaction
<CustomPermissionGroup
| KnownPermissionGroup
, CustomPermissionGroup
| KnownPermissionGroup
>>
Assign this Identity to a different Permission Group for a given Asset
Name | Type |
---|---|
args |
SetPermissionGroupParams |
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<CustomPermissionGroup
| KnownPermissionGroup
, CustomPermissionGroup
| KnownPermissionGroup
>>
Note
this method is of type ProcedureMethod, which means you can call setGroup.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
api/entities/Identity/AssetPermissions.ts:360
▸ waive(args
, opts?
): Promise
<GenericPolymeshTransaction
<void
, void
>>
Abdicate from the current Permissions Group for a given Asset. This means that this Identity will no longer have any permissions over said Asset
Name | Type |
---|---|
args |
WaivePermissionsParams |
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<void
, void
>>
Note
this method is of type ProcedureMethod, which means you can call waive.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Entities
- Account
- Asset
- Authorization Request
- Checkpoint
- Checkpoint Schedule
- Corporate Action
- Corporate Action Base
- Custom Permission Group
- Default Portfolio
- Default Trusted Claim Issuer
- Dividend Distribution
- Entity
- Identity
- Instruction
- Known Permission Group
- Metadata Entry
- Multi Sig Proposal
- Numbered Portfolio
- Offering
- Permission Group
- Portfolio
- Subsidies
- Subsidy
- Ticker Reservation
- Venue
- Authorizations
- Types