Skip to content

Commit c3eeb6c

Browse files
authored
Merge pull request #2607 from zekraken-bot/xlayer-support
add xlayer support
2 parents c0325b8 + 200b5aa commit c3eeb6c

File tree

5 files changed

+22
-0
lines changed

5 files changed

+22
-0
lines changed

src/config/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import fraxtal from './fraxtal'
1414
import mode from './mode'
1515
import sonic from './sonic'
1616
import plasma from './plasma'
17+
import xlayer from './xlayer'
1718

1819
const config: Configs = {
1920
[Network.Arbitrum]: arbitrum,
@@ -31,6 +32,7 @@ const config: Configs = {
3132
[Network.Sonic]: sonic,
3233
[Network.HyperEVM]: hyperevm,
3334
[Network.Plasma]: plasma,
35+
[Network.XLayer]: xlayer,
3436
}
3537

3638
export default config

src/config/xlayer.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export default {
2+
name: 'xlayer',
3+
rpc: `https://lb.drpc.org/ogrpc?network=xlayer&dkey=${process.env.DRPC_KEY}`,
4+
coingecko: {
5+
platformId: 'xlayer',
6+
},
7+
trustWalletNetwork: 'xlayer',
8+
addresses: {
9+
multicaller: '0xca11bde05977b3631167028862be2a173976ca11',
10+
},
11+
}

src/tokenlists/balancer/tokens.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import fraxtal from './tokens/fraxtal'
1414
import mode from './tokens/mode'
1515
import sonic from './tokens/sonic'
1616
import plasma from './tokens/plasma'
17+
import xlayer from './tokens/xlayer'
1718

1819
export const tokens: TokensForList = {
1920
[Network.Ethereum]: ethereum,
@@ -31,4 +32,5 @@ export const tokens: TokensForList = {
3132
[Network.Sonic]: sonic,
3233
[Network.HyperEVM]: hyperevm,
3334
[Network.Plasma]: plasma,
35+
[Network.XLayer]: xlayer,
3436
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default [
2+
'0xe538905cf8410324e03A5A23C1c177a474D59b2b', // wrapped OKB
3+
'0x779Ded0c9e1022225f8E0630b35a9b54bE713736', // USDT0
4+
'0x4ae46a509F6b1D9056937BA4500cb143933D2dc8', // USDG
5+
'0xb7C00000bcDEeF966b20B3D884B98E64d2b06b4f', // xBTC
6+
]

src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export enum Network {
1616
Mode = '34443',
1717
Sonic = '146',
1818
Plasma = '9745',
19+
XLayer = '196',
1920
}
2021

2122
export interface Config {

0 commit comments

Comments
 (0)