@sodax/wallet-sdk-react 0.0.1-rc.7 → 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/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["mainnet"]),
178
- [avalanche.id]: http(config["avalanche"]),
179
- [arbitrum.id]: http(config["arbitrum"]),
180
- [base.id]: http(config["base"]),
181
- [bsc.id]: http(config["bsc"]),
182
- [sonic.id]: http(config["sonic"]),
183
- [optimism.id]: http(config["optimism"]),
184
- [polygon.id]: http(config["polygon"]),
185
- [nibiru.id]: http(config["nibiru"]),
186
- [hyper.id]: http(config["hyper"]),
187
- [lightlinkPhoenix.id]: http(config["lightlinkPhoenix"])
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
  };