-
Notifications
You must be signed in to change notification settings - Fork 11
api.entities.Asset.Base.Compliance.Requirements.Requirements
api/entities/Asset/Base/Compliance/Requirements.Requirements
Handles all Asset Compliance Requirements related functionality
-
Namespace
<BaseAsset
>↳
Requirements
▸ add(args
, opts?
): Promise
<GenericPolymeshTransaction
<void
, void
>>
Add a new compliance requirement to the the Asset. This doesn't modify existing requirements
Name | Type |
---|---|
args |
AddAssetRequirementParams |
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<void
, void
>>
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
api/entities/Asset/Base/Compliance/Requirements.ts:92
▸ arePaused(): Promise
<boolean
>
Check whether Asset compliance requirements are paused or not
Promise
<boolean
>
api/entities/Asset/Base/Compliance/Requirements.ts:219
▸ get(): Promise
<ComplianceRequirements
>
Retrieve all of the Asset's compliance requirements, together with the Default Trusted Claim Issuers
Promise
<ComplianceRequirements
>
Note
can be subscribed to, if connected to node using a web socket
api/entities/Asset/Base/Compliance/Requirements.ts:124
▸ get(callback
): Promise
<UnsubCallback
>
Name | Type |
---|---|
callback |
SubCallback <ComplianceRequirements > |
Promise
<UnsubCallback
>
api/entities/Asset/Base/Compliance/Requirements.ts:125
▸ modify(args
, opts?
): Promise
<GenericPolymeshTransaction
<void
, void
>>
Modify a compliance requirement for the Asset
Name | Type |
---|---|
args |
ModifyComplianceRequirementParams |
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<void
, void
>>
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
api/entities/Asset/Base/Compliance/Requirements.ts:243
▸ pause(opts?
): Promise
<GenericPolymeshTransaction
<void
, void
>>
Pause all the Asset's requirements. This means that all transfers will be allowed until requirements are unpaused
Name | Type |
---|---|
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<void
, void
>>
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
api/entities/Asset/Base/Compliance/Requirements.ts:202
▸ remove(args
, opts?
): Promise
<GenericPolymeshTransaction
<void
, void
>>
Remove an existing compliance requirement from the Asset
Name | Type |
---|---|
args |
RemoveAssetRequirementParams |
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<void
, void
>>
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
api/entities/Asset/Base/Compliance/Requirements.ts:102
▸ reset(opts?
): Promise
<GenericPolymeshTransaction
<void
, void
>>
Delete all the current requirements for the Asset.
Name | Type |
---|---|
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<void
, void
>>
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
api/entities/Asset/Base/Compliance/Requirements.ts:192
▸ set(args
, opts?
): Promise
<GenericPolymeshTransaction
<void
, void
>>
Configure compliance requirements for the Asset. This operation will replace all existing requirements with a new requirement set
Name | Type |
---|---|
args |
SetAssetRequirementsParams |
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<void
, void
>>
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
api/entities/Asset/Base/Compliance/Requirements.ts:115
▸ unpause(opts?
): Promise
<GenericPolymeshTransaction
<void
, void
>>
Un-pause all the Asset's current requirements
Name | Type |
---|---|
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<void
, void
>>
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
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