Polymesh SDK API Reference
v5.0.0
v5.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
    • ClaimData
    • ClaimScope
    • ClaimTarget
    • ComplexTransactionArgument
    • ConditionCompliance
    • ConnectParamsBase
    • ConstructorParams
    • ConsumeParams
    • ControllerTransferParams
    • CorporateActionDefaults
    • CorporateActionTargets
    • CountTransferRestriction
    • CountTransferRestrictionInput
    • CreateCheckpointScheduleParams
    • CreateSecurityTokenParams
    • CreateVenueParams
    • DeletePortfolioParams
    • DistributionParticipant
    • DistributionWithDetails
    • DividendDistributionDetails
    • DividendDistributionParams
    • EditClaimsParams
    • EventIdentifier
    • ExtrinsicData
    • Fees
    • HistoricSettlement
    • IdentityBalance
    • IdentityWithClaims
    • InstructionAffirmation
    • InvestInStoParams
    • Investment
    • InviteAccountParams
    • IssueTokensParams
    • KeyringPair
    • Leg
    • LinkCaDocsParams
    • MiddlewareConfig
    • ModifyCorporateActionsAgentParams
    • ModifyInstructionAffirmationParams
    • ModifyPrimaryIssuanceAgentParams
    • ModifySignerPermissionsParams
    • ModifyTokenTrustedClaimIssuersAddSetParams
    • ModifyTokenTrustedClaimIssuersRemoveParams
    • MoveFundsParams
    • NetworkProperties
    • PaginationOptions
    • PayDividendsParams
    • PercentageTransferRestriction
    • PercentageTransferRestrictionInput
    • Permissions
    • PermissionsLike
    • PlainTransactionArgument
    • PortfolioBalance
    • PortfolioCustodianRole
    • PortfolioMovement
    • ProcedureAuthorizationStatus
    • 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
    • TransferTokenOwnershipParams
    • TrustedClaimIssuer
    • UiKeyring
    • UniqueIdentifiers
    • VenueDetails
    • VenueOwnerRole
Powered by GitBook
On this page
  • Hierarchy
  • Index
  • Properties
  • Methods
  • Properties
  • close
  • Protected context
  • freeze
  • id
  • invest
  • modifyTimes
  • ticker
  • unfreeze
  • uuid
  • Methods
  • details
  • getInvestments
  • isEqual
  • 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

close

• close: ProcedureMethod‹void, void›

Close the STO

Protected context

freeze

Freeze the STO

note required role:

  • Security Token Primary Issuance Agent

id

• id: BigNumber

identifier number of the Offering

invest

Invest in the STO

param portfolio in which the purchased Tokens will be stored

param portfolio from which funds will be withdrawn to pay for the Tokens

param amount of tokens to purchase

param maximum average price to pay per Token (optional)

note required roles:

  • Purchase Portfolio Custodian

  • Funding Portfolio Custodian

modifyTimes

Modify the start/end time of the STO

param new start time (optional, will be left the same if not passed)

param new end time (optional, will be left th same if not passed). A null value means the STO doesn't end

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

ticker

• ticker: string

ticker of the Security Token being offered

unfreeze

Unfreeze the STO

note required role:

  • Security Token Primary Issuance Agent

uuid

• uuid: string

Methods

details

Retrieve the STO's details

note can be subscribed to

Parameters:

Name

Type

callback

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

isEqual

Whether this Entity is the same as another one

Parameters:

Name

Type

entity

Returns: boolean

Static generateUuid

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

Generate the Entity's UUID from its identifying properties

Type parameters:

â–ª Identifiers: object

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: object

Parameters:

Name

Type

Description

serialized

string

UUID to unserialize

Returns: Identifiers

Defined in

• context:

Inherited from .

Defined in

• freeze: ProcedureMethod‹void, ›

Defined in

Defined in

• invest: ProcedureMethod‹, void›

Defined in

• modifyTimes: ProcedureMethod‹, void›

Defined in

Defined in

• unfreeze: ProcedureMethod‹void, ›

Defined in

Inherited from .

Defined in

▸ details(): Promise‹›

Defined in

Returns: Promise‹›

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

Defined in

‹›

Returns: Promise‹›

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

Defined in

Returns: Promise‹‹››

▸ isEqual(entity: ‹object›): boolean

Inherited from .

Defined in

‹object›

Inherited from .

Defined in

Inherited from .

Defined in

src/api/entities/Sto/index.ts:143
Context
src/api/entities/Entity.ts:48
Sto
src/api/entities/Sto/index.ts:151
src/api/entities/Sto/index.ts:48
InvestInStoParams
src/api/entities/Sto/index.ts:189
src/api/entities/Sto/index.ts:175
src/api/entities/Sto/index.ts:53
Sto
src/api/entities/Sto/index.ts:159
src/api/entities/Entity.ts:46
StoDetails
src/api/entities/Sto/index.ts:93
StoDetails
src/api/entities/Sto/index.ts:94
ResultSet
Investment
src/api/entities/Sto/index.ts:200
ResultSet
Investment
Entity
src/api/entities/Entity.ts:61
src/api/entities/Entity.ts:14
src/api/entities/Entity.ts:23
Entity
close
context
freeze
id
invest
modifyTimes
ticker
unfreeze
uuid
details
getInvestments
isEqual
generateUuid
unserialize
Entity
CheckpointSchedule
CheckpointSchedule
StoDetails
CheckpointSchedule
CheckpointSchedule
CheckpointSchedule
StoDetails
context
uuid
isEqual
generateUuid
unserialize
ModifyStoTimesParams
SubCallback
UnsubCallback
UnsubCallback
SubCallback