-
Notifications
You must be signed in to change notification settings - Fork 11
api.entities.Asset.Compliance.Requirements.Requirements
api/entities/Asset/Compliance/Requirements.Requirements
Handles all Asset Compliance Requirements related functionality
-
Namespace
<Asset
>↳
Requirements
▸ add(args
, opts?
): Promise
<GenericPolymeshTransaction
<Asset
, Asset
>>
Add a new compliance requirement to the the Asset. This doesn't modify existing requirements
Note
this method is of type ProcedureMethod, which means you can call add.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Name | Type |
---|---|
args |
AddAssetRequirementParams |
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<Asset
, Asset
>>
▸ arePaused(): Promise
<boolean
>
Check whether Asset compliance requirements are paused or not
Promise
<boolean
>
▸ get(): Promise
<ComplianceRequirements
>
Retrieve all of the Asset's compliance requirements, together with the Default Trusted Claim Issuers
Note
can be subscribed to
Promise
<ComplianceRequirements
>
▸ get(callback
): Promise
<UnsubCallback
>
Name | Type |
---|---|
callback |
SubCallback <ComplianceRequirements > |
Promise
<UnsubCallback
>
▸ modify(args
, opts?
): Promise
<GenericPolymeshTransaction
<void
, void
>>
Modify a compliance requirement for the Asset
Note
this method is of type ProcedureMethod, which means you can call modify.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Name | Type |
---|---|
args |
ModifyComplianceRequirementParams |
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<void
, void
>>
▸ pause(opts?
): Promise
<GenericPolymeshTransaction
<Asset
, Asset
>>
Pause all the Asset's requirements. This means that all transfers will be allowed until requirements are unpaused
Note
this method is of type NoArgsProcedureMethod, which means you can call pause.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Name | Type |
---|---|
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<Asset
, Asset
>>
▸ remove(args
, opts?
): Promise
<GenericPolymeshTransaction
<Asset
, Asset
>>
Remove an existing compliance requirement from the Asset
Note
this method is of type ProcedureMethod, which means you can call remove.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Name | Type |
---|---|
args |
RemoveAssetRequirementParams |
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<Asset
, Asset
>>
▸ reset(opts?
): Promise
<GenericPolymeshTransaction
<Asset
, Asset
>>
Delete all the current requirements for the Asset.
Note
this method is of type NoArgsProcedureMethod, which means you can call reset.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Name | Type |
---|---|
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<Asset
, Asset
>>
▸ set(args
, opts?
): Promise
<GenericPolymeshTransaction
<Asset
, Asset
>>
Configure compliance requirements for the Asset. This operation will replace all existing requirements with a new requirement set
Example
Say A, B, C, D and E are requirements and we arrange them as [[A, B], [C, D], [E]]
.
For a transfer to succeed, it must either comply with A AND B, C AND D, OR E.
Note
this method is of type ProcedureMethod, which means you can call set.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Name | Type |
---|---|
args |
SetAssetRequirementsParams |
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<Asset
, Asset
>>
▸ unpause(opts?
): Promise
<GenericPolymeshTransaction
<Asset
, Asset
>>
Un-pause all the Asset's current requirements
Note
this method is of type NoArgsProcedureMethod, which means you can call unpause.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Name | Type |
---|---|
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<Asset
, Asset
>>
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