TieredSto
Used to manage a tiered sto
Hierarchy
↳ Sto‹Params›
↳ TieredSto
Index
Constructors
constructor
Properties
address
beneficialInvestmentsAllowed
capReached
context
currentTier
endDate
fundraiseCurrencies
investorCount
isFinalized
isPaused
minimumInvestment
nonAccreditedInvestmentLimit
preIssueAllowed
raisedAmount
raisedFundsWallet
securityTokenId
securityTokenSymbol
soldTokensAmount
stableCoinAddresses
startDate
stoType
tiers
uid
unsoldTokensWallet
Methods
_refresh
allowBeneficialInvestments
allowPreIssuing
assignRole
disallowBeneficialInvestments
disallowPreIssuing
finalize
getCurrency
getInvestments
invest
modifyData
pause
revokeRole
toPojo
unpause
generateId
unserialize
Constructors
constructor
+ new TieredSto(params
: Params & UniqueIdentifiers, context
: Context): TieredSto
Overrides Sto.constructor
Create a new tiered sto instance
Parameters:
Name
Type
params
context
Returns: TieredSto
Properties
address
• address: string
Inherited from Sto.address
ethereum address for the STO
beneficialInvestmentsAllowed
• beneficialInvestmentsAllowed: boolean
Inherited from Sto.beneficialInvestmentsAllowed
whether investments can be made on behalf of a beneficiary or not
capReached
• capReached: boolean
Inherited from Sto.capReached
whether the STO cap has been reached or not
Protected
context
Protected
context• context: Context
Inherited from Sto.context
currentTier
• currentTier: number
index of the current active tier
endDate
• endDate: Date
Inherited from Sto.endDate
fundraiseCurrencies
• fundraiseCurrencies: Currency[]
Inherited from Sto.fundraiseCurrencies
types of currency in which funds can be raised
investorCount
• investorCount: number
Inherited from Sto.investorCount
number of investors that have purchased tokens in the STO
isFinalized
• isFinalized: boolean
Inherited from Sto.isFinalized
whether the STO has been finalized or not
isPaused
• isPaused: boolean
Inherited from Sto.isPaused
whether the STO is currently paused or not
minimumInvestment
• minimumInvestment: BigNumber
nonAccreditedInvestmentLimit
• nonAccreditedInvestmentLimit: BigNumber
maximum investment allowed for non-accredited investors
preIssueAllowed
• preIssueAllowed: boolean
Inherited from Sto.preIssueAllowed
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
Inherited from Sto.raisedAmount
amount of funds that have been raised so far
raisedFundsWallet
• raisedFundsWallet: string
Inherited from Sto.raisedFundsWallet
wallet where raised funds will be forwarded to
securityTokenId
• securityTokenId: string
Inherited from Sto.securityTokenId
securityTokenSymbol
• securityTokenSymbol: string
Inherited from Sto.securityTokenSymbol
soldTokensAmount
• soldTokensAmount: BigNumber
Inherited from Sto.soldTokensAmount
total number of tokens that have been sold so far
stableCoinAddresses
• stableCoinAddresses: string[]
array of Stable Coin ERC20 tokens that can be used to purchase tokens in this Offering
startDate
• startDate: Date
Inherited from Sto.startDate
stoType
• stoType: StoType
Inherited from Sto.stoType
type of STO setup
tiers
• tiers: Tier[]
array of tier information
uid
• uid: string
Overrides Sto.uid
unique generated Tiered STO id
unsoldTokensWallet
• unsoldTokensWallet: string
Inherited from Sto.unsoldTokensWallet
wallet where unsold tokens will be returned to
Methods
_refresh
▸ _refresh(params
: Partial‹Params›): void
Overrides Sto._refresh
Hydrate the entity
Parameters:
Name
Type
params
Returns: void
allowBeneficialInvestments
▸ allowBeneficialInvestments(): Promise‹TransactionQueue‹ToggleAllowBeneficialInvestmentsProcedureArgs, void››
Inherited from Sto
Enable a party to invest in the STO on behalf of another party
Returns: Promise‹TransactionQueue‹ToggleAllowBeneficialInvestmentsProcedureArgs, void››
allowPreIssuing
▸ allowPreIssuing(): Promise‹TransactionQueue‹ToggleAllowPreIssuingProcedureArgs, void››
Inherited from Sto
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‹TransactionQueue‹ToggleAllowPreIssuingProcedureArgs, void››
assignRole
▸ assignRole(args
: object): Promise‹TransactionQueue‹AssignStoRoleProcedureArgs, void››
Inherited from Sto
Assign a role on the STO to a delegate
Parameters:
▪ args: object
Name
Type
delegateAddress
string
description?
undefined | string
role
Returns: Promise‹TransactionQueue‹AssignStoRoleProcedureArgs, void››
disallowBeneficialInvestments
▸ disallowBeneficialInvestments(): Promise‹TransactionQueue‹ToggleAllowBeneficialInvestmentsProcedureArgs, void››
Inherited from Sto
Disable the possibility for a party to invest in the STO on behalf of another party
Returns: Promise‹TransactionQueue‹ToggleAllowBeneficialInvestmentsProcedureArgs, void››
disallowPreIssuing
▸ disallowPreIssuing(): Promise‹TransactionQueue‹ToggleAllowPreIssuingProcedureArgs, void››
Inherited from Sto
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‹TransactionQueue‹ToggleAllowPreIssuingProcedureArgs, void››
finalize
▸ finalize(): Promise‹TransactionQueue‹FinalizeStoProcedureArgs, void››
Inherited from Sto
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‹TransactionQueue‹FinalizeStoProcedureArgs, void››
getCurrency
▸ getCurrency(): Promise‹CustomCurrency›
Retrieve the denomination in which the tokens are priced in this STO
Returns: Promise‹CustomCurrency›
getInvestments
▸ getInvestments(): Promise‹Investment[]›
Retrieve all investments that have been made on this STO
Returns: Promise‹Investment[]›
invest
Invest in the STO
Parameters:
Name
Type
params
InvestInStableCoinParams
Invest in the STO
Parameters:
Name
Type
params
InvestInOtherParams
modifyData
▸ modifyData(args
: object): Promise‹TransactionQueue‹ModifyTieredStoDataProcedureArgs, void››
Modify STO parameters. Must be done before the STO starts
Parameters:
▪ args: object
Name
Type
Description
customCurrency?
custom currency data. Allows the STO to raise funds pegged to a different currency. Optional, defaults to USD
endDate?
Date
date when the STO should end
fundariseCurrencies?
Currency[]
-
minimumInvestment?
BigNumber
minimum investment amount
nonAccreditedInvestmentLimit?
BigNumber
maximum investment for non-accredited investors
raisedFundsWallet?
undefined | string
wallet address that will receive the funds that are being raised
stableCoinAddresses?
string[]
addresses of supported stablecoins
startDate?
Date
date when the STO should start
tiers?
tier information
unsoldTokensWallet?
undefined | string
wallet address that will receive unsold tokens when the end date is reached
Returns: Promise‹TransactionQueue‹ModifyTieredStoDataProcedureArgs, void››
pause
▸ pause(): Promise‹TransactionQueue‹TogglePauseStoProcedureArgs, void››
Inherited from Sto
Pause the offering
Returns: Promise‹TransactionQueue‹TogglePauseStoProcedureArgs, void››
revokeRole
▸ revokeRole(args
: object): Promise‹TransactionQueue‹AssignStoRoleProcedureArgs, void››
Inherited from Sto
Remove a role from a delegate
Parameters:
▪ args: object
Name
Type
delegateAddress
string
role
Returns: Promise‹TransactionQueue‹AssignStoRoleProcedureArgs, void››
toPojo
▸ toPojo(): object
Overrides Sto.toPojo
Convert entity to a POJO (Plain Old Javascript Object)
Returns: object
currentTier: number
tiers: Tier[]
unpause
▸ unpause(): Promise‹TransactionQueue‹TogglePauseStoProcedureArgs, void››
Inherited from Sto
Unpause the offering
Returns: Promise‹TransactionQueue‹TogglePauseStoProcedureArgs, void››
Static
generateId
Static
generateId▸ generateId(__namedParameters
: object): string
Generate the Tiered STO's UUID from its identifying properties
Parameters:
▪ __namedParameters: object
Name
Type
address
string
securityTokenId
string
stoType
Returns: string
Static
unserialize
Static
unserialize▸ unserialize(serialized
: string): UniqueIdentifiers
Inherited from Sto.unserialize
Unserialize string to a Security Token Offering object representation
Parameters:
Name
Type
serialized
string
Returns: UniqueIdentifiers
Last updated
Was this helpful?