- setNewOwner(address)
Set New Owner of the Contract
- owner() ⇒
string
Get Owner of the Contract
- isPaused() ⇒
boolean
Get Owner of the Contract
- pauseContract() ⇒
admin
Pause Contract
- erc20() ⇒
Address
Get Token Address
- decimals() ⇒
Integer
Get Decimals
- unpauseContract() ⇒
admin
Unpause Contract
- tradeValue() ⇒
Integer
Get swapratio for the pool
- startDate() ⇒
Date
Get Start Date of Pool
- endDate() ⇒
Date
Get End Date of Pool
- isFinalized() ⇒
Boolean
To see if contract was finalized
- individualMinimumAmount() ⇒
Integer
Get Individual Minimum Amount for each address
- individualMaximumAmount() ⇒
Integer
Get Individual Maximum Amount for each address
- minimumRaiseAchieved() ⇒
Boolean
Was Minimum Raise Achieved
- minimumRaise() ⇒
Integer
Get Minimum Raise amount for Token Sale
- tokensAllocated() ⇒
Integer
Get Total tokens Allocated already, therefore the tokens bought until now
- tokensForSale() ⇒
Integer
Get Total tokens Allocated/In Sale for the Pool
- hasMinimumRaise() ⇒
Boolea
See if hasMinimumRaise
- minimumReached() ⇒
Integer
See if minimumRaise was Reached
- tokensAvailable() ⇒
Integer
Get Total tokens owned by the Pool
- tokensLeft() ⇒
Integer
Get Total tokens available to be sold in the pool
- withdrawableUnsoldTokens() ⇒
Integer
Get Total tokens available to be withdrawn by the admin
- withdrawableFunds() ⇒
Integer
Get Total funds raised to be withdrawn by the admin
- isTokenSwapAtomic() ⇒
Boolean
Verify if the Token Swap is atomic on this pool
- hasWhitelisting() ⇒
Boolean
Verify if swap has whitelisting
- isWhitelisted() ⇒
Boolean
Verify if address is whitelisted
- wereUnsoldTokensReedemed() ⇒
Boolean
Verify if the admin already reemeded unsold tokens
- isFunded() ⇒
Boolean
Verify if the Token Sale is Funded with all Tokens proposed in tokensForSale
- isOpen() ⇒
Boolean
Verify if the Token Sale is Open for Swap
- hasStarted() ⇒
Boolean
Verify if the Token Sale has started the Swap
- hasFinalized() ⇒
Boolean
Verify if the Token Sale has finalized, if the current date is after endDate
- isPreStart() ⇒
Boolean
Verify if the Token Sale in not open yet, where the admin can fund the pool
- getPurchase(purchase_id) ⇒
Integer
|Integer
|Address
|Integer
|Date
|Boolean
|Boolean
Get Purchase based on ID
- getWhiteListedAddresses() ⇒
Array
|Address
Get Whitelisted Addresses
- getBuyers() ⇒
Array
|Integer
Get Buyers
- getPurchaseIds() ⇒
Array
|Integer
Get All Purchase Ids
- getPurchaseIds(address) ⇒
Array
|Integer
Get All Purchase Ids filter by Address/Purchaser
- getETHCostFromTokens(tokenAmount) ⇒
Integer
Get ETH Cost from Tokens Amount
- swap(tokenAmount)
Swap tokens by Ethereum
- redeemTokens(purchase_id)
Reedem tokens bought
- redeemGivenMinimumGoalNotAchieved(purchase_id)
Reedem Ethereum from sale that did not achieve minimum goal
- withdrawUnsoldTokens()
Withdraw unsold tokens of sale
- withdrawFunds()
Withdraw all funds from tokens sold
- approveFundERC20()
Approve the pool to use approved tokens for sale
- isApproved(tokenAmount, address) ⇒
Boolean
Verify if the Admin has approved the pool to use receive the tokens for sale
- fund(tokenAmount)
Send tokens to pool for sale, fund the sale
- addWhitelistedAddress(Addresses)
add WhiteListed Address
- removeWhitelistedAddress()
remove WhiteListed Address
- safePull()
Safe Pull all tokens & ETH
- removeOtherERC20Tokens(tokenAddress, toAddress)
Remove Tokens from other ERC20 Address (in case of accident)
- deploy()
Deploy the Pool Contract
- getOwner(Address)
Get owner address of contract
- getBalance(Balance)
Get Balance of Contract
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
Pause Contract
Get Token Address
Kind: global function
Returns: Address
- Token Address
Get Decimals
Kind: global function
Returns: Integer
- Integer
Unpause Contract
Get swapratio for the pool
Kind: global function
Returns: Integer
- trade value against ETH
Get Start Date of Pool
Get End Date of Pool
To see if contract was finalized
Get Individual Minimum Amount for each address
Get Individual Maximum Amount for each address
Was Minimum Raise Achieved
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
See if minimumRaise was Reached
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
Verify if swap has whitelisting
Verify if address is whitelisted
Verify if the admin already reemeded unsold tokens
Verify if the Token Sale is Funded with all Tokens proposed in tokensForSale
Verify if the Token Sale is Open for Swap
Verify if the Token Sale has started the Swap
Verify if the Token Sale has finalized, if the current date is after endDate
Verify if the Token Sale in not open yet, where the admin can fund the pool
Get Purchase based on ID
Kind: global function
Returns: Integer
- _idInteger
- amountAddress
- purchaserInteger
- ethAmountDate
- timestampBoolean
- wasFinalizedBoolean
- reverted
Param | 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
- _ids
Param | Type |
---|---|
address | Address |
Get ETH Cost from Tokens Amount
Kind: global function
Returns: Integer
- ethAmount
Param | 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
Withdraw all funds from tokens sold
Approve the pool to use approved tokens for sale
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
Safe Pull all tokens & ETH
Remove Tokens from other ERC20 Address (in case of accident)
Kind: global function
Param | Type |
---|---|
tokenAddress | Address |
toAddress | Address |
Deploy the Pool Contract
Get owner address of contract
Kind: global function
Param | Type |
---|---|
Address | Address |
Get Balance of Contract
Kind: global function
Param | Type |
---|---|
Balance | Integer |