-
Notifications
You must be signed in to change notification settings - Fork 0
VUI Testing
1, In MetaMask create 7 accounts (Root, Owner, Voter, Purchaser, Regulator1, Regulator2, Regulator3)
2, run ganache-cli -e 100000000000000
3, Add first address(ganache root) to MetaMask (by Import Private Key)
4, In ventureum/solidity, script: truffle exec script/initTransfer.js, change the account addresses to
the 7 accounts created by step 2
5, In VUI/.env line 1, change REACT_APP_ROOT_ADDRESS to ganache root address
6, In VUI/.env line 2, change REACT_APP_MOCK_REGULATOR_ADDRESS to address of Regulator1, Regulator2, and Regulator3
1, In VUI, run npm install
2, run cp ./react-scripts/config/* ./node_modules/react-scripts/config/
3, run cp ./react-css-modules/dist/extendReactClass.js ./node_modules/react-css-modules/dist/
4, run cp ./react-jsonschema-form/lib/components/widgets/AltDateWidget.js ./node_modules/react-jsonschema-form/lib/components/widgets/
5, In Ventureum/solidity, run truffle compile , then truffle migrate --reset , then copy the contract to VUI, cp -r ./build/contracts ../../VUI/public
6, run npm start
1, choose Owner account, VTX Faucet 5000000 VTX
2, fill in Project Name, Start Time and End Time then submit
(if not test VTCR part)
3, In project page, choose CHALLENGE, challenge the project.
4, wait about 2 minutes until the button become RESOLVE CHALLENGE, click RESOLVE CHALLENGE
(If want skip step3, step4, you can await about 5 minus until the challenge end, then switch meta-mask network to reload meta-mask and click WHITELIST)
5, click VIEW - Add Milestone , in Add Milestone page, add two objects then submit
- First object: name go by
Achieve 10,000 TPS on the blockchain, type go byTechnical Development, Ether-Lock go by100 - Second object: name go by
List the coin on at least 2 of the top 10 cryto exchanges based on trading volume., type go byBusiness Development, Ether-Lock go by100
6, Add Milestone again, in Add Milestone page, add two objects then submit
- First object: name go by
Achieve 50,000 TPS on the blockchain, type go byTechnical Development, Ether-Lock go by100 - Second object: name go by
List the coin on at least 4 of the top 10 cryto exchanges based on trading volume., type go byBusiness Development, Ether-Lock go by100
7, in Project page, START TOKEN SALE, input Token Address, Rate(1) and Total Token(1000000) you wanna to sale
8, choose Purchaser account, BUY TOKEN (500000)
9, choose Owner account, STOP TOKEN SALE
10, click WITHDRAW REST TOKEN, should receive rest token that not sold (500000)
11, click VIEW , activate first milestone , ETH locked in milestone set to 1000
minimum start time set to 1 minutes, maximum start time set to 5 hours,
12, wait about 1 minutes, and click VIEW, start voting poll first milestone
Start Time set to Now + 1 mins, End time set to Now + 3 mins
13, wait about 1 minutes, in milestone page(VIEW), click write available votes
14, choose Voter account, in Milestone Info page,
- vote
Technical Developmentregulator1(100), regulator2(50); - vote
Business Developmentregulator1(200), regulator2(50);
15, choose Owner account, click start rating stage
16, choose Regulator1 account, in Milestone Info page, bid both objects
17, choose Regulator2 account, in Milestone Info page, bid both objects
18, Increase time 50 days
19, choose Owner account, in Milestone Info page, finalize all bid
20, choose Regulator1 account, in Milestone Info page, withdraw reward for both objects
21, choose Regulator2 account, in Milestone Info page, withdraw reward for both objects
22, Increase time 5 days
23, choose Purchaser account, start refund
24, In Project View page, click refund, refund number of tokens worth 500 eth.
25, Increase time 6 days
26, choose Owner account, in Project View page, activate second milestone (milestone2) same as step 11 to step 24
(after finalize first milestone, Owner can withdraw rest wei locked)