@xrpl-wallet-kit/adapter-xaman 0.1.17 → 0.1.18

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.
Files changed (2) hide show
  1. package/README.md +58 -58
  2. package/package.json +48 -47
package/README.md CHANGED
@@ -1,58 +1,58 @@
1
- # @xrpl-wallet-kit/adapter-xaman
2
-
3
- Xaman adapter for XRPL Wallet Kit.
4
-
5
- Xaman is a mobile XRPL wallet. This adapter uses the Xaman SDK / OAuth PKCE flow, emits QR and deeplink connection payloads through XRPL Wallet Kit, and supports mobile return recovery.
6
-
7
- ## Capabilities
8
-
9
- - `connect`
10
- - `signMessage`
11
- - `signAndSubmit`
12
- - `payments`
13
- - `nftOffers`
14
- - `qr`
15
- - `deeplink`
16
-
17
- ## Install
18
-
19
- ```bash
20
- npm install @xrpl-wallet-kit/adapter-xaman
21
- ```
22
-
23
- ## Usage
24
-
25
- ```ts
26
- import { createWalletKit } from "@xrpl-wallet-kit/client";
27
- import { createXamanAdapter } from "@xrpl-wallet-kit/adapter-xaman";
28
-
29
- const kit = createWalletKit({
30
- adapters: [
31
- createXamanAdapter({
32
- apiKey: "YOUR_XAMAN_API_KEY"
33
- })
34
- ],
35
- autoReconnect: true
36
- });
37
- ```
38
-
39
- When using `@xrpl-wallet-kit/client` defaults, Xaman is already included when configured through the client options.
40
-
41
- ## Runtime Notes
42
-
43
- - Requires a Xaman API key or injected test SDK/auth objects.
44
- - Connection and signing may produce QR/deeplink flows. The adapter reports those through the manager/UI event path.
45
- - Pending mobile-return recovery markers use `WalletStorage` through the adapter's `recoveryStorage` option.
46
- - `restoreSession()` waits briefly for the Xaman OAuth/PKCE SDK to rehydrate remembered JWT state after page reload, then restores only when the active Xaman account matches the stored session.
47
- - `restoreSession()` verifies account ownership only. It preserves the stored manager network context instead of treating Xaman refresh metadata as proof that the mobile app switched networks.
48
- - `restoreSession()` and `recoverSession()` are best-effort and return `null` for normal stale or unavailable sessions.
49
- - Sign-only transaction requests (`submit: false`) allow Xaman to extend `LastLedgerSequence` by at most `maxLastLedgerSequenceExtension` ledgers. The default is `50`; set `0` to require exact preservation.
50
-
51
- ## Testing
52
-
53
- Use `assertWalletAdapter(createXamanAdapter({ ... }))` in adapter tests. For deterministic tests, pass mock `auth`, `sdk`, and `recoveryStorage` objects instead of using live Xaman services.
54
-
55
- ## Links
56
-
57
- - Xaman: https://xaman.app
58
- - XRPL Wallet Kit: https://github.com/XRPDomains/xrpl-wallet-kit
1
+ # @xrpl-wallet-kit/adapter-xaman
2
+
3
+ Xaman adapter for XRPL Wallet Kit.
4
+
5
+ Xaman is a mobile XRPL wallet. This adapter uses the Xaman SDK / OAuth PKCE flow, emits QR and deeplink connection payloads through XRPL Wallet Kit, and supports mobile return recovery.
6
+
7
+ ## Capabilities
8
+
9
+ - `connect`
10
+ - `signMessage`
11
+ - `signAndSubmit`
12
+ - `payments`
13
+ - `nftOffers`
14
+ - `qr`
15
+ - `deeplink`
16
+
17
+ ## Install
18
+
19
+ ```bash
20
+ npm install @xrpl-wallet-kit/adapter-xaman
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ ```ts
26
+ import { createWalletKit } from "@xrpl-wallet-kit/client";
27
+ import { createXamanAdapter } from "@xrpl-wallet-kit/adapter-xaman";
28
+
29
+ const kit = createWalletKit({
30
+ adapters: [
31
+ createXamanAdapter({
32
+ apiKey: "YOUR_XAMAN_API_KEY"
33
+ })
34
+ ],
35
+ autoReconnect: true
36
+ });
37
+ ```
38
+
39
+ When using `@xrpl-wallet-kit/client` defaults, Xaman is already included when configured through the client options.
40
+
41
+ ## Runtime Notes
42
+
43
+ - Requires a Xaman API key or injected test SDK/auth objects.
44
+ - Connection and signing may produce QR/deeplink flows. The adapter reports those through the manager/UI event path.
45
+ - Pending mobile-return recovery markers use `WalletStorage` through the adapter's `recoveryStorage` option.
46
+ - `restoreSession()` waits briefly for the Xaman OAuth/PKCE SDK to rehydrate remembered JWT state after page reload, then restores only when the active Xaman account matches the stored session.
47
+ - `restoreSession()` verifies account ownership only. It preserves the stored manager network context instead of treating Xaman refresh metadata as proof that the mobile app switched networks.
48
+ - `restoreSession()` and `recoverSession()` are best-effort and return `null` for normal stale or unavailable sessions.
49
+ - Sign-only transaction requests (`submit: false`) allow Xaman to extend `LastLedgerSequence` by at most `maxLastLedgerSequenceExtension` ledgers. The default is `50`; set `0` to require exact preservation.
50
+
51
+ ## Testing
52
+
53
+ Use `assertWalletAdapter(createXamanAdapter({ ... }))` in adapter tests. For deterministic tests, pass mock `auth`, `sdk`, and `recoveryStorage` objects instead of using live Xaman services.
54
+
55
+ ## Links
56
+
57
+ - Xaman: https://xaman.app
58
+ - XRPL Wallet Kit: https://github.com/XRPDomains/xrpl-wallet-kit
package/package.json CHANGED
@@ -1,47 +1,48 @@
1
- {
2
- "name": "@xrpl-wallet-kit/adapter-xaman",
3
- "version": "0.1.17",
4
- "description": "Xaman adapter for XRPL Wallet Kit.",
5
- "license": "MIT",
6
- "type": "module",
7
- "main": "./dist/index.js",
8
- "types": "./dist/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "types": "./dist/index.d.ts",
12
- "import": "./dist/index.js"
13
- }
14
- },
15
- "files": [
16
- "dist",
17
- "README.md"
18
- ],
19
- "scripts": {
20
- "build": "tsc -p tsconfig.json"
21
- },
22
- "dependencies": {
23
- "@xrpl-wallet-kit/core": "0.1.17",
24
- "xumm": "^1.8.0",
25
- "xumm-oauth2-pkce": "^2.8.7"
26
- },
27
- "publishConfig": {
28
- "access": "public"
29
- },
30
- "repository": {
31
- "type": "git",
32
- "url": "git+https://github.com/XRPDomains/xrpl-wallet-kit.git"
33
- },
34
- "homepage": "https://github.com/XRPDomains/xrpl-wallet-kit#readme",
35
- "bugs": {
36
- "url": "https://github.com/XRPDomains/xrpl-wallet-kit/issues"
37
- },
38
- "keywords": [
39
- "xrpl",
40
- "wallet",
41
- "wallet-adapter",
42
- "wallet-kit",
43
- "xrp-ledger",
44
- "web3",
45
- "adapter"
46
- ]
47
- }
1
+ {
2
+ "name": "@xrpl-wallet-kit/adapter-xaman",
3
+ "version": "0.1.18",
4
+ "description": "Xaman adapter for XRPL Wallet Kit.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "sideEffects": false,
8
+ "main": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "README.md"
19
+ ],
20
+ "scripts": {
21
+ "build": "tsc -p tsconfig.json"
22
+ },
23
+ "dependencies": {
24
+ "@xrpl-wallet-kit/core": "0.1.18",
25
+ "xumm": "^1.8.0",
26
+ "xumm-oauth2-pkce": "^2.8.7"
27
+ },
28
+ "publishConfig": {
29
+ "access": "public"
30
+ },
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "git+https://github.com/XRPDomains/xrpl-wallet-kit.git"
34
+ },
35
+ "homepage": "https://github.com/XRPDomains/xrpl-wallet-kit#readme",
36
+ "bugs": {
37
+ "url": "https://github.com/XRPDomains/xrpl-wallet-kit/issues"
38
+ },
39
+ "keywords": [
40
+ "xrpl",
41
+ "wallet",
42
+ "wallet-adapter",
43
+ "wallet-kit",
44
+ "xrp-ledger",
45
+ "web3",
46
+ "adapter"
47
+ ]
48
+ }