Sto

Represents a Security Token Offering in the Polymesh blockchain

Hierarchy

Index

Properties

Methods

Properties

Protected context

• context: Context

Inherited from Entity.context

Defined in src/api/entities/Entity.ts:48arrow-up-right


id

• id: BigNumber

Defined in src/api/entities/Sto/index.ts:61arrow-up-right

identifier number of the Offering


ticker

• ticker: string

Defined in src/api/entities/Sto/index.ts:66arrow-up-right

ticker of the Security Token being offered


uuid

• uuid: string

Inherited from Entity.uuid

Defined in src/api/entities/Entity.ts:46arrow-up-right

Methods

close

▸ close(args: void, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹void››

Defined in src/api/entities/Sto/index.ts:159arrow-up-right

Close the STO

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

Parameters:

Name
Type

Returns: Promise‹TransactionQueue‹void››


details

▸ details(): Promise‹StoDetailsarrow-up-right›

Defined in src/api/entities/Sto/index.ts:106arrow-up-right

Retrieve the STO's details

note can be subscribed to

Returns: Promise‹StoDetailsarrow-up-right›

▸ details(callback: SubCallback‹StoDetailsarrow-up-right›): Promise‹UnsubCallback›

Defined in src/api/entities/Sto/index.ts:107arrow-up-right

Parameters:

Name
Type

Returns: Promise‹UnsubCallback›


exists

▸ exists(): Promise‹boolean›

Overrides Entity.exists

Defined in src/api/entities/Sto/index.ts:276arrow-up-right

Determine whether this STO exists on chain

Returns: Promise‹boolean›


freeze

▸ freeze(args: void, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹Sto››

Defined in src/api/entities/Sto/index.ts:169arrow-up-right

Freeze the STO

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

Parameters:

Name
Type

Returns: Promise‹TransactionQueue‹Sto››


getInvestments

▸ getInvestments(opts: object): Promise‹ResultSetarrow-up-right‹Investmentarrow-up-right››

Defined in src/api/entities/Sto/index.ts:221arrow-up-right

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

Returns: Promise‹ResultSetarrow-up-right‹Investmentarrow-up-right››


invest

▸ invest(args: InvestInStoParamsarrow-up-right, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹void››

Defined in src/api/entities/Sto/index.ts:208arrow-up-right

Invest in the STO

note required roles:

  • Purchase Portfolio Custodian

  • Funding Portfolio Custodian

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

Parameters:

Returns: Promise‹TransactionQueue‹void››


isEqual

▸ isEqual(entity: Entity‹unknown, unknown›): boolean

Inherited from Entity.isEqual

Defined in src/api/entities/Entity.ts:61arrow-up-right

Determine whether this Entity is the same as another one

Parameters:

Name
Type

entity

Entity‹unknown, unknown›

Returns: boolean


modifyTimes

▸ modifyTimes(args: ModifyStoTimesParams, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹void››

Defined in src/api/entities/Sto/index.ts:194arrow-up-right

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 this method is of type ProcedureMethodarrow-up-right, which means you can call modifyTimes.checkAuthorization on it to see whether the Current Account has the required permissions to run it

Parameters:

Returns: Promise‹TransactionQueue‹void››


toJson

â–¸ toJson(): HumanReadablearrow-up-right

Overrides Entity.toJson

Defined in src/api/entities/Sto/index.ts:290arrow-up-right

Return the Sto's ID and Token ticker

Returns: HumanReadablearrow-up-right


unfreeze

▸ unfreeze(args: void, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹Sto››

Defined in src/api/entities/Sto/index.ts:179arrow-up-right

Unfreeze the STO

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

Parameters:

Name
Type

Returns: Promise‹TransactionQueue‹Sto››


Static generateUuid

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

Inherited from Entity.generateUuid

Defined in src/api/entities/Entity.ts:14arrow-up-right

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

Inherited from Entity.unserialize

Defined in src/api/entities/Entity.ts:23arrow-up-right

Unserialize a UUID into its Unique Identifiers

Type parameters:

â–ª Identifiers

Parameters:

Name
Type
Description

serialized

string

UUID to unserialize

Returns: Identifiers

Last updated

Was this helpful?