@sodax/wallet-sdk-react 1.0.0-rc.5 → 1.0.0-rc.7
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.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- 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/core/XService.ts +1 -1
- package/src/hooks/useXBalances.ts +1 -1
- package/src/xchains/evm/EvmXService.ts +2 -11
package/dist/index.d.cts
CHANGED
|
@@ -106,7 +106,7 @@ declare abstract class XService {
|
|
|
106
106
|
* @param xTokens Array of tokens to get balances for
|
|
107
107
|
* @returns Promise resolving to object mapping token addresses to balances
|
|
108
108
|
*/
|
|
109
|
-
getBalances(address: string | undefined, xTokens: XToken[]): Promise<Record<string, bigint>>;
|
|
109
|
+
getBalances(address: string | undefined, xTokens: readonly XToken[]): Promise<Record<string, bigint>>;
|
|
110
110
|
/**
|
|
111
111
|
* Gets all available connectors for this chain
|
|
112
112
|
*/
|
|
@@ -397,7 +397,7 @@ declare function useXService(xChainType: ChainType | undefined): XService | unde
|
|
|
397
397
|
*/
|
|
398
398
|
declare function useXBalances({ xChainId, xTokens, address, }: {
|
|
399
399
|
xChainId: ChainId;
|
|
400
|
-
xTokens: XToken[];
|
|
400
|
+
xTokens: readonly XToken[];
|
|
401
401
|
address: string | undefined;
|
|
402
402
|
}): UseQueryResult<{
|
|
403
403
|
[key: string]: bigint;
|
package/dist/index.d.ts
CHANGED
|
@@ -106,7 +106,7 @@ declare abstract class XService {
|
|
|
106
106
|
* @param xTokens Array of tokens to get balances for
|
|
107
107
|
* @returns Promise resolving to object mapping token addresses to balances
|
|
108
108
|
*/
|
|
109
|
-
getBalances(address: string | undefined, xTokens: XToken[]): Promise<Record<string, bigint>>;
|
|
109
|
+
getBalances(address: string | undefined, xTokens: readonly XToken[]): Promise<Record<string, bigint>>;
|
|
110
110
|
/**
|
|
111
111
|
* Gets all available connectors for this chain
|
|
112
112
|
*/
|
|
@@ -397,7 +397,7 @@ declare function useXService(xChainType: ChainType | undefined): XService | unde
|
|
|
397
397
|
*/
|
|
398
398
|
declare function useXBalances({ xChainId, xTokens, address, }: {
|
|
399
399
|
xChainId: ChainId;
|
|
400
|
-
xTokens: XToken[];
|
|
400
|
+
xTokens: readonly XToken[];
|
|
401
401
|
address: string | undefined;
|
|
402
402
|
}): UseQueryResult<{
|
|
403
403
|
[key: string]: bigint;
|
package/dist/index.mjs
CHANGED
|
@@ -173,6 +173,7 @@ var hyper = /* @__PURE__ */ defineChain({
|
|
|
173
173
|
var createWagmiConfig = (config) => {
|
|
174
174
|
return createConfig({
|
|
175
175
|
chains: [mainnet, avalanche, arbitrum, base, bsc, sonic, optimism, polygon, hyper, lightlinkPhoenix],
|
|
176
|
+
ssr: true,
|
|
176
177
|
transports: {
|
|
177
178
|
[mainnet.id]: http(config[ETHEREUM_MAINNET_CHAIN_ID]),
|
|
178
179
|
[avalanche.id]: http(config[AVALANCHE_MAINNET_CHAIN_ID]),
|
|
@@ -1362,7 +1363,7 @@ var SodaxWalletProvider = ({ children, rpcConfig }) => {
|
|
|
1362
1363
|
return createWagmiConfig(rpcConfig);
|
|
1363
1364
|
}, [rpcConfig]);
|
|
1364
1365
|
const wallets = useMemo(() => [new UnsafeBurnerWalletAdapter()], []);
|
|
1365
|
-
return /* @__PURE__ */ React2.createElement(WagmiProvider, { config: wagmiConfig
|
|
1366
|
+
return /* @__PURE__ */ React2.createElement(WagmiProvider, { config: wagmiConfig }, /* @__PURE__ */ React2.createElement(SuiClientProvider, { networks: { mainnet: { url: getFullnodeUrl("mainnet") } }, defaultNetwork: "mainnet" }, /* @__PURE__ */ React2.createElement(WalletProvider, { autoConnect: true }, /* @__PURE__ */ React2.createElement(ConnectionProvider, { endpoint: rpcConfig["solana"] ?? "" }, /* @__PURE__ */ React2.createElement(WalletProvider$1, { wallets, autoConnect: true }, /* @__PURE__ */ React2.createElement(Hydrate, null), children)))));
|
|
1366
1367
|
};
|
|
1367
1368
|
reconnectIcon();
|
|
1368
1369
|
reconnectStellar();
|