Polymesh SDK API Reference
beta
beta
  • Globals
  • Classes
    • Account
    • AccountManagement
    • Asset
    • AssetHolders
    • AssetPermissions
    • Assets
    • AuthorizationRequest
    • Authorizations
    • Checkpoint
    • CheckpointSchedule
    • Checkpoints
    • Claims
    • Compliance
    • CorporateAction
    • CorporateActionBase
    • CorporateActions
    • Count
    • CustomPermissionGroup
    • DefaultPortfolio
    • DefaultTrustedClaimIssuer
    • Distributions
    • DividendDistribution
    • Documents
    • Entity
    • Identities
    • Identity
    • IdentityAuthorizations
    • Instruction
    • Issuance
    • KnownPermissionGroup
    • Network
    • NumberedPortfolio
    • Offering
    • Offerings
    • Percentage
    • PermissionGroup
    • Permissions
    • Polymesh
    • PolymeshError
    • PolymeshTransaction
    • PolymeshTransactionBase
    • PolymeshTransactionBatch
    • Portfolio
    • Portfolios
    • Requirements
    • Schedules
    • Settlements
    • Subsidy
    • TickerReservation
    • TransactionQueue
    • TransferRestrictionBase
    • TransferRestrictions
    • TrustedClaimIssuers
    • Venue
  • Enums
  • Interfaces
Powered by GitBook
On this page
  • Hierarchy
  • Index
  • Properties
  • Methods
  • Properties
  • Protected context
  • Protected parent
  • Methods
  • add
  • arePaused
  • checkSettle
  • get
  • modify
  • pause
  • remove
  • reset
  • set
  • unpause

Was this helpful?

  1. Classes

Requirements

PreviousPortfoliosNextSchedules

Last updated 2 years ago

Was this helpful?

Handles all Asset Compliance Requirements related functionality

Hierarchy

  • Namespace‹›

    ↳ Requirements

Index

Properties

Methods

Properties

Protected context

• context: Context

Inherited from void


Protected parent

Inherited from void

Methods

add

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

Parameters:

Name
Type

args

opts?


arePaused

▸ arePaused(): Promise‹boolean›

Check whether Asset compliance requirements are paused or not

Returns: Promise‹boolean›


checkSettle

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?

sender Identity (optional, defaults to the signing Identity)

to

receiver Identity


get

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

note can be subscribed to

Parameters:

Name
Type

callback


modify

Modify a compliance requirement for the Asset

Parameters:

Name
Type

args

opts?


pause

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

Parameters:

Name
Type

opts?


remove

Remove an existing compliance requirement from the Asset

Parameters:

Name
Type

args

opts?


reset

Delete all the current requirements for the Asset.

Parameters:

Name
Type

opts?


set

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:

Name
Type

args

opts?


unpause

Un-pause all the Asset's current requirements

Parameters:

Name
Type

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‹‹››

src/api/entities/Namespace.ts:11
Asset
src/api/entities/Namespace.ts:9
AddAssetRequirementParams
ProcedureOpts
TransactionQueue
Asset
src/api/entities/Asset/Compliance/Requirements.ts:99
ProcedureMethod
add.checkAuthorization
TransactionQueue
Asset
src/api/entities/Asset/Compliance/Requirements.ts:278
Compliance
src/api/entities/Asset/Compliance/Requirements.ts:249
Compliance
ComplianceRequirements
src/api/entities/Asset/Compliance/Requirements.ts:131
ComplianceRequirements
src/api/entities/Asset/Compliance/Requirements.ts:132
src/api/entities/Asset/Compliance/Requirements.ts:302
ProcedureMethod
modify.checkAuthorization
TransactionQueue
ProcedureOpts
TransactionQueue
Asset
src/api/entities/Asset/Compliance/Requirements.ts:225
NoArgsProcedureMethod
pause.checkAuthorization
TransactionQueue
Asset
RemoveAssetRequirementParams
ProcedureOpts
TransactionQueue
Asset
src/api/entities/Asset/Compliance/Requirements.ts:109
ProcedureMethod
remove.checkAuthorization
TransactionQueue
Asset
ProcedureOpts
TransactionQueue
Asset
src/api/entities/Asset/Compliance/Requirements.ts:215
NoArgsProcedureMethod
reset.checkAuthorization
TransactionQueue
Asset
SetAssetRequirementsParams
ProcedureOpts
TransactionQueue
Asset
src/api/entities/Asset/Compliance/Requirements.ts:122
ProcedureMethod
set.checkAuthorization
TransactionQueue
Asset
ProcedureOpts
TransactionQueue
Asset
src/api/entities/Asset/Compliance/Requirements.ts:235
NoArgsProcedureMethod
unpause.checkAuthorization
TransactionQueue
Asset
Asset
context
parent
add
arePaused
checkSettle
get
modify
pause
remove
reset
set
unpause
AddAssetRequirementParams
ProcedureOpts
Identity
Identity
ProcedureOpts
ProcedureOpts
RemoveAssetRequirementParams
ProcedureOpts
ProcedureOpts
SetAssetRequirementsParams
ProcedureOpts
ProcedureOpts
ComplianceRequirements
ProcedureOpts
TransactionQueue
ComplianceRequirements
SubCallback
UnsubCallback
UnsubCallback
ModifyComplianceRequirementParams
SubCallback
ModifyComplianceRequirementParams