@sodax/dapp-kit 2.0.0-rc.13 → 2.0.0-rc.14
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 +3 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -35,11 +35,11 @@ RPC URLs are injected through `config.chains`. `SodaxProvider` is the outermost
|
|
|
35
35
|
import { QueryClientProvider } from '@tanstack/react-query';
|
|
36
36
|
import { SodaxProvider, createSodaxQueryClient } from '@sodax/dapp-kit';
|
|
37
37
|
import { SodaxWalletProvider, type SodaxWalletConfig } from '@sodax/wallet-sdk-react';
|
|
38
|
-
import { ChainKeys, type
|
|
38
|
+
import { ChainKeys, type SodaxOptions } from '@sodax/sdk';
|
|
39
39
|
|
|
40
40
|
const queryClient = createSodaxQueryClient();
|
|
41
41
|
|
|
42
|
-
const sodaxConfig:
|
|
42
|
+
const sodaxConfig: SodaxOptions = {
|
|
43
43
|
chains: {
|
|
44
44
|
[ChainKeys.SONIC_MAINNET]: { rpcUrl: 'https://sonic-rpc.publicnode.com' },
|
|
45
45
|
[ChainKeys.BSC_MAINNET]: { rpcUrl: 'https://bsc-dataseed.binance.org' },
|
|
@@ -125,7 +125,7 @@ function SwapButton({ intentParams }: { intentParams: CreateIntentParams }) {
|
|
|
125
125
|
|
|
126
126
|
### Provider
|
|
127
127
|
|
|
128
|
-
- [`SodaxProvider`](src/providers/SodaxProvider.tsx) — Wraps your app, creates the `Sodax` SDK instance. Accepts `config?:
|
|
128
|
+
- [`SodaxProvider`](src/providers/SodaxProvider.tsx) — Wraps your app, creates the `Sodax` SDK instance. Accepts `config?: SodaxOptions`.
|
|
129
129
|
- [`createSodaxQueryClient()`](src/providers/createSodaxQueryClient.ts) — Factory for a `QueryClient` with global mutation observability (`onMutationError` hook, `meta.silent` opt-out).
|
|
130
130
|
|
|
131
131
|
### Swap Hooks
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"version": "2.0.0-rc.
|
|
8
|
+
"version": "2.0.0-rc.14",
|
|
9
9
|
"description": "React hooks for building dApps on the SODAX cross-chain DeFi platform",
|
|
10
10
|
"keywords": [
|
|
11
11
|
"sodax",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"viem": "2.29.2",
|
|
37
|
-
"@sodax/sdk": "2.0.0-rc.
|
|
37
|
+
"@sodax/sdk": "2.0.0-rc.14"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@arethetypeswrong/cli": "0.17.4",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"tslib": "2.8.1",
|
|
45
45
|
"tsup": "8.5.0",
|
|
46
46
|
"typescript": "5.5.4",
|
|
47
|
-
"vitest": "3.2.
|
|
47
|
+
"vitest": "3.2.6"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@tanstack/react-query": "5.x",
|