The following actions need to be carried out in order to add a new chain to Axis:
- Deploy the smart contracts to the new chain
- Add the new chain config to the subgraph repo
- Deploy the subgraph
- Obtain an RPC URL for the new chain from your RPC provider (e.g. Alchemy)
- Add the new chain and deployment configuration to the deployments package
- Add a cloak watcher to the cloak package
- Confirm the new deployments package has been published to NPM
- Consume the new deployments package version inside launchpad and standalone
- Test the
launchpadandstandalonedapp using the new chain:pnpm dev
Each chain requires the Axis smart contracts to be deployed. This is handled from the respective contract repos:
The subgraph needs to be updated to include the new chain. This is achieved by updating the networks.json file in the subgraph package.
See the subgraph README for more information.
Once the the new chain config has been added to the subgraph repo, the new subgraph can be deployed. This is done by following the subgraph README.
This is a manual process. The RPC URL for the new chain needs to be obtained from your RPC provider (Alchemy, Infura, etc.). Axis currently uses Alchemy.
The deployments package needs to be updated to include the new chain.
See the deployments README for how to do this.
The cloak package needs to be updated to include the new chain. This is achieved by updating the cloak.json file in the cloak package.
See the cloak README for more information.
Make sure you've updated launchpad and standalone @axis-finance/deployments dependency to the new published version, then run pnpm i to install the new dependencies, and pnpm dev to test the dapp using the new chain.