Sto
Last updated
Was this helpful?
Last updated
Was this helpful?
Represents a Security Token Offering in the Polymesh blockchain
‹UniqueIdentifiers›
↳ Sto
• close: ProcedureMethod‹void, void›
Close the STO
Protected
contextFreeze the STO
note
required role:
Security Token Primary Issuance Agent
• id: BigNumber
identifier number of the Offering
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
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: string
ticker of the Security Token being offered
Unfreeze the STO
note
required role:
Security Token Primary Issuance Agent
• uuid: string
Retrieve the STO's details
note
can be subscribed to
Parameters:
Name
Type
callback
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
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