show example

This commit is contained in:
Roman Storm 2017-11-09 21:51:31 -08:00
parent 102eca3268
commit 1cfd3a0142
1 changed files with 20 additions and 1 deletions

View File

@ -4,6 +4,25 @@
[Full Test Report](https://rstormsf.github.io/oracles-presale/mochawesome.html)
To use:
1. Flat [contracts/PresaleOracles.sol](contracts/PresaleOracles.sol) by using github.com/oraclesorg/oracles-combine-solidity/commits/master
2. Deploy [flat file](flat/PresaleOracles_flat.sol)
3. Call `initialize` with following params:
-startTime in unix format
-endTime in unix format
-cap in wei format
-vault (eth address where funds will be collected)
Example:
"1510291574","1610291574","100000000000000000000","0x0039f22efb07a647557c7c5d17854cfd6d489ef3"
startTime: Friday, November 10, 2017 5:26:14 AM
endTime: Sunday, January 10, 2021 3:12:54 PM
cap: 100 eth
vault: 0x0039f22efb07a647557c7c5d17854cfd6d489ef3
4. Whitelist investors by calling `whitelistInvestors` with array of addresses. Example:
["0x62D9FB3358B4b83dB0280Eacc6a0fA5C6dDc7B4d","0xc15Ac3555FD6d6b569B9762D5289A3cc31325B1b"]
5. Let whitelisted investors send money to contract's address
```
·------------------------------------------------------------------------|-----------------------------------·
│ Gas · Block limit: 17592186044415 gas │
@ -32,7 +51,7 @@
22 passing (3m)
```
#Testnet deployment
# Testnet deployment
Contract Deployment: https://kovan.etherscan.io/address/0x19001af36808e4c573a237bfc58ce282616f05b3#code