Sto

Abstract class used as a base to manage sto functionalities

Type parameters

P

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

+ new Sto(params: Params & UniqueIdentifiers, context: Context): Sto

Defined in src/entities/Sto.ts:195arrow-up-right

Create a new sto instance

Parameters:

Name

Type

context

Returns: Sto

Properties

address

address: string

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

ethereum address for the STO

beneficialInvestmentsAllowed

beneficialInvestmentsAllowed: boolean

Defined in src/entities/Sto.ts:175arrow-up-right

whether investments can be made on behalf of a beneficiary or not

capReached

capReached: boolean

Defined in src/entities/Sto.ts:160arrow-up-right

whether the STO cap has been reached or not

Protected context

context: Context

Defined in src/entities/Sto.ts:177arrow-up-right

endDate

endDate: Date

Defined in src/entities/Sto.ts:120arrow-up-right

fundraiseCurrencies

fundraiseCurrencies: Currency[]

Defined in src/entities/Sto.ts:150arrow-up-right

types of currency in which funds can be raised

investorCount

investorCount: number

Defined in src/entities/Sto.ts:145arrow-up-right

number of investors that have purchased tokens in the STO

isFinalized

isFinalized: boolean

Defined in src/entities/Sto.ts:165arrow-up-right

whether the STO has been finalized or not

isPaused

isPaused: boolean

Defined in src/entities/Sto.ts:155arrow-up-right

whether the STO is currently paused or not

preIssueAllowed

preIssueAllowed: boolean

Defined in src/entities/Sto.ts:170arrow-up-right

whether all tokens due to be sold are issued when the STO starts. If false, the appropriate amount of tokens is issued to the buyer whenever a sale is made

raisedAmount

raisedAmount: BigNumber

Defined in src/entities/Sto.ts:135arrow-up-right

amount of funds that have been raised so far

raisedFundsWallet

raisedFundsWallet: string

Defined in src/entities/Sto.ts:125arrow-up-right

wallet where raised funds will be forwarded to

securityTokenId

securityTokenId: string

Defined in src/entities/Sto.ts:111arrow-up-right

securityTokenSymbol

securityTokenSymbol: string

Defined in src/entities/Sto.ts:109arrow-up-right

soldTokensAmount

soldTokensAmount: BigNumber

Defined in src/entities/Sto.ts:140arrow-up-right

total number of tokens that have been sold so far

startDate

startDate: Date

Defined in src/entities/Sto.ts:118arrow-up-right

stoType

stoType: StoType

Defined in src/entities/Sto.ts:116arrow-up-right

type of STO setup

Abstract uid

uid: string

Overrides Entity.uid

Defined in src/entities/Sto.ts:102arrow-up-right

Uniquely generated id for the STO

unsoldTokensWallet

unsoldTokensWallet: string

Defined in src/entities/Sto.ts:130arrow-up-right

wallet where unsold tokens will be returned to

Methods

_refresh

_refresh(params: Partial‹Params›): void

Overrides Entity._refresh

Defined in src/entities/Sto.ts:438arrow-up-right

Hydrate the entity

Parameters:

Name

Type

params

Partial‹Params

Returns: void

allowBeneficialInvestments

allowBeneficialInvestments(): Promise‹TransactionQueueToggleAllowBeneficialInvestmentsProcedureArgs, void››

Defined in src/entities/Sto.ts:316arrow-up-right

Enable a party to invest in the STO on behalf of another party

Returns: Promise‹TransactionQueueToggleAllowBeneficialInvestmentsProcedureArgs, void››

allowPreIssuing

allowPreIssuing(): Promise‹TransactionQueueToggleAllowPreIssuingProcedureArgs, void››

Defined in src/entities/Sto.ts:287arrow-up-right

Enable all offered tokens to be issued instantly at STO start (default behavior is to issue on purchase) Can be disabled BEFORE the STO starts by calling disallowPreIssuing

Returns: Promise‹TransactionQueueToggleAllowPreIssuingProcedureArgs, void››

assignRole

assignRole(args: object): Promise‹TransactionQueueAssignStoRoleProcedureArgs, void››

Defined in src/entities/Sto.ts:348arrow-up-right

Assign a role on the STO to a delegate

Parameters:

args: object

Name

Type

delegateAddress

string

description?

undefined | string

Returns: Promise‹TransactionQueueAssignStoRoleProcedureArgs, void››

disallowBeneficialInvestments

disallowBeneficialInvestments(): Promise‹TransactionQueueToggleAllowBeneficialInvestmentsProcedureArgs, void››

Defined in src/entities/Sto.ts:330arrow-up-right

Disable the possibility for a party to invest in the STO on behalf of another party

Returns: Promise‹TransactionQueueToggleAllowBeneficialInvestmentsProcedureArgs, void››

disallowPreIssuing

disallowPreIssuing(): Promise‹TransactionQueueToggleAllowPreIssuingProcedureArgs, void››

Defined in src/entities/Sto.ts:302arrow-up-right

Disable pre-issuing of offered tokens at STO start (goes back to default behavior, which is to issue on purchase) Can be re-enabled BEFORE the STO starts by calling allowPreIssuing

Returns: Promise‹TransactionQueueToggleAllowPreIssuingProcedureArgs, void››

finalize

finalize(): Promise‹TransactionQueueFinalizeStoProcedureArgs, void››

Defined in src/entities/Sto.ts:275arrow-up-right

Finalize the offering. The offering's treasury wallet (or the Security Token's treasury wallet if one was not specified for the offering) will receive the remaining unsold tokens. Throws an error if there are transfer restrictions which do not permit the wallet to receive that amount of tokens

Returns: Promise‹TransactionQueueFinalizeStoProcedureArgs, void››

pause

pause(): Promise‹TransactionQueueTogglePauseStoProcedureArgs, void››

Defined in src/entities/Sto.ts:246arrow-up-right

Pause the offering

Returns: Promise‹TransactionQueueTogglePauseStoProcedureArgs, void››

revokeRole

revokeRole(args: object): Promise‹TransactionQueueAssignStoRoleProcedureArgs, void››

Defined in src/entities/Sto.ts:374arrow-up-right

Remove a role from a delegate

Parameters:

args: object

Name

Type

delegateAddress

string

Returns: Promise‹TransactionQueueAssignStoRoleProcedureArgs, void››

toPojo

toPojo(): object

Overrides Entity.toPojo

Defined in src/entities/Sto.ts:393arrow-up-right

Convert entity to a POJO (Plain Old Javascript Object)

Returns: object

  • address: string

  • beneficialInvestmentsAllowed: boolean

  • capReached: boolean

  • endDate: Date

  • fundraiseCurrencies: FundRaiseType[]

  • investorCount: number

  • isFinalized: boolean

  • isPaused: boolean

  • preIssueAllowed: boolean

  • raisedAmount: BigNumber

  • raisedFundsWallet: string

  • securityTokenId: string

  • securityTokenSymbol: string

  • soldTokensAmount: BigNumber

  • startDate: Date

  • uid: string

  • unsoldTokensWallet: string

unpause

unpause(): Promise‹TransactionQueueTogglePauseStoProcedureArgs, void››

Defined in src/entities/Sto.ts:260arrow-up-right

Unpause the offering

Returns: Promise‹TransactionQueueTogglePauseStoProcedureArgs, void››

Static unserialize

unserialize(serialized: string): UniqueIdentifiers

Defined in src/entities/Sto.ts:184arrow-up-right

Unserialize string to a Security Token Offering object representation

Parameters:

Name

Type

serialized

string

Returns: UniqueIdentifiers

Last updated

Was this helpful?