@sodax/wallet-sdk-react 2.0.0-rc.2 → 2.0.0-rc.4
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 +12 -5
- package/dist/{chunk-BKJB527E.mjs → chunk-3QETHO6P.mjs} +1 -3
- package/dist/{chunk-PJLEJVAU.mjs → chunk-42LTUHMZ.mjs} +1 -3
- package/dist/{chunk-NY7U7OJW.mjs → chunk-7V7O3Q7Y.mjs} +0 -2
- package/dist/{chunk-BXJLBR4G.mjs → chunk-C6M34IVL.mjs} +2 -4
- package/dist/{chunk-XZ7CHO2S.mjs → chunk-FSOGMSJH.mjs} +2 -4
- package/dist/{chunk-X2MHIWXO.mjs → chunk-IFXZQW4C.mjs} +0 -2
- package/dist/{chunk-7ULB6DW4.mjs → chunk-JQ4H4GJ5.mjs} +3 -5
- package/dist/{chunk-N5A2TMF6.mjs → chunk-LKSSME2J.mjs} +2 -4
- package/dist/{chunk-PLCA4ZDJ.mjs → chunk-LUKR7YKV.mjs} +54 -30
- package/dist/{chunk-MXZVF5HR.mjs → chunk-NAKCAL2M.mjs} +0 -2
- package/dist/chunk-QMXBY3UI.mjs +1 -0
- package/dist/{chunk-MAQ47Q52.mjs → chunk-TACW7Z4D.mjs} +0 -2
- package/dist/{chunk-2BOUGCJ7.mjs → chunk-WPZOLGVB.mjs} +4 -6
- package/dist/{chunk-66BAUK56.mjs → chunk-X7BHR7WS.mjs} +2 -4
- package/dist/{chunk-E5IAZ7E6.mjs → chunk-Z5GXDHGL.mjs} +9 -5
- package/dist/{config-OlnzyEUE.d.ts → config-GVKK8IfY.d.ts} +6 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +20 -31
- package/dist/xchains/bitcoin/index.mjs +14 -16
- package/dist/xchains/evm/index.d.ts +1 -1
- package/dist/xchains/evm/index.mjs +3 -5
- package/dist/xchains/icon/index.mjs +5 -7
- package/dist/xchains/injective/index.mjs +3 -5
- package/dist/xchains/near/index.mjs +4 -6
- package/dist/xchains/solana/index.mjs +5 -7
- package/dist/xchains/stacks/index.mjs +3 -5
- package/dist/xchains/stellar/index.mjs +4 -6
- package/dist/xchains/sui/index.mjs +5 -7
- package/docs/ADDING_A_NEW_CHAIN.md +1 -1
- package/docs/SUB_PATH_EXPORTS.md +14 -42
- package/package.json +32 -23
- 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.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/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
package/README.md
CHANGED
|
@@ -117,14 +117,21 @@ The full guide lives in [`docs/`](docs/). Start with the topic that matches what
|
|
|
117
117
|
|
|
118
118
|
## AI agent docs
|
|
119
119
|
|
|
120
|
-
|
|
120
|
+
AI-readable docs for `@sodax/wallet-sdk-react` (and the other `@sodax/*` packages) are shipped via [`@sodax/skills`](https://github.com/icon-project/sodax-sdks/tree/main/packages/skills) — a separate npm package bundling Claude-Code SKILL.md files and a long-form knowledge tree.
|
|
121
121
|
|
|
122
|
+
**Recommended: [`skills` CLI](https://github.com/vercel-labs/skills)** — from your project root:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
npx skills@latest add icon-project/sodax-sdks/packages/skills
|
|
122
126
|
```
|
|
123
|
-
|
|
124
|
-
|
|
127
|
+
|
|
128
|
+
**npm + `AGENTS.md` pointer** (fallback for web chats, or when you prefer a devDependency over the CLI):
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
pnpm add -D @sodax/skills
|
|
125
132
|
```
|
|
126
133
|
|
|
127
|
-
|
|
134
|
+
Then point your agent at `node_modules/@sodax/skills/AGENTS.md`. See [docs/ai-integration-guide.md](https://github.com/icon-project/sodax-sdks/blob/main/docs/ai-integration-guide.md) for all install modes and per-tool wiring.
|
|
128
135
|
|
|
129
136
|
---
|
|
130
137
|
|
|
@@ -147,7 +154,7 @@ See [Connectors](docs/CONNECTORS.md) for the full list of deep-import sub-paths.
|
|
|
147
154
|
|
|
148
155
|
## Requirements
|
|
149
156
|
|
|
150
|
-
- Node.js >=
|
|
157
|
+
- Node.js >= 20.12.0
|
|
151
158
|
- React >= 19
|
|
152
159
|
- TypeScript
|
|
153
160
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { XService, XConnector } from './chunk-
|
|
1
|
+
import { XService, XConnector } from './chunk-IFXZQW4C.mjs';
|
|
2
2
|
import { getNetworkEndpoints, Network } from '@injectivelabs/networks';
|
|
3
3
|
import { IndexerGrpcAccountPortfolioApi, ChainGrpcWasmApi, getInjectiveAddress } from '@injectivelabs/sdk-ts';
|
|
4
4
|
import { ChainId } from '@injectivelabs/ts-types';
|
|
@@ -121,5 +121,3 @@ var InjectiveXConnector = class extends XConnector {
|
|
|
121
121
|
};
|
|
122
122
|
|
|
123
123
|
export { InjectiveXConnector, InjectiveXService };
|
|
124
|
-
//# sourceMappingURL=chunk-BKJB527E.mjs.map
|
|
125
|
-
//# sourceMappingURL=chunk-BKJB527E.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { XService, XConnector } from './chunk-
|
|
1
|
+
import { XService, XConnector } from './chunk-IFXZQW4C.mjs';
|
|
2
2
|
import { fetchCallReadOnlyFunction, Cl } from '@stacks/transactions';
|
|
3
3
|
import { networkFrom } from '@stacks/network';
|
|
4
4
|
import { request, disconnect } from '@stacks/connect';
|
|
@@ -136,5 +136,3 @@ function useStacksXConnectors() {
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
export { STACKS_PROVIDERS, StacksXConnector, StacksXService, useStacksXConnectors };
|
|
139
|
-
//# sourceMappingURL=chunk-PJLEJVAU.mjs.map
|
|
140
|
-
//# sourceMappingURL=chunk-PJLEJVAU.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NEAR_DEFAULT_RPC_URL } from './chunk-
|
|
2
|
-
import { XService, XConnector } from './chunk-
|
|
1
|
+
import { NEAR_DEFAULT_RPC_URL } from './chunk-NAKCAL2M.mjs';
|
|
2
|
+
import { XService, XConnector } from './chunk-IFXZQW4C.mjs';
|
|
3
3
|
import { NearConnector } from '@hot-labs/near-connect';
|
|
4
4
|
import { JsonRpcProvider } from 'near-api-js';
|
|
5
5
|
|
|
@@ -84,5 +84,3 @@ var NearXConnector = class extends XConnector {
|
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
export { NearXConnector, NearXService };
|
|
87
|
-
//# sourceMappingURL=chunk-BXJLBR4G.mjs.map
|
|
88
|
-
//# sourceMappingURL=chunk-BXJLBR4G.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isNativeToken } from './chunk-
|
|
2
|
-
import { XService } from './chunk-
|
|
1
|
+
import { isNativeToken } from './chunk-7V7O3Q7Y.mjs';
|
|
2
|
+
import { XService } from './chunk-IFXZQW4C.mjs';
|
|
3
3
|
import { PublicKey } from '@solana/web3.js';
|
|
4
4
|
import { getAssociatedTokenAddressSync, getAccount } from '@solana/spl-token';
|
|
5
5
|
|
|
@@ -37,5 +37,3 @@ var SolanaXService = class _SolanaXService extends XService {
|
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
export { SolanaXService };
|
|
40
|
-
//# sourceMappingURL=chunk-XZ7CHO2S.mjs.map
|
|
41
|
-
//# sourceMappingURL=chunk-XZ7CHO2S.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { assertSuiProviderShape, assert, isRecord, hasStringProperty, hasOptionalStringProperty } from './chunk-
|
|
2
|
-
import { isNativeToken } from './chunk-
|
|
3
|
-
import { XService, XConnector } from './chunk-
|
|
1
|
+
import { assertSuiProviderShape, assert, isRecord, hasStringProperty, hasOptionalStringProperty } from './chunk-TACW7Z4D.mjs';
|
|
2
|
+
import { isNativeToken } from './chunk-7V7O3Q7Y.mjs';
|
|
3
|
+
import { XService, XConnector } from './chunk-IFXZQW4C.mjs';
|
|
4
4
|
import { SuiWalletProvider } from '@sodax/wallet-sdk-core';
|
|
5
5
|
|
|
6
6
|
var SuiXService = class _SuiXService extends XService {
|
|
@@ -98,5 +98,3 @@ var SuiXConnector = class extends XConnector {
|
|
|
98
98
|
};
|
|
99
99
|
|
|
100
100
|
export { SuiXConnector, SuiXService };
|
|
101
|
-
//# sourceMappingURL=chunk-7ULB6DW4.mjs.map
|
|
102
|
-
//# sourceMappingURL=chunk-7ULB6DW4.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SolanaXService } from './chunk-
|
|
2
|
-
import { XConnector } from './chunk-
|
|
1
|
+
import { SolanaXService } from './chunk-FSOGMSJH.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,15 +1,15 @@
|
|
|
1
|
-
import { StellarWalletsKitXConnector, StellarXService } from './chunk-
|
|
2
|
-
import { SuiXService } from './chunk-
|
|
3
|
-
import { EvmXService } from './chunk-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { NearXService, NearXConnector } from './chunk-
|
|
8
|
-
import { BITCOIN_DEFAULT_RPC_URL, WALLET_METADATA } from './chunk-
|
|
9
|
-
import { SolanaXService } from './chunk-
|
|
10
|
-
import { isNativeToken, getEntryDefaults, getRpcUrl } from './chunk-
|
|
11
|
-
import { STACKS_PROVIDERS, StacksXService, StacksXConnector } from './chunk-
|
|
12
|
-
import { XConnector, XService } from './chunk-
|
|
1
|
+
import { StellarWalletsKitXConnector, StellarXService } from './chunk-X7BHR7WS.mjs';
|
|
2
|
+
import { SuiXService } from './chunk-JQ4H4GJ5.mjs';
|
|
3
|
+
import { EvmXService } from './chunk-Z5GXDHGL.mjs';
|
|
4
|
+
import { InjectiveXConnector, InjectiveXService } from './chunk-3QETHO6P.mjs';
|
|
5
|
+
import { IconHanaXConnector, IconXService, CHAIN_INFO } from './chunk-WPZOLGVB.mjs';
|
|
6
|
+
import { assert, isRecord, hasFunctionProperty } from './chunk-TACW7Z4D.mjs';
|
|
7
|
+
import { NearXService, NearXConnector } from './chunk-C6M34IVL.mjs';
|
|
8
|
+
import { BITCOIN_DEFAULT_RPC_URL, WALLET_METADATA } from './chunk-NAKCAL2M.mjs';
|
|
9
|
+
import { SolanaXService } from './chunk-FSOGMSJH.mjs';
|
|
10
|
+
import { isNativeToken, getEntryDefaults, getRpcUrl } from './chunk-7V7O3Q7Y.mjs';
|
|
11
|
+
import { STACKS_PROVIDERS, StacksXService, StacksXConnector } from './chunk-42LTUHMZ.mjs';
|
|
12
|
+
import { XConnector, XService } from './chunk-IFXZQW4C.mjs';
|
|
13
13
|
import { ChainTypeArr, baseChainInfo, ChainKeys, detectBitcoinAddressType, CHAIN_KEYS } from '@sodax/types';
|
|
14
14
|
import { AddressPurpose, MessageSigningProtocols } from 'sats-connect';
|
|
15
15
|
import { createContext, useMemo, useSyncExternalStore, useCallback, useState, useRef, useContext, useEffect } from 'react';
|
|
@@ -803,9 +803,20 @@ var useXWalletStore = create()(
|
|
|
803
803
|
}
|
|
804
804
|
})),
|
|
805
805
|
{
|
|
806
|
-
// key kept as 'xwagmi-store' for backward compat
|
|
806
|
+
// key kept as 'xwagmi-store' for backward compat, existing users won't lose persisted connections on upgrade
|
|
807
807
|
name: "xwagmi-store",
|
|
808
|
-
|
|
808
|
+
// Throw on SSR or when localStorage rejects writes (Safari strict
|
|
809
|
+
// private mode, disabled storage). `createJSONStorage` catches the
|
|
810
|
+
// throw, zustand short-circuits `.persist`, and downstream falls back
|
|
811
|
+
// via `usePersistHydrated`. `setItem` probe is required because modern
|
|
812
|
+
// Safari only throws on writes, not reads.
|
|
813
|
+
storage: createJSONStorage(() => {
|
|
814
|
+
if (typeof window === "undefined") throw new Error("no window");
|
|
815
|
+
const probe = "__sodax_probe__";
|
|
816
|
+
window.localStorage.setItem(probe, "1");
|
|
817
|
+
window.localStorage.removeItem(probe);
|
|
818
|
+
return window.localStorage;
|
|
819
|
+
}),
|
|
809
820
|
partialize: (state) => ({
|
|
810
821
|
xConnections: state.xConnections,
|
|
811
822
|
userDisconnected: state.userDisconnected
|
|
@@ -988,6 +999,33 @@ function useChainGroups({ order } = {}) {
|
|
|
988
999
|
[enabledChains, xConnections, order]
|
|
989
1000
|
);
|
|
990
1001
|
}
|
|
1002
|
+
var NOOP = () => {
|
|
1003
|
+
};
|
|
1004
|
+
function subscribe(onChange) {
|
|
1005
|
+
const api = useXWalletStore.persist;
|
|
1006
|
+
if (!api) return NOOP;
|
|
1007
|
+
const unsubHydrate = api.onHydrate(onChange);
|
|
1008
|
+
const unsubFinish = api.onFinishHydration(onChange);
|
|
1009
|
+
return () => {
|
|
1010
|
+
unsubHydrate();
|
|
1011
|
+
unsubFinish();
|
|
1012
|
+
};
|
|
1013
|
+
}
|
|
1014
|
+
var getSnapshot = () => useXWalletStore.persist?.hasHydrated() ?? true;
|
|
1015
|
+
var getServerSnapshot = () => false;
|
|
1016
|
+
function usePersistHydrated() {
|
|
1017
|
+
return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
1018
|
+
}
|
|
1019
|
+
function whenPersistReady(cb) {
|
|
1020
|
+
const api = useXWalletStore.persist;
|
|
1021
|
+
if (!api || api.hasHydrated()) {
|
|
1022
|
+
cb();
|
|
1023
|
+
return;
|
|
1024
|
+
}
|
|
1025
|
+
api.onFinishHydration(cb);
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
// src/hooks/useConnectedChains.ts
|
|
991
1029
|
function buildConnectedChains(xConnections, xConnectorsByChain, isReady = true, order) {
|
|
992
1030
|
const chains = [];
|
|
993
1031
|
for (const chainType of ChainTypeArr) {
|
|
@@ -1012,22 +1050,10 @@ function buildConnectedChains(xConnections, xConnectorsByChain, isReady = true,
|
|
|
1012
1050
|
status: isReady ? "ready" : "loading"
|
|
1013
1051
|
};
|
|
1014
1052
|
}
|
|
1015
|
-
function subscribeHydration(onChange) {
|
|
1016
|
-
const unsubHydrate = useXWalletStore.persist.onHydrate(onChange);
|
|
1017
|
-
const unsubFinish = useXWalletStore.persist.onFinishHydration(onChange);
|
|
1018
|
-
return () => {
|
|
1019
|
-
unsubHydrate();
|
|
1020
|
-
unsubFinish();
|
|
1021
|
-
};
|
|
1022
|
-
}
|
|
1023
1053
|
function useConnectedChains({ order } = {}) {
|
|
1024
1054
|
const xConnections = useXConnections();
|
|
1025
1055
|
const xConnectorsByChain = useXConnectorsByChain();
|
|
1026
|
-
const isReady =
|
|
1027
|
-
subscribeHydration,
|
|
1028
|
-
() => useXWalletStore.persist.hasHydrated(),
|
|
1029
|
-
() => false
|
|
1030
|
-
);
|
|
1056
|
+
const isReady = usePersistHydrated();
|
|
1031
1057
|
return useMemo(
|
|
1032
1058
|
() => buildConnectedChains(xConnections, xConnectorsByChain, isReady, order),
|
|
1033
1059
|
[xConnections, xConnectorsByChain, isReady, order]
|
|
@@ -1580,6 +1606,4 @@ function useBitcoinXConnectors() {
|
|
|
1580
1606
|
}, [xService]);
|
|
1581
1607
|
}
|
|
1582
1608
|
|
|
1583
|
-
export { BitcoinXConnector, BitcoinXService, OKXXConnector, UnisatXConnector, WalletConfigProvider, XverseXConnector, chainRegistry, getXChainType, getXService, useBatchConnect, useBatchDisconnect, useBitcoinXConnectors, useChainGroups, useConnectedChains, useConnectionFlow, useEnabledChainTypes, useEnabledChains, useEvmSwitchChain, useIsChainEnabled, useIsWalletInstalled, useWalletConfig, useWalletModal, useWalletProvider, useXAccount, useXAccounts, useXConnect, useXConnection, useXConnections, useXConnectors, useXConnectorsByChain, useXDisconnect, useXService, useXServices, useXSignMessage, useXWalletStore };
|
|
1584
|
-
//# sourceMappingURL=chunk-PLCA4ZDJ.mjs.map
|
|
1585
|
-
//# sourceMappingURL=chunk-PLCA4ZDJ.mjs.map
|
|
1609
|
+
export { BitcoinXConnector, BitcoinXService, OKXXConnector, UnisatXConnector, WalletConfigProvider, XverseXConnector, chainRegistry, getXChainType, getXService, useBatchConnect, useBatchDisconnect, useBitcoinXConnectors, useChainGroups, useConnectedChains, useConnectionFlow, useEnabledChainTypes, useEnabledChains, useEvmSwitchChain, useIsChainEnabled, useIsWalletInstalled, usePersistHydrated, useWalletConfig, useWalletModal, useWalletProvider, useXAccount, useXAccounts, useXConnect, useXConnection, useXConnections, useXConnectors, useXConnectorsByChain, useXDisconnect, useXService, useXServices, useXSignMessage, useXWalletStore, whenPersistReady };
|
|
@@ -30,5 +30,3 @@ var WALLET_METADATA = {
|
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
export { BITCOIN_DEFAULT_RPC_URL, EVM_DEFAULT_RECONNECT_ON_MOUNT, EVM_DEFAULT_SSR, NEAR_DEFAULT_RPC_URL, SOLANA_DEFAULT_AUTO_CONNECT, SOLANA_DEFAULT_RPC_URL, SOLANA_METAMASK_CONNECT_TIMEOUT_MS, STELLAR_DEFAULT_HORIZON_RPC_URL, STELLAR_DEFAULT_SOROBAN_RPC_URL, SUI_DEFAULT_AUTO_CONNECT, SUI_DEFAULT_NETWORK, WALLET_METADATA };
|
|
33
|
-
//# sourceMappingURL=chunk-MXZVF5HR.mjs.map
|
|
34
|
-
//# sourceMappingURL=chunk-MXZVF5HR.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -29,5 +29,3 @@ function assertSuiProviderShape(caller, client, wallet, account) {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export { assert, assertSuiProviderShape, hasBooleanProperty, hasFunctionProperty, hasOptionalStringProperty, hasStringProperty, isRecord };
|
|
32
|
-
//# sourceMappingURL=chunk-MAQ47Q52.mjs.map
|
|
33
|
-
//# sourceMappingURL=chunk-MAQ47Q52.mjs.map
|
|
@@ -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,5 +1,5 @@
|
|
|
1
|
-
import { STELLAR_DEFAULT_HORIZON_RPC_URL, STELLAR_DEFAULT_SOROBAN_RPC_URL } from './chunk-
|
|
2
|
-
import { XService, XConnector } from './chunk-
|
|
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
3
|
import { StellarWalletsKit, allowAllModules, WalletNetwork } from '@creit.tech/stellar-wallets-kit';
|
|
4
4
|
import * as StellarSdk from '@stellar/stellar-sdk';
|
|
5
5
|
import { rpc, Address, Contract, TimeoutInfinite, scValToBigInt } from '@stellar/stellar-sdk';
|
|
@@ -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 { getRpcUrl, getWagmiChainId, isNativeToken } from './chunk-
|
|
2
|
-
import { XService, XConnector } from './chunk-
|
|
1
|
+
import { getRpcUrl, getWagmiChainId, isNativeToken } from './chunk-7V7O3Q7Y.mjs';
|
|
2
|
+
import { XService, XConnector } from './chunk-IFXZQW4C.mjs';
|
|
3
3
|
import { ChainKeys } from '@sodax/types';
|
|
4
4
|
import { defineChain, erc20Abi } from 'viem';
|
|
5
5
|
import { getPublicClient } from 'wagmi/actions';
|
|
@@ -47,7 +47,13 @@ var createWagmiConfig = (evmChains, options) => {
|
|
|
47
47
|
redbellyMainnet
|
|
48
48
|
],
|
|
49
49
|
connectors: options?.connectors ?? [],
|
|
50
|
-
|
|
50
|
+
// NOTE: wagmi's `ssr` is a hydration-timing flag, not an "is host app SSR"
|
|
51
|
+
// flag. `true` defers `Hydrate.onMount()` into `useEffect` (safe for both
|
|
52
|
+
// CSR and SSR); `false` runs it in render and trips React's "setState
|
|
53
|
+
// during render" warning on subscribers like `EvmHydrator`. Default to
|
|
54
|
+
// `true` so direct callers of `createWagmiConfig` stay safe — only pass
|
|
55
|
+
// `false` if you have a specific reason. See issue #129.
|
|
56
|
+
ssr: options?.ssr ?? true,
|
|
51
57
|
transports: {
|
|
52
58
|
[mainnet.id]: http(getRpcUrl(evmChains?.[ChainKeys.ETHEREUM_MAINNET])),
|
|
53
59
|
[avalanche.id]: http(getRpcUrl(evmChains?.[ChainKeys.AVALANCHE_MAINNET])),
|
|
@@ -182,5 +188,3 @@ var EvmXConnector = class extends XConnector {
|
|
|
182
188
|
};
|
|
183
189
|
|
|
184
190
|
export { EvmXConnector, EvmXService, createWagmiConfig };
|
|
185
|
-
//# sourceMappingURL=chunk-E5IAZ7E6.mjs.map
|
|
186
|
-
//# sourceMappingURL=chunk-E5IAZ7E6.mjs.map
|
|
@@ -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;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import { X as XAccount, I as IXConnector, a as XConnection, b as XService, c as
|
|
|
4
4
|
export { d as IXService } from './XConnector-B9YQTVJ4.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, E as EvmChainEntry } from './config-
|
|
8
|
-
export { B as BitcoinChainEntry, o as BitcoinTypeConfig, i as ChainMeta, k as ChainTypeConfig, j as ChainTypeOf, f as EvmAdapterFields, l as EvmTypeConfig, I as IconChainEntry, r as IconTypeConfig, d as InjectiveChainEntry, q as InjectiveTypeConfig, N as NearChainEntry, s as NearTypeConfig, g as SolanaAdapterFields, a as SolanaChainEntry, m as SolanaTypeConfig, e as StacksChainEntry, t as StacksTypeConfig, c as StellarChainEntry, p as StellarTypeConfig, h as SuiAdapterFields, b as SuiChainEntry, n as SuiTypeConfig } from './config-
|
|
7
|
+
import { S as SodaxWalletConfig, C as ChainEntry, W as WalletDefaultsByKey, E as EvmChainEntry } from './config-GVKK8IfY.js';
|
|
8
|
+
export { B as BitcoinChainEntry, o as BitcoinTypeConfig, i as ChainMeta, k as ChainTypeConfig, j as ChainTypeOf, f as EvmAdapterFields, l as EvmTypeConfig, I as IconChainEntry, r as IconTypeConfig, d as InjectiveChainEntry, q as InjectiveTypeConfig, N as NearChainEntry, s as NearTypeConfig, g as SolanaAdapterFields, a as SolanaChainEntry, m as SolanaTypeConfig, e as StacksChainEntry, t as StacksTypeConfig, c as StellarChainEntry, p as StellarTypeConfig, h as SuiAdapterFields, b as SuiChainEntry, n as SuiTypeConfig } from './config-GVKK8IfY.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 { StellarXService } from './chunk-
|
|
4
|
-
import { SuiXService, SuiXConnector } from './chunk-
|
|
5
|
-
import { createWagmiConfig, EvmXService, EvmXConnector } from './chunk-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
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 { SolanaXConnector } from './chunk-
|
|
12
|
-
import { SolanaXService } from './chunk-
|
|
13
|
-
import { getEntryDefaults, resolveEvmDefaults } from './chunk-
|
|
14
|
-
export { getEntryDefaults, getRpcUrl, getWagmiChainId, isNativeToken, resolveEvmDefaults, sortConnectors } from './chunk-
|
|
15
|
-
import './chunk-
|
|
16
|
-
import './chunk-
|
|
17
|
-
export { XConnector, XService } from './chunk-
|
|
18
|
-
import { useRef, useEffect, useMemo
|
|
1
|
+
import { WalletConfigProvider, useXWalletStore, whenPersistReady, chainRegistry, useWalletConfig, usePersistHydrated } from './chunk-LUKR7YKV.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-LUKR7YKV.mjs';
|
|
3
|
+
import { StellarXService } from './chunk-X7BHR7WS.mjs';
|
|
4
|
+
import { SuiXService, SuiXConnector } from './chunk-JQ4H4GJ5.mjs';
|
|
5
|
+
import { createWagmiConfig, EvmXService, EvmXConnector } from './chunk-Z5GXDHGL.mjs';
|
|
6
|
+
import { InjectiveXService } from './chunk-3QETHO6P.mjs';
|
|
7
|
+
import { request } from './chunk-WPZOLGVB.mjs';
|
|
8
|
+
import { assertSuiProviderShape } from './chunk-TACW7Z4D.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 { SolanaXConnector } from './chunk-LKSSME2J.mjs';
|
|
12
|
+
import { SolanaXService } from './chunk-FSOGMSJH.mjs';
|
|
13
|
+
import { getEntryDefaults, resolveEvmDefaults } from './chunk-7V7O3Q7Y.mjs';
|
|
14
|
+
export { getEntryDefaults, getRpcUrl, getWagmiChainId, isNativeToken, resolveEvmDefaults, sortConnectors } from './chunk-7V7O3Q7Y.mjs';
|
|
15
|
+
import './chunk-42LTUHMZ.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,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 { BitcoinXConnector, BitcoinXService, OKXXConnector, UnisatXConnector, XverseXConnector, useBitcoinXConnectors } from '../../chunk-LUKR7YKV.mjs';
|
|
2
|
+
import '../../chunk-X7BHR7WS.mjs';
|
|
3
|
+
import '../../chunk-JQ4H4GJ5.mjs';
|
|
4
|
+
import '../../chunk-Z5GXDHGL.mjs';
|
|
5
|
+
import '../../chunk-3QETHO6P.mjs';
|
|
6
|
+
import '../../chunk-WPZOLGVB.mjs';
|
|
7
|
+
import '../../chunk-TACW7Z4D.mjs';
|
|
8
|
+
import '../../chunk-C6M34IVL.mjs';
|
|
9
|
+
import '../../chunk-NAKCAL2M.mjs';
|
|
10
|
+
import '../../chunk-FSOGMSJH.mjs';
|
|
11
|
+
import '../../chunk-7V7O3Q7Y.mjs';
|
|
12
|
+
import '../../chunk-42LTUHMZ.mjs';
|
|
13
|
+
import '../../chunk-QMXBY3UI.mjs';
|
|
14
|
+
import '../../chunk-IFXZQW4C.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { b as XService, c as XConnector, X as XAccount } from '../../XConnector-B9YQTVJ4.js';
|
|
2
2
|
import { XToken } from '@sodax/types';
|
|
3
|
-
import { l as EvmTypeConfig } from '../../config-
|
|
3
|
+
import { l as EvmTypeConfig } from '../../config-GVKK8IfY.js';
|
|
4
4
|
import { Config, CreateConnectorFn, Connector } from 'wagmi';
|
|
5
5
|
import '@sodax/wallet-sdk-core';
|
|
6
6
|
import 'wagmi/connectors';
|
|
@@ -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-Z5GXDHGL.mjs';
|
|
2
|
+
import '../../chunk-7V7O3Q7Y.mjs';
|
|
3
|
+
import '../../chunk-IFXZQW4C.mjs';
|
|
@@ -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,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-3QETHO6P.mjs';
|
|
2
|
+
import '../../chunk-QMXBY3UI.mjs';
|
|
3
|
+
import '../../chunk-IFXZQW4C.mjs';
|
|
@@ -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,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-LKSSME2J.mjs';
|
|
2
|
+
export { SolanaXService } from '../../chunk-FSOGMSJH.mjs';
|
|
3
|
+
import '../../chunk-7V7O3Q7Y.mjs';
|
|
4
|
+
import '../../chunk-QMXBY3UI.mjs';
|
|
5
|
+
import '../../chunk-IFXZQW4C.mjs';
|
|
@@ -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-42LTUHMZ.mjs';
|
|
2
|
+
import '../../chunk-QMXBY3UI.mjs';
|
|
3
|
+
import '../../chunk-IFXZQW4C.mjs';
|
|
@@ -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,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';
|
|
@@ -419,7 +419,7 @@ Before opening a PR, walk through each item:
|
|
|
419
419
|
|
|
420
420
|
- [ ] `pnpm checkTs` passes — `SodaxWalletConfig.APTOS` is recognized; `useWalletProvider({ xChainType: 'APTOS' })` returns the right type.
|
|
421
421
|
- [ ] `pnpm test` passes for new files.
|
|
422
|
-
- [ ] `pnpm build:packages` produces `dist/xchains/aptos/index.{mjs,
|
|
422
|
+
- [ ] `pnpm build:packages` produces `dist/xchains/aptos/index.{mjs,d.ts}`.
|
|
423
423
|
- [ ] `import { AptosXService } from '@sodax/wallet-sdk-react/xchains/aptos'` resolves in a consumer app.
|
|
424
424
|
- [ ] `import { AptosXService } from '@sodax/wallet-sdk-react'` is **not** available (intentional — concrete classes stay behind deep imports).
|
|
425
425
|
- [ ] Adding `APTOS: {}` to `SodaxWalletConfig` mounts the chain; omitting the slot skips it.
|