Skip to content

Commit

Permalink
Merge pull request #315 from symbiosis-finance/master
Browse files Browse the repository at this point in the history
symbiosis adds new chains
  • Loading branch information
vrtnd authored Dec 11, 2024
2 parents b2aba80 + 4091d02 commit 71cf6c2
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 8 deletions.
19 changes: 17 additions & 2 deletions src/adapters/symbiosis/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,15 @@ export enum ChainId {
ZKLINK_MAINNET = 810180,
CORE_MAINNET = 1116,
TAIKO_MAINNET = 167000,
SEI_EVM_MAINNET = 1329
SEI_EVM_MAINNET = 1329,
ZETACHAIN_MAINNET = 7000,
CRONOS_MAINNET = 25,
FRAXTAL_MAINNET = 252,
GRAVITY_MAINNET = 1625,
BSQUARED_MAINNET = 223,
CRONOS_ZK_MAINNET = 388,
MORPH_MAINNET = 2818,

}
export const AddressZero = "0x0000000000000000000000000000000000000000"

Expand Down Expand Up @@ -60,7 +68,14 @@ export const CHAINS_MAP: Record<ChainId, string> = {
[ChainId.ZKLINK_MAINNET]: 'zklink',
[ChainId.CORE_MAINNET]: 'core',
[ChainId.TAIKO_MAINNET]: 'taiko',
[ChainId.SEI_EVM_MAINNET]: 'sei_v2', // TODO
[ChainId.SEI_EVM_MAINNET]: 'sei_v2', // TODO no chain on defillama bridges
[ChainId.ZETACHAIN_MAINNET]: 'zetachain', // TODO no chain on defillama bridges
[ChainId.CRONOS_MAINNET]: 'cronos',
[ChainId.FRAXTAL_MAINNET]: 'fraxtal', // TODO no chain on defillama bridges
[ChainId.GRAVITY_MAINNET]: 'gravity',
[ChainId.BSQUARED_MAINNET]: 'bsquared',
[ChainId.CRONOS_ZK_MAINNET]: 'cronos_zk', // TODO no chain on defillama bridges
[ChainId.MORPH_MAINNET]: 'morph', // TODO no chain on defillama bridges
}

export const CHAIN_ADAPTER_MAP: Record<string, string> = {
Expand Down
47 changes: 41 additions & 6 deletions src/adapters/symbiosis/contracts.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ChainId } from './constants'
import {ChainId} from './constants';

export const contracts: { chainId: ChainId, portal: string, synthesis: string }[] = [
export const contracts: { chainId: ChainId; portal: string; synthesis: string }[] = [
{
chainId: 1,
portal: '0xb8f275fBf7A959F4BCE59999A2EF122A099e81A8',
Expand Down Expand Up @@ -44,12 +44,12 @@ export const contracts: { chainId: ChainId, portal: string, synthesis: string }[
{
chainId: 324,
portal: '0x4f5456d4d0764473DfCA1ffBB8524C151c4F19b9',
synthesis: '0x0000000000000000000000000000000000000000'
synthesis: '0x07bffC25011901CB01a00127518A154b47eB6e80'
},
{
chainId: 42161,
portal: '0x01A3c8E513B758EBB011F7AFaf6C37616c9C24d9',
synthesis: '0x0000000000000000000000000000000000000000'
synthesis: '0x326adbE46D7E6C1B3927e9309B96DF478bda6D16'
},
{
chainId: 10,
Expand Down Expand Up @@ -145,5 +145,40 @@ export const contracts: { chainId: ChainId, portal: string, synthesis: string }[
chainId: 1329,
portal: '0x292fC50e4eB66C3f6514b9E402dBc25961824D62',
synthesis: '0x0000000000000000000000000000000000000000'
}
] as const;
},
{
chainId: 7000,
portal: '0x8a7F930003BedD63A1ebD99C5917FD6aE7E3dedf',
synthesis: '0x2b7Aa8bDc40B6d3d19d0dE7480c4db8d5B6495e2'
},
{
chainId: 25,
portal: '0xE75C7E85FE6ADd07077467064aD15847E6ba9877',
synthesis: '0x0000000000000000000000000000000000000000'
},
{
chainId: 252,
portal: '0x292fC50e4eB66C3f6514b9E402dBc25961824D62',
synthesis: '0x0000000000000000000000000000000000000000'
},
{
chainId: 1625,
portal: '0x292fC50e4eB66C3f6514b9E402dBc25961824D62',
synthesis: '0x0000000000000000000000000000000000000000'
},
{
chainId: 223,
portal: '0x292fC50e4eB66C3f6514b9E402dBc25961824D62',
synthesis: '0x0000000000000000000000000000000000000000'
},
{
chainId: 388,
portal: '0x2E818E50b913457015E1277B43E469b63AC5D3d7',
synthesis: '0x0000000000000000000000000000000000000000'
},
{
chainId: 2818,
portal: '0x292fC50e4eB66C3f6514b9E402dBc25961824D62',
synthesis: '0x0000000000000000000000000000000000000000'
},
] as const;

0 comments on commit 71cf6c2

Please sign in to comment.