EtherToken
fallback
(fallback)
Inputs
(void)
Outputs
(void)
TokenSale
function
changeRegistrationStatus
Restricted (onlyOwner, saleNotInitialized)
Inputs
Parameter | Type | Description |
---|---|---|
target | address | |
isRegistered | bool |
Outputs
(void)
function
changeRegistrationStatuses
Restricted (onlyOwner, saleNotInitialized)
Inputs
Parameter | Type | Description |
---|---|---|
targets | address[] | |
isRegistered | bool |
Outputs
(void)
function
initializeSale
Restricted (saleNotInitialized, onlyOwner, validStartTime, validBaseEthCapPerAddress)
Inputs
Parameter | Type | Description |
---|---|---|
orderAddresses | address[5] | |
orderValues | uint256[6] | |
v | uint8 | |
r | bytes32 | |
s | bytes32 | |
_startTimeInSec | uint256 | |
_baseEthCapPerAddress | uint256 |
Outputs
(void)
function
fillOrderWithEth
Restricted (saleStarted, saleNotFinished, onlyRegistered)
Inputs
(void)
Outputs
(void)
function
getOrderMakerTokenAmount
Inputs
(void)
Outputs
Type | Description |
---|---|
uint256 |
function
getOrderHash
Inputs
(void)
Outputs
Type | Description |
---|---|
bytes32 |
function
isValidSignature
Inputs
Parameter | Type | Description |
---|---|---|
pubKey | address | |
hash | bytes32 | |
v | uint8 | |
r | bytes32 | |
s | bytes32 |
Outputs
Type | Description |
---|---|
bool |
function
getEthCapPerAddress
Inputs
(void)
Outputs
Type | Description |
---|---|
uint256 |
function
getOrderTakerTokenAmount
Inputs
(void)
Outputs
Type | Description |
---|---|
uint256 |
constructor
TokenSale
Inputs
Parameter | Type | Description |
---|---|---|
_exchange | address | |
_protocolToken | address | |
_ethToken | address |
Outputs
(void)
event
SaleFinished
Inputs
Parameter | Type | Description |
---|---|---|
endTimeInSec | uint256 |
Outputs
(void)
event
SaleInitialized
Inputs
Parameter | Type | Description |
---|---|---|
startTimeInSec | uint256 |
Outputs
(void)
function
isSaleInitialized
Inputs
(void)
Outputs
Type | Description |
---|---|
bool |
function
transferOwnership
Inputs
Parameter | Type | Description |
---|---|---|
newOwner | address |
Outputs
(void)
function
TIME_PERIOD_IN_SEC
Inputs
(void)
Outputs
Type | Description |
---|---|
uint256 |
function
baseEthCapPerAddress
Inputs
(void)
Outputs
Type | Description |
---|---|
uint256 |
function
registered
Inputs
Parameter | Type | Description |
---|---|---|
address |
Outputs
Type | Description |
---|---|
bool |
function
startTimeInSec
Inputs
(void)
Outputs
Type | Description |
---|---|
uint256 |
function
contributed
Inputs
Parameter | Type | Description |
---|---|---|
address |
Outputs
Type | Description |
---|---|
uint256 |
function
owner
Inputs
(void)
Outputs
Type | Description |
---|---|
address |
function
isSaleFinished
Inputs
(void)
Outputs
Type | Description |
---|---|
bool |