This project contains the main features of the ArcherSwap application.
Official frontend repo of exchange.archerswap.finance. The best AMM+NFT DEX on Core Chain.
yarn
yarn start
The app will be running at http://localhost:3000/
First of all, deploy ArcherswapFactory, MasterChef, BOW PEB20 token and Pairs contracts.
Go to Archerswap-subgraph repo and follow the instruction there, after deploying subgraph proceed to step 3.
3. Deploy Info Portal at info.archerswap.finance
Go to Archerswap-info repo and follow the instruction there, after deploying subgraph proceed to step 4.
4. Deploy Exchange at exchange.exchange.archerswap.finance
Go to Archerswap-exchange repo and follow the instruction there, after deploying subgraph proceed to step 5.
5. Deploy front-end repo at exchange.archerswap.finance
After updating and deploying all parts of the archerswap ecosystem, rightnow comes the last part which is updating front-end repo and deploying it.
First we need to update contracts addresses in different parts of the repo:
Go to src/config/constants/contracts.ts
and update the following addresses:
- masterChef [at 1116 chainID]
- No need to redeploy the multicall contract so leave it as it is.
Go to src/config/constants/tokens.ts
and update the following token address:
- BOW [at 1116 chainID]
Go to src/config/constants/pools.ts
and update the following pools addresses:
- BOW Pool [at 1116 chainID]
- BOW Pool [at 1116 chainID]
Go to src/config/constants/farms.ts
and update the each farm with its corresponding contract address addresses, update each lp with its ArcherswapPair contract address at chainID 1116.
Go to src/apollo/client.js
and update the uri link to match the link of the newly deployed subgraph like this:
uri: 'https://api.thegraph.com/subgraphs/name/nas-pang/pancakeswap' --> uri: 'https://api.thegraph.com/subgraphs/name/username/subgraph-name'
After you finished all necessary modifications, go to project root. Run these commands to build.
yarn
yarn build
After building completion, you will have a deployable build folder at the root called build
..