@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
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
# Skill: Multi-chain Modal
|
|
2
|
-
|
|
3
|
-
Headless wallet-connect modal that walks the user through `chainSelect → walletSelect → connecting → success | error`. Pair with `useChainGroups` for the chain picker and `useXConnectors` for the wallet picker. Render-agnostic — works with any dialog/drawer/inline UI.
|
|
4
|
-
|
|
5
|
-
**Depends on:** [setup.md](https://github.com/icon-project/sodax-sdks/blob/main/packages/wallet-sdk-react/skills/setup.md)
|
|
6
|
-
|
|
7
|
-
## Hooks
|
|
8
|
-
|
|
9
|
-
| Hook | Purpose |
|
|
10
|
-
|------|---------|
|
|
11
|
-
| `useWalletModal({ onConnected? })` | State machine + actions (`open`, `close`, `back`, `selectChain`, `selectWallet`, `retry`) |
|
|
12
|
-
| `useChainGroups({ order? })` | One row per enabled chain family (EVM collapses to one row) |
|
|
13
|
-
| `useXConnectors({ xChainType })` | Wallet list for the chosen chain family |
|
|
14
|
-
| `useXAccount({ xChainType })` | Read the connected account when needed |
|
|
15
|
-
|
|
16
|
-
## Render switch
|
|
17
|
-
|
|
18
|
-
```tsx
|
|
19
|
-
import {
|
|
20
|
-
useWalletModal,
|
|
21
|
-
useChainGroups,
|
|
22
|
-
useXConnectors,
|
|
23
|
-
type IXConnector,
|
|
24
|
-
} from '@sodax/wallet-sdk-react';
|
|
25
|
-
|
|
26
|
-
export function WalletModalRoot() {
|
|
27
|
-
const modal = useWalletModal({
|
|
28
|
-
onConnected: async (chainType, account) => {
|
|
29
|
-
// app side-effects (e.g. registration, ToS check)
|
|
30
|
-
console.log('connected', chainType, account.address);
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
switch (modal.state.kind) {
|
|
35
|
-
case 'closed':
|
|
36
|
-
return <button onClick={modal.open}>Connect Wallet</button>;
|
|
37
|
-
|
|
38
|
-
case 'chainSelect':
|
|
39
|
-
return <ChainPicker onPick={modal.selectChain} onClose={modal.close} />;
|
|
40
|
-
|
|
41
|
-
case 'walletSelect':
|
|
42
|
-
return (
|
|
43
|
-
<WalletPicker
|
|
44
|
-
chainType={modal.state.chainType}
|
|
45
|
-
onPick={modal.selectWallet}
|
|
46
|
-
onBack={modal.back}
|
|
47
|
-
onClose={modal.close}
|
|
48
|
-
/>
|
|
49
|
-
);
|
|
50
|
-
|
|
51
|
-
case 'connecting':
|
|
52
|
-
// Hide modal while wagmi's QR modal is up for WalletConnect
|
|
53
|
-
if (modal.state.connector.id === 'walletConnect') return null;
|
|
54
|
-
return (
|
|
55
|
-
<Dialog onClose={modal.close}>
|
|
56
|
-
<p>Approve in {modal.state.connector.name}…</p>
|
|
57
|
-
<button onClick={modal.back}>Cancel</button>
|
|
58
|
-
</Dialog>
|
|
59
|
-
);
|
|
60
|
-
|
|
61
|
-
case 'success':
|
|
62
|
-
// onConnected fired; close after a beat
|
|
63
|
-
setTimeout(modal.close, 0);
|
|
64
|
-
return null;
|
|
65
|
-
|
|
66
|
-
case 'error':
|
|
67
|
-
return (
|
|
68
|
-
<Dialog onClose={modal.close}>
|
|
69
|
-
<p>{modal.state.error.message}</p>
|
|
70
|
-
{!modal.state.connector.isInstalled && modal.state.connector.installUrl && (
|
|
71
|
-
<a href={modal.state.connector.installUrl}>Install {modal.state.connector.name}</a>
|
|
72
|
-
)}
|
|
73
|
-
<button onClick={modal.retry}>Retry</button>
|
|
74
|
-
<button onClick={modal.back}>Pick another wallet</button>
|
|
75
|
-
</Dialog>
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
Render `<WalletModalRoot />` once at the app root — any other component can dispatch `useWalletModal().open()` to show it.
|
|
82
|
-
|
|
83
|
-
## Chain picker (driven by `useChainGroups`)
|
|
84
|
-
|
|
85
|
-
```tsx
|
|
86
|
-
import { useChainGroups } from '@sodax/wallet-sdk-react';
|
|
87
|
-
import type { ChainType } from '@sodax/types';
|
|
88
|
-
|
|
89
|
-
function ChainPicker({ onPick, onClose }: { onPick: (c: ChainType) => void; onClose: () => void }) {
|
|
90
|
-
const groups = useChainGroups({ order: ['EVM', 'SOLANA', 'BITCOIN', 'ICON'] });
|
|
91
|
-
|
|
92
|
-
return (
|
|
93
|
-
<Dialog onClose={onClose}>
|
|
94
|
-
<h2>Select a chain</h2>
|
|
95
|
-
{groups.map((group) => (
|
|
96
|
-
<button key={group.chainType} onClick={() => onPick(group.chainType)}>
|
|
97
|
-
{group.iconUrl && <img src={group.iconUrl} alt="" width={24} height={24} />}
|
|
98
|
-
<span>{group.displayName}</span>
|
|
99
|
-
{group.isConnected && <span>Connected</span>}
|
|
100
|
-
</button>
|
|
101
|
-
))}
|
|
102
|
-
</Dialog>
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
EVM collapses to a single group covering every configured EVM network — this matches reality (wagmi maintains one connection across all EVM chains).
|
|
108
|
-
|
|
109
|
-
## Wallet picker (driven by `useXConnectors`)
|
|
110
|
-
|
|
111
|
-
```tsx
|
|
112
|
-
import { useXConnectors, sortConnectors, type IXConnector } from '@sodax/wallet-sdk-react';
|
|
113
|
-
import type { ChainType } from '@sodax/types';
|
|
114
|
-
|
|
115
|
-
function WalletPicker({
|
|
116
|
-
chainType,
|
|
117
|
-
onPick,
|
|
118
|
-
onBack,
|
|
119
|
-
onClose,
|
|
120
|
-
}: {
|
|
121
|
-
chainType: ChainType;
|
|
122
|
-
onPick: (c: IXConnector) => void;
|
|
123
|
-
onBack: () => void;
|
|
124
|
-
onClose: () => void;
|
|
125
|
-
}) {
|
|
126
|
-
const connectors = sortConnectors(useXConnectors({ xChainType: chainType }), {
|
|
127
|
-
preferred: ['hana', 'metamask', 'phantom'],
|
|
128
|
-
});
|
|
129
|
-
|
|
130
|
-
return (
|
|
131
|
-
<Dialog onClose={onClose}>
|
|
132
|
-
<button onClick={onBack}>← Back</button>
|
|
133
|
-
<h2>Select a wallet</h2>
|
|
134
|
-
{connectors.map((connector) => (
|
|
135
|
-
<button key={connector.id} onClick={() => onPick(connector)}>
|
|
136
|
-
{connector.icon && <img src={connector.icon} alt="" />}
|
|
137
|
-
{connector.name}
|
|
138
|
-
{!connector.isInstalled && ' (not installed)'}
|
|
139
|
-
</button>
|
|
140
|
-
))}
|
|
141
|
-
</Dialog>
|
|
142
|
-
);
|
|
143
|
-
}
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
## Concurrency rules
|
|
147
|
-
|
|
148
|
-
- **Same connector double-click** → returns the same in-flight promise (no double popup).
|
|
149
|
-
- **Different connector mid-attempt** → starts a new attempt; previous one's late resolution is dropped.
|
|
150
|
-
- **`back()` / `close()` mid-attempt** → cancellation guard inside the modal layer; the wallet may still approve in the background but `success`/`error` won't fire. To roll back, call `useXDisconnect({ xChainType })` from the same handler.
|
|
151
|
-
|
|
152
|
-
## `onConnected` is non-fatal
|
|
153
|
-
|
|
154
|
-
Throwing inside `onConnected` is logged but **does not** downgrade `success` → `error`. The connection is already persisted; the user is genuinely connected.
|
|
155
|
-
|
|
156
|
-
## Non-modal alternative — `useConnectionFlow`
|
|
157
|
-
|
|
158
|
-
For a single-button flow without the multi-step modal:
|
|
159
|
-
|
|
160
|
-
```tsx
|
|
161
|
-
import { useConnectionFlow } from '@sodax/wallet-sdk-react';
|
|
162
|
-
|
|
163
|
-
const { status, error, connect, retry, activeConnector } = useConnectionFlow();
|
|
164
|
-
|
|
165
|
-
return (
|
|
166
|
-
<button onClick={() => connect(connector)} disabled={status === 'connecting'}>
|
|
167
|
-
{status === 'connecting' ? 'Waiting…' : 'Connect'}
|
|
168
|
-
</button>
|
|
169
|
-
);
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
`connect()` and `retry()` never throw — errors flow into `error` state.
|
|
173
|
-
|
|
174
|
-
## Reference docs
|
|
175
|
-
|
|
176
|
-
- [Wallet Modal](https://github.com/icon-project/sodax-sdks/blob/main/packages/wallet-sdk-react/docs/WALLET_MODAL.md) — full state machine + cancellation semantics
|
|
177
|
-
- [Chain Detection](https://github.com/icon-project/sodax-sdks/blob/main/packages/wallet-sdk-react/docs/CHAIN_DETECTION.md) — `useChainGroups` + ordering
|
|
178
|
-
- [Connect Flow](https://github.com/icon-project/sodax-sdks/blob/main/packages/wallet-sdk-react/docs/CONNECT_FLOW.md) — underlying `useXConnect` lifecycle
|
package/skills/setup.md
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
# Skill: Setup
|
|
2
|
-
|
|
3
|
-
Install and wire `@sodax/wallet-sdk-react` into a React project.
|
|
4
|
-
|
|
5
|
-
**Depends on:** None
|
|
6
|
-
|
|
7
|
-
## Install
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
pnpm add @sodax/wallet-sdk-react @tanstack/react-query
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Peer dependencies:
|
|
14
|
-
|
|
15
|
-
```json
|
|
16
|
-
{
|
|
17
|
-
"react": ">=19",
|
|
18
|
-
"@tanstack/react-query": "5.x"
|
|
19
|
-
}
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
## Wire `SodaxWalletProvider`
|
|
23
|
-
|
|
24
|
-
Top-level keys on `SodaxWalletConfig` are chain-type slots — **omit a slot to skip mounting that adapter**, pass `{}` to mount with SDK defaults. `<QueryClientProvider>` must wrap `<SodaxWalletProvider>`.
|
|
25
|
-
|
|
26
|
-
```tsx
|
|
27
|
-
// providers.tsx
|
|
28
|
-
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|
29
|
-
import { SodaxWalletProvider, type SodaxWalletConfig } from '@sodax/wallet-sdk-react';
|
|
30
|
-
import { ChainKeys } from '@sodax/types';
|
|
31
|
-
|
|
32
|
-
const queryClient = new QueryClient();
|
|
33
|
-
|
|
34
|
-
const walletConfig: SodaxWalletConfig = {
|
|
35
|
-
EVM: {
|
|
36
|
-
ssr: true, // Next.js — keep true for SSR-safe hydration
|
|
37
|
-
chains: {
|
|
38
|
-
[ChainKeys.SONIC_MAINNET]: { rpcUrl: 'https://rpc.soniclabs.com' },
|
|
39
|
-
[ChainKeys.ETHEREUM_MAINNET]: { rpcUrl: 'https://ethereum-rpc.publicnode.com' },
|
|
40
|
-
[ChainKeys.BSC_MAINNET]: { rpcUrl: 'https://bsc-dataseed.binance.org' },
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
ICON: {
|
|
44
|
-
chains: { [ChainKeys.ICON_MAINNET]: { rpcUrl: 'https://ctz.solidwallet.io/api/v3' } },
|
|
45
|
-
},
|
|
46
|
-
// BITCOIN: {}, // mount with SDK defaults
|
|
47
|
-
// SOLANA: { chains: { [ChainKeys.SOLANA_MAINNET]: { rpcUrl: '...' } } },
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export function Providers({ children }: { children: React.ReactNode }) {
|
|
51
|
-
return (
|
|
52
|
-
<QueryClientProvider client={queryClient}>
|
|
53
|
-
<SodaxWalletProvider config={walletConfig}>{children}</SodaxWalletProvider>
|
|
54
|
-
</QueryClientProvider>
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
Use `Providers` at the app root (e.g. `app/layout.tsx` for Next.js, `main.tsx` for Vite).
|
|
60
|
-
|
|
61
|
-
## Chain-type slots
|
|
62
|
-
|
|
63
|
-
| Slot | Mounts | When to include |
|
|
64
|
-
|------|--------|-----------------|
|
|
65
|
-
| `EVM` | wagmi (12 EVM chains) | Sonic, Ethereum, Arbitrum, Base, BSC, etc. |
|
|
66
|
-
| `SOLANA` | `@solana/wallet-adapter-react` | Solana support |
|
|
67
|
-
| `SUI` | `@mysten/dapp-kit` | Sui support |
|
|
68
|
-
| `BITCOIN` | (no React adapter) | Bitcoin support |
|
|
69
|
-
| `STELLAR` | (no React adapter) | Stellar support |
|
|
70
|
-
| `ICON` | (no React adapter) | ICON support |
|
|
71
|
-
| `INJECTIVE` | (no React adapter) | Injective support |
|
|
72
|
-
| `NEAR` | (no React adapter) | NEAR support |
|
|
73
|
-
| `STACKS` | (no React adapter) | Stacks support |
|
|
74
|
-
|
|
75
|
-
## Config is captured once on mount
|
|
76
|
-
|
|
77
|
-
`SodaxWalletProvider` freezes the `config` prop on first render. Subsequent re-renders with a new reference have **no effect**. To swap config at runtime, remount with a new `key`:
|
|
78
|
-
|
|
79
|
-
```tsx
|
|
80
|
-
<SodaxWalletProvider key={configVersion} config={walletConfig}>
|
|
81
|
-
{children}
|
|
82
|
-
</SodaxWalletProvider>
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
## Pair with `@sodax/dapp-kit` (optional)
|
|
86
|
-
|
|
87
|
-
If you also use `@sodax/dapp-kit` for SDK feature hooks, mount `SodaxProvider` outermost:
|
|
88
|
-
|
|
89
|
-
```tsx
|
|
90
|
-
<SodaxProvider config={sodaxConfig}>
|
|
91
|
-
<QueryClientProvider client={queryClient}>
|
|
92
|
-
<SodaxWalletProvider config={walletConfig}>{children}</SodaxWalletProvider>
|
|
93
|
-
</QueryClientProvider>
|
|
94
|
-
</SodaxProvider>
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
See [`packages/dapp-kit/skills/setup.md`](https://github.com/icon-project/sodax-sdks/blob/main/packages/dapp-kit/skills/setup.md) for the dapp-kit side.
|
|
98
|
-
|
|
99
|
-
## Next steps
|
|
100
|
-
|
|
101
|
-
- [`connect-button.md`](https://github.com/icon-project/sodax-sdks/blob/main/packages/wallet-sdk-react/skills/connect-button.md) — single-chain connect/disconnect button
|
|
102
|
-
- [`multi-chain-modal.md`](https://github.com/icon-project/sodax-sdks/blob/main/packages/wallet-sdk-react/skills/multi-chain-modal.md) — multi-chain headless wallet modal
|
|
103
|
-
- [`bridge-to-sdk.md`](https://github.com/icon-project/sodax-sdks/blob/main/packages/wallet-sdk-react/skills/bridge-to-sdk.md) — pass `walletProvider` to `@sodax/sdk` calls
|
|
104
|
-
|
|
105
|
-
## Reference docs
|
|
106
|
-
|
|
107
|
-
- [Configure SodaxWalletProvider](https://github.com/icon-project/sodax-sdks/blob/main/packages/wallet-sdk-react/docs/CONFIGURE_PROVIDER.md) — full config reference, breaking changes from v1, per-chain `defaults`
|