The frontend can be found here: packages/app
The backend can be found here packages/sol
first, bootstrap the repository
yarn bootstrap
then, if you want to run the web app, first copy the contents of.env.example
file located in the app
package into a new file called .env
, then
yarn start
The app will then be available at http://localhost:8080/
If you want to compile contracts, run
yarn compile
If you want to run backend tests, run
yarn test
first, replace the properties in the packages/sol/.env
file with the proper values.
CAPL_CAP=[CAPL CAP limit(probably 100000000000000000000000000)]
LP_TOKEN_ADDRESS=[TreasuryShare token address(USDC-CAPL Token Pool)]
PRIVATE_KEY=[Metamask PrivateKey]
INFURA_ID=[Infura Project ID]
In order to deploy the account (private key) used for deployment must have admin access to the CAPL token. In order to deploy the contracts, CAPL must have already been deployed
There are three chains currently supported:
kovan
yarn deploy-testnet-kovan
fantom testnet
yarn deploy-testnet-fantom
fantom
yarn deploy-fantom
.config.js
file located in the sol
package into packages/app/src/constants