Polymesh SDK API Reference
v4.0.0
v4.0.0
  • Introduction
  • Globals
  • Classes
    • Account
    • AuthorizationRequest
    • Authorizations
    • Claims
    • Compliance
    • Context
    • Count
    • CurrentAccount
    • CurrentIdentity
    • DefaultPortfolio
    • DefaultTrustedClaimIssuer
    • Documents
    • Entity
    • Identity
    • IdentityAuthorizations
    • Instruction
    • Issuance
    • Middleware
    • NumberedPortfolio
    • Offerings
    • Percentage
    • Polymesh
    • PolymeshError
    • PolymeshTransaction
    • PolymeshTransactionBase
    • PolymeshTransactionBatch
    • Portfolio
    • Portfolios
    • Requirements
    • SecurityToken
    • Settlements
    • Sto
    • TickerReservation
    • TokenHolders
    • TransactionQueue
    • TransferRestrictionBase
    • TransferRestrictions
    • TrustedClaimIssuers
    • Venue
  • Enums
    • AffirmationStatus
    • AuthorizationType
    • ClaimType
    • ConditionTarget
    • ConditionType
    • CountryCode
    • ErrorCode
    • InstructionStatus
    • InstructionType
    • KnownTokenType
    • ProposalStage
    • RoleType
    • ScopeType
    • StoStatus
    • TickerReservationStatus
    • TokenIdentifierType
    • TransactionArgumentType
    • TransactionQueueStatus
    • TransactionStatus
    • TransferStatus
    • TxGroup
    • VenueType
  • Interfaces
    • AccountBalance
    • AccountData
    • ActiveTransferRestrictions
    • AddBatchTransactionOpts
    • AddClaimsParams
    • AddInstructionParams
    • AddInvestorUniquenessClaimParams
    • AddTransactionOpts
    • AddTransactionOptsBase
    • ArrayTransactionArgument
    • CddProviderRole
    • ClaimData
    • ClaimScope
    • ClaimTarget
    • ComplexTransactionArgument
    • ConditionCompliance
    • ConnectParamsBase
    • ConstructorParams
    • ConsumeParams
    • CountTransferRestriction
    • CountTransferRestrictionInput
    • CreateSecurityTokenParams
    • CreateVenueParams
    • DeletePortfolioParams
    • EditClaimsParams
    • EventIdentifier
    • ExtrinsicData
    • Fees
    • HistoricSettlement
    • IdentityBalance
    • IdentityWithClaims
    • InstructionAffirmation
    • Investment
    • InviteAccountParams
    • IssueTokensParams
    • KeyringPair
    • Leg
    • MiddlewareConfig
    • ModifyInstructionAffirmationParams
    • ModifyPrimaryIssuanceAgentParams
    • ModifySignerPermissionsParams
    • ModifyTokenTrustedClaimIssuersAddSetParams
    • ModifyTokenTrustedClaimIssuersRemoveParams
    • MoveFundsParams
    • NetworkProperties
    • PaginationOptions
    • PercentageTransferRestriction
    • PercentageTransferRestrictionInput
    • Permissions
    • PermissionsLike
    • PlainTransactionArgument
    • PortfolioBalance
    • PortfolioCustodianRole
    • PortfolioMovement
    • ProcedureAuthorizationStatus
    • ProposalDetails
    • ProposalTimeFrames
    • ProposalVote
    • RedeemTokenParams
    • RegisterIdentityParams
    • RemoveSecondaryKeysParams
    • RenamePortfolioParams
    • Requirement
    • RequirementCompliance
    • ReserveTickerParams
    • ResultSet
    • RevokeClaimsParams
    • Scope
    • SecondaryKey
    • SecurityTokenDetails
    • SetAssetRequirementsParams
    • SetCountTransferRestrictionsParams
    • SetCustodianParams
    • SetPercentageTransferRestrictionsParams
    • SetTokenDocumentsParams
    • SettlementLeg
    • SimpleEnumTransactionArgument
    • StoDetails
    • StoTier
    • StoWithDetails
    • TickerOwnerRole
    • TickerReservationDetails
    • Tier
    • ToggleFreezeStoParams
    • ToggleFreezeTransfersParams
    • TogglePauseRequirementsParams
    • TokenDocument
    • TokenHolderOptions
    • TokenHolderProperties
    • TokenIdentifier
    • TokenOwnerRole
    • TokenPiaRole
    • TransferPolyXParams
    • TransferRestrictionInputBase
    • TransferTokenOwnershipParams
    • TrustedClaimIssuer
    • UiKeyring
    • UniqueIdentifiers
    • VenueDetails
    • VenueOwnerRole
Powered by GitBook
On this page
  • Hierarchy
  • Index
  • Properties
  • Methods
  • Properties
  • Protected context
  • Protected parent
  • pause
  • reset
  • set
  • unpause
  • Methods
  • arePaused
  • checkSettle
  • get

Was this helpful?

  1. Classes

Requirements

PreviousPortfoliosNextSecurityToken

Last updated 4 years ago

Was this helpful?

Handles all Security Token Compliance Requirements related functionality

Hierarchy

  • Namespace‹›

    ↳ Requirements

Index

Properties

Methods

Properties

Protected context

Inherited from void

Protected parent

Inherited from void

pause

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

Detele all the current requirements for the Security Token.

note required role:

  • Security Token Owner

set

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

Un-pause all the Security Token's current requirements

Methods

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

Parameters:

▪ args: object

Name

Type

Description

from?

sender Identity (optional, defaults to the current Identity)

to

receiver Identity

get

Retrieve all of the Security Token's requirements

note can be subscribed to

Parameters:

Name

Type

callback

• context:

Defined in

• parent:

Defined in

• pause: ProcedureMethod‹void, ›

Defined in

• reset: ProcedureMethod‹void, ›

Defined in

• set: ProcedureMethod‹, ›

Defined in

• unpause: ProcedureMethod‹void, ›

Defined in

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

Context
src/api/entities/Namespace.ts:11
SecurityToken
src/api/entities/Namespace.ts:9
SecurityToken
src/api/entities/SecurityToken/Compliance/Requirements.ts:160
SecurityToken
src/api/entities/SecurityToken/Compliance/Requirements.ts:152
SetAssetRequirementsParams
SecurityToken
src/api/entities/SecurityToken/Compliance/Requirements.ts:68
SecurityToken
src/api/entities/SecurityToken/Compliance/Requirements.ts:165
src/api/entities/SecurityToken/Compliance/Requirements.ts:204
Compliance
src/api/entities/SecurityToken/Compliance/Requirements.ts:175
Compliance
Requirement
src/api/entities/SecurityToken/Compliance/Requirements.ts:75
Requirement
src/api/entities/SecurityToken/Compliance/Requirements.ts:76
SecurityToken
context
parent
pause
reset
set
unpause
arePaused
checkSettle
get
Identity
Identity
Requirement
Requirement
SubCallback
UnsubCallback
UnsubCallback
SubCallback