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:12

Protected parent

parent: SecurityToken

Inherited from void

Defined in src/api/entities/Namespace.ts:10

Methods

arePaused

arePaused(): Promise‹boolean›

Defined in src/api/entities/SecurityToken/Compliance/Requirements.ts:183

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:149

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

Parameters:

args: object

Returns: Promise‹Compliance

get

get(): Promise‹Requirement[]›

Defined in src/api/entities/SecurityToken/Compliance/Requirements.ts:51

Retrieve all of the Security Token's requirements

note can be subscribed to

Returns: Promise‹Requirement[]›

get(callback: SubCallbackRequirement[]›): Promise‹UnsubCallback

Defined in src/api/entities/SecurityToken/Compliance/Requirements.ts:52

Parameters:

Returns: Promise‹UnsubCallback

pause

pause(): Promise‹TransactionQueueSecurityToken››

Defined in src/api/entities/SecurityToken/Compliance/Requirements.ts:122

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

Returns: Promise‹TransactionQueueSecurityToken››

reset

reset(): Promise‹TransactionQueueSecurityToken››

Defined in src/api/entities/SecurityToken/Compliance/Requirements.ts:111

Detele all the current requirements for the Security Token.

Returns: Promise‹TransactionQueueSecurityToken››

set

set(args: SetAssetRequirementsParams): Promise‹TransactionQueueSecurityToken››

Defined in src/api/entities/SecurityToken/Compliance/Requirements.ts:38

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.

Parameters:

Returns: Promise‹TransactionQueueSecurityToken››

unpause

unpause(): Promise‹TransactionQueueSecurityToken››

Defined in src/api/entities/SecurityToken/Compliance/Requirements.ts:133

Un-pause all the Security Token's current requirements

Returns: Promise‹TransactionQueueSecurityToken››

Last updated