Skip to content

Commit

Permalink
Add sonic
Browse files Browse the repository at this point in the history
  • Loading branch information
prevostc committed Dec 20, 2024
1 parent dba7fc5 commit 8043760
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,14 @@ http://localhost:4000/api/v1/vaults/arbitrum/harvests/1712591753?vaults=0xeea411
https://clm-api.beefy.finance/api/v1/status
http://localhost:4000/api/v1/status


# add a new chain

- Add the chain to `src/config/chains.ts`
- `npm run test` and fix errs
- `npm run format`
- `npm run dev`
- http://localhost:4000/api/v1/status
- http://localhost:4000/api/v1/vaults/:chain/1d
- http://localhost:4000/api/v1/investor/:address/timeline

19 changes: 10 additions & 9 deletions src/config/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,22 @@ import { StringEnum } from '../utils/typebox';

export enum ChainId {
arbitrum = 'arbitrum',
avax = 'avax',
base = 'base',
optimism = 'optimism',
moonbeam = 'moonbeam',
bsc = 'bsc',
linea = 'linea',
polygon = 'polygon',
zksync = 'zksync',
lisk = 'lisk',
manta = 'manta',
mantle = 'mantle',
sei = 'sei',
bsc = 'bsc',
avax = 'avax',
mode = 'mode',
moonbeam = 'moonbeam',
optimism = 'optimism',
polygon = 'polygon',
rootstock = 'rootstock',
scroll = 'scroll',
mode = 'mode',
lisk = 'lisk',
sei = 'sei',
sonic = 'sonic',
zksync = 'zksync',
}

export const allChainIds: Array<ChainId> = Object.values(ChainId);
Expand Down

0 comments on commit 8043760

Please sign in to comment.