-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #209 from symbiosis-finance/master
symbiosis refactored the adapter, auto regenerated the config
- Loading branch information
Showing
3 changed files
with
257 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
export enum ChainId { | ||
ETH_MAINNET = 1, | ||
BSC_MAINNET = 56, | ||
MATIC_MAINNET = 137, | ||
AVAX_MAINNET = 43114, | ||
BOBA_MAINNET = 288, | ||
BOBA_BNB = 56288, | ||
TELOS_MAINNET = 40, | ||
KAVA_MAINNET = 2222, | ||
ZKSYNC_MAINNET = 324, | ||
ARBITRUM_MAINNET = 42161, | ||
ARBITRUM_NOVA = 42170, | ||
OPTIMISM_MAINNET = 10, | ||
POLYGON_ZK = 1101, | ||
TRON_MAINNET = 728126428, | ||
LINEA_MAINNET = 59144, | ||
MANTLE_MAINNET = 5000, | ||
BASE_MAINNET = 8453, | ||
SCROLL_MAINNET = 534352, | ||
MANTA_MAINNET = 169, | ||
METIS_MAINNET = 1088, | ||
BAHAMUT_MAINNET = 5165, | ||
MODE_MAINNET = 34443, | ||
RSK_MAINNET = 30, | ||
BLAST_MAINNET = 81457, | ||
MERLIN_MAINNET = 4200, | ||
ZKLINK_MAINNET = 810180, | ||
CORE_MAINNET = 1116, | ||
TAIKO_MAINNET = 167000, | ||
SEI_EVM_MAINNET = 1329 | ||
} | ||
export const AddressZero = "0x0000000000000000000000000000000000000000" | ||
|
||
export const CHAINS_MAP: Record<ChainId, string> = { | ||
[ChainId.ETH_MAINNET]: 'ethereum', | ||
[ChainId.BSC_MAINNET]: 'bsc', | ||
[ChainId.AVAX_MAINNET]: 'avax', | ||
[ChainId.MATIC_MAINNET]: 'polygon', | ||
[ChainId.TELOS_MAINNET]: 'telos', | ||
[ChainId.KAVA_MAINNET]: 'kava', | ||
[ChainId.BOBA_MAINNET]: 'boba', | ||
[ChainId.BOBA_BNB]: 'boba_bnb', | ||
[ChainId.ZKSYNC_MAINNET]: 'era', | ||
[ChainId.ARBITRUM_MAINNET]: 'arbitrum', | ||
[ChainId.OPTIMISM_MAINNET]: 'optimism', | ||
[ChainId.ARBITRUM_NOVA]: 'arbitrum_nova', | ||
[ChainId.POLYGON_ZK]: 'polygon_zkevm', | ||
[ChainId.LINEA_MAINNET]: 'linea', | ||
[ChainId.MANTLE_MAINNET]: 'mantle', | ||
[ChainId.BASE_MAINNET]: 'base', | ||
[ChainId.TRON_MAINNET]: 'tron', | ||
[ChainId.SCROLL_MAINNET]: 'scroll', | ||
[ChainId.MANTA_MAINNET]: 'manta', | ||
[ChainId.METIS_MAINNET]: 'metis', | ||
[ChainId.MODE_MAINNET]: 'mode', | ||
[ChainId.BAHAMUT_MAINNET]: 'bahamut', | ||
[ChainId.RSK_MAINNET]: 'rsk', | ||
[ChainId.BLAST_MAINNET]: 'blast', | ||
[ChainId.MERLIN_MAINNET]: 'merlin', | ||
[ChainId.ZKLINK_MAINNET]: 'zklink', | ||
[ChainId.CORE_MAINNET]: 'core', | ||
[ChainId.TAIKO_MAINNET]: 'taiko', | ||
[ChainId.SEI_EVM_MAINNET]: 'sei_v2', // TODO | ||
} | ||
|
||
export const CHAIN_ADAPTER_MAP: Record<string, string> = { | ||
'avax': 'avalanche', | ||
'boba_bnb': 'boba bnb', | ||
'era': 'zksync era', | ||
'arbitrum_nova': 'arbitrum nova', | ||
'polygon_zkevm': 'polygon zkevm', | ||
'rsk': 'rootstock', | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,106 +1,149 @@ | ||
export const contracts = { | ||
ethereum: { | ||
portal: "0xb8f275fBf7A959F4BCE59999A2EF122A099e81A8", | ||
synthesis: null, | ||
}, | ||
bsc: { | ||
portal: "0x5Aa5f7f84eD0E5db0a4a85C3947eA16B53352FD4", | ||
synthesis: "0x6B1bbd301782FF636601fC594Cd7Bfe74871bfaA", | ||
}, | ||
avax: { | ||
portal: "0xE75C7E85FE6ADd07077467064aD15847E6ba9877", | ||
synthesis: null, | ||
}, | ||
polygon: { | ||
portal: "0xb8f275fBf7A959F4BCE59999A2EF122A099e81A8", | ||
synthesis: null, | ||
}, | ||
telos: { | ||
portal: "0xb8f275fBf7A959F4BCE59999A2EF122A099e81A8", | ||
synthesis: "0x1a039cE63AE35a67Bf0E9F6DbFaE969639D59eC8", | ||
}, | ||
kava: { | ||
portal: "0x292fC50e4eB66C3f6514b9E402dBc25961824D62", | ||
synthesis: null, | ||
}, | ||
boba: { | ||
portal: "0xb8f275fBf7A959F4BCE59999A2EF122A099e81A8", | ||
synthesis: null, | ||
}, | ||
boba_bnb: { | ||
portal: null, | ||
synthesis: "0xb8f275fBf7A959F4BCE59999A2EF122A099e81A8", | ||
}, | ||
era: { | ||
portal: "0x4f5456d4d0764473DfCA1ffBB8524C151c4F19b9", | ||
synthesis: null, | ||
}, | ||
arbitrum: { | ||
portal: "0x01A3c8E513B758EBB011F7AFaf6C37616c9C24d9", | ||
synthesis: null, | ||
}, | ||
optimism: { | ||
portal: "0x292fC50e4eB66C3f6514b9E402dBc25961824D62", | ||
synthesis: null, | ||
}, | ||
arbitrum_nova: { | ||
portal: "0x292fC50e4eB66C3f6514b9E402dBc25961824D62", | ||
synthesis: null, | ||
}, | ||
polygon_zkevm: { | ||
portal: "0x292fC50e4eB66C3f6514b9E402dBc25961824D62", | ||
synthesis: null, | ||
}, | ||
linea: { | ||
portal: "0x292fC50e4eB66C3f6514b9E402dBc25961824D62", | ||
synthesis: null, | ||
}, | ||
mantle: { | ||
portal: "0x292fC50e4eB66C3f6514b9E402dBc25961824D62", | ||
synthesis: null, | ||
}, | ||
base: { | ||
portal: "0xEE981B2459331AD268cc63CE6167b446AF4161f8", | ||
synthesis: null, | ||
}, | ||
tron: { | ||
portal: "0xd83b5752b42856a08087748de6095af0be52d299", | ||
synthesis: null, | ||
}, | ||
scroll: { | ||
portal: "0x5Aa5f7f84eD0E5db0a4a85C3947eA16B53352FD4", | ||
synthesis: null, | ||
}, | ||
manta: { | ||
portal: "0x5Aa5f7f84eD0E5db0a4a85C3947eA16B53352FD4", | ||
synthesis: null, | ||
}, | ||
metis: { | ||
portal: "0xd8db4fb1fEf63045A443202d506Bcf30ef404160", | ||
synthesis: null, | ||
}, | ||
mode: { | ||
portal: "0x292fC50e4eB66C3f6514b9E402dBc25961824D62", | ||
synthesis: null, | ||
}, | ||
bahamut: { | ||
portal: "0x318C2B9a03C37702742C3d40C72e4056e430135A", | ||
synthesis: "0xB79A4F5828eb55c10D7abF4bFe9a9f5d11aA84e0", | ||
}, | ||
rsk: { | ||
portal: "0x5aa5f7f84ed0e5db0a4a85c3947ea16b53352fd4", | ||
synthesis: null, | ||
}, | ||
blast: { | ||
portal: "0x5Aa5f7f84eD0E5db0a4a85C3947eA16B53352FD4", | ||
synthesis: null, | ||
}, | ||
merlin: { | ||
portal: "0x292fC50e4eB66C3f6514b9E402dBc25961824D62", | ||
synthesis: null, | ||
}, | ||
zklink: { | ||
portal: "0x8Dc71561414CDcA6DcA7C1dED1ABd04AF474D189", | ||
synthesis: null, | ||
}, | ||
} as const; | ||
import { ChainId } from './constants' | ||
|
||
export const contracts: { chainId: ChainId, portal: string, synthesis: string }[] = [ | ||
{ | ||
chainId: 1, | ||
portal: '0xb8f275fBf7A959F4BCE59999A2EF122A099e81A8', | ||
synthesis: '0x0000000000000000000000000000000000000000' | ||
}, | ||
{ | ||
chainId: 56, | ||
portal: '0x5Aa5f7f84eD0E5db0a4a85C3947eA16B53352FD4', | ||
synthesis: '0x6B1bbd301782FF636601fC594Cd7Bfe74871bfaA' | ||
}, | ||
{ | ||
chainId: 43114, | ||
portal: '0xE75C7E85FE6ADd07077467064aD15847E6ba9877', | ||
synthesis: '0x0000000000000000000000000000000000000000' | ||
}, | ||
{ | ||
chainId: 137, | ||
portal: '0xb8f275fBf7A959F4BCE59999A2EF122A099e81A8', | ||
synthesis: '0x0000000000000000000000000000000000000000' | ||
}, | ||
{ | ||
chainId: 40, | ||
portal: '0xb8f275fBf7A959F4BCE59999A2EF122A099e81A8', | ||
synthesis: '0x1a039cE63AE35a67Bf0E9F6DbFaE969639D59eC8' | ||
}, | ||
{ | ||
chainId: 2222, | ||
portal: '0x292fC50e4eB66C3f6514b9E402dBc25961824D62', | ||
synthesis: '0x0000000000000000000000000000000000000000' | ||
}, | ||
{ | ||
chainId: 288, | ||
portal: '0xb8f275fBf7A959F4BCE59999A2EF122A099e81A8', | ||
synthesis: '0x0000000000000000000000000000000000000000' | ||
}, | ||
{ | ||
chainId: 56288, | ||
portal: '0x0000000000000000000000000000000000000000', | ||
synthesis: '0xb8f275fBf7A959F4BCE59999A2EF122A099e81A8' | ||
}, | ||
{ | ||
chainId: 324, | ||
portal: '0x4f5456d4d0764473DfCA1ffBB8524C151c4F19b9', | ||
synthesis: '0x0000000000000000000000000000000000000000' | ||
}, | ||
{ | ||
chainId: 42161, | ||
portal: '0x01A3c8E513B758EBB011F7AFaf6C37616c9C24d9', | ||
synthesis: '0x0000000000000000000000000000000000000000' | ||
}, | ||
{ | ||
chainId: 10, | ||
portal: '0x292fC50e4eB66C3f6514b9E402dBc25961824D62', | ||
synthesis: '0x0000000000000000000000000000000000000000' | ||
}, | ||
{ | ||
chainId: 42170, | ||
portal: '0x292fC50e4eB66C3f6514b9E402dBc25961824D62', | ||
synthesis: '0x0000000000000000000000000000000000000000' | ||
}, | ||
{ | ||
chainId: 1101, | ||
portal: '0x292fC50e4eB66C3f6514b9E402dBc25961824D62', | ||
synthesis: '0x0000000000000000000000000000000000000000' | ||
}, | ||
{ | ||
chainId: 59144, | ||
portal: '0x292fC50e4eB66C3f6514b9E402dBc25961824D62', | ||
synthesis: '0x0000000000000000000000000000000000000000' | ||
}, | ||
{ | ||
chainId: 5000, | ||
portal: '0x292fC50e4eB66C3f6514b9E402dBc25961824D62', | ||
synthesis: '0x0000000000000000000000000000000000000000' | ||
}, | ||
{ | ||
chainId: 8453, | ||
portal: '0xEE981B2459331AD268cc63CE6167b446AF4161f8', | ||
synthesis: '0x0000000000000000000000000000000000000000' | ||
}, | ||
{ | ||
chainId: 728126428, | ||
portal: '0xd83b5752b42856a08087748de6095af0be52d299', | ||
synthesis: '0x0000000000000000000000000000000000000000' | ||
}, | ||
{ | ||
chainId: 534352, | ||
portal: '0x5Aa5f7f84eD0E5db0a4a85C3947eA16B53352FD4', | ||
synthesis: '0x0000000000000000000000000000000000000000' | ||
}, | ||
{ | ||
chainId: 169, | ||
portal: '0x5Aa5f7f84eD0E5db0a4a85C3947eA16B53352FD4', | ||
synthesis: '0x0000000000000000000000000000000000000000' | ||
}, | ||
{ | ||
chainId: 1088, | ||
portal: '0xd8db4fb1fEf63045A443202d506Bcf30ef404160', | ||
synthesis: '0x0000000000000000000000000000000000000000' | ||
}, | ||
{ | ||
chainId: 5165, | ||
portal: '0x318C2B9a03C37702742C3d40C72e4056e430135A', | ||
synthesis: '0xB79A4F5828eb55c10D7abF4bFe9a9f5d11aA84e0' | ||
}, | ||
{ | ||
chainId: 34443, | ||
portal: '0x292fC50e4eB66C3f6514b9E402dBc25961824D62', | ||
synthesis: '0x0000000000000000000000000000000000000000' | ||
}, | ||
{ | ||
chainId: 30, | ||
portal: '0x5aa5f7f84ed0e5db0a4a85c3947ea16b53352fd4', | ||
synthesis: '0x0000000000000000000000000000000000000000' | ||
}, | ||
{ | ||
chainId: 81457, | ||
portal: '0x5Aa5f7f84eD0E5db0a4a85C3947eA16B53352FD4', | ||
synthesis: '0x0000000000000000000000000000000000000000' | ||
}, | ||
{ | ||
chainId: 4200, | ||
portal: '0x292fC50e4eB66C3f6514b9E402dBc25961824D62', | ||
synthesis: '0x0000000000000000000000000000000000000000' | ||
}, | ||
{ | ||
chainId: 810180, | ||
portal: '0x8Dc71561414CDcA6DcA7C1dED1ABd04AF474D189', | ||
synthesis: '0x0000000000000000000000000000000000000000' | ||
}, | ||
{ | ||
chainId: 1116, | ||
portal: '0x292fC50e4eB66C3f6514b9E402dBc25961824D62', | ||
synthesis: '0x0000000000000000000000000000000000000000' | ||
}, | ||
{ | ||
chainId: 167000, | ||
portal: '0x5Aa5f7f84eD0E5db0a4a85C3947eA16B53352FD4', | ||
synthesis: '0x0000000000000000000000000000000000000000' | ||
}, | ||
{ | ||
chainId: 1329, | ||
portal: '0x292fC50e4eB66C3f6514b9E402dBc25961824D62', | ||
synthesis: '0x0000000000000000000000000000000000000000' | ||
} | ||
] as const; |
Oops, something went wrong.