Polymesh SDK API Reference
v6.0.0
v6.0.0
  • Introduction
  • Globals
  • Classes
    • Account
    • AuthorizationRequest
    • Authorizations
    • Checkpoint
    • CheckpointSchedule
    • Checkpoints
    • Claims
    • Compliance
    • Context
    • CorporateAction
    • CorporateActions
    • Count
    • CurrentAccount
    • CurrentIdentity
    • DefaultPortfolio
    • DefaultTrustedClaimIssuer
    • Distributions
    • DividendDistribution
    • Documents
    • Entity
    • Identity
    • IdentityAuthorizations
    • Instruction
    • Issuance
    • Middleware
    • NumberedPortfolio
    • Offerings
    • Percentage
    • Polymesh
    • PolymeshError
    • PolymeshTransaction
    • PolymeshTransactionBase
    • PolymeshTransactionBatch
    • Portfolio
    • Portfolios
    • Requirements
    • Schedules
    • SecurityToken
    • Settlements
    • Sto
    • TickerReservation
    • TokenHolders
    • TransactionQueue
    • TransferRestrictionBase
    • TransferRestrictions
    • TrustedClaimIssuers
    • Venue
  • Enums
    • AffirmationStatus
    • AuthorizationType
    • CalendarUnit
    • ClaimType
    • ConditionTarget
    • ConditionType
    • CorporateActionKind
    • CountryCode
    • ErrorCode
    • InstructionStatus
    • InstructionType
    • KnownTokenType
    • ProposalStage
    • RoleType
    • ScopeType
    • StoBalanceStatus
    • StoSaleStatus
    • StoTimingStatus
    • TargetTreatment
    • TickerReservationStatus
    • TokenIdentifierType
    • TransactionArgumentType
    • TransactionQueueStatus
    • TransactionStatus
    • TransferError
    • TransferRestrictionType
    • TransferStatus
    • TxGroup
    • VenueType
  • Interfaces
    • AccountData
    • ActiveTransferRestrictions
    • AddBatchTransactionOpts
    • AddClaimsParams
    • AddInstructionParams
    • AddInstructionsParams
    • AddInvestorUniquenessClaimParams
    • AddTransactionOpts
    • AddTransactionOptsBase
    • ArrayTransactionArgument
    • Balance
    • CalendarPeriod
    • CddProviderRole
    • CheckpointWithData
    • ClaimClassicTickerParams
    • ClaimData
    • ClaimScope
    • ClaimTarget
    • ComplexTransactionArgument
    • ConditionCompliance
    • ConnectParamsBase
    • ConstructorParams
    • ConsumeParams
    • ControllerTransferParams
    • CorporateActionDefaults
    • CorporateActionTargets
    • CountTransferRestriction
    • CountTransferRestrictionInput
    • CreateCheckpointScheduleParams
    • CreateSecurityTokenParams
    • CreateVenueParams
    • DeletePortfolioParams
    • DistributionParticipant
    • DistributionPayment
    • DistributionWithDetails
    • DividendDistributionDetails
    • DividendDistributionParams
    • EditClaimsParams
    • EventIdentifier
    • ExtrinsicData
    • Fees
    • HistoricSettlement
    • IdentityBalance
    • IdentityWithClaims
    • InstructionAffirmation
    • InvestInStoParams
    • Investment
    • InviteAccountParams
    • IssueTokensParams
    • KeyringPair
    • LeaveIdentityParams
    • Leg
    • LinkCaDocsParams
    • MiddlewareConfig
    • ModifyCorporateActionsAgentParams
    • ModifyInstructionAffirmationParams
    • ModifyPrimaryIssuanceAgentParams
    • ModifySignerPermissionsParams
    • ModifyTokenTrustedClaimIssuersAddSetParams
    • ModifyTokenTrustedClaimIssuersRemoveParams
    • MoveFundsParams
    • NetworkProperties
    • PaginationOptions
    • PayDividendsParams
    • PercentageTransferRestriction
    • PercentageTransferRestrictionInput
    • Permissions
    • PermissionsLike
    • PlainTransactionArgument
    • PortfolioBalance
    • PortfolioCustodianRole
    • PortfolioMovement
    • ProcedureAuthorizationStatus
    • ProcedureMethod
    • ProposalDetails
    • ProposalTimeFrames
    • ProposalVote
    • RedeemTokenParams
    • RegisterIdentityParams
    • RemoveCheckpointScheduleParams
    • RemoveCorporateActionParams
    • RemoveSecondaryKeysParams
    • RenamePortfolioParams
    • Requirement
    • RequirementCompliance
    • ReserveTickerParams
    • ResultSet
    • RevokeClaimsParams
    • ScheduleDetails
    • ScheduleWithDetails
    • Scope
    • SecondaryKey
    • SecurityTokenDetails
    • SetAssetRequirementsParams
    • SetCountTransferRestrictionsParams
    • SetCustodianParams
    • SetPercentageTransferRestrictionsParams
    • SetTokenDocumentsParams
    • SettlementLeg
    • SimpleEnumTransactionArgument
    • StoDetails
    • StoStatus
    • StoTier
    • StoWithDetails
    • TaxWithholding
    • TickerOwnerRole
    • TickerReservationDetails
    • Tier
    • ToggleFreezeSecondaryKeysParams
    • ToggleFreezeStoParams
    • ToggleFreezeTransfersParams
    • TogglePauseRequirementsParams
    • TokenCaaRole
    • TokenDocument
    • TokenIdentifier
    • TokenOwnerRole
    • TokenPiaRole
    • TransferBreakdown
    • TransferPolyxParams
    • TransferRestriction
    • TransferRestrictionInputBase
    • TransferRestrictionResult
    • TransferTickerOwnershipParams
    • TransferTokenOwnershipParams
    • TrustedClaimIssuer
    • UiKeyring
    • UniqueIdentifiers
    • VenueDetails
    • VenueOwnerRole
Powered by GitBook
On this page
  • Hierarchy
  • Index
  • Properties
  • Methods
  • Properties
  • Protected context
  • id
  • ticker
  • uuid
  • Methods
  • close
  • details
  • freeze
  • getInvestments
  • invest
  • isEqual
  • modifyTimes
  • unfreeze
  • Static generateUuid
  • Static unserialize

Was this helpful?

  1. Classes

Sto

PreviousSettlementsNextTickerReservation

Last updated 3 years ago

Was this helpful?

Represents a Security Token Offering in the Polymesh blockchain

Hierarchy

  • ‹UniqueIdentifiers›

    ↳ Sto

Index

Properties

Methods

Properties

Protected context

id

• id: BigNumber

identifier number of the Offering

ticker

• ticker: string

ticker of the Security Token being offered

uuid

• uuid: string

Methods

close

Close the STO

Parameters:

Name

Type

args

void

details

Retrieve the STO's details

note can be subscribed to

Parameters:

Name

Type

callback

freeze

Freeze the STO

note required role:

  • Security Token Primary Issuance Agent

Parameters:

Name

Type

args

void

getInvestments

Retrieve all investments made on this STO

note supports pagination

note uses the middleware

Parameters:

â–ªDefault value opts: object= {}

Name

Type

Description

size?

undefined | number

page size

start?

undefined | number

page offset

invest

Invest in the STO

note required roles:

  • Purchase Portfolio Custodian

  • Funding Portfolio Custodian

Parameters:

Name

Type

args

isEqual

Whether this Entity is the same as another one

Parameters:

Name

Type

entity

Returns: boolean

modifyTimes

Modify the start/end time of the STO

throws if:

  • Trying to modify the start time on an STO that already started

  • Trying to modify anything on an STO that already ended

  • Trying to change start or end time to a past date

note required role:

  • Security Token Primary Issuance Agent

Parameters:

Name

Type

args

unfreeze

Unfreeze the STO

note required role:

  • Security Token Primary Issuance Agent

Parameters:

Name

Type

args

void

Static generateUuid

▸ generateUuid‹Identifiers›(identifiers: Identifiers): string

Generate the Entity's UUID from its identifying properties

Type parameters:

â–ª Identifiers

Parameters:

Name

Type

Description

identifiers

Identifiers

Returns: string

Static unserialize

▸ unserialize‹Identifiers›(serialized: string): Identifiers

Unserialize a UUID into its Unique Identifiers

Type parameters:

â–ª Identifiers

Parameters:

Name

Type

Description

serialized

string

UUID to unserialize

Returns: Identifiers

• context:

Inherited from .

Defined in

Defined in

Defined in

Inherited from .

Defined in

▸ close(args: void): Promise‹‹void››

Defined in

note this method is of type , which means you can call close.checkAuthorization on it to see whether the Current Account has the required permissions to run it

Returns: Promise‹‹void››

▸ details(): Promise‹›

Defined in

Returns: Promise‹›

▸ details(callback: ‹›): Promise‹›

Defined in

‹›

Returns: Promise‹›

▸ freeze(args: void): Promise‹‹››

Defined in

note this method is of type , which means you can call freeze.checkAuthorization on it to see whether the Current Account has the required permissions to run it

Returns: Promise‹‹››

▸ getInvestments(opts: object): Promise‹‹››

Defined in

Returns: Promise‹‹››

▸ invest(args: ): Promise‹‹void››

Defined in

note this method is of type , which means you can call invest.checkAuthorization on it to see whether the Current Account has the required permissions to run it

Returns: Promise‹‹void››

▸ isEqual(entity: ‹unknown›): boolean

Inherited from .

Defined in

‹unknown›

▸ modifyTimes(args: ): Promise‹‹void››

Defined in

note this method is of type , which means you can call modifyTimes.checkAuthorization on it to see whether the Current Account has the required permissions to run it

Returns: Promise‹‹void››

▸ unfreeze(args: void): Promise‹‹››

Defined in

note this method is of type , which means you can call unfreeze.checkAuthorization on it to see whether the Current Account has the required permissions to run it

Returns: Promise‹‹››

Inherited from .

Defined in

Inherited from .

Defined in

Context
src/api/entities/Entity.ts:48
src/api/entities/Sto/index.ts:55
src/api/entities/Sto/index.ts:60
src/api/entities/Entity.ts:46
TransactionQueue
src/api/entities/Sto/index.ts:153
ProcedureMethod
TransactionQueue
StoDetails
src/api/entities/Sto/index.ts:100
StoDetails
src/api/entities/Sto/index.ts:101
TransactionQueue
Sto
src/api/entities/Sto/index.ts:166
ProcedureMethod
TransactionQueue
Sto
ResultSet
Investment
src/api/entities/Sto/index.ts:224
ResultSet
Investment
InvestInStoParams
TransactionQueue
src/api/entities/Sto/index.ts:211
ProcedureMethod
TransactionQueue
Entity
src/api/entities/Entity.ts:61
src/api/entities/Sto/index.ts:197
ProcedureMethod
TransactionQueue
TransactionQueue
Sto
src/api/entities/Sto/index.ts:179
ProcedureMethod
TransactionQueue
Sto
src/api/entities/Entity.ts:14
src/api/entities/Entity.ts:23
Entity
context
id
ticker
uuid
close
details
freeze
getInvestments
invest
isEqual
modifyTimes
unfreeze
generateUuid
unserialize
InvestInStoParams
Entity
CheckpointSchedule
CheckpointSchedule
StoDetails
CheckpointSchedule
TransactionQueue
CheckpointSchedule
CheckpointSchedule
StoDetails
context
uuid
isEqual
generateUuid
unserialize
SubCallback
UnsubCallback
UnsubCallback
ModifyStoTimesParams
SubCallback
ModifyStoTimesParams