View Source: contracts/mocks/Dummy/DummySTO.solโ
โ Extends: DummySTOStorage, STOโ
DummySTO
Events
event GenerateTokens(address _investor, uint256 _amount);
โgetInitFunction()โ
โgetNumberInvestors()โ
โgetTokensSold()โ
โgetPermissions()โ
โ()โ
Constructor
function (address _securityToken, address _polyToken) public nonpayable Module
Arguments
Name | Type | Description |
_securityToken | address | Address of the security token |
_polyToken | address | โ |
Function used to intialize the differnet variables
function configure(uint256 _startTime, uint256 _endTime, uint256 _cap, string _someString) public nonpayable onlyFactory
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 |
โคพ overrides IModule.getInitFunctionโ
This function returns the signature of configure function
function getInitFunction() public purereturns(bytes4)
Arguments
Name | Type | Description |
Function used to generate the tokens
function generateTokens(address _investor, uint256 _amount) public nonpayable withPerm
Arguments
Name | Type | Description |
_investor | address | Address of the investor |
_amount | uint256 | Amount of ETH or Poly invested by the investor |
Returns the total no. of investors
function getNumberInvestors() public viewreturns(uint256)
Arguments
Name | Type | Description |
โคพ overrides STO.getTokensSoldโ
Returns the total no. of investors
function getTokensSold() external viewreturns(uint256)
Arguments
Name | Type | Description |
โคพ overrides IModule.getPermissionsโ
Returns the permissions flag that are associated with STO
function getPermissions() public viewreturns(bytes32[])
Arguments
Name | Type | Description |
function () external payable
Arguments
Name | Type | Description |