0.0.13 • Published 5 years ago

fund-unitizer v0.0.13

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

fund-unitizer

TODO

Setup & Installation

Prerequisites

The following needs to be installed: 1. mongodb 2. node 10.12.0+

The following needs to be running:

Installation

  1. git clone git@github.com:AdharaProjects/fund-unitizer.git
  2. cd fund-unitizer
  3. npm install

Starting the Fund Unitizer API server

  1. npm start

Testing

Unit tests

  1. npm test

Integration tests

  1. get the latest token plus configuration setup
  2. adhara start
  3. Run the following from the demonet folder. It will restart what needs to be restarted and configure the contracts correctly
adhara kill regis* && node scripts/deployConfiguredContracts.js && CURRENCY_CONTRACT_ID=TOKEN_ZAR UNITS_CONTRACT_ID=TOKEN_UNITS MARKET_MAKER_UNITS_CONTRACT_ID=MARKET_MAKER_UNITS MARKET_MAKER_CURRENCY_CONTRACT_ID=MARKET_MAKER_ZAR node scripts/zarx/setupMarketMakersForNewFund.js && adhara restart token-proxy-*
  1. USE_MOCK_APIS_IN_TESTS=false npm test