@sodax/wallet-sdk-react 0.0.1-rc.6 → 0.0.1-rc.8
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 +1 -1
- package/dist/index.cjs +11 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +12 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/xchains/evm/EvmXService.ts +26 -12
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { baseChainInfo } from '@sodax/types';
|
|
1
|
+
import { baseChainInfo, LIGHTLINK_MAINNET_CHAIN_ID, HYPEREVM_MAINNET_CHAIN_ID, NIBIRU_MAINNET_CHAIN_ID, POLYGON_MAINNET_CHAIN_ID, OPTIMISM_MAINNET_CHAIN_ID, SONIC_MAINNET_CHAIN_ID, BSC_MAINNET_CHAIN_ID, BASE_MAINNET_CHAIN_ID, ARBITRUM_MAINNET_CHAIN_ID, AVALANCHE_MAINNET_CHAIN_ID, ETHEREUM_MAINNET_CHAIN_ID } from '@sodax/types';
|
|
2
2
|
import { erc20Abi, defineChain } from 'viem';
|
|
3
3
|
import { getPublicClient } from 'wagmi/actions';
|
|
4
4
|
import { useConnections, useAccount, useConnect, useConnectors, useDisconnect, useSwitchChain, usePublicClient, useWalletClient, useSignMessage, WagmiProvider, createConfig, http, useConfig } from 'wagmi';
|
|
@@ -174,17 +174,17 @@ var createWagmiConfig = (config) => {
|
|
|
174
174
|
return createConfig({
|
|
175
175
|
chains: [mainnet, avalanche, arbitrum, base, bsc, sonic, optimism, polygon, nibiru, hyper, lightlinkPhoenix],
|
|
176
176
|
transports: {
|
|
177
|
-
[mainnet.id]: http(config[
|
|
178
|
-
[avalanche.id]: http(config[
|
|
179
|
-
[arbitrum.id]: http(config[
|
|
180
|
-
[base.id]: http(config[
|
|
181
|
-
[bsc.id]: http(config[
|
|
182
|
-
[sonic.id]: http(config[
|
|
183
|
-
[optimism.id]: http(config[
|
|
184
|
-
[polygon.id]: http(config[
|
|
185
|
-
[nibiru.id]: http(config[
|
|
186
|
-
[hyper.id]: http(config[
|
|
187
|
-
[lightlinkPhoenix.id]: http(config[
|
|
177
|
+
[mainnet.id]: http(config[ETHEREUM_MAINNET_CHAIN_ID]),
|
|
178
|
+
[avalanche.id]: http(config[AVALANCHE_MAINNET_CHAIN_ID]),
|
|
179
|
+
[arbitrum.id]: http(config[ARBITRUM_MAINNET_CHAIN_ID]),
|
|
180
|
+
[base.id]: http(config[BASE_MAINNET_CHAIN_ID]),
|
|
181
|
+
[bsc.id]: http(config[BSC_MAINNET_CHAIN_ID]),
|
|
182
|
+
[sonic.id]: http(config[SONIC_MAINNET_CHAIN_ID]),
|
|
183
|
+
[optimism.id]: http(config[OPTIMISM_MAINNET_CHAIN_ID]),
|
|
184
|
+
[polygon.id]: http(config[POLYGON_MAINNET_CHAIN_ID]),
|
|
185
|
+
[nibiru.id]: http(config[NIBIRU_MAINNET_CHAIN_ID]),
|
|
186
|
+
[hyper.id]: http(config[HYPEREVM_MAINNET_CHAIN_ID]),
|
|
187
|
+
[lightlinkPhoenix.id]: http(config[LIGHTLINK_MAINNET_CHAIN_ID])
|
|
188
188
|
}
|
|
189
189
|
});
|
|
190
190
|
};
|