https://github.com/BuiltByMom/dapp
Ajna
Ajnafi UI
- Clone repo https://github.com/BuiltByMom/dapp and run
yarn
to install it
- Add new chain to https://github.com/BuiltByMom/dapp/blob/ae128c521dee4c95a8931e5d7d03eedd2d2a715b/src/constants/config.ts#L4 file
- Add chain to
*SUPPORTED_CHAINS*
constant, either from viem
, either create a new one with defineChain
- prefix is needed for URI chain part
- Redeclaring
*rpcUrls*
is needed if you want custom RPC to be used for users
- Add chain to networks constant with:
ERC20PoolFactory
, ERC721PoolFactory
, PositionManager
, PoolUtils
, AjnaToken
and LenderHelper
- Add WETH address if it exists on the chain and it it’s standard implementation (ie has deposit and withdraw functions)
- Add env variables for custom RPC (optional) and Subgraph
- Run
yarn start
to run the dapp and check if everything loads
- Create a PR with a new chain to the repo