This repository contains the static files, shared between ambire-common
and the web
and mobile
wallets.
The project uses Yarn.
NodeJS v16.14.0
installed.yarn install
generate:contractInfo
- this script generates contants/humanizerInfo.json
.build
- combines humanizerInfo.json
, tokenList.json
and WALLETInitialClaimableRewards.json
into a single json file (result.json
) and copies adexToStakingTransfers.json
and the newly created result.json
into the build/
folder.predeploy
- runs the build
script. Only used by github actions.deploy
- runs predeploy
deploys all files inside the build/
folder using gh-pages. Only used by github actions.ambire-common
.tokenList.json
- updated manually. Don't forget to run yarn generate:contractInfo && yarn build
after you update it. This is because humanizerInfo has a property called tokenList
that depends on tokenList.json
.humanizerInfo.json
- in order to update this file you have to make changes in scripts/generateContractInfo
. To apply your changes to humanizerInfo.json
run yarn run generate:contractInfo
.yarn run build
. This creates a new file result.json
in the build/
folder, copies adexToStakingTransfers.json
and updates cache.json
. (The github action will automatically build the changes, but you still have to build locally in order to test them)yarn run build
.yarn dev
to start the development server.REACT_APP_CONSTANTS_ENDPOINT
's value to http://localhost:5000/
in the env file of the web app or the equivalent in the mobile app.