@sodax/wallet-sdk-react 1.0.0-rc.5 → 1.0.0-rc.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -20
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/SodaxWalletProvider.tsx +1 -1
- package/src/xchains/evm/EvmXService.ts +2 -11
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sodax/wallet-sdk-react",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.0.0-rc.
|
|
4
|
+
"version": "1.0.0-rc.6",
|
|
5
5
|
"description": "Wallet SDK of Sodax",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.cjs",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"viem": "2.29.2",
|
|
46
46
|
"wagmi": "^2.14.12",
|
|
47
47
|
"zustand": "4.5.2",
|
|
48
|
-
"@sodax/wallet-sdk-core": "1.0.0-rc.
|
|
49
|
-
"@sodax/types": "1.0.0-rc.
|
|
48
|
+
"@sodax/wallet-sdk-core": "1.0.0-rc.6",
|
|
49
|
+
"@sodax/types": "1.0.0-rc.6"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/react": "^19.0.8",
|
|
@@ -33,7 +33,7 @@ export const SodaxWalletProvider = ({ children, rpcConfig }: { children: React.R
|
|
|
33
33
|
const wallets = useMemo(() => [new UnsafeBurnerWalletAdapter()], []);
|
|
34
34
|
|
|
35
35
|
return (
|
|
36
|
-
<WagmiProvider config={wagmiConfig}
|
|
36
|
+
<WagmiProvider config={wagmiConfig}>
|
|
37
37
|
<SuiClientProvider networks={{ mainnet: { url: getFullnodeUrl('mainnet') } }} defaultNetwork="mainnet">
|
|
38
38
|
<SuiWalletProvider autoConnect={true}>
|
|
39
39
|
<SolanaConnectionProvider endpoint={rpcConfig['solana'] ?? ''}>
|
|
@@ -18,17 +18,7 @@ import { getWagmiChainId, isNativeToken } from '@/utils';
|
|
|
18
18
|
import { type Address, defineChain, erc20Abi } from 'viem';
|
|
19
19
|
import { getPublicClient } from 'wagmi/actions';
|
|
20
20
|
import { type Config, createConfig, http } from 'wagmi';
|
|
21
|
-
import {
|
|
22
|
-
mainnet,
|
|
23
|
-
avalanche,
|
|
24
|
-
base,
|
|
25
|
-
optimism,
|
|
26
|
-
polygon,
|
|
27
|
-
arbitrum,
|
|
28
|
-
bsc,
|
|
29
|
-
sonic,
|
|
30
|
-
lightlinkPhoenix,
|
|
31
|
-
} from 'wagmi/chains';
|
|
21
|
+
import { mainnet, avalanche, base, optimism, polygon, arbitrum, bsc, sonic, lightlinkPhoenix } from 'wagmi/chains';
|
|
32
22
|
|
|
33
23
|
// HyperEVM chain is not supported by viem, so we need to define it manually
|
|
34
24
|
export const hyper = /*#__PURE__*/ defineChain({
|
|
@@ -59,6 +49,7 @@ export const hyper = /*#__PURE__*/ defineChain({
|
|
|
59
49
|
export const createWagmiConfig = (config: RpcConfig) => {
|
|
60
50
|
return createConfig({
|
|
61
51
|
chains: [mainnet, avalanche, arbitrum, base, bsc, sonic, optimism, polygon, hyper, lightlinkPhoenix],
|
|
52
|
+
ssr: true,
|
|
62
53
|
transports: {
|
|
63
54
|
[mainnet.id]: http(config[ETHEREUM_MAINNET_CHAIN_ID]),
|
|
64
55
|
[avalanche.id]: http(config[AVALANCHE_MAINNET_CHAIN_ID]),
|