File tree Expand file tree Collapse file tree 5 files changed +434
-729
lines changed
Expand file tree Collapse file tree 5 files changed +434
-729
lines changed Original file line number Diff line number Diff line change 3232 "@web3-onboard/bitget" : " 2.1.1" ,
3333 "@web3-onboard/blocto" : " ^2.1.1" ,
3434 "@web3-onboard/bloom" : " 2.0.0" ,
35- "@web3-onboard/para" : " ^2.4.0" ,
3635 "@web3-onboard/cede-store" : " ^2.3.1" ,
3736 "@web3-onboard/core" : " 2.23.1" ,
3837 "@web3-onboard/coinbase" : " ^2.4.1" ,
5453 "@web3-onboard/metamask" : " ^2.2.0" ,
5554 "@web3-onboard/mew-wallet" : " ^2.1.1" ,
5655 "@web3-onboard/okx" : " 2.0.0" ,
56+ "@web3-onboard/para" : " ^1.0.0" ,
5757 "@web3-onboard/particle-network" : " ^2.1.1" ,
5858 "@web3-onboard/passport" : " ^2.1.1" ,
5959 "@web3-onboard/phantom" : " ^2.1.1" ,
Original file line number Diff line number Diff line change 277277 })
278278 const para = paraModule ({
279279 environment: ParaEnvironment .DEVELOPMENT ,
280- apiKey: ' 992bbd9146d5de8ad0419f141d9a7ca7 ' ,
280+ apiKey: ' 2777c7a647fa0ff6cf88d69b5f8a4709 ' ,
281281 modalProps: {
282282 appName: ' Para' ,
283283 disableEmailLogin: false ,
Original file line number Diff line number Diff line change 6060 "@getpara/react-sdk" : " 1.0.0" ,
6161 "@getpara/wagmi-v2-integration" : " 1.0.0" ,
6262 "@wagmi/chains" : " ^1.8.0" ,
63+ "@wagmi/core" : " 2.16.3" ,
6364 "@web3-onboard/common" : " ^2.4.1" ,
6465 "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 "
6768 },
6869 "peerDependencies" : {
6970 "react" : " >=18.2"
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import {
1212 Theme
1313} from '@getpara/react-sdk'
1414import '@getpara/react-sdk/styles.css'
15+ import { http , HttpTransport } from 'viem'
1516
1617type ChainId = number
1718type ChainsMap = Map < ChainId , Chain >
@@ -95,6 +96,12 @@ function para(options: ParaInitOptions): WalletInit {
9596 )
9697 const chainsMap = await buildChainsMap ( )
9798
99+ const transports : Record < string , HttpTransport > = { }
100+
101+ chains . forEach ( c => {
102+ transports [ convertChainIdToNumber ( c . id ) ] = http ( )
103+ } )
104+
98105 const providerOpts = {
99106 para : para ,
100107 chainId : convertChainIdToNumber ( chains [ 0 ] . id ) . toString ( ) ,
@@ -103,6 +110,7 @@ function para(options: ParaInitOptions): WalletInit {
103110 chains . map ( ch => convertChainIdToNumber ( ch . id ) ) ,
104111 chainsMap
105112 ) ,
113+ transports : transports ,
106114 ...options . modalProps
107115 }
108116 const provider : EIP1193Provider = new ParaEIP1193Provider ( providerOpts )
You can’t perform that action at this time.
0 commit comments