STO module for sample implementation of a different crowdsale module (DummySTO.sol)
View Source: contracts/mocks/Dummy/DummySTO.sol
↗ Extends: DummySTOStorage, STO
DummySTO
Events
Functions
Constructor
Arguments
Name
Type
Description
_securityToken
address
Address of the security token
_polyToken
address
configure
Function used to intialize the differnet variables
Arguments
Name
Type
Description
_startTime
uint256
Unix timestamp at which offering get started
_endTime
uint256
Unix timestamp at which offering get ended
_cap
uint256
Maximum No. of tokens for sale
_someString
string
Any string that contails the details
getInitFunction
⤾ overrides IModule.getInitFunction
This function returns the signature of configure function
Arguments
Name
Type
Description
generateTokens
Function used to generate the tokens
Arguments
Name
Type
Description
_investor
address
Address of the investor
_amount
uint256
Amount of ETH or Poly invested by the investor
getNumberInvestors
Returns the total no. of investors
Arguments
Name
Type
Description
getTokensSold
⤾ overrides STO.getTokensSold
Returns the total no. of investors
Arguments
Name
Type
Description
getPermissions
⤾ overrides IModule.getPermissions
Returns the permissions flag that are associated with STO
Arguments
Name
Type
Description
Arguments
Name
Type
Description
Last updated
Was this helpful?