Requirements
Handles all Security Token Compliance Requirements related functionality
Hierarchy
Namespace‹SecurityToken›
↳ Requirements
Index
Properties
Methods
Properties
Protected
context
Protected
context• context: Context
Inherited from void
Defined in src/api/entities/Namespace.ts:11
Protected
parent
Protected
parent• parent: SecurityToken
Inherited from void
Defined in src/api/entities/Namespace.ts:9
pause
• pause: ProcedureMethod‹void, SecurityToken›
Defined in src/api/entities/SecurityToken/Compliance/Requirements.ts:160
Pause all the Security Token's requirements. This means that all transfers will be allowed until requirements are unpaused
note
required role:
Security Token Owner
reset
• reset: ProcedureMethod‹void, SecurityToken›
Defined in src/api/entities/SecurityToken/Compliance/Requirements.ts:152
Detele all the current requirements for the Security Token.
note
required role:
Security Token Owner
set
• set: ProcedureMethod‹SetAssetRequirementsParams, SecurityToken›
Defined in src/api/entities/SecurityToken/Compliance/Requirements.ts:68
Configure asset compliance requirements for the Security Token. This operation will replace all existing requirements with a new requirement set
This requires two transactions
param
array of array of conditions. For a transfer to be successful, it must comply with all the conditions of at least one of the arrays. In other words, higher level arrays are OR between them, while conditions inside each array are AND between them
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
required role:
Security Token Owner
unpause
• unpause: ProcedureMethod‹void, SecurityToken›
Defined in src/api/entities/SecurityToken/Compliance/Requirements.ts:165
Un-pause all the Security Token's current requirements
Methods
arePaused
▸ arePaused(): Promise‹boolean›
Defined in src/api/entities/SecurityToken/Compliance/Requirements.ts:204
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:175
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
Name | Type | Description |
| string | Identity | sender Identity (optional, defaults to the current Identity) |
| string | Identity | receiver Identity |
Returns: Promise‹Compliance›
get
▸ get(): Promise‹Requirement[]›
Defined in src/api/entities/SecurityToken/Compliance/Requirements.ts:75
Retrieve all of the Security Token's requirements
note
can be subscribed to
Returns: Promise‹Requirement[]›
▸ get(callback
: SubCallback‹Requirement[]›): Promise‹UnsubCallback›
Defined in src/api/entities/SecurityToken/Compliance/Requirements.ts:76
Parameters:
Name | Type |
|
Returns: Promise‹UnsubCallback›
Last updated