@mysten/slush-wallet 1.0.3 β 1.0.5
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/CHANGELOG.md +25 -0
- package/dist/wallet/index.d.mts.map +1 -1
- package/docs/dapp.md +14 -12
- package/docs/deep-linking.md +63 -63
- package/docs/index.md +3 -3
- package/docs/llms-index.md +3 -4
- package/package.json +7 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @mysten/slush-wallet
|
|
2
2
|
|
|
3
|
+
## 1.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f7de3e5: Restore docs in published tarballs.
|
|
8
|
+
- Updated dependencies [f7de3e5]
|
|
9
|
+
- @mysten/sui@2.16.2
|
|
10
|
+
- @mysten/utils@0.3.3
|
|
11
|
+
- @mysten/wallet-standard@0.20.3
|
|
12
|
+
- @mysten/window-wallet-core@0.1.6
|
|
13
|
+
|
|
14
|
+
## 1.0.4
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 9e067cf: Validate the new per-package release flow end-to-end across every public @mysten package.
|
|
19
|
+
No functional changes β empty patch bump to force the orchestrator to dispatch every
|
|
20
|
+
release-<pkg>.yml workflow with `dry_run=false` so each package publishes via OIDC trusted
|
|
21
|
+
publishing.
|
|
22
|
+
- Updated dependencies [9e067cf]
|
|
23
|
+
- @mysten/sui@2.16.1
|
|
24
|
+
- @mysten/utils@0.3.2
|
|
25
|
+
- @mysten/wallet-standard@0.20.2
|
|
26
|
+
- @mysten/window-wallet-core@0.1.5
|
|
27
|
+
|
|
3
28
|
## 1.0.3
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/wallet/index.ts"],"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/wallet/index.ts"],"mappings":";;;;;cAsCa,iBAAA;AAAA,cAEA,iBAAA;AAAA,cAcP,oBAAA,WAAoB,YAAA;EAAA,aAKxB,QAAA,CAAA,YAAA;EAAA;;;;KAoCG,cAAA,GAAiB,WAAA,QAAmB,oBAAA;AAAA,cAC5B,WAAA,YAAuB,MAAA;EAAA;MAS/B,IAAA,CAAA;EAAA,IAIA,EAAA,CAAA;EAAA,IAIA,IAAA,CAAA;EAAA,IAIA,OAAA,CAAA;EAAA,IAIA,MAAA,CAAA;EAAA,IAIA,QAAA,CAAA,GAAQ,qBAAA;EAAA,IAIR,QAAA,CAAA,GAAY,sBAAA,GACf,yBAAA,GACA,qBAAA,GACA,8BAAA,GACA,yBAAA,GACA,6BAAA,GACA,mCAAA;;IAkCA,IAAA;IACA,MAAA;IACA;EAAA;IAEA,IAAA;IACA,MAAA;IACA,KAAA,GAAQ,QAAA;IACR,QAAA,EAAU,cAAA;EAAA;EA4IX,cAAA,CAAe,QAAA,EAAU,cAAA;AAAA;AAAA,iBAgBV,mBAAA,CACf,IAAA;EAEC,MAAA;EACA;AAAA;EAEA,MAAA;EACA,cAAA;AAAA"}
|
package/docs/dapp.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
#
|
|
1
|
+
# App Integration
|
|
2
2
|
|
|
3
|
-
> Connect your
|
|
3
|
+
> Connect your app to Slush Wallet using the Slush Wallet SDK and wallet standard.
|
|
4
4
|
|
|
5
|
-
> **Note:** If you are using `dapp-kit`, you do not need to install any additional packages to
|
|
6
|
-
>
|
|
5
|
+
> **Note:** If you are using `dapp-kit`, you do not need to install any additional packages to integrate with
|
|
6
|
+
> the Slush wallet. [Read how to integrate with dapp-kit.](/dapp-kit/legacy/slush)
|
|
7
7
|
|
|
8
|
-
Using the Slush Wallet SDK, you can allow users to connect to the Slush wallet from your
|
|
8
|
+
Using the Slush Wallet SDK, you can allow users to connect to the Slush wallet from your app. The
|
|
9
9
|
wallet is provided through the [Wallet Standard](https://docs.sui.io/standards/wallet-standard), and
|
|
10
10
|
should appear automatically in your existing wallet connection UI.
|
|
11
11
|
|
|
12
|
-
> The Slush Wallet SDK is only needed if you want to support the Slush web wallet in your
|
|
12
|
+
> The Slush Wallet SDK is only needed if you want to support the Slush web wallet in your app. If
|
|
13
13
|
> you want to integrate with the Slush browser extension or native mobile wallet, you do not need to
|
|
14
14
|
> install any additional packages - they will work automatically through the Wallet Standard.
|
|
15
15
|
|
|
@@ -21,7 +21,7 @@ your application's lifecycle.
|
|
|
21
21
|
|
|
22
22
|
`registerSlushWallet` takes two arguments:
|
|
23
23
|
|
|
24
|
-
- `name`: The name of your
|
|
24
|
+
- `name`: The name of your app. This is shown to the user when they are asked to approve the
|
|
25
25
|
connection in Slush.
|
|
26
26
|
- `options`: An optional object with the following properties:
|
|
27
27
|
- `origin`: The origin of the Slush website. Defaults to `https://[TODO]`.
|
|
@@ -29,6 +29,7 @@ your application's lifecycle.
|
|
|
29
29
|
supports `mainnet` and `testnet`.
|
|
30
30
|
|
|
31
31
|
```ts
|
|
32
|
+
|
|
32
33
|
registerSlushWallet('Your dApp Name');
|
|
33
34
|
```
|
|
34
35
|
|
|
@@ -49,6 +50,7 @@ For example, if you are using `dapp-kit`, you can use the `useCurrentWallet` hoo
|
|
|
49
50
|
wallet, and check if it is the Slush wallet.
|
|
50
51
|
|
|
51
52
|
```ts
|
|
53
|
+
|
|
52
54
|
function SlushOnly() {
|
|
53
55
|
const { currentWallet } = useCurrentWallet();
|
|
54
56
|
const walletIsSlushWallet = currentWallet?.name === SLUSH_WALLET_NAME;
|
|
@@ -57,18 +59,18 @@ function SlushOnly() {
|
|
|
57
59
|
}
|
|
58
60
|
```
|
|
59
61
|
|
|
60
|
-
# Migration from Stashed Wallet
|
|
62
|
+
# Migration from Stashed Wallet to Slush Wallet
|
|
61
63
|
|
|
62
64
|
If you're currently using `@mysten/zksend`'s `registerStashedWallet` directly, you should migrate to
|
|
63
65
|
the `@mysten/slush-wallet` package to ensure compatibility with the new Slush experience.
|
|
64
66
|
|
|
65
|
-
##
|
|
67
|
+
## Installation
|
|
66
68
|
|
|
67
69
|
```bash
|
|
68
70
|
pnpm install @mysten/slush-wallet
|
|
69
71
|
```
|
|
70
72
|
|
|
71
|
-
##
|
|
73
|
+
## Migration
|
|
72
74
|
|
|
73
75
|
If you're using `registerStashedWallet`, switch to `registerSlushWallet`:
|
|
74
76
|
|
|
@@ -89,5 +91,5 @@ registerSlushWallet(...);
|
|
|
89
91
|
If you're using dapp-kit, update to the latest dapp-kit version and change the `stashedWallet` prop
|
|
90
92
|
on WalletProvider to `slushWallet`
|
|
91
93
|
|
|
92
|
-
>
|
|
93
|
-
>
|
|
94
|
+
> In the connect modal, users with the Slush Wallet extension installed only see the extension. If
|
|
95
|
+
> they donβt have it, the connection defaults to the Slush web app.
|
package/docs/deep-linking.md
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
# Deep Linking
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> Configure deep links to open Slush Wallet directly to specific screens or actions.
|
|
4
4
|
|
|
5
5
|
Deep linking allows external applications, websites, and services to open Slush directly to specific
|
|
6
6
|
screens or trigger specific actions. This enables seamless integrations where users can be directed
|
|
7
|
-
into the wallet to perform actions like swapping tokens, claiming assets, or browsing
|
|
7
|
+
into the wallet to perform actions like swapping tokens, claiming assets, or browsing apps.
|
|
8
8
|
|
|
9
9
|
## Overview
|
|
10
10
|
|
|
11
11
|
Slush supports two types of deep linking:
|
|
12
12
|
|
|
13
|
-
1. **Custom URL
|
|
14
|
-
2. **Universal
|
|
13
|
+
1. **Custom URL schemes**: Direct links using `slush://` (mobile app only)
|
|
14
|
+
2. **Universal links and app links**: HTTPS links that work across mobile and desktop
|
|
15
15
|
|
|
16
|
-
> **Note:** For most integrations, use `my.slush.app` HTTPS links. They work on iOS, Android, and
|
|
17
|
-
>
|
|
16
|
+
> **Note:** For most integrations, use `my.slush.app` HTTPS links. They work on iOS, Android, and desktop
|
|
17
|
+
> browsers, opening the native app when installed or falling back to the web app.
|
|
18
18
|
|
|
19
19
|
> **Warning:** Deep linking is not currently supported for the Slush browser extension.
|
|
20
20
|
|
|
21
|
-
> **Warning:** Always URL-encode parameter values, especially token type addresses which contain
|
|
22
|
-
>
|
|
23
|
-
> examples.
|
|
21
|
+
> **Warning:** Always URL-encode parameter values, especially token type addresses which contain special
|
|
22
|
+
> characters like colons (`:`). See [URL Encode Parameters](#url-encode-parameters) for examples.
|
|
24
23
|
|
|
25
|
-
## URL
|
|
24
|
+
## URL schemes
|
|
26
25
|
|
|
27
26
|
Slush registers a custom URL scheme:
|
|
28
27
|
|
|
@@ -30,7 +29,7 @@ Slush registers a custom URL scheme:
|
|
|
30
29
|
| ---------- | ----------------------------------- |
|
|
31
30
|
| `slush://` | Primary scheme for the Slush wallet |
|
|
32
31
|
|
|
33
|
-
### Basic
|
|
32
|
+
### Basic format
|
|
34
33
|
|
|
35
34
|
```
|
|
36
35
|
slush://<path>?<parameters>
|
|
@@ -43,7 +42,7 @@ slush://swap?fromCoinType=0x2::sui::SUI
|
|
|
43
42
|
slush://browse/https://app.example.com
|
|
44
43
|
```
|
|
45
44
|
|
|
46
|
-
## Universal
|
|
45
|
+
## Universal links and app links
|
|
47
46
|
|
|
48
47
|
Slush responds to HTTPS links (Universal Links on iOS, App Links on Android) from the following
|
|
49
48
|
domains:
|
|
@@ -52,7 +51,7 @@ domains:
|
|
|
52
51
|
| -------------- | -------------------------------------------- |
|
|
53
52
|
| `my.slush.app` | `/browse/*`, `/claim/*`, `/swap/*`, `/pay/*` |
|
|
54
53
|
|
|
55
|
-
### Cross-
|
|
54
|
+
### Cross-platform behavior
|
|
56
55
|
|
|
57
56
|
The `my.slush.app` domain is recommended because it works across all platforms:
|
|
58
57
|
|
|
@@ -62,28 +61,28 @@ The `my.slush.app` domain is recommended because it works across all platforms:
|
|
|
62
61
|
| Mobile (app not installed) | Opens in the mobile browser with the Slush web app |
|
|
63
62
|
| Desktop browser | Opens the Slush web app |
|
|
64
63
|
|
|
65
|
-
> **Note:** Unlike custom URL schemes (`slush://`), `my.slush.app` links never fail
|
|
66
|
-
>
|
|
64
|
+
> **Note:** Unlike custom URL schemes (`slush://`), `my.slush.app` links never fail. They always open either
|
|
65
|
+
> the native app or the web app, ensuring users can complete their intended action.
|
|
67
66
|
|
|
68
67
|
### Examples
|
|
69
68
|
|
|
70
69
|
```
|
|
71
|
-
# Opens dApp browser
|
|
70
|
+
# Opens dApp browser: works on mobile and desktop
|
|
72
71
|
https://my.slush.app/browse/https://app.turbos.finance
|
|
73
72
|
|
|
74
|
-
# Opens claim flow
|
|
73
|
+
# Opens claim flow: works on mobile and desktop
|
|
75
74
|
https://my.slush.app/claim?claimUrl=abc123xyz
|
|
76
75
|
```
|
|
77
76
|
|
|
78
|
-
## Supported
|
|
77
|
+
## Supported routes
|
|
79
78
|
|
|
80
|
-
###
|
|
79
|
+
### App browser
|
|
81
80
|
|
|
82
81
|
Open the in-app browser to load a specific URL:
|
|
83
82
|
|
|
84
|
-
| Route | Description
|
|
85
|
-
| ------------- |
|
|
86
|
-
| `browse/:url` | Opens a URL in the
|
|
83
|
+
| Route | Description |
|
|
84
|
+
| ------------- | ------------------------------ |
|
|
85
|
+
| `browse/:url` | Opens a URL in the app browser |
|
|
87
86
|
|
|
88
87
|
**Parameters:**
|
|
89
88
|
|
|
@@ -98,9 +97,9 @@ slush://browse/https://app.turbos.finance
|
|
|
98
97
|
https://my.slush.app/browse/https://app.cetus.zone
|
|
99
98
|
```
|
|
100
99
|
|
|
101
|
-
> The URL must be a complete, valid URL including the protocol (
|
|
100
|
+
> The URL must be a complete, valid URL including the protocol (for example, `https://`).
|
|
102
101
|
|
|
103
|
-
### Token
|
|
102
|
+
### Token swap
|
|
104
103
|
|
|
105
104
|
Open the token swap screen with optional pre-filled values:
|
|
106
105
|
|
|
@@ -129,7 +128,7 @@ slush://swap?fromCoinType=0x2::sui::SUI&toCoinType=0xdba34672e30cb065b1f93e3ab55
|
|
|
129
128
|
slush://swap?fromCoinType=0x2::sui::SUI&presetAmount=100
|
|
130
129
|
```
|
|
131
130
|
|
|
132
|
-
### Claim
|
|
131
|
+
### Claim assets
|
|
133
132
|
|
|
134
133
|
Open the claim screen to receive stashed or gifted tokens:
|
|
135
134
|
|
|
@@ -150,7 +149,7 @@ slush://claim?claimUrl=https://zksend.com/claim/abc123xyz
|
|
|
150
149
|
slush://claim?claimUrl=https://getstashed.com/claim/def456
|
|
151
150
|
```
|
|
152
151
|
|
|
153
|
-
### Token
|
|
152
|
+
### Token details
|
|
154
153
|
|
|
155
154
|
View details for a specific token:
|
|
156
155
|
|
|
@@ -174,7 +173,7 @@ slush://tokens?coinType=0x2::sui::SUI
|
|
|
174
173
|
slush://tokens?coinType=0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC
|
|
175
174
|
```
|
|
176
175
|
|
|
177
|
-
### Receive / QR
|
|
176
|
+
### Receive / QR code
|
|
178
177
|
|
|
179
178
|
Open the receive screen to display the wallet address or scan a QR code:
|
|
180
179
|
|
|
@@ -198,7 +197,7 @@ slush://suime?action=RECEIVE
|
|
|
198
197
|
slush://suime?action=SCAN_QR_CODE
|
|
199
198
|
```
|
|
200
199
|
|
|
201
|
-
### DeFi
|
|
200
|
+
### DeFi strategies
|
|
202
201
|
|
|
203
202
|
Access yield strategies and DeFi opportunities:
|
|
204
203
|
|
|
@@ -251,7 +250,7 @@ slush://staking/native-stake
|
|
|
251
250
|
slush://staking/liquid-stake
|
|
252
251
|
```
|
|
253
252
|
|
|
254
|
-
### Send
|
|
253
|
+
### Send tokens
|
|
255
254
|
|
|
256
255
|
Access the send flow:
|
|
257
256
|
|
|
@@ -272,7 +271,7 @@ slush://send-coins/camera
|
|
|
272
271
|
### Payment Kit
|
|
273
272
|
|
|
274
273
|
Open the payment flow using Payment Kit URIs. Slush supports the `sui:pay` protocol for processing
|
|
275
|
-
|
|
274
|
+
onchain payments with optional registry support.
|
|
276
275
|
|
|
277
276
|
| Route | Description |
|
|
278
277
|
| ----- | --------------------------- |
|
|
@@ -289,16 +288,16 @@ https://my.slush.app/pay?receiver=<address>&amount=<amount>&coinType=<coinType>&
|
|
|
289
288
|
|
|
290
289
|
**Parameters:**
|
|
291
290
|
|
|
292
|
-
| Parameter | Type | Required | Description
|
|
293
|
-
| ---------- | ------ | -------- |
|
|
294
|
-
| `receiver` | string | Yes | Recipient Sui address
|
|
295
|
-
| `amount` | string | Yes | Payment amount in smallest unit (
|
|
296
|
-
| `coinType` | string | Yes | Coin type (
|
|
297
|
-
| `nonce` | string | Yes | Unique payment identifier (max 36 characters)
|
|
298
|
-
| `registry` | string | No | Registry name or object ID for registry-based payments
|
|
299
|
-
| `label` | string | No | Human-readable label for the payment
|
|
300
|
-
| `message` | string | No | Message or memo for the payment
|
|
301
|
-
| `iconUrl` | string | No | URL to an icon image for display purposes
|
|
291
|
+
| Parameter | Type | Required | Description |
|
|
292
|
+
| ---------- | ------ | -------- | ----------------------------------------------------------- |
|
|
293
|
+
| `receiver` | string | Yes | Recipient Sui address |
|
|
294
|
+
| `amount` | string | Yes | Payment amount in smallest unit (for example, MIST for SUI) |
|
|
295
|
+
| `coinType` | string | Yes | Coin type (for example, `0x2::sui::SUI`) |
|
|
296
|
+
| `nonce` | string | Yes | Unique payment identifier (max 36 characters) |
|
|
297
|
+
| `registry` | string | No | Registry name or object ID for registry-based payments |
|
|
298
|
+
| `label` | string | No | Human-readable label for the payment |
|
|
299
|
+
| `message` | string | No | Message or memo for the payment |
|
|
300
|
+
| `iconUrl` | string | No | URL to an icon image for display purposes |
|
|
302
301
|
|
|
303
302
|
**Examples:**
|
|
304
303
|
|
|
@@ -316,12 +315,12 @@ https://my.slush.app/pay?receiver=0x1234...abcd&amount=1000000000&coinType=0x2::
|
|
|
316
315
|
https://my.slush.app/pay?receiver=0x1234...abcd&amount=5000000&coinType=0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC&nonce=def-456-uvw
|
|
317
316
|
```
|
|
318
317
|
|
|
319
|
-
> Use the `@mysten/payment-kit` SDK to generate properly formatted payment URIs. See the
|
|
320
|
-
>
|
|
318
|
+
> Use the `@mysten/payment-kit` SDK to generate properly formatted payment URIs. See the [Payment
|
|
319
|
+
> Kit documentation](/payment-kit/getting-started) for more details.
|
|
321
320
|
|
|
322
|
-
## Implementation
|
|
321
|
+
## Implementation examples
|
|
323
322
|
|
|
324
|
-
### Web
|
|
323
|
+
### Web integration
|
|
325
324
|
|
|
326
325
|
Link to Slush from any web page (mobile or desktop):
|
|
327
326
|
|
|
@@ -339,6 +338,7 @@ Link to Slush from any web page (mobile or desktop):
|
|
|
339
338
|
Open Slush programmatically:
|
|
340
339
|
|
|
341
340
|
```javascript
|
|
341
|
+
|
|
342
342
|
// Recommended: Use my.slush.app links (works everywhere)
|
|
343
343
|
Linking.openURL('https://my.slush.app/browse/https://your-dapp.com');
|
|
344
344
|
|
|
@@ -387,13 +387,13 @@ val customIntent = Intent(Intent.ACTION_VIEW, Uri.parse("slush://swap"))
|
|
|
387
387
|
startActivity(customIntent)
|
|
388
388
|
```
|
|
389
389
|
|
|
390
|
-
## Best
|
|
390
|
+
## Best practices
|
|
391
391
|
|
|
392
|
-
### Use my.slush.app
|
|
392
|
+
### Use my.slush.app links for maximum compatibility
|
|
393
393
|
|
|
394
394
|
When linking from any platform, prefer `my.slush.app` links over custom URL schemes. These links
|
|
395
|
-
work everywhere
|
|
396
|
-
|
|
395
|
+
work everywhere, mobile apps, mobile browsers, and desktop browsers, providing a seamless experience
|
|
396
|
+
for all users.
|
|
397
397
|
|
|
398
398
|
```html
|
|
399
399
|
<!-- Recommended: Works on mobile (app or browser) and desktop -->
|
|
@@ -406,7 +406,7 @@ experience for all users.
|
|
|
406
406
|
> Use `my.slush.app` links as your default choice. Only use custom URL schemes (`slush://`) when you
|
|
407
407
|
> specifically need to detect whether the mobile app is installed.
|
|
408
408
|
|
|
409
|
-
### URL
|
|
409
|
+
### URL encode parameters
|
|
410
410
|
|
|
411
411
|
Always URL-encode parameter values, especially token type addresses which contain special
|
|
412
412
|
characters:
|
|
@@ -417,7 +417,7 @@ const encodedCoinType = encodeURIComponent(coinType);
|
|
|
417
417
|
const url = `slush://swap?fromCoinType=${encodedCoinType}`;
|
|
418
418
|
```
|
|
419
419
|
|
|
420
|
-
### Check
|
|
420
|
+
### Check app installation (custom schemes only)
|
|
421
421
|
|
|
422
422
|
If you're using custom URL schemes (`slush://`), check if the app is installed to provide
|
|
423
423
|
appropriate fallbacks. This is not needed when using `my.slush.app` links, which automatically fall
|
|
@@ -433,28 +433,28 @@ if (canOpenSlush) {
|
|
|
433
433
|
}
|
|
434
434
|
```
|
|
435
435
|
|
|
436
|
-
### Handle
|
|
436
|
+
### Handle missing parameters gracefully
|
|
437
437
|
|
|
438
438
|
Slush will attempt to open the requested screen even if optional parameters are missing. Required
|
|
439
439
|
parameters that are missing will result in the app opening to a default or error state.
|
|
440
440
|
|
|
441
441
|
## Troubleshooting
|
|
442
442
|
|
|
443
|
-
### Link
|
|
443
|
+
### Link not opening the app
|
|
444
444
|
|
|
445
|
-
1. **Verify the app is installed
|
|
446
|
-
2. **Check URL format
|
|
447
|
-
3. **iOS Universal Links
|
|
448
|
-
|
|
449
|
-
4. **Android App Links
|
|
445
|
+
1. **Verify the app is installed**: Custom URL schemes only work if Slush is installed
|
|
446
|
+
2. **Check URL format**: Ensure the URL is properly formatted and encoded
|
|
447
|
+
3. **iOS Universal Links**: Must be clicked from Safari or apps that support Universal Links; copied
|
|
448
|
+
or pasted URLs might not trigger the app
|
|
449
|
+
4. **Android App Links**: Ensure the device has verified the app link association
|
|
450
450
|
|
|
451
|
-
### Wrong
|
|
451
|
+
### Wrong screen opens
|
|
452
452
|
|
|
453
|
-
1. **Check the path
|
|
454
|
-
2. **Check parameters
|
|
455
|
-
3. **Check parameter encoding
|
|
453
|
+
1. **Check the path**: Verify the route matches one of the supported routes above
|
|
454
|
+
2. **Check parameters**: Ensure all required parameters are provided
|
|
455
|
+
3. **Check parameter encoding**: Special characters in coin types must be URL-encoded
|
|
456
456
|
|
|
457
|
-
### Universal
|
|
457
|
+
### Universal links open in browser instead of app
|
|
458
458
|
|
|
459
459
|
This can happen if:
|
|
460
460
|
|
|
@@ -462,4 +462,4 @@ This can happen if:
|
|
|
462
462
|
- The link domain is the same as the current page
|
|
463
463
|
- The user has previously chosen to open links in Safari
|
|
464
464
|
|
|
465
|
-
To ensure Universal Links work reliably, link from a different domain than the target domain.
|
|
465
|
+
To ensure Universal Links work reliably, link from a different domain than the target domain.
|
package/docs/index.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Slush Wallet Integration
|
|
2
2
|
|
|
3
|
-
> Integrate Slush Wallet into your Sui
|
|
3
|
+
> Integrate Slush Wallet into your Sui application for mobile and web wallet support.
|
|
4
4
|
|
|
5
5
|
This section covers integration with [Slush Wallet](https://slush.app), a mobile wallet for the Sui
|
|
6
|
-
blockchain. You'll find guides for wallet-specific functionality to enhance your
|
|
7
|
-
experience.
|
|
6
|
+
blockchain. You'll find guides for wallet-specific functionality to enhance your app's user
|
|
7
|
+
experience.
|
package/docs/llms-index.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
# Slush Wallet
|
|
2
|
-
|
|
3
2
|
> Slush Wallet Integration
|
|
4
3
|
|
|
5
|
-
- [Slush Wallet Integration](
|
|
6
|
-
- [
|
|
7
|
-
- [Deep Linking](./deep-linking.md):
|
|
4
|
+
- [Slush Wallet Integration](..md): Integrate Slush Wallet into your Sui application for mobile and web wallet support.
|
|
5
|
+
- [App Integration](./dapp.md): Connect your app to Slush Wallet using the Slush Wallet SDK and wallet standard.
|
|
6
|
+
- [Deep Linking](./deep-linking.md): Configure deep links to open Slush Wallet directly to specific screens or actions.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mysten/slush-wallet",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Wallet adapter for Slush web wallet",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Mysten Labs <build@mystenlabs.com>",
|
|
@@ -32,22 +32,21 @@
|
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "^25.0.8",
|
|
34
34
|
"typescript": "^5.9.3",
|
|
35
|
-
"vitest": "^4.0.17"
|
|
36
|
-
"@mysten/sui": "^2.8.0"
|
|
35
|
+
"vitest": "^4.0.17"
|
|
37
36
|
},
|
|
38
37
|
"dependencies": {
|
|
39
38
|
"valibot": "^1.2.0",
|
|
40
|
-
"@mysten/
|
|
41
|
-
"@mysten/
|
|
42
|
-
"@mysten/
|
|
39
|
+
"@mysten/window-wallet-core": "^0.1.6",
|
|
40
|
+
"@mysten/utils": "^0.3.3",
|
|
41
|
+
"@mysten/wallet-standard": "^0.20.3"
|
|
43
42
|
},
|
|
44
43
|
"peerDependencies": {
|
|
45
|
-
"@mysten/sui": "^2.
|
|
44
|
+
"@mysten/sui": "^2.16.2"
|
|
46
45
|
},
|
|
47
46
|
"scripts": {
|
|
48
47
|
"clean": "rm -rf tsconfig.tsbuildinfo ./dist",
|
|
49
48
|
"build": "rm -rf dist && tsc --noEmit && tsdown",
|
|
50
|
-
"build:docs": "
|
|
49
|
+
"build:docs": "node ../docs/scripts/build-docs.ts",
|
|
51
50
|
"prettier:check": "prettier -c --ignore-unknown .",
|
|
52
51
|
"prettier:fix": "prettier -w --ignore-unknown .",
|
|
53
52
|
"oxlint:check": "oxlint .",
|