Requirements

Handles all Security Token Compliance Requirements related functionality

Hierarchy

Index

Properties

Methods

Properties

Protected context

• context: Context

Inherited from void

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


Protected parent

• parent: SecurityToken

Inherited from void

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

Methods

arePaused

▸ arePaused(): Promise‹boolean›

Defined in src/api/entities/SecurityToken/Compliance/Requirements.ts:228arrow-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/SecurityToken/Compliance/Requirements.ts:199arrow-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 current Identity)

to

string | Identity

receiver Identity

Returns: Promise‹Compliance›


get

▸ get(): Promise‹Requirementarrow-up-right[]›

Defined in src/api/entities/SecurityToken/Compliance/Requirements.ts:78arrow-up-right

Retrieve all of the Security Token's requirements

note can be subscribed to

Returns: Promise‹Requirementarrow-up-right[]›

▸ get(callback: SubCallback‹Requirementarrow-up-right[]›): Promise‹UnsubCallback›

Defined in src/api/entities/SecurityToken/Compliance/Requirements.ts:79arrow-up-right

Parameters:

Name
Type

callback

Returns: Promise‹UnsubCallback›


pause

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

Defined in src/api/entities/SecurityToken/Compliance/Requirements.ts:175arrow-up-right

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

note this method is of type ProcedureMethodarrow-up-right, which means you can call pause.checkAuthorization on it to see whether the Current Account has the required permissions to run it

Parameters:

Name
Type

Returns: Promise‹TransactionQueue‹SecurityToken››


reset

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

Defined in src/api/entities/SecurityToken/Compliance/Requirements.ts:165arrow-up-right

Detele all the current requirements for the Security Token.

note this method is of type ProcedureMethodarrow-up-right, which means you can call reset.checkAuthorization on it to see whether the Current Account has the required permissions to run it

Parameters:

Name
Type

Returns: Promise‹TransactionQueue‹SecurityToken››


set

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

Defined in src/api/entities/SecurityToken/Compliance/Requirements.ts:69arrow-up-right

Configure asset compliance requirements for the Security Token. This operation will replace all existing requirements with a new requirement set

This requires two transactions

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.checkAuthorization on it to see whether the Current Account has the required permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹SecurityToken››


unpause

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

Defined in src/api/entities/SecurityToken/Compliance/Requirements.ts:185arrow-up-right

Un-pause all the Security Token's current requirements

note this method is of type ProcedureMethodarrow-up-right, which means you can call unpause.checkAuthorization on it to see whether the Current Account has the required permissions to run it

Parameters:

Name
Type

Returns: Promise‹TransactionQueue‹SecurityToken››

Last updated

Was this helpful?