API
Kind: global class
Fixed Swap Object
Param | Type | Description |
web3 | Web3 | |
tokenAddress | Address | |
decimals | Integer | |
contractAddress | Address | ? (opt) |
Set New Owner of the Contract
Kind: global function
Param | Type |
address | string |
Get Owner of the Contract
Kind: global function
Returns:
string
- address
Get Owner of the Contract
Kind: global function
Pause Contract
Kind: global function
Get Token Address
Kind: global function
Returns:
Address
- Token Address
Get Decimals
Kind: global function
Returns:
Integer
- Integer
Unpause Contract
Kind: global function
Get swapratio for the pool
Kind: global function
Returns:
Integer
- trade value against ETH
Get Start Date of Pool
Kind: global function
Get End Date of Pool
Kind: global function
To see if contract was finalized
Kind: global function
Get Individual Minimum Amount for each address
Kind: global function
Get Individual Maximum Amount for each address
Kind: global function
Was Minimum Raise Achieved
Kind: global function
Get Minimum Raise amount for Token Sale
Kind: global function
Returns:
Integer
- Amount in Tokens
Get Total tokens Allocated already, therefore the tokens bought until now
Kind: global function
Returns:
Integer
- Amount in Tokens
Get Total tokens Allocated/In Sale for the Pool
Kind: global function
Returns:
Integer
- Amount in Tokens
See if hasMinimumRaise
Kind: global function
See if minimumRaise was Reached
Kind: global function
Get Total tokens owned by the Pool
Kind: global function
Returns:
Integer
- Amount in Tokens
Get Total tokens available to be sold in the pool
Kind: global function
Returns:
Integer
- Amount in Tokens
Get Total tokens available to be withdrawn by the admin
Kind: global function
Returns:
Integer
- Amount in Tokens
Get Total funds raised to be withdrawn by the admin
Kind: global function
Returns:
Integer
- Amount in ETH
Verify if the Token Swap is atomic on this pool
Kind: global function
Verify if swap has whitelisting
Kind: global function
Verify if address is whitelisted
Kind: global function
Verify if the admin already reemeded unsold tokens
Kind: global function
Verify if the Token Sale is Funded with all Tokens proposed in tokensForSale
Kind: global function
Verify if the Token Sale is Open for Swap
Kind: global function
Verify if the Token Sale has started the Swap
Kind: global function
Verify if the Token Sale has finalized, if the current date is after endDate
Kind: global function
Verify if the Token Sale in not open yet, where the admin can fund the pool
Kind: global function
Get Purchase based on ID
Kind: global function
Returns:
Integer
- _idInteger
- amountAddress
- purchaserInteger
- ethAmountDate
- timestampBoolean
- wasFinalizedBoolean
- revertedParam | Type |
purchase_id | Integer |
Get Whitelisted Addresses
Kind: global function
Returns:
Array
| Address
- addresses
Get Buyers
Kind: global function
Returns:
Array
| Integer
- _ids
Get All Purchase Ids
Kind: global function
Returns:
Array
| Integer
- _ids
Get All Purchase Ids filter by Address/Purchaser
Kind: global function
Returns:
Array
| Integer
- _idsParam | Type |
address | Address |
Get ETH Cost from Tokens Amount
Kind: global function
Returns:
Integer
- ethAmountParam | Type |
tokenAmount | Integer |
Swap tokens by Ethereum
Kind: global function
Param | Type |
tokenAmount | Integer |
Reedem tokens bought
Kind: global function
Param | Type |
purchase_id | Integer |
Reedem Ethereum from sale that did not achieve minimum goal
Kind: global function
Param | Type |
purchase_id | Integer |
Withdraw unsold tokens of sale
Kind: global function
Withdraw all funds from tokens sold
Kind: global function
Approve the pool to use approved tokens for sale
Kind: global function
Verify if the Admin has approved the pool to use receive the tokens for sale
Kind: global function
Param | Type |
tokenAmount | Integer |
address | Address |
Send tokens to pool for sale, fund the sale
Kind: global function
Param | Type |
tokenAmount | Integer |
add WhiteListed Address
Kind: global function
Param | Type |
Addresses | Array | Addresses |
remove WhiteListed Address
Kind: global function
Safe Pull all tokens & ETH
Kind: global function
Remove Tokens from other ERC20 Address (in case of accident)
Kind: global function
Param | Type |
tokenAddress | Address |
toAddress | Address |
Deploy the Pool Contract
Kind: global function
Get owner address of contract
Kind: global function
Param | Type |
Address | Address |
Get Balance of Contract
Kind: global function
Param | Type |
Balance | Integer |
Last modified 2yr ago