File tree 5 files changed +434
-729
lines changed
5 files changed +434
-729
lines changed Original file line number Diff line number Diff line change 32
32
"@web3-onboard/bitget" : " 2.1.1" ,
33
33
"@web3-onboard/blocto" : " ^2.1.1" ,
34
34
"@web3-onboard/bloom" : " 2.0.0" ,
35
- "@web3-onboard/para" : " ^2.4.0" ,
36
35
"@web3-onboard/cede-store" : " ^2.3.1" ,
37
36
"@web3-onboard/core" : " 2.23.1" ,
38
37
"@web3-onboard/coinbase" : " ^2.4.1" ,
54
53
"@web3-onboard/metamask" : " ^2.2.0" ,
55
54
"@web3-onboard/mew-wallet" : " ^2.1.1" ,
56
55
"@web3-onboard/okx" : " 2.0.0" ,
56
+ "@web3-onboard/para" : " ^1.0.0" ,
57
57
"@web3-onboard/particle-network" : " ^2.1.1" ,
58
58
"@web3-onboard/passport" : " ^2.1.1" ,
59
59
"@web3-onboard/phantom" : " ^2.1.1" ,
Original file line number Diff line number Diff line change 277
277
})
278
278
const para = paraModule ({
279
279
environment: ParaEnvironment .DEVELOPMENT ,
280
- apiKey: ' 992bbd9146d5de8ad0419f141d9a7ca7 ' ,
280
+ apiKey: ' 2777c7a647fa0ff6cf88d69b5f8a4709 ' ,
281
281
modalProps: {
282
282
appName: ' Para' ,
283
283
disableEmailLogin: false ,
Original file line number Diff line number Diff line change 60
60
"@getpara/react-sdk" : " 1.0.0" ,
61
61
"@getpara/wagmi-v2-integration" : " 1.0.0" ,
62
62
"@wagmi/chains" : " ^1.8.0" ,
63
+ "@wagmi/core" : " 2.16.3" ,
63
64
"@web3-onboard/common" : " ^2.4.1" ,
64
65
"react-dom" : " ^18.2.0" ,
65
- "viem" : " 2.9.15 " ,
66
- "wagmi" : " 2.5.19 "
66
+ "viem" : " 2.22.21 " ,
67
+ "wagmi" : " 2.14.9 "
67
68
},
68
69
"peerDependencies" : {
69
70
"react" : " >=18.2"
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import {
12
12
Theme
13
13
} from '@getpara/react-sdk'
14
14
import '@getpara/react-sdk/styles.css'
15
+ import { http , HttpTransport } from 'viem'
15
16
16
17
type ChainId = number
17
18
type ChainsMap = Map < ChainId , Chain >
@@ -95,6 +96,12 @@ function para(options: ParaInitOptions): WalletInit {
95
96
)
96
97
const chainsMap = await buildChainsMap ( )
97
98
99
+ const transports : Record < string , HttpTransport > = { }
100
+
101
+ chains . forEach ( c => {
102
+ transports [ convertChainIdToNumber ( c . id ) ] = http ( )
103
+ } )
104
+
98
105
const providerOpts = {
99
106
para : para ,
100
107
chainId : convertChainIdToNumber ( chains [ 0 ] . id ) . toString ( ) ,
@@ -103,6 +110,7 @@ function para(options: ParaInitOptions): WalletInit {
103
110
chains . map ( ch => convertChainIdToNumber ( ch . id ) ) ,
104
111
chainsMap
105
112
) ,
113
+ transports : transports ,
106
114
...options . modalProps
107
115
}
108
116
const provider : EIP1193Provider = new ParaEIP1193Provider ( providerOpts )
You can’t perform that action at this time.
0 commit comments