-
Notifications
You must be signed in to change notification settings - Fork 0
VUI
sudo npm install
cp ./react-scripts/config/* ./node_modules/react-scripts/config/
npm start
Generate contract JSON files(read VTCR) and copy into public/contracts/.
Build
npm run build
Notice: since addresses are changed, each time you run truffle migrate, remember to copy all JSON files again and clear browser cache.
- Clone VTCR
git clone https://github.com/ventureum/VTCR.git
- Clone VUI
git clone https://github.com/ventureum/VUI.git
-
Start Ganache GUI, disable auto-mining, set block time to 2 seconds
-
Migrate contracts and copy build artifacts to VUI
cd VTCR
[edit truffle.js] to use 127.0.0.1
truffle migrate --reset
cp -r ./build/contracts ../VUI/public
- Install VUI dependencies
Follow Jenkinsfile
exec steps in 'Install Dependencies'
- Start VUI
cd VUI
npm start
URL: http://localhost:3000/apply
Steps:
- input project name
- click
Submitbutton - confirm the metamask transaction
Notice:
- vth param of
registry.apply()is hard-coded to500000in JS
URL: http://localhost:3000/account
Steps:
- input vote rights amount
- click
Request Voting Rightsbutton - confirm the metamask transaction
URL: http://localhost:3000/account
Steps:
- click
Withdraw VTHbutton - confirm the metamask transaction
URL: http://localhost:3000/projects
Steps:
- click
NextandPrevbuttons
Notice:
- pagination control params are setted in
state
URL: http://localhost:3000/projects
Steps:
- submit a project application at http://localhost:3000/apply
- goto http://localhost:3000/projects
- click
challengebutton - confirm the metamask transaction
URL: http://localhost:3000/projects
Steps:
- challenge a project
- click
commitbutton - input token amount, choose option and click
Download Commitbutton - click
VOTE TObutton - confirm the metamask transaction
URL: Any
Steps:
- click
VTH Faucetlink at top bar - input amount of ETH you want to transfer to VTH
- click
Transfer ETH to VTHbutton - confirm the metamask transaction
- refresh the page
Notice:
- I have added event listeners to all contracts, but currently there is no event after transferring
Description of the bug: Metamask hangs indefinitely after Ganache is restarted. https://github.com/MetaMask/metamask-extension/issues/3881
Steps:
- Disable Metamask Chrome extension, then re-enable it.
- In Metamask Chrome extension -> Settings, click "Reset Account".
- Clear browser cache.