@sodax/wallet-sdk-react 2.0.0-rc.2 → 2.0.0-rc.21
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 +14 -7
- package/dist/{XConnector-B9YQTVJ4.d.ts → XConnector-12q0OVe5.d.ts} +1 -1
- package/dist/{chunk-NY7U7OJW.mjs → chunk-7V7O3Q7Y.mjs} +0 -2
- package/dist/{chunk-BXJLBR4G.mjs → chunk-C6M34IVL.mjs} +2 -4
- package/dist/{chunk-PLCA4ZDJ.mjs → chunk-HEY7NRFG.mjs} +254 -52
- package/dist/{chunk-X2MHIWXO.mjs → chunk-IFXZQW4C.mjs} +0 -2
- package/dist/{chunk-7ULB6DW4.mjs → chunk-JQ4H4GJ5.mjs} +3 -5
- package/dist/{chunk-E5IAZ7E6.mjs → chunk-LM7R5APS.mjs} +22 -11
- package/dist/{chunk-BKJB527E.mjs → chunk-MWWVB7TD.mjs} +2 -4
- package/dist/{chunk-MXZVF5HR.mjs → chunk-NAKCAL2M.mjs} +0 -2
- package/dist/{chunk-PJLEJVAU.mjs → chunk-OPX55MQO.mjs} +11 -6
- package/dist/chunk-QMXBY3UI.mjs +1 -0
- package/dist/{chunk-MAQ47Q52.mjs → chunk-TACW7Z4D.mjs} +0 -2
- package/dist/chunk-VPNYFVP6.mjs +53 -0
- package/dist/{chunk-2BOUGCJ7.mjs → chunk-WPZOLGVB.mjs} +4 -6
- package/dist/{chunk-66BAUK56.mjs → chunk-X7BHR7WS.mjs} +4 -6
- package/dist/{chunk-N5A2TMF6.mjs → chunk-XJA2MJMG.mjs} +2 -4
- package/dist/{config-OlnzyEUE.d.ts → config-DEsqgrG1.d.ts} +10 -5
- package/dist/index.d.ts +6 -6
- package/dist/index.mjs +20 -31
- package/dist/xchains/bitcoin/index.d.ts +20 -3
- package/dist/xchains/bitcoin/index.mjs +14 -16
- package/dist/xchains/evm/index.d.ts +3 -3
- package/dist/xchains/evm/index.mjs +3 -5
- package/dist/xchains/icon/index.d.ts +1 -1
- package/dist/xchains/icon/index.mjs +5 -7
- package/dist/xchains/injective/index.d.ts +2 -2
- package/dist/xchains/injective/index.mjs +3 -5
- package/dist/xchains/near/index.d.ts +1 -1
- package/dist/xchains/near/index.mjs +4 -6
- package/dist/xchains/solana/index.d.ts +1 -1
- package/dist/xchains/solana/index.mjs +5 -7
- package/dist/xchains/stacks/index.d.ts +10 -4
- package/dist/xchains/stacks/index.mjs +3 -5
- package/dist/xchains/stellar/index.d.ts +1 -1
- package/dist/xchains/stellar/index.mjs +4 -6
- package/dist/xchains/sui/index.d.ts +1 -1
- package/dist/xchains/sui/index.mjs +5 -7
- package/package.json +37 -29
- package/ai-exported/AGENTS.md +0 -122
- package/ai-exported/integration/README.md +0 -102
- package/ai-exported/integration/ai-rules.md +0 -136
- package/ai-exported/integration/architecture.md +0 -181
- package/ai-exported/integration/examples/01-minimal-evm.tsx +0 -75
- package/ai-exported/integration/examples/02-multi-chain-modal.tsx +0 -169
- package/ai-exported/integration/examples/03-nextjs-app-router.tsx +0 -99
- package/ai-exported/integration/examples/04-walletconnect-setup.tsx +0 -89
- package/ai-exported/integration/examples/README.md +0 -29
- package/ai-exported/integration/recipes/batch-operations.md +0 -223
- package/ai-exported/integration/recipes/bridge-to-sdk.md +0 -164
- package/ai-exported/integration/recipes/chain-detection.md +0 -254
- package/ai-exported/integration/recipes/connect-button.md +0 -156
- package/ai-exported/integration/recipes/multi-chain-modal.md +0 -199
- package/ai-exported/integration/recipes/setup.md +0 -158
- package/ai-exported/integration/recipes/sign-message.md +0 -137
- package/ai-exported/integration/recipes/sub-path-imports.md +0 -95
- package/ai-exported/integration/recipes/switch-chain.md +0 -141
- package/ai-exported/integration/recipes/walletconnect-setup.md +0 -139
- package/ai-exported/integration/reference/api-surface.md +0 -175
- package/ai-exported/integration/reference/chain-support.md +0 -78
- package/ai-exported/integration/reference/connectors.md +0 -74
- package/ai-exported/integration/reference/hooks.md +0 -204
- package/ai-exported/integration/reference/wallet-brands.md +0 -106
- package/ai-exported/migration/README.md +0 -49
- package/ai-exported/migration/ai-rules.md +0 -144
- package/ai-exported/migration/breaking-changes.md +0 -305
- package/ai-exported/migration/checklist.md +0 -159
- package/ai-exported/migration/recipes/connect-button.md +0 -166
- package/ai-exported/migration/recipes/multi-chain-modal.md +0 -244
- package/ai-exported/migration/recipes/ssr-setup.md +0 -162
- package/ai-exported/migration/recipes/walletconnect-migration.md +0 -168
- package/ai-exported/migration/reference/components.md +0 -73
- package/ai-exported/migration/reference/config.md +0 -307
- package/ai-exported/migration/reference/hooks.md +0 -278
- package/ai-exported/migration/reference/imports.md +0 -157
- package/dist/chunk-2BOUGCJ7.mjs.map +0 -1
- package/dist/chunk-66BAUK56.mjs.map +0 -1
- package/dist/chunk-7ULB6DW4.mjs.map +0 -1
- package/dist/chunk-BKJB527E.mjs.map +0 -1
- package/dist/chunk-BXJLBR4G.mjs.map +0 -1
- package/dist/chunk-E5IAZ7E6.mjs.map +0 -1
- package/dist/chunk-MAQ47Q52.mjs.map +0 -1
- package/dist/chunk-MXZVF5HR.mjs.map +0 -1
- package/dist/chunk-N5A2TMF6.mjs.map +0 -1
- package/dist/chunk-NY7U7OJW.mjs.map +0 -1
- package/dist/chunk-PJLEJVAU.mjs.map +0 -1
- package/dist/chunk-PLCA4ZDJ.mjs.map +0 -1
- package/dist/chunk-TZMKDXFA.mjs +0 -3
- package/dist/chunk-TZMKDXFA.mjs.map +0 -1
- package/dist/chunk-X2MHIWXO.mjs.map +0 -1
- package/dist/chunk-XZ7CHO2S.mjs +0 -41
- package/dist/chunk-XZ7CHO2S.mjs.map +0 -1
- package/dist/index.cjs +0 -3337
- package/dist/index.cjs.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/xchains/bitcoin/index.cjs +0 -1927
- package/dist/xchains/bitcoin/index.cjs.map +0 -1
- package/dist/xchains/bitcoin/index.mjs.map +0 -1
- package/dist/xchains/evm/index.cjs +0 -316
- package/dist/xchains/evm/index.cjs.map +0 -1
- package/dist/xchains/evm/index.mjs.map +0 -1
- package/dist/xchains/icon/index.cjs +0 -311
- package/dist/xchains/icon/index.cjs.map +0 -1
- package/dist/xchains/icon/index.mjs.map +0 -1
- package/dist/xchains/injective/index.cjs +0 -223
- package/dist/xchains/injective/index.cjs.map +0 -1
- package/dist/xchains/injective/index.mjs.map +0 -1
- package/dist/xchains/near/index.cjs +0 -190
- package/dist/xchains/near/index.cjs.map +0 -1
- package/dist/xchains/near/index.mjs.map +0 -1
- package/dist/xchains/solana/index.cjs +0 -186
- package/dist/xchains/solana/index.cjs.map +0 -1
- package/dist/xchains/solana/index.mjs.map +0 -1
- package/dist/xchains/stacks/index.cjs +0 -240
- package/dist/xchains/stacks/index.cjs.map +0 -1
- package/dist/xchains/stacks/index.mjs.map +0 -1
- package/dist/xchains/stellar/index.cjs +0 -322
- package/dist/xchains/stellar/index.cjs.map +0 -1
- package/dist/xchains/stellar/index.mjs.map +0 -1
- package/dist/xchains/sui/index.cjs +0 -248
- package/dist/xchains/sui/index.cjs.map +0 -1
- package/dist/xchains/sui/index.mjs.map +0 -1
- package/docs/ADDING_A_NEW_CHAIN.md +0 -440
- package/docs/ARCHITECTURE.md +0 -291
- package/docs/BATCH_OPERATIONS.md +0 -267
- package/docs/CHAIN_DETECTION.md +0 -216
- package/docs/CONFIGURE_PROVIDER.md +0 -360
- package/docs/CONNECTORS.md +0 -247
- package/docs/CONNECT_FLOW.md +0 -276
- package/docs/EVM_SWITCH_CHAIN.md +0 -161
- package/docs/SIGN_MESSAGE.md +0 -213
- package/docs/SUB_PATH_EXPORTS.md +0 -246
- package/docs/WALLETCONNECT.md +0 -154
- package/docs/WALLET_MODAL.md +0 -331
- package/docs/WALLET_PROVIDER_BRIDGE.md +0 -226
- package/skills/SKILLS.md +0 -84
- package/skills/bridge-to-sdk.md +0 -148
- package/skills/connect-button.md +0 -116
- package/skills/evm-only-walletconnect.md +0 -111
- package/skills/multi-chain-modal.md +0 -178
- package/skills/setup.md +0 -107
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { assert, isRecord, hasBooleanProperty } from './chunk-
|
|
2
|
-
import { WALLET_METADATA } from './chunk-
|
|
3
|
-
import { isNativeToken } from './chunk-
|
|
4
|
-
import { XService, XConnector } from './chunk-
|
|
1
|
+
import { assert, isRecord, hasBooleanProperty } from './chunk-TACW7Z4D.mjs';
|
|
2
|
+
import { WALLET_METADATA } from './chunk-NAKCAL2M.mjs';
|
|
3
|
+
import { isNativeToken } from './chunk-7V7O3Q7Y.mjs';
|
|
4
|
+
import { XService, XConnector } from './chunk-IFXZQW4C.mjs';
|
|
5
5
|
import * as IconSdkRaw from 'icon-sdk-js';
|
|
6
6
|
|
|
7
7
|
var IconSdk = "default" in IconSdkRaw.default ? IconSdkRaw.default : IconSdkRaw;
|
|
@@ -146,5 +146,3 @@ var IconHanaXConnector = class extends XConnector {
|
|
|
146
146
|
};
|
|
147
147
|
|
|
148
148
|
export { CHAIN_INFO, IconHanaXConnector, IconXService, SupportedChainId, request };
|
|
149
|
-
//# sourceMappingURL=chunk-2BOUGCJ7.mjs.map
|
|
150
|
-
//# sourceMappingURL=chunk-2BOUGCJ7.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { STELLAR_DEFAULT_HORIZON_RPC_URL, STELLAR_DEFAULT_SOROBAN_RPC_URL } from './chunk-
|
|
2
|
-
import { XService, XConnector } from './chunk-
|
|
3
|
-
import { StellarWalletsKit,
|
|
1
|
+
import { STELLAR_DEFAULT_HORIZON_RPC_URL, STELLAR_DEFAULT_SOROBAN_RPC_URL } from './chunk-NAKCAL2M.mjs';
|
|
2
|
+
import { XService, XConnector } from './chunk-IFXZQW4C.mjs';
|
|
3
|
+
import { StellarWalletsKit, WalletNetwork, allowAllModules } from '@creit.tech/stellar-wallets-kit';
|
|
4
4
|
import * as StellarSdk from '@stellar/stellar-sdk';
|
|
5
|
-
import { rpc,
|
|
5
|
+
import { rpc, Contract, TimeoutInfinite, scValToBigInt, Address } from '@stellar/stellar-sdk';
|
|
6
6
|
|
|
7
7
|
var CustomSorobanServer = class extends rpc.Server {
|
|
8
8
|
customHeaders;
|
|
@@ -198,5 +198,3 @@ var StellarWalletsKitXConnector = class extends XConnector {
|
|
|
198
198
|
};
|
|
199
199
|
|
|
200
200
|
export { StellarWalletsKitXConnector, StellarXService };
|
|
201
|
-
//# sourceMappingURL=chunk-66BAUK56.mjs.map
|
|
202
|
-
//# sourceMappingURL=chunk-66BAUK56.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SolanaXService } from './chunk-
|
|
2
|
-
import { XConnector } from './chunk-
|
|
1
|
+
import { SolanaXService } from './chunk-VPNYFVP6.mjs';
|
|
2
|
+
import { XConnector } from './chunk-IFXZQW4C.mjs';
|
|
3
3
|
|
|
4
4
|
// src/xchains/solana/SolanaXConnector.ts
|
|
5
5
|
var SolanaXConnector = class extends XConnector {
|
|
@@ -29,5 +29,3 @@ var SolanaXConnector = class extends XConnector {
|
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
export { SolanaXConnector };
|
|
32
|
-
//# sourceMappingURL=chunk-N5A2TMF6.mjs.map
|
|
33
|
-
//# sourceMappingURL=chunk-N5A2TMF6.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ChainType, EvmChainKey, SolanaChainKey, SuiChainKey, IconChainKey, NearChainKey, StellarChainKey, StellarRpcConfig, BitcoinChainKey,
|
|
2
|
-
import { EvmWalletDefaults, SolanaWalletDefaults, SuiWalletDefaults, IconWalletDefaults, NearWalletDefaults, StellarWalletDefaults,
|
|
1
|
+
import { BitcoinRpcConfig, ChainType, EvmChainKey, SolanaChainKey, SuiChainKey, IconChainKey, NearChainKey, StellarChainKey, StellarRpcConfig, BitcoinChainKey, InjectiveChainKey, InjectiveRpcConfig, StacksChainKey, StacksNetworkName, StacksNetworkLike, ChainKey, baseChainInfo } from '@sodax/types';
|
|
2
|
+
import { BitcoinWalletDefaults, EvmWalletDefaults, SolanaWalletDefaults, SuiWalletDefaults, IconWalletDefaults, NearWalletDefaults, StellarWalletDefaults, InjectiveWalletDefaults, StacksWalletDefaults } from '@sodax/wallet-sdk-core';
|
|
3
3
|
import { State } from 'wagmi';
|
|
4
4
|
import { WalletConnectParameters } from 'wagmi/connectors';
|
|
5
|
-
import { I as IXConnector } from './XConnector-
|
|
5
|
+
import { I as IXConnector } from './XConnector-12q0OVe5.js';
|
|
6
6
|
|
|
7
7
|
type SimpleChainEntry<D> = {
|
|
8
8
|
rpcUrl?: string;
|
|
@@ -29,7 +29,12 @@ type StacksChainEntry = StacksNetworkName | (StacksNetworkLike & {
|
|
|
29
29
|
type EvmAdapterFields = {
|
|
30
30
|
/** Attempt to reconnect previously connected wallets on mount. @default false */
|
|
31
31
|
reconnectOnMount?: boolean;
|
|
32
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* wagmi hydration-timing flag (not an "app is SSR" flag).
|
|
34
|
+
* `true` defers wagmi reconnect into `useEffect`; `false` runs it in render
|
|
35
|
+
* and triggers React's "setState during render" warning. Keep `true` unless
|
|
36
|
+
* you know you need otherwise. @default true
|
|
37
|
+
*/
|
|
33
38
|
ssr?: boolean;
|
|
34
39
|
/** Wagmi SSR hydration state — pass `cookieToInitialState()` to avoid disconnect flash on first load (Next.js only). */
|
|
35
40
|
initialState?: State;
|
|
@@ -143,4 +148,4 @@ type SodaxWalletConfig = {
|
|
|
143
148
|
[T in ChainType]?: ChainTypeConfig<T>;
|
|
144
149
|
};
|
|
145
150
|
|
|
146
|
-
export type { BitcoinChainEntry as B, ChainEntry as C,
|
|
151
|
+
export type { BitcoinChainEntry as B, ChainEntry as C, EvmAdapterFields as E, IconChainEntry as I, NearChainEntry as N, SodaxWalletConfig as S, WalletDefaultsByKey as W, BitcoinTypeConfig as a, ChainMeta as b, ChainTypeConfig as c, ChainTypeOf as d, EvmChainEntry as e, EvmTypeConfig as f, IconTypeConfig as g, InjectiveChainEntry as h, InjectiveTypeConfig as i, NearTypeConfig as j, SolanaAdapterFields as k, SolanaChainEntry as l, SolanaTypeConfig as m, StacksChainEntry as n, StacksTypeConfig as o, StellarChainEntry as p, StellarTypeConfig as q, SuiAdapterFields as r, SuiChainEntry as s, SuiTypeConfig as t };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SpokeChainKey, GetChainType, ChainType, ChainKey, EvmChainKey, XToken, GetWalletProviderType } from '@sodax/types';
|
|
2
2
|
export { IWalletProvider } from '@sodax/types';
|
|
3
|
-
import { X as XAccount, I as IXConnector,
|
|
4
|
-
export {
|
|
3
|
+
import { X as XAccount, I as IXConnector, b as XConnection, d as XService, c as XConnector } from './XConnector-12q0OVe5.js';
|
|
4
|
+
export { a as IXService } from './XConnector-12q0OVe5.js';
|
|
5
5
|
import * as react from 'react';
|
|
6
6
|
import { ReactNode } from 'react';
|
|
7
|
-
import { S as SodaxWalletConfig, C as ChainEntry, W as WalletDefaultsByKey,
|
|
8
|
-
export { B as BitcoinChainEntry,
|
|
7
|
+
import { S as SodaxWalletConfig, C as ChainEntry, W as WalletDefaultsByKey, e as EvmChainEntry } from './config-DEsqgrG1.js';
|
|
8
|
+
export { B as BitcoinChainEntry, a as BitcoinTypeConfig, b as ChainMeta, c as ChainTypeConfig, d as ChainTypeOf, E as EvmAdapterFields, f as EvmTypeConfig, I as IconChainEntry, g as IconTypeConfig, h as InjectiveChainEntry, i as InjectiveTypeConfig, N as NearChainEntry, j as NearTypeConfig, k as SolanaAdapterFields, l as SolanaChainEntry, m as SolanaTypeConfig, n as StacksChainEntry, o as StacksTypeConfig, p as StellarChainEntry, q as StellarTypeConfig, r as SuiAdapterFields, s as SuiChainEntry, t as SuiTypeConfig } from './config-DEsqgrG1.js';
|
|
9
9
|
import { UseMutationResult } from '@tanstack/react-query';
|
|
10
10
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
11
11
|
import { EvmWalletDefaults } from '@sodax/wallet-sdk-core';
|
|
@@ -317,7 +317,7 @@ type UseConnectedChainsOptions = {
|
|
|
317
317
|
* metadata (name + icon) looked up from the store. Useful for "Manage
|
|
318
318
|
* connections" UIs and status badges.
|
|
319
319
|
*
|
|
320
|
-
* Gate rendering on `status === 'ready'` to avoid the "Connect wallet"
|
|
320
|
+
* Gate rendering on `status === 'ready'` to avoid the "Connect wallet" to
|
|
321
321
|
* "Connected" flicker on reload while the store rehydrates from localStorage.
|
|
322
322
|
*
|
|
323
323
|
* @example
|
|
@@ -326,7 +326,7 @@ type UseConnectedChainsOptions = {
|
|
|
326
326
|
* return total >= 1 ? <ConnectedChainsDisplay chains={chains} /> : <ConnectCta />;
|
|
327
327
|
*
|
|
328
328
|
* @example
|
|
329
|
-
* // Deterministic display order
|
|
329
|
+
* // Deterministic display order, required if rendering a list that must
|
|
330
330
|
* // be stable across page reloads (hydrator race otherwise randomizes
|
|
331
331
|
* // insertion order).
|
|
332
332
|
* const { chains } = useConnectedChains({ order: ['EVM', 'ICON', 'SOLANA'] });
|
package/dist/index.mjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { WalletConfigProvider, useXWalletStore, chainRegistry, useWalletConfig } from './chunk-
|
|
2
|
-
export { WalletConfigProvider, getXChainType, getXService, useBatchConnect, useBatchDisconnect, useChainGroups, useConnectedChains, useConnectionFlow, useEnabledChainTypes, useEnabledChains, useEvmSwitchChain, useIsChainEnabled, useIsWalletInstalled, useWalletConfig, useWalletModal, useWalletProvider, useXAccount, useXAccounts, useXConnect, useXConnection, useXConnections, useXConnectors, useXConnectorsByChain, useXDisconnect, useXService, useXServices, useXSignMessage } from './chunk-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { createWagmiConfig, EvmXService, EvmXConnector } from './chunk-
|
|
6
|
-
import { request } from './chunk-
|
|
7
|
-
import { assertSuiProviderShape } from './chunk-
|
|
8
|
-
import { InjectiveXService } from './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import { SOLANA_DEFAULT_AUTO_CONNECT, SOLANA_DEFAULT_RPC_URL, SUI_DEFAULT_AUTO_CONNECT, SUI_DEFAULT_NETWORK, EVM_DEFAULT_RECONNECT_ON_MOUNT, EVM_DEFAULT_SSR, SOLANA_METAMASK_CONNECT_TIMEOUT_MS } from './chunk-
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import './chunk-
|
|
17
|
-
export { XConnector, XService } from './chunk-
|
|
18
|
-
import { useRef, useEffect, useMemo
|
|
1
|
+
import { WalletConfigProvider, useXWalletStore, whenPersistReady, chainRegistry, useWalletConfig, usePersistHydrated } from './chunk-HEY7NRFG.mjs';
|
|
2
|
+
export { WalletConfigProvider, getXChainType, getXService, useBatchConnect, useBatchDisconnect, useChainGroups, useConnectedChains, useConnectionFlow, useEnabledChainTypes, useEnabledChains, useEvmSwitchChain, useIsChainEnabled, useIsWalletInstalled, useWalletConfig, useWalletModal, useWalletProvider, useXAccount, useXAccounts, useXConnect, useXConnection, useXConnections, useXConnectors, useXConnectorsByChain, useXDisconnect, useXService, useXServices, useXSignMessage } from './chunk-HEY7NRFG.mjs';
|
|
3
|
+
import { SuiXService, SuiXConnector } from './chunk-JQ4H4GJ5.mjs';
|
|
4
|
+
import { StellarXService } from './chunk-X7BHR7WS.mjs';
|
|
5
|
+
import { createWagmiConfig, EvmXService, EvmXConnector } from './chunk-LM7R5APS.mjs';
|
|
6
|
+
import { request } from './chunk-WPZOLGVB.mjs';
|
|
7
|
+
import { assertSuiProviderShape } from './chunk-TACW7Z4D.mjs';
|
|
8
|
+
import { InjectiveXService } from './chunk-MWWVB7TD.mjs';
|
|
9
|
+
import './chunk-C6M34IVL.mjs';
|
|
10
|
+
import { SOLANA_DEFAULT_AUTO_CONNECT, SOLANA_DEFAULT_RPC_URL, SUI_DEFAULT_AUTO_CONNECT, SUI_DEFAULT_NETWORK, EVM_DEFAULT_RECONNECT_ON_MOUNT, EVM_DEFAULT_SSR, SOLANA_METAMASK_CONNECT_TIMEOUT_MS } from './chunk-NAKCAL2M.mjs';
|
|
11
|
+
import './chunk-OPX55MQO.mjs';
|
|
12
|
+
import { SolanaXConnector } from './chunk-XJA2MJMG.mjs';
|
|
13
|
+
import { SolanaXService } from './chunk-VPNYFVP6.mjs';
|
|
14
|
+
import { getEntryDefaults, resolveEvmDefaults } from './chunk-7V7O3Q7Y.mjs';
|
|
15
|
+
export { getEntryDefaults, getRpcUrl, getWagmiChainId, isNativeToken, resolveEvmDefaults, sortConnectors } from './chunk-7V7O3Q7Y.mjs';
|
|
16
|
+
import './chunk-QMXBY3UI.mjs';
|
|
17
|
+
export { XConnector, XService } from './chunk-IFXZQW4C.mjs';
|
|
18
|
+
import { useRef, useEffect, useMemo } from 'react';
|
|
19
19
|
import { WagmiProvider, useConfig, useConnectors, useAccount, usePublicClient, useWalletClient, useReconnect, useConnect, useDisconnect, useSignMessage } from 'wagmi';
|
|
20
20
|
import { walletConnect } from 'wagmi/connectors';
|
|
21
21
|
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|
@@ -50,12 +50,7 @@ var EvmHydrator = () => {
|
|
|
50
50
|
EvmXService.getInstance().setXConnectors(evmConnectors);
|
|
51
51
|
useXWalletStore.getState().setXConnectors("EVM", evmConnectors);
|
|
52
52
|
}, [evmConnectors]);
|
|
53
|
-
const
|
|
54
|
-
useEffect(() => {
|
|
55
|
-
if (hydrated) return;
|
|
56
|
-
const unsub = useXWalletStore.persist.onFinishHydration(() => setHydrated(true));
|
|
57
|
-
return unsub;
|
|
58
|
-
}, [hydrated]);
|
|
53
|
+
const hydrated = usePersistHydrated();
|
|
59
54
|
useEffect(() => {
|
|
60
55
|
if (!hydrated) return;
|
|
61
56
|
if (status !== "disconnected") return;
|
|
@@ -509,11 +504,7 @@ function useInitChainServices(walletConfig) {
|
|
|
509
504
|
reconnectStellar().catch((error) => console.warn("[wallet-sdk-react] Stellar reconnect failed:", error));
|
|
510
505
|
}
|
|
511
506
|
};
|
|
512
|
-
|
|
513
|
-
afterHydration();
|
|
514
|
-
} else {
|
|
515
|
-
useXWalletStore.persist.onFinishHydration(afterHydration);
|
|
516
|
-
}
|
|
507
|
+
whenPersistReady(afterHydration);
|
|
517
508
|
}, []);
|
|
518
509
|
}
|
|
519
510
|
var SodaxWalletProvider = ({ children, config }) => {
|
|
@@ -534,5 +525,3 @@ var SodaxWalletProvider = ({ children, config }) => {
|
|
|
534
525
|
};
|
|
535
526
|
|
|
536
527
|
export { SodaxWalletProvider };
|
|
537
|
-
//# sourceMappingURL=index.mjs.map
|
|
538
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as XService, c as XConnector, X as XAccount } from '../../XConnector-12q0OVe5.js';
|
|
2
2
|
import { XToken, IBitcoinWalletProvider, BtcWalletAddressType } from '@sodax/types';
|
|
3
3
|
export { BtcWalletAddressType } from '@sodax/types';
|
|
4
4
|
import { BitcoinWalletDefaults } from '@sodax/wallet-sdk-core';
|
|
@@ -69,7 +69,7 @@ declare class UnisatXConnector extends BitcoinXConnector {
|
|
|
69
69
|
|
|
70
70
|
declare class XverseXConnector extends BitcoinXConnector {
|
|
71
71
|
private walletProvider;
|
|
72
|
-
/** Address purpose used when connecting. Taproot (Ordinals) by default to match
|
|
72
|
+
/** Address purpose used when connecting. Taproot (Ordinals) by default to match Bound Exchange. */
|
|
73
73
|
addressPurpose: AddressPurpose;
|
|
74
74
|
constructor(defaults?: BitcoinWalletDefaults);
|
|
75
75
|
/** Set address purpose and persist to localStorage. */
|
|
@@ -117,9 +117,26 @@ declare class OKXXConnector extends BitcoinXConnector {
|
|
|
117
117
|
recreateWalletProvider(xAccount: XAccount): IBitcoinWalletProvider | undefined;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
+
declare class BitcoinHanaXConnector extends BitcoinXConnector {
|
|
121
|
+
private walletProvider;
|
|
122
|
+
/** Address purpose used when connecting. Taproot (Ordinals) by default to match Bound Exchange. */
|
|
123
|
+
addressPurpose: AddressPurpose;
|
|
124
|
+
constructor(defaults?: BitcoinWalletDefaults);
|
|
125
|
+
/** Set address purpose and persist to localStorage. */
|
|
126
|
+
setAddressPurpose(type: BtcWalletAddressType): void;
|
|
127
|
+
static isAvailable(): boolean;
|
|
128
|
+
get isInstalled(): boolean;
|
|
129
|
+
get installUrl(): string;
|
|
130
|
+
get icon(): string;
|
|
131
|
+
connect(): Promise<XAccount | undefined>;
|
|
132
|
+
disconnect(): Promise<void>;
|
|
133
|
+
getWalletProvider(): IBitcoinWalletProvider | undefined;
|
|
134
|
+
recreateWalletProvider(xAccount: XAccount): IBitcoinWalletProvider | undefined;
|
|
135
|
+
}
|
|
136
|
+
|
|
120
137
|
/**
|
|
121
138
|
* Hook to return available Bitcoin wallet connectors from the globally registered xService.
|
|
122
139
|
*/
|
|
123
140
|
declare function useBitcoinXConnectors(): BitcoinXConnector[];
|
|
124
141
|
|
|
125
|
-
export { BitcoinXConnector, BitcoinXService, OKXXConnector, UnisatXConnector, XverseXConnector, useBitcoinXConnectors };
|
|
142
|
+
export { BitcoinHanaXConnector, BitcoinXConnector, BitcoinXService, OKXXConnector, UnisatXConnector, XverseXConnector, useBitcoinXConnectors };
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
export { BitcoinXConnector, BitcoinXService, OKXXConnector, UnisatXConnector, XverseXConnector, useBitcoinXConnectors } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
9
|
-
import '../../chunk-
|
|
10
|
-
import '../../chunk-
|
|
11
|
-
import '../../chunk-
|
|
12
|
-
import '../../chunk-
|
|
13
|
-
import '../../chunk-
|
|
14
|
-
import '../../chunk-
|
|
15
|
-
//# sourceMappingURL=index.mjs.map
|
|
16
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
export { BitcoinHanaXConnector, BitcoinXConnector, BitcoinXService, OKXXConnector, UnisatXConnector, XverseXConnector, useBitcoinXConnectors } from '../../chunk-HEY7NRFG.mjs';
|
|
2
|
+
import '../../chunk-JQ4H4GJ5.mjs';
|
|
3
|
+
import '../../chunk-X7BHR7WS.mjs';
|
|
4
|
+
import '../../chunk-LM7R5APS.mjs';
|
|
5
|
+
import '../../chunk-WPZOLGVB.mjs';
|
|
6
|
+
import '../../chunk-TACW7Z4D.mjs';
|
|
7
|
+
import '../../chunk-MWWVB7TD.mjs';
|
|
8
|
+
import '../../chunk-C6M34IVL.mjs';
|
|
9
|
+
import '../../chunk-NAKCAL2M.mjs';
|
|
10
|
+
import '../../chunk-OPX55MQO.mjs';
|
|
11
|
+
import '../../chunk-VPNYFVP6.mjs';
|
|
12
|
+
import '../../chunk-7V7O3Q7Y.mjs';
|
|
13
|
+
import '../../chunk-QMXBY3UI.mjs';
|
|
14
|
+
import '../../chunk-IFXZQW4C.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as XService, c as XConnector, X as XAccount } from '../../XConnector-12q0OVe5.js';
|
|
2
2
|
import { XToken } from '@sodax/types';
|
|
3
|
-
import {
|
|
3
|
+
import { f as EvmTypeConfig } from '../../config-DEsqgrG1.js';
|
|
4
4
|
import { Config, CreateConnectorFn, Connector } from 'wagmi';
|
|
5
5
|
import '@sodax/wallet-sdk-core';
|
|
6
6
|
import 'wagmi/connectors';
|
|
@@ -9,7 +9,7 @@ type WagmiOptions = {
|
|
|
9
9
|
reconnectOnMount?: boolean;
|
|
10
10
|
ssr?: boolean;
|
|
11
11
|
};
|
|
12
|
-
declare const createWagmiConfig: (evmChains
|
|
12
|
+
declare const createWagmiConfig: (evmChains?: EvmTypeConfig["chains"], options?: WagmiOptions & {
|
|
13
13
|
connectors?: CreateConnectorFn[];
|
|
14
14
|
}) => Config;
|
|
15
15
|
/**
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export { EvmXConnector, EvmXService, createWagmiConfig as createWagmi, createWagmiConfig } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
//# sourceMappingURL=index.mjs.map
|
|
5
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
export { EvmXConnector, EvmXService, createWagmiConfig as createWagmi, createWagmiConfig } from '../../chunk-LM7R5APS.mjs';
|
|
2
|
+
import '../../chunk-7V7O3Q7Y.mjs';
|
|
3
|
+
import '../../chunk-IFXZQW4C.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as XService, c as XConnector, X as XAccount } from '../../XConnector-12q0OVe5.js';
|
|
2
2
|
import { IconService } from 'icon-sdk-js';
|
|
3
3
|
import { XToken } from '@sodax/types';
|
|
4
4
|
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export { CHAIN_INFO, IconHanaXConnector, IconXService, SupportedChainId } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
//# sourceMappingURL=index.mjs.map
|
|
7
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
export { CHAIN_INFO, IconHanaXConnector, IconXService, SupportedChainId } from '../../chunk-WPZOLGVB.mjs';
|
|
2
|
+
import '../../chunk-TACW7Z4D.mjs';
|
|
3
|
+
import '../../chunk-NAKCAL2M.mjs';
|
|
4
|
+
import '../../chunk-7V7O3Q7Y.mjs';
|
|
5
|
+
import '../../chunk-IFXZQW4C.mjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as XService, c as XConnector, X as XAccount } from '../../XConnector-12q0OVe5.js';
|
|
2
2
|
import { IndexerGrpcAccountPortfolioApi, ChainGrpcWasmApi } from '@injectivelabs/sdk-ts';
|
|
3
3
|
import { MsgBroadcaster } from '@injectivelabs/wallet-core';
|
|
4
4
|
import { InjectiveRpcConfig, XToken } from '@sodax/types';
|
|
5
|
-
import { WalletStrategy } from '@
|
|
5
|
+
import { WalletStrategy } from '@sodax/libs/injective/wallet-strategy';
|
|
6
6
|
import { Wallet } from '@injectivelabs/wallet-base';
|
|
7
7
|
|
|
8
8
|
declare class InjectiveXService extends XService {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export { InjectiveXConnector, InjectiveXService } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
//# sourceMappingURL=index.mjs.map
|
|
5
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
export { InjectiveXConnector, InjectiveXService } from '../../chunk-MWWVB7TD.mjs';
|
|
2
|
+
import '../../chunk-QMXBY3UI.mjs';
|
|
3
|
+
import '../../chunk-IFXZQW4C.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as XService, c as XConnector, X as XAccount } from '../../XConnector-12q0OVe5.js';
|
|
2
2
|
import { XToken } from '@sodax/types';
|
|
3
3
|
import { NearConnector, NearWalletBase } from '@hot-labs/near-connect';
|
|
4
4
|
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
export { NearXConnector, NearXService } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
//# sourceMappingURL=index.mjs.map
|
|
6
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
export { NearXConnector, NearXService } from '../../chunk-C6M34IVL.mjs';
|
|
2
|
+
import '../../chunk-NAKCAL2M.mjs';
|
|
3
|
+
import '../../chunk-QMXBY3UI.mjs';
|
|
4
|
+
import '../../chunk-IFXZQW4C.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as XService, c as XConnector, X as XAccount } from '../../XConnector-12q0OVe5.js';
|
|
2
2
|
import { XToken } from '@sodax/types';
|
|
3
3
|
import { Connection } from '@solana/web3.js';
|
|
4
4
|
import { WalletContextState, Wallet } from '@solana/wallet-adapter-react';
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export { SolanaXConnector } from '../../chunk-
|
|
2
|
-
export { SolanaXService } from '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
//# sourceMappingURL=index.mjs.map
|
|
7
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
export { SolanaXConnector } from '../../chunk-XJA2MJMG.mjs';
|
|
2
|
+
export { SolanaXService } from '../../chunk-VPNYFVP6.mjs';
|
|
3
|
+
import '../../chunk-7V7O3Q7Y.mjs';
|
|
4
|
+
import '../../chunk-QMXBY3UI.mjs';
|
|
5
|
+
import '../../chunk-IFXZQW4C.mjs';
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { XToken } from '@sodax/types';
|
|
3
|
-
import { StacksNetwork
|
|
4
|
-
import { StacksProvider } from '@stacks/connect';
|
|
1
|
+
import { d as XService, c as XConnector, X as XAccount } from '../../XConnector-12q0OVe5.js';
|
|
2
|
+
import { StacksNetworkName, XToken } from '@sodax/types';
|
|
3
|
+
import { StacksNetwork } from '@sodax/libs/stacks/core';
|
|
4
|
+
import { StacksProvider } from '@sodax/libs/stacks/connect';
|
|
5
5
|
|
|
6
6
|
declare class StacksXService extends XService {
|
|
7
7
|
private static instance;
|
|
8
8
|
network: StacksNetwork;
|
|
9
9
|
private constructor();
|
|
10
10
|
static getInstance(network?: StacksNetworkName | StacksNetwork): StacksXService;
|
|
11
|
+
/**
|
|
12
|
+
* @warning Network / fetch / contract-read failures are silently swallowed —
|
|
13
|
+
* `0n` is returned on any error. Callers cannot distinguish "zero balance"
|
|
14
|
+
* from "fetch failed"; UI that needs to surface the failure must wrap this
|
|
15
|
+
* call externally and re-fetch on its own error path.
|
|
16
|
+
*/
|
|
11
17
|
getBalance(address: string | undefined, xToken: XToken): Promise<bigint>;
|
|
12
18
|
}
|
|
13
19
|
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export { STACKS_PROVIDERS, StacksXConnector, StacksXService, useStacksXConnectors } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
//# sourceMappingURL=index.mjs.map
|
|
5
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
export { STACKS_PROVIDERS, StacksXConnector, StacksXService, useStacksXConnectors } from '../../chunk-OPX55MQO.mjs';
|
|
2
|
+
import '../../chunk-QMXBY3UI.mjs';
|
|
3
|
+
import '../../chunk-IFXZQW4C.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as XService, c as XConnector, X as XAccount } from '../../XConnector-12q0OVe5.js';
|
|
2
2
|
import { StellarWalletsKit } from '@creit.tech/stellar-wallets-kit';
|
|
3
3
|
import * as StellarSdk from '@stellar/stellar-sdk';
|
|
4
4
|
import { rpc, Transaction, Memo, MemoType, Operation, FeeBumpTransaction } from '@stellar/stellar-sdk';
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
export { StellarWalletsKitXConnector, StellarXService } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
//# sourceMappingURL=index.mjs.map
|
|
6
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
export { StellarWalletsKitXConnector, StellarXService } from '../../chunk-X7BHR7WS.mjs';
|
|
2
|
+
import '../../chunk-NAKCAL2M.mjs';
|
|
3
|
+
import '../../chunk-QMXBY3UI.mjs';
|
|
4
|
+
import '../../chunk-IFXZQW4C.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as XService, c as XConnector, X as XAccount } from '../../XConnector-12q0OVe5.js';
|
|
2
2
|
import { ISuiWalletProvider, XToken } from '@sodax/types';
|
|
3
3
|
|
|
4
4
|
interface SuiClientLike {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export { SuiXConnector, SuiXService } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
//# sourceMappingURL=index.mjs.map
|
|
7
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
export { SuiXConnector, SuiXService } from '../../chunk-JQ4H4GJ5.mjs';
|
|
2
|
+
import '../../chunk-TACW7Z4D.mjs';
|
|
3
|
+
import '../../chunk-7V7O3Q7Y.mjs';
|
|
4
|
+
import '../../chunk-QMXBY3UI.mjs';
|
|
5
|
+
import '../../chunk-IFXZQW4C.mjs';
|
package/package.json
CHANGED
|
@@ -1,32 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sodax/wallet-sdk-react",
|
|
3
|
+
"private": false,
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
3
7
|
"license": "MIT",
|
|
4
|
-
"version": "2.0.0-rc.
|
|
8
|
+
"version": "2.0.0-rc.21",
|
|
5
9
|
"description": "Wallet SDK of Sodax",
|
|
10
|
+
"keywords": [
|
|
11
|
+
"sodax",
|
|
12
|
+
"wallet",
|
|
13
|
+
"sdk",
|
|
14
|
+
"react",
|
|
15
|
+
"multichain",
|
|
16
|
+
"web3"
|
|
17
|
+
],
|
|
18
|
+
"homepage": "https://github.com/icon-project/sodax-sdks/tree/main/packages/wallet-sdk-react",
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/icon-project/sodax-sdks/issues"
|
|
21
|
+
},
|
|
6
22
|
"type": "module",
|
|
7
|
-
"main": "./dist/index.
|
|
23
|
+
"main": "./dist/index.mjs",
|
|
8
24
|
"module": "./dist/index.mjs",
|
|
9
25
|
"types": "./dist/index.d.ts",
|
|
10
26
|
"engines": {
|
|
11
|
-
"node": ">=20.
|
|
27
|
+
"node": ">=20.12.0"
|
|
12
28
|
},
|
|
13
29
|
"files": [
|
|
14
30
|
"dist",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"skills",
|
|
18
|
-
"ai-exported"
|
|
31
|
+
"!dist/**/*.map",
|
|
32
|
+
"README.md"
|
|
19
33
|
],
|
|
34
|
+
"sideEffects": false,
|
|
20
35
|
"exports": {
|
|
21
36
|
".": {
|
|
22
37
|
"types": "./dist/index.d.ts",
|
|
23
|
-
"import": "./dist/index.mjs"
|
|
24
|
-
"require": "./dist/index.cjs"
|
|
38
|
+
"import": "./dist/index.mjs"
|
|
25
39
|
},
|
|
26
40
|
"./xchains/*": {
|
|
27
41
|
"types": "./dist/xchains/*/index.d.ts",
|
|
28
|
-
"import": "./dist/xchains/*/index.mjs"
|
|
29
|
-
"require": "./dist/xchains/*/index.cjs"
|
|
42
|
+
"import": "./dist/xchains/*/index.mjs"
|
|
30
43
|
}
|
|
31
44
|
},
|
|
32
45
|
"typesVersions": {
|
|
@@ -41,9 +54,6 @@
|
|
|
41
54
|
"url": "https://github.com/icon-project/sodax-sdks"
|
|
42
55
|
},
|
|
43
56
|
"dependencies": {
|
|
44
|
-
"@stacks/connect": "8.2.6",
|
|
45
|
-
"@stacks/network": "7.3.1",
|
|
46
|
-
"@stacks/transactions": "7.3.1",
|
|
47
57
|
"@creit.tech/stellar-wallets-kit": "^1.7.5",
|
|
48
58
|
"@hot-labs/near-connect": "0.10.0",
|
|
49
59
|
"@injectivelabs/networks": "1.18.14",
|
|
@@ -52,54 +62,52 @@
|
|
|
52
62
|
"@injectivelabs/wallet-base": "1.18.14",
|
|
53
63
|
"@injectivelabs/wallet-core": "1.18.14",
|
|
54
64
|
"@injectivelabs/wallet-cosmos": "1.18.14",
|
|
55
|
-
"@injectivelabs/wallet-evm": "1.18.14",
|
|
56
|
-
"@injectivelabs/wallet-strategy": "1.18.14",
|
|
57
65
|
"@mysten/dapp-kit": "0.14.18",
|
|
58
66
|
"@mysten/sui": "1.21.2",
|
|
59
67
|
"near-api-js": "7.2.0",
|
|
60
68
|
"@solana/spl-token": "0.4.9",
|
|
61
69
|
"@solana/wallet-adapter-react": "0.15.35",
|
|
62
|
-
"@solana/wallet-adapter-wallets": "0.19.30",
|
|
63
70
|
"@solana/web3.js": "1.98.0",
|
|
64
71
|
"@stellar/stellar-sdk": "15.1.0",
|
|
65
|
-
"@walletconnect/ethereum-provider": "^2.23.9",
|
|
66
72
|
"icon-sdk-js": "1.5.3",
|
|
67
73
|
"immer": "10.1.1",
|
|
68
74
|
"sats-connect": "^4.2.1",
|
|
69
75
|
"viem": "2.29.2",
|
|
70
76
|
"wagmi": "2.16.9",
|
|
71
77
|
"zustand": "4.5.2",
|
|
72
|
-
"
|
|
73
|
-
"@sodax/wallet-sdk-core": "2.0.0-rc.
|
|
74
|
-
"@sodax/
|
|
78
|
+
"@sodax/types": "2.0.0-rc.21",
|
|
79
|
+
"@sodax/wallet-sdk-core": "2.0.0-rc.21",
|
|
80
|
+
"@sodax/libs": "2.0.0-rc.21"
|
|
75
81
|
},
|
|
76
82
|
"devDependencies": {
|
|
83
|
+
"@arethetypeswrong/cli": "0.17.4",
|
|
77
84
|
"@testing-library/react": "^16.1.0",
|
|
78
85
|
"@types/react": "^19.0.8",
|
|
79
86
|
"@types/react-dom": "^19.0.3",
|
|
87
|
+
"cross-env": "7.0.3",
|
|
80
88
|
"happy-dom": "^20.8.9",
|
|
81
89
|
"knip": "5.30.5",
|
|
90
|
+
"madge": "8.0.0",
|
|
82
91
|
"react-dom": "19.1.4",
|
|
92
|
+
"tslib": "2.8.1",
|
|
83
93
|
"tsup": "8.5.0",
|
|
84
94
|
"typescript": "5.5.4",
|
|
85
|
-
"vitest": "2.
|
|
95
|
+
"vitest": "3.2.6"
|
|
86
96
|
},
|
|
87
97
|
"peerDependencies": {
|
|
88
98
|
"@tanstack/react-query": "5.x",
|
|
89
99
|
"react": ">=19"
|
|
90
100
|
},
|
|
91
101
|
"scripts": {
|
|
92
|
-
"build": "NODE_OPTIONS=--max-old-space-size=8192 tsup",
|
|
102
|
+
"build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 tsup",
|
|
93
103
|
"dev": "tsup --watch ./src",
|
|
94
104
|
"clean": "rm -rf dist && rm -rf node_modules && rm -rf .turbo",
|
|
95
105
|
"pretty": "biome format . --write",
|
|
96
106
|
"checkTs": "tsc --noEmit",
|
|
97
|
-
"
|
|
107
|
+
"check-exports": "attw --pack --profile esm-only",
|
|
98
108
|
"test": "vitest run",
|
|
99
|
-
"knip": "knip",
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"check:ai-links": "bash ./scripts/check-ai-links.sh",
|
|
103
|
-
"check:ai-imports": "bash ./scripts/check-ai-imports.sh"
|
|
109
|
+
"check:knip": "knip",
|
|
110
|
+
"check:circular-deps": "madge --circular $(find ./src -name '*.ts' -o -name '*.tsx')",
|
|
111
|
+
"lint": "biome lint . --write"
|
|
104
112
|
}
|
|
105
113
|
}
|