Skip to content

VicMaster provides a master professional level UI that brings governance power back to the users. VicMaster allows users to vote for masternodes and apply to become a candidate

License

Notifications You must be signed in to change notification settings

BuildOnViction/tomomaster

Folders and files

NameName
Last commit message
Last commit date
Nov 21, 2023
Jun 3, 2019
Jan 4, 2024
Aug 14, 2024
Dec 20, 2019
Oct 30, 2024
Dec 3, 2018
Apr 9, 2024
Nov 16, 2023
Nov 16, 2023
Oct 18, 2018
Sep 26, 2023
Dec 5, 2018
Oct 18, 2018
Jul 18, 2018
Nov 16, 2020
Jun 5, 2018
Aug 19, 2018
Apr 27, 2018
Jan 9, 2019
Oct 27, 2020
Oct 27, 2020
Nov 11, 2020
Oct 25, 2023
Jun 28, 2018
Nov 16, 2023
Aug 6, 2018
May 22, 2018
Jun 2, 2023
Jan 4, 2024
Sep 26, 2023
Dec 3, 2018
Nov 11, 2020
Nov 16, 2023
Nov 16, 2023
Aug 8, 2019
May 4, 2018
Nov 29, 2023
Nov 29, 2023
Sep 25, 2023
Oct 4, 2018
Nov 16, 2020
Jul 19, 2019

Repository files navigation

TomoChain Governance DApp

GitHub version Build Status devDependencies Status JavaScript Style Guide: Good Parts Coverage Status Join the chat at https://gitter.im/tomochain/tomomaster

This is Governance Dapp for TomoChain. Full-Node can apply to become a candidate for masternode. Coin Holder can vote for candidates to become masternodes. See the detail from technical Whitepaper: https://docs.tomochain.com/whitepaper/](https://docs.tomochain.com/whitepaper/)

Requirements

Config

cp config/default.json config/local.json
  • Update local.json file to support your environment
    • Update mnemonic
    • Update mongodb configuration:
      • For docker: "db": { "uri": "mongodb://mongodb:27017/governance" },
      • For localhost: "db": { "uri": "mongodb://localhost:27017/governance" },

Install

npm install
truffle deploy --reset --network tomo # only use this command if you want to connect to a private network
cp abis/*json build/contracts/

Note: before deploying to tomochain testnet, make sure you have VIC in the wallet. If not, get free at https://faucet.tomochain.com

Enable https

npm run dev-https

Run

  • Start mongodb
  • Start TomoMaster
npm run dev

The site will run at http://localhost:3000

Test

npm run test

Or run command

truffle test

Test a special file

npm run test path_to_file/file.js

Or run command

truffle test path_to_file/file.js