Requirements
Last updated
Was this helpful?
Last updated
Was this helpful?
Handles all Asset Compliance Requirements related functionality
Namespace‹›
↳ Requirements
Protected
context• context: Context
Inherited from void
Protected
parentInherited from void
Add a new compliance requirement to the the Asset. This doesn't modify existing requirements
Parameters:
args
opts?
▸ arePaused(): Promise‹boolean›
Check whether Asset compliance requirements are paused or not
Returns: Promise‹boolean›
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
from?
sender Identity (optional, defaults to the signing Identity)
to
receiver Identity
Retrieve all of the Asset's compliance requirements, together with the Default Trusted Claim Issuers
note
can be subscribed to
Parameters:
callback
Modify a compliance requirement for the Asset
Parameters:
args
opts?
Pause all the Asset's requirements. This means that all transfers will be allowed until requirements are unpaused
Parameters:
opts?
Remove an existing compliance requirement from the Asset
Parameters:
args
opts?
Delete all the current requirements for the Asset.
Parameters:
opts?
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.
Parameters:
args
opts?
Un-pause all the Asset's current requirements
Parameters:
opts?
Defined in
• parent:
Defined in
â–¸ add(args
: , opts?
: ): Promise‹‹››
Defined in
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Returns: Promise‹‹››
Defined in
â–¸ checkSettle(args
: object): Promise‹›
Defined in
string |
string |
Returns: Promise‹›
▸ get(): Promise‹›
Defined in
Returns: Promise‹›
â–¸ get(callback
: ‹›): Promise‹›
Defined in
‹›
Returns: Promise‹›
â–¸ modify(args
: , opts?
: ): Promise‹‹void››
Defined in
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Returns: Promise‹‹void››
â–¸ pause(opts?
: ): Promise‹‹››
Defined in
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Returns: Promise‹‹››
â–¸ remove(args
: , opts?
: ): Promise‹‹››
Defined in
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Returns: Promise‹‹››
â–¸ reset(opts?
: ): Promise‹‹››
Defined in
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Returns: Promise‹‹››
â–¸ set(args
: , opts?
: ): Promise‹‹››
Defined in
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Returns: Promise‹‹››
â–¸ unpause(opts?
: ): Promise‹‹››
Defined in
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Returns: Promise‹‹››