Skip to content

Commit

Permalink
feat: add sonic and zksync to many quote sources
Browse files Browse the repository at this point in the history
  • Loading branch information
0xsambugs committed Jan 20, 2025
1 parent 32e9fe1 commit fbf623b
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,24 @@ export const Chains = {
publicRPCs: ['https://rpc.mantle.xyz', 'https://rpc.ankr.com/mantle', 'https://mantle.drpc.org'],
explorer: 'https://explorer.mantle.xyz/',
},
SONIC: {
chainId: 146,
name: 'Sonic',
ids: ['sonic'],
nativeCurrency: { symbol: 'S', name: 'Sonic' },
wToken: '0x039e2fb66102314ce7b64ce5ce3e5183bc94ad38',
publicRPCs: ['https://sonic-rpc.publicnode.com', 'https://rpc.soniclabs.com', 'https://sonic.drpc.org'],
explorer: ' https://sonicscan.org/',
},
ZK_SYNC_ERA: {
chainId: 324,
name: 'ZK Sync Era',
ids: ['zksync'],
nativeCurrency: { symbol: 'ETH', name: 'Ethereum' },
wToken: '0x5aea5775959fbc2557cc8789bc1bf90a239d9a91',
publicRPCs: ['https://zksync.meowrpc.com', 'https://mainnet.era.zksync.io'],
explorer: 'https://explorer.zksync.io/',
},
ETHEREUM_GOERLI: {
chainId: 5,
name: 'Ethereum Goerli',
Expand Down
1 change: 1 addition & 0 deletions src/services/quotes/quote-sources/1inch-quote-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const ONE_INCH_METADATA: QuoteSourceMetadata<OneInchSupport> = {
Chains.KAIA.chainId,
Chains.AURORA.chainId,
Chains.BASE.chainId,
Chains.ZK_SYNC_ERA.chainId,
],
swapAndTransfer: true,
buyOrders: false,
Expand Down
2 changes: 2 additions & 0 deletions src/services/quotes/quote-sources/kyberswap-quote-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const SUPPORTED_CHAINS: Record<ChainId, string> = {
[Chains.SCROLL.chainId]: 'scroll',
[Chains.BLAST.chainId]: 'blast',
[Chains.MANTLE.chainId]: 'mantle',
[Chains.SONIC.chainId]: 'sonic',
[Chains.ZK_SYNC_ERA.chainId]: 'zksync',
};

const KYBERSWAP_METADATA: QuoteSourceMetadata<KyberswapSupport> = {
Expand Down
1 change: 1 addition & 0 deletions src/services/quotes/quote-sources/li-fi-quote-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const LI_FI_METADATA: QuoteSourceMetadata<LiFiSupport> = {
Chains.SCROLL.chainId,
Chains.BLAST.chainId,
Chains.MANTLE.chainId,
Chains.ZK_SYNC_ERA.chainId,
],
swapAndTransfer: true,
buyOrders: false,
Expand Down
1 change: 1 addition & 0 deletions src/services/quotes/quote-sources/magpie-quote-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const SUPPORTED_CHAINS: Record<ChainId, string> = {
[Chains.SCROLL.chainId]: 'scroll',
[Chains.METIS_ANDROMEDA.chainId]: 'metis',
[Chains.FANTOM.chainId]: 'fantom',
[Chains.SONIC.chainId]: 'sonic',
};

const MAGPIE_METADATA: QuoteSourceMetadata<MagpieSupport> = {
Expand Down
2 changes: 2 additions & 0 deletions src/services/quotes/quote-sources/odos-quote-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const ODOS_METADATA: QuoteSourceMetadata<OdosSupport> = {
Chains.LINEA.chainId,
Chains.MANTLE.chainId,
Chains.SCROLL.chainId,
Chains.SONIC.chainId,
Chains.ZK_SYNC_ERA.chainId,
],
swapAndTransfer: true,
buyOrders: false,
Expand Down

0 comments on commit fbf623b

Please sign in to comment.