Skip to content

Commit aa00644

Browse files
authored
Merge pull request #28 from cometh-hq/develop
update: new networks
2 parents 0ea30f5 + 35db52c commit aa00644

File tree

4 files changed

+46
-13
lines changed

4 files changed

+46
-13
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cometh/connect-sdk-viem",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"main": "dist/index.js",
55
"types": "dist/index.d.ts",
66
"description": "Viem SDK Cometh Connect",
@@ -60,7 +60,7 @@
6060
},
6161
"dependencies": {
6262
"@babel/traverse": "^7.23.4",
63-
"@cometh/connect-sdk": "^1.2.13",
63+
"@cometh/connect-sdk": "^1.2.16",
6464
"@rainbow-me/rainbowkit": "^2",
6565
"@types/babel__core": "^7.20.0",
6666
"viem": "^2",

src/client/getConnectViemClient.ts

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,45 @@ import {
99
} from 'viem'
1010
import { Prettify } from 'viem/_types/types/utils'
1111
import {
12+
arbitrum,
13+
arbitrumSepolia,
1214
avalanche,
1315
avalancheFuji,
16+
base,
17+
baseSepolia,
1418
gnosis,
1519
gnosisChiado,
20+
optimism,
21+
optimismSepolia,
1622
polygon,
17-
polygonMumbai,
18-
polygonZkEvm,
19-
polygonZkEvmTestnet
23+
polygonMumbai
2024
} from 'viem/chains'
2125

2226
import { ComethAccountActions, connectWalletActions } from '../customActions'
23-
import { muster, musterTestnet, redstoneHolesky } from '../customChains'
27+
import {
28+
muster,
29+
musterTestnet,
30+
redstoneHolesky,
31+
xlNetwork
32+
} from '../customChains'
2433

2534
const supportedChains = [
35+
arbitrum,
36+
arbitrumSepolia,
2637
polygon,
2738
polygonMumbai,
2839
avalanche,
2940
avalancheFuji,
3041
gnosis,
3142
gnosisChiado,
32-
polygonZkEvm,
33-
polygonZkEvmTestnet,
43+
base,
44+
baseSepolia,
3445
muster,
3546
musterTestnet,
36-
redstoneHolesky
47+
redstoneHolesky,
48+
optimism,
49+
optimismSepolia,
50+
xlNetwork
3751
]
3852

3953
export type ConnectClient<

src/customChains.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,22 @@ export const redstoneHolesky = defineChain({
8888
}
8989
}
9090
})
91+
92+
export const xlNetwork = defineChain({
93+
id: 3084,
94+
name: 'XL Network',
95+
network: 'xlNetwork',
96+
nativeCurrency: {
97+
decimals: 18,
98+
name: 'XL',
99+
symbol: 'XL'
100+
},
101+
rpcUrls: {
102+
default: {
103+
http: ['']
104+
},
105+
public: {
106+
http: ['']
107+
}
108+
}
109+
})

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -415,10 +415,10 @@
415415
preact "^10.16.0"
416416
sha.js "^2.4.11"
417417

418-
"@cometh/connect-sdk@^1.2.13":
419-
version "1.2.13"
420-
resolved "https://registry.yarnpkg.com/@cometh/connect-sdk/-/connect-sdk-1.2.13.tgz#0dd290030ddecbc63b6a3b1d9488b625e8adc075"
421-
integrity sha512-aAerQeMJ86sd3Q1TupegLA226AEwehXc7aewKcp2I3IUM0Go2B3YbsUj03cM++jlHV89dO0kLIvqKVNkMyrBew==
418+
"@cometh/connect-sdk@^1.2.16":
419+
version "1.2.16"
420+
resolved "https://registry.yarnpkg.com/@cometh/connect-sdk/-/connect-sdk-1.2.16.tgz#1f5d563018630a90e9be4f65aa68cf7e16c99c7d"
421+
integrity sha512-zmvS4rHD2kFSXJl8FPNq/SxJIl25B2uYmatxUb6orzQBD/HSp3SfVesLyP1sjgTkGqvtudFHZq6vKVdHPIS1Xg==
422422
dependencies:
423423
"@alembic/ui" "^1.5.4"
424424
"@babel/traverse" "^7.23.4"

0 commit comments

Comments
 (0)