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