Requirements

Handles all Asset Compliance Requirements related functionality

Hierarchy

  • Namespace‹Asset›

    ↳ Requirements

Index

Properties

Methods

Properties

Protected context

• context: Context

Inherited from void

Defined in src/api/entities/Namespace.ts:11arrow-up-right


Protected parent

• parent: Asset

Inherited from void

Defined in src/api/entities/Namespace.ts:9arrow-up-right

Methods

add

▸ add(args: AddAssetRequirementParamsarrow-up-right, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹Asset››

Defined in src/api/entities/Asset/Compliance/Requirements.ts:99arrow-up-right

Add a new compliance requirement to the the Asset. This doesn't modify existing requirements

note this method is of type ProcedureMethodarrow-up-right, which means you can call add.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹Asset››


arePaused

▸ arePaused(): Promise‹boolean›

Defined in src/api/entities/Asset/Compliance/Requirements.ts:278arrow-up-right

Check whether Asset compliance requirements are paused or not

Returns: Promise‹boolean›


checkSettle

▸ checkSettle(args: object): Promise‹Compliance›

Defined in src/api/entities/Asset/Compliance/Requirements.ts:249arrow-up-right

Check whether the sender and receiver Identities in a transfer comply with all the requirements of this Asset

note this does not take balances into account

deprecated in favor of settlements.canTransfer

Parameters:

â–ª args: object

Name
Type
Description

from?

string | Identity

sender Identity (optional, defaults to the signing Identity)

to

string | Identity

receiver Identity

Returns: Promise‹Compliance›


get

▸ get(): Promise‹ComplianceRequirementsarrow-up-right›

Defined in src/api/entities/Asset/Compliance/Requirements.ts:131arrow-up-right

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

note can be subscribed to

Returns: Promise‹ComplianceRequirementsarrow-up-right›

▸ get(callback: SubCallback‹ComplianceRequirementsarrow-up-right›): Promise‹UnsubCallback›

Defined in src/api/entities/Asset/Compliance/Requirements.ts:132arrow-up-right

Parameters:

Returns: Promise‹UnsubCallback›


modify

▸ modify(args: ModifyComplianceRequirementParams, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹void››

Defined in src/api/entities/Asset/Compliance/Requirements.ts:302arrow-up-right

Modify a compliance requirement for the Asset

note this method is of type ProcedureMethodarrow-up-right, which means you can call modify.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹void››


pause

▸ pause(opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹Asset››

Defined in src/api/entities/Asset/Compliance/Requirements.ts:225arrow-up-right

Pause all the Asset's requirements. This means that all transfers will be allowed until requirements are unpaused

note this method is of type NoArgsProcedureMethodarrow-up-right, which means you can call pause.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹Asset››


remove

▸ remove(args: RemoveAssetRequirementParamsarrow-up-right, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹Asset››

Defined in src/api/entities/Asset/Compliance/Requirements.ts:109arrow-up-right

Remove an existing compliance requirement from the Asset

note this method is of type ProcedureMethodarrow-up-right, which means you can call remove.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹Asset››


reset

▸ reset(opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹Asset››

Defined in src/api/entities/Asset/Compliance/Requirements.ts:215arrow-up-right

Delete all the current requirements for the Asset.

note this method is of type NoArgsProcedureMethodarrow-up-right, which means you can call reset.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹Asset››


set

▸ set(args: SetAssetRequirementsParamsarrow-up-right, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹Asset››

Defined in src/api/entities/Asset/Compliance/Requirements.ts:122arrow-up-right

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 ProcedureMethodarrow-up-right, which means you can call set.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹Asset››


unpause

▸ unpause(opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹Asset››

Defined in src/api/entities/Asset/Compliance/Requirements.ts:235arrow-up-right

Un-pause all the Asset's current requirements

note this method is of type NoArgsProcedureMethodarrow-up-right, which means you can call unpause.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹Asset››

Last updated

Was this helpful?