make keys.json
{
"account": {
"privateKey": "c7d02615--",
"privateKeyAdmin": "c7d02615--"
}
}
- $ npm install
- $ node
createCONSTANTS.js
ornpm run europa
to populate theConstants.json
with the latest token pairs and stableswap data - set
rpc
andprivateKey
within any script - run any script from
/scripts
or bots from/robots
- run rest api server : see below
npm install
- create new file
.env
and addPORT=3000
npm run testnet
ornpm run europa
to build the Constants.json (if both networks need to run simultaneously, git clone repo in a new folder)npm run crawlers
(collects data and runs api service)
- Daily Tasks:
- run the api-server locally, and then compare with prod -
node scripts/popular/compareAPIdata
Rest API Server
:
base url api/v1/
located server/index.js
at line 9
base/
:
node: v14.17.0 npm: 6.14.13