api.entities.Asset.Compliance.Requirements.Requirements - PolymeshAssociation/polymesh-sdk GitHub Wiki

Class: Requirements

api/entities/Asset/Compliance/Requirements.Requirements

Handles all Asset Compliance Requirements related functionality

Hierarchy

  • Namespace<Asset>

    Requirements

Table of contents

Methods

Methods

add

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

Parameters

Name Type
args AddAssetRequirementParams
opts? ProcedureOpts

Returns

Promise<GenericPolymeshTransaction<Asset, Asset>>


arePaused

arePaused(): Promise<boolean>

Check whether Asset compliance requirements are paused or not

Returns

Promise<boolean>


get

get(): Promise<ComplianceRequirements>

Retrieve all of the Asset's compliance requirements, together with the Default Trusted Claim Issuers

Note

can be subscribed to

Returns

Promise<ComplianceRequirements>

get(callback): Promise<UnsubCallback>

Parameters

Name Type
callback SubCallback<ComplianceRequirements>

Returns

Promise<UnsubCallback>


modify

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

Parameters

Name Type
args ModifyComplianceRequirementParams
opts? ProcedureOpts

Returns

Promise<GenericPolymeshTransaction<void, void>>


pause

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

Parameters

Name Type
opts? ProcedureOpts

Returns

Promise<GenericPolymeshTransaction<Asset, Asset>>


remove

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

Parameters

Name Type
args RemoveAssetRequirementParams
opts? ProcedureOpts

Returns

Promise<GenericPolymeshTransaction<Asset, Asset>>


reset

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

Parameters

Name Type
opts? ProcedureOpts

Returns

Promise<GenericPolymeshTransaction<Asset, Asset>>


set

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

Parameters

Name Type
args SetAssetRequirementsParams
opts? ProcedureOpts

Returns

Promise<GenericPolymeshTransaction<Asset, Asset>>


unpause

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

Parameters

Name Type
opts? ProcedureOpts

Returns

Promise<GenericPolymeshTransaction<Asset, Asset>>

⚠️ **GitHub.com Fallback** ⚠️