@bsv/expo-wallet-toolbox 0.18.0 → 0.20.0
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 +139 -30
- package/README.md +79 -79
- package/core/backup/RemoteSyncReader.ts +26 -24
- package/core/backup/appData.ts +9 -8
- package/core/backup/codec.ts +21 -18
- package/core/backup/constants.ts +5 -5
- package/core/backup/contactsBackup.ts +8 -8
- package/core/backup/cursor.ts +12 -7
- package/core/backup/derive.ts +3 -3
- package/core/backup/deviceId.ts +2 -2
- package/core/backup/erase.ts +2 -2
- package/core/backup/preference.ts +2 -2
- package/core/backup/push.ts +10 -12
- package/core/backup/restore.ts +22 -14
- package/core/backup/restoreOnImport.ts +3 -2
- package/core/config.tsx +17 -13
- package/core/constants.ts +34 -11
- package/core/contacts/contactsStore.ts +4 -3
- package/core/context/WalletConnectionContext.tsx +294 -212
- package/core/context/WalletContext.tsx +132 -97
- package/core/context/defaultWalletSettings.ts +4 -2
- package/core/demo/demoLedger.ts +1 -5
- package/core/directpay/DirectPayProvider.tsx +15 -24
- package/core/directpay/receive.ts +2 -1
- package/core/headers/checkpoints.ts +10 -1
- package/core/headers/headerStore.ts +13 -2
- package/core/hooks/useConfirmationSound.ts +3 -3
- package/core/hooks/useHaptics.ts +23 -6
- package/core/i18n/translations.tsx +303 -123
- package/core/index.ts +2 -0
- package/core/localpay/codec.ts +12 -6
- package/core/localpay/deviceCaps.ts +4 -14
- package/core/localpay/pending.ts +2 -1
- package/core/localpay/qr.ts +1 -1
- package/core/localpay/settlementAck.ts +1 -4
- package/core/localpay/transport/ble.ts +2 -2
- package/core/localpay/transport/socket.ts +1 -1
- package/core/mandala/abortGuard.ts +1 -1
- package/core/mandala/drain.ts +3 -0
- package/core/mandala/permissionModule.ts +3 -2
- package/core/mandala/resendTransfer.ts +4 -1
- package/core/mandala/runtime.ts +4 -4
- package/core/monitor/TaskBackupPush.ts +10 -13
- package/core/net/chainMatch.ts +8 -5
- package/core/networks.ts +145 -0
- package/core/parsePeerPayURI.ts +4 -1
- package/core/pay/beefRepair.ts +6 -3
- package/core/pay/creditErrors.ts +37 -1
- package/core/pay/rails/address.ts +10 -6
- package/core/pay/rails/handle.ts +84 -11
- package/core/pay/rails/index.ts +18 -2
- package/core/pay/receiveHistory.ts +8 -8
- package/core/peerpay/handleResendRequests.ts +11 -18
- package/core/peerpay/inboxAttempts.ts +1 -4
- package/core/peerpay/rebuildToken.ts +12 -9
- package/core/profiles/profileStore.ts +2 -1
- package/core/profiles/removalProblems.ts +3 -1
- package/core/services/arcTokenStorage.ts +2 -1
- package/core/services/arcadeBroadcastProvider.ts +7 -17
- package/core/services/secrets/envelope.ts +1 -6
- package/core/services/secrets/hkdf.ts +1 -6
- package/core/services/secrets/index.ts +3 -22
- package/core/services/usdFxRates.ts +1 -4
- package/core/services/vault/VaultKeyService.ts +2 -1
- package/core/services/vault/chainRecovery.ts +48 -21
- package/core/services/vault/metaAuthority.ts +4 -1
- package/core/services/vault/r1comb.ts +113 -51
- package/core/services/vault/session.ts +5 -1
- package/core/services/vault/transfers.ts +699 -576
- package/core/services/vault/vaultStore.ts +12 -10
- package/core/services/walletArgLimits.ts +1 -2
- package/core/services/walletConnectionValidation.ts +44 -28
- package/core/services/walletServiceConfig.ts +9 -40
- package/core/storage/StorageExpoSQLite.ts +7 -21
- package/core/storage/methods/listActionsSql.ts +81 -67
- package/core/storage/methods/listOutputsSql.ts +21 -16
- package/core/storage/methods/reviewStatusSql.ts +1 -4
- package/core/stores/ConnectionStore.ts +1 -1
- package/core/theme/ThemeContext.tsx +12 -16
- package/core/theme/motion.ts +3 -3
- package/core/theme/tokens.ts +6 -6
- package/core/toolboxConfig.ts +23 -0
- package/core/walletDbRegistry.ts +7 -5
- package/core/walletRepair/runWalletCheck.ts +1 -4
- package/package.json +2 -2
- package/ui/components/pay/AddressReceive.tsx +3 -3
- package/ui/components/pay/HandleReceive.tsx +58 -15
- package/ui/components/pay/MessageBoxConfig.tsx +46 -20
- package/ui/components/pay/NearbyFlow.tsx +575 -507
- package/ui/components/pay/OfflineNotice.tsx +1 -3
- package/ui/components/pay/PayCellRow.tsx +1 -4
- package/ui/components/pay/PayForm.tsx +1 -3
- package/ui/components/pay/RequestHub.tsx +14 -6
- package/ui/components/pay/UniversalSend.tsx +137 -40
- package/ui/components/pay/tokenSendCopy.ts +1 -2
- package/ui/components/pay/useRecipientInput.ts +2 -2
- package/ui/components/security/WalletLockNotice.tsx +1 -3
- package/ui/components/ui/AlertCard.tsx +44 -45
- package/ui/components/ui/BlurChrome.tsx +4 -15
- package/ui/components/ui/Celebration.tsx +3 -3
- package/ui/components/ui/ChoiceSheet.ts +1 -3
- package/ui/components/ui/ErrorBoundary.tsx +2 -6
- package/ui/components/ui/GroupedList.tsx +13 -31
- package/ui/components/ui/IconButton.tsx +6 -9
- package/ui/components/ui/ListRow.tsx +19 -25
- package/ui/components/ui/PresenceRow.tsx +4 -4
- package/ui/components/ui/PressableScale.tsx +24 -20
- package/ui/components/ui/Toast.tsx +23 -16
- package/ui/components/vault/KeyChooser.tsx +9 -6
- package/ui/components/vault/VaultBackdrop.tsx +1 -8
- package/ui/components/vault/VaultCeremonySheet.tsx +5 -5
- package/ui/components/wallet/ActivityRow.tsx +3 -2
- package/ui/components/wallet/BackupReminderSheet.tsx +1 -5
- package/ui/components/wallet/Balance.tsx +4 -1
- package/ui/components/wallet/ContactActivityList.tsx +7 -7
- package/ui/components/wallet/IconPickerSheet.tsx +1 -5
- package/ui/components/wallet/ProfileSwitcherPopover.tsx +6 -1
- package/ui/components/wallet/tokenEviction.ts +4 -1
- package/ui/hooks/useMandala.ts +1 -7
- package/ui/hooks/useOfflineNoticeActions.ts +21 -27
- package/ui/hooks/useSpendableBalance.ts +2 -2
- package/ui/hooks/useVaultCoverage.ts +7 -1
- package/ui/index.ts +9 -1
- package/ui/resolveIdentity.ts +20 -8
- package/ui/screens/ConnectionsScreen.tsx +44 -18
- package/ui/screens/LogsScreen.tsx +24 -22
- package/ui/screens/PairScreen.tsx +85 -54
- package/ui/screens/PayScreen.tsx +5 -1
- package/ui/screens/ProfileScreen.tsx +0 -3
- package/ui/screens/TrustScreen.tsx +125 -80
- package/ui/screens/VaultScreen.tsx +19 -7
- package/ui/screens/VaultTransferScreen.tsx +5 -1
- package/ui/screens/WalletCheckScreen.tsx +14 -17
- package/ui/screens/WalletConfigScreen.tsx +414 -376
- package/ui/screens/WalletHomeScreen.tsx +47 -42
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,114 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.20.0
|
|
4
|
+
|
|
5
|
+
### Breaking
|
|
6
|
+
|
|
7
|
+
- `AppChain` gains `'scaletest'` (the scaling teratestnet; toolbox chain
|
|
8
|
+
`'regtest'`), and `WalletChain` gains `'regtest'`. `toWalletChain` now
|
|
9
|
+
returns the toolbox's own `Chain` type. Exhaustive `Record<AppChain, …>`
|
|
10
|
+
maps in a host need an entry for it.
|
|
11
|
+
- `wocConfigFor(network)` returns `undefined` for a network with no
|
|
12
|
+
WhatsOnChain (scaletest). `makeBeefRepair` accepts that and never repairs.
|
|
13
|
+
- `createWocBroadcastService(woc, apiKey?)` takes the network's WhatsOnChain
|
|
14
|
+
endpoints (`NETWORKS[chain].woc`) instead of a chain string.
|
|
15
|
+
- `makePeerPayClient` requires `network`. `useMessageBoxConfig(t, network)` and
|
|
16
|
+
`useOfflineNoticeActions({ …, network })` take the open network.
|
|
17
|
+
- `KNOWN_ARC_URLS` is per network (`Record<AppChain, KnownArcUrl[]>`): test
|
|
18
|
+
chains no longer offer mainnet ARC presets.
|
|
19
|
+
|
|
20
|
+
### Networks
|
|
21
|
+
|
|
22
|
+
- `NETWORKS` (`core/networks.ts`) is the one per-network table: Arcade,
|
|
23
|
+
MessageBox, WhatsOnChain/explorer, TAAL/GorillaPool/Bitails fallbacks,
|
|
24
|
+
overlay preset, push. The ternaries that sent any unnamed network to
|
|
25
|
+
teratest's endpoints are gone.
|
|
26
|
+
- **Each network has its own MessageBox server**: `messagebox-testnet`,
|
|
27
|
+
`messagebox-ttn` and `messagebox-tstn` `.bsvblockchain.tech` beside mainnet's
|
|
28
|
+
`messagebox.bsvblockchain.tech`. A saved preference equal to any network's
|
|
29
|
+
default (or the retired one) follows the open network's default; a server the
|
|
30
|
+
user chose is kept. Hosts can override a chain's default with
|
|
31
|
+
`services.<chain>.messageBoxUrl`.
|
|
32
|
+
- MessageBox / PeerPay clients now look recipients up in the open network's
|
|
33
|
+
overlay (`bindMessageBoxNetwork`). `PeerPayClient` 2.5.3 does not pass
|
|
34
|
+
`networkPreset` through, so every network had been asking mainnet's overlay.
|
|
35
|
+
A network with no overlay routes only to the configured host.
|
|
36
|
+
- Identity lookups use the open network's overlay (teratest had been using
|
|
37
|
+
testnet's).
|
|
38
|
+
- Push registration happens only for profiles on a network whose MessageBox
|
|
39
|
+
sends push (mainnet). A test-chain profile's existing registration at
|
|
40
|
+
mainnet's box is skipped, not withdrawn.
|
|
41
|
+
- Upgrading moves a testnet/teratest profile on the default server to its own
|
|
42
|
+
network's box: anything still unread in mainnet's box for that profile is no
|
|
43
|
+
longer read. Queued outbox retries keep the host recorded per entry.
|
|
44
|
+
- Settings › MessageBox stores a network default (any network's) as "no
|
|
45
|
+
preference", so the screen shows the host the rails actually use.
|
|
46
|
+
- Bitails is no longer registered as a broadcast / proof fallback on teratest.
|
|
47
|
+
Teratest no longer takes a TAAL key.
|
|
48
|
+
- **Fix:** a teratest wallet's storage reports chain `'ttn'`, but
|
|
49
|
+
`storageMatchesNetwork` expected `'test'`, so the home screen always treated
|
|
50
|
+
a teratest wallet as the previous network's. It now compares the toolbox
|
|
51
|
+
chain.
|
|
52
|
+
- Scaling teratestnet (`scaletest`) is wired through but **not available** in
|
|
53
|
+
the network picker (`NETWORKS.scaletest.available = false`). The deployed
|
|
54
|
+
chain runs Teranode regtest parameters (regtest genesis, bits `0x207fffff`),
|
|
55
|
+
so its toolbox chain is `'regtest'`, not `'tstn'`, and its header window is
|
|
56
|
+
anchored at the regtest genesis. The installed
|
|
57
|
+
`@bsv/wallet-toolbox-mobile` 2.14.x has no `'regtest'` chain and rejects
|
|
58
|
+
every header above the mainnet proof-of-work limit; `regtest` support lands
|
|
59
|
+
in 2.15.0 (bsv-blockchain/ts-stack#819). With no WhatsOnChain it also has no
|
|
60
|
+
address rail, sweep, BEEF repair or explorer link; Pay shows the address
|
|
61
|
+
option as unavailable.
|
|
62
|
+
|
|
63
|
+
### Changed
|
|
64
|
+
|
|
65
|
+
- **`UniversalSend` review no longer warns about a live payment's route.**
|
|
66
|
+
When the wallet can pay live, review says "Pays live, straight to their
|
|
67
|
+
wallet, when they're online" (`pay_review_route_live`) instead of a
|
|
68
|
+
warning-toned "Delivering to {host}". A link-named host (XR-053) now
|
|
69
|
+
appears in the message-box fallback prompt (`direct_pay_fallback_host`),
|
|
70
|
+
where the payer chooses that route. When live payments aren't available it
|
|
71
|
+
still shows on review, as information rather than a warning.
|
|
72
|
+
- **No "Not verified" line for a bare identity key.** Review shows a trust
|
|
73
|
+
line only for a contact or a registered handle. `pay_trust_unverified` is
|
|
74
|
+
removed.
|
|
75
|
+
- **The receiving wallet broadcasts an incoming payment as it takes it in.**
|
|
76
|
+
The `@bsv/wallet-toolbox-mobile` peer is now `^2.14.9`. Up to 2.14.6,
|
|
77
|
+
`internalizeAction` was meant to post an unproven payment that is new to the
|
|
78
|
+
wallet, but the step was gated on an `isNew` flag storage never set, so it
|
|
79
|
+
never ran: the payee only queued the transaction and the payer's and
|
|
80
|
+
payee's monitors each sent it later. Now a live payment is posted before
|
|
81
|
+
it is acknowledged, and a nearby payment right after the "got it" reply.
|
|
82
|
+
Offline, `StorageExpoSQLite` still parks the post (`holdReqsOffline`), so
|
|
83
|
+
the payment is credited and sent when the device is back online.
|
|
84
|
+
- A post that no broadcaster could take is environmental:
|
|
85
|
+
`classifyCreditError` reads the `WERR_REVIEW_ACTIONS` results, so a live
|
|
86
|
+
payment is kept and acknowledged as received, an inbox payment does not
|
|
87
|
+
use up its tries, and a nearby payment does not use up its attempts. A
|
|
88
|
+
double spend is `double_spend`; an invalid transaction is `structural`.
|
|
89
|
+
- New `failedPostReason(error)` gives the reason in words for callers that
|
|
90
|
+
keep only a message.
|
|
91
|
+
- The app's `patches/@bsv+wallet-toolbox-mobile` patch is rebased onto
|
|
92
|
+
2.14.9 unchanged.
|
|
93
|
+
|
|
94
|
+
## 0.19.0
|
|
95
|
+
|
|
96
|
+
### Added
|
|
97
|
+
|
|
98
|
+
- **The pay and receive screens use live payments.** These changes only
|
|
99
|
+
apply in a host that mounts `DirectPayProvider` with `directPay.enabled`
|
|
100
|
+
and `@bsv/webrtpay` installed. Without it, both screens behave as before.
|
|
101
|
+
- **`UniversalSend` pays live first.** For a handle or identity key, the
|
|
102
|
+
payment is delivered live when `canSendDirect`. When the recipient isn't
|
|
103
|
+
online, or the link can't come up and nothing was spent, it asks "X isn't
|
|
104
|
+
online right now. Send it to their message box?" and then uses the
|
|
105
|
+
message box rail. The success screen says when a payment was delivered
|
|
106
|
+
live.
|
|
107
|
+
- **`HandleReceive` shows a live status card.** "Open to live payments",
|
|
108
|
+
plus connecting, off and error states, for BSV receives.
|
|
109
|
+
- **New strings** `direct_pay_fallback_title`, `direct_pay_fallback_send`
|
|
110
|
+
and `direct_pay_sent_live`, in all 12 locales.
|
|
111
|
+
|
|
3
112
|
## 0.18.0
|
|
4
113
|
|
|
5
114
|
### Added
|
|
@@ -8,7 +117,7 @@
|
|
|
8
117
|
the message box as the fallback.
|
|
9
118
|
- **Opt in.** It turns on when the host installs `@bsv/webrtpay` (an
|
|
10
119
|
optional peer, `^0.2.1`), sets `configureToolbox({ directPay: { enabled:
|
|
11
|
-
|
|
120
|
+
true, RTCPeerConnection } })` and mounts `DirectPayProvider` inside
|
|
12
121
|
`WalletContextProvider`. Without all three nothing changes.
|
|
13
122
|
- **`DirectPayManager`.** Wallets find each other through the relay by
|
|
14
123
|
default. If the relay is not online within 5 s, receiving falls back to
|
|
@@ -68,6 +177,7 @@
|
|
|
68
177
|
|
|
69
178
|
Nothing is wired into `WalletContext` or a screen yet. The live manager
|
|
70
179
|
and receive/send rails follow in a later release.
|
|
180
|
+
|
|
71
181
|
- **`deriveCallbackToken` is exported.** Known-answer vectors pin it. BSV
|
|
72
182
|
Desktop now derives the same Arcade callback token, so a wallet open in both
|
|
73
183
|
apps hears one status stream. No behaviour change.
|
|
@@ -153,9 +263,9 @@
|
|
|
153
263
|
it behaves as before, and each prewarmed read is used once; a later run
|
|
154
264
|
(after logout) does its own.
|
|
155
265
|
- **A host-configurable minimum handle length.** `configureToolbox({
|
|
156
|
-
|
|
266
|
+
handleMinLength: 1 | 2 | 3 })` (default 3) sets the shortest handle
|
|
157
267
|
`isValidHandleFormat` accepts; `getHandleMinLength()` reads it. The rest of
|
|
158
|
-
the format is unchanged (a-z 0-9 . _ -, at most 32, starting and ending
|
|
268
|
+
the format is unchanged (a-z 0-9 . \_ -, at most 32, starting and ending
|
|
159
269
|
with a letter or digit). A host that lowers it must use a registry that
|
|
160
270
|
accepts the shorter handles.
|
|
161
271
|
- **Payment links carry a note.** `peerpay:` links may carry a `note`
|
|
@@ -239,7 +349,6 @@
|
|
|
239
349
|
fixes it, apps must carry a `patch-package` patch for `@bsv/mandala` 0.4.1
|
|
240
350
|
that pads the description the same way.
|
|
241
351
|
|
|
242
|
-
|
|
243
352
|
## 0.15.2
|
|
244
353
|
|
|
245
354
|
### Fixed
|
|
@@ -309,7 +418,7 @@
|
|
|
309
418
|
`[2, 'mandala token']` stays reserved, and privileged calls are still
|
|
310
419
|
refused. So are the address rail's own key IDs: a BRC-29 call from a
|
|
311
420
|
connected origin whose key ID is `base64(YYYY-MM-DD) + ' ' +
|
|
312
|
-
|
|
421
|
+
base64('legacy')` is refused for every key-using method and counterparty
|
|
313
422
|
(`isAddressRailKeyID`, exported from the vault guard).
|
|
314
423
|
- **BRC-29 signing asks every time.** An approval under `3241645161d8` is
|
|
315
424
|
never reused: each signature gets its own prompt, and one app's concurrent
|
|
@@ -345,7 +454,7 @@
|
|
|
345
454
|
### Breaking
|
|
346
455
|
|
|
347
456
|
- **The privileged key is no longer the BIP32 master.** A mnemonic wallet's
|
|
348
|
-
`PrivilegedKeyManager` now gets profile
|
|
457
|
+
`PrivilegedKeyManager` now gets profile _n_'s own key at `m/1'/n'` (`m/1'/0'`
|
|
349
458
|
for the default profile) instead of the master key `m`, so no two profiles
|
|
350
459
|
share key material. Anything a host derived with `privileged: true` under an
|
|
351
460
|
existing wallet derives differently after upgrading. A recovered-key (WIF)
|
|
@@ -602,7 +711,7 @@ corrects them until the library ships the same fixes (bsv-blockchain/ts-stack#67
|
|
|
602
711
|
|
|
603
712
|
- A `createAction` with `noSend` returned `noSendChange` outpoints on the
|
|
604
713
|
unsigned txid next to the signed `txid` (`noSendChange[0]: expected an
|
|
605
|
-
|
|
714
|
+
outpoint of the returned transaction`). They now name the signed transaction.
|
|
606
715
|
- That no-send action could not be released: the caller only has its `txid`,
|
|
607
716
|
and the permissions manager refused `abortAction` by txid from any non-admin
|
|
608
717
|
origin, so its inputs stayed locked until no-send expiry. The origin that
|
|
@@ -906,7 +1015,7 @@ committed key and its PIN, could spend without the mnemonic.
|
|
|
906
1015
|
arbitrary-depth unconfirmed ancestor BEEF was considered and rejected as
|
|
907
1016
|
open-ended complexity for a narrow confirmation-window edge case, not
|
|
908
1017
|
required by the availability guarantee's core promise (surviving loss of
|
|
909
|
-
a
|
|
1018
|
+
a _settled_ deposit). An unconfirmed candidate is surfaced as "pending
|
|
910
1019
|
confirmation," never silently dropped.
|
|
911
1020
|
- ARC/indexer acceptance of a transaction carrying a ~45 KB R1C lock plus a
|
|
912
1021
|
1-sat P2PKH plus a ~1.5 KB `OP_RETURN` in one broadcast has not been
|
|
@@ -1202,7 +1311,7 @@ committed key and its PIN, could spend without the mnemonic.
|
|
|
1202
1311
|
enabled for retry instead of reporting a clean deletion that didn't happen.
|
|
1203
1312
|
- **KEK provisioning can no longer be silently downgraded or hijacked (XR-108,
|
|
1204
1313
|
XR-109, XR-111, XR-116).** A self-consistent but forged `{policy:'degraded',
|
|
1205
|
-
|
|
1314
|
+
kekId}` sentinel could previously ride the app's own automatic degraded-to-
|
|
1206
1315
|
biometric upgrade and silently overwrite the real biometric KEK with an
|
|
1207
1316
|
attacker's key; `upgradeToBiometric()` now reads the existing authenticated
|
|
1208
1317
|
KEK first and refuses the upgrade outright if one is already there, and
|
|
@@ -1295,7 +1404,7 @@ committed key and its PIN, could spend without the mnemonic.
|
|
|
1295
1404
|
peak memory. Concurrent messages on one connection now also share a
|
|
1296
1405
|
`MAX_IN_FLIGHT_RPC_BYTES` budget equal to the existing single-message
|
|
1297
1406
|
ceiling. Separately, `encrypt`/`decrypt`/`createHmac`/`verifyHmac`/`createSig
|
|
1298
|
-
|
|
1407
|
+
nature`/`verifySignature` had no per-call size cap at all beyond the
|
|
1299
1408
|
transport ceiling; they now share a 1 MiB `cryptoPayload` ceiling (halved on
|
|
1300
1409
|
low-tier devices). A connected app sending an oversized crypto-call payload,
|
|
1301
1410
|
or enough concurrent large messages to cross the shared budget, now has the
|
|
@@ -1455,7 +1564,7 @@ committed key and its PIN, could spend without the mnemonic.
|
|
|
1455
1564
|
- **Token decimals bounded everywhere one is read (XR-043).** An extreme
|
|
1456
1565
|
`decimals` value from a session QR or a registry entry had no upper bound;
|
|
1457
1566
|
`formatTokenAmount(500, Number.MAX_SAFE_INTEGER)` reliably threw `RangeError:
|
|
1458
|
-
|
|
1567
|
+
Invalid string length`, and the crash re-triggered on every later render
|
|
1459
1568
|
since the metadata persists. Decode, registry resolution, formatting/parsing,
|
|
1460
1569
|
and the input mask now all clamp or reject outside `[0, 18]` — a host calling
|
|
1461
1570
|
`formatTokenAmount`/`parseTokenAmount` directly with an out-of-range value
|
|
@@ -1464,7 +1573,7 @@ committed key and its PIN, could spend without the mnemonic.
|
|
|
1464
1573
|
sharing a ticker (a look-alike distributed by a malicious issuer) were
|
|
1465
1574
|
visually indistinguishable through the whole select-to-send flow. The asset
|
|
1466
1575
|
switcher, asset picker, and the Send review step now all show `issuerName ·
|
|
1467
|
-
|
|
1576
|
+
fingerprint` alongside the ticker.
|
|
1468
1577
|
- **Real token actions now reach the consent gate (XR-037).** Two different
|
|
1469
1578
|
constants both named `MANDALA_ACTION_LABEL` — one for home-screen
|
|
1470
1579
|
recognition, one for the P-routed `listActions` consent gate — and only the
|
|
@@ -1581,7 +1690,7 @@ committed key and its PIN, could spend without the mnemonic.
|
|
|
1581
1690
|
- **Duplicate-delivery detection narrowed to the structured code (XR-046).**
|
|
1582
1691
|
`isDuplicateMessageError` matched free prose in a thrown error's message,
|
|
1583
1692
|
entirely attacker/host-controlled; it now requires `@bsv/message-box-
|
|
1584
|
-
|
|
1693
|
+
client`'s own structured `ERR_DUPLICATE_MESSAGE` code, which the client
|
|
1585
1694
|
validates before embedding.
|
|
1586
1695
|
- **Inbox shape-check bounded (XR-047).** An unbounded
|
|
1587
1696
|
`transaction`/derivation-string length in a poisoned inbox message re-
|
|
@@ -1714,7 +1823,7 @@ committed key and its PIN, could spend without the mnemonic.
|
|
|
1714
1823
|
BUMP/root check only proves the requested txid is confirmed; nothing checked
|
|
1715
1824
|
that a separately-fetched raw-tx response actually hashed to that txid before
|
|
1716
1825
|
completing a transaction on it. It now requires `doubleSha256(rawTx) ===
|
|
1717
|
-
|
|
1826
|
+
txid`.
|
|
1718
1827
|
- **Only an authoritative 404 proves chain absence (XR-030).** A manual proof
|
|
1719
1828
|
refresh treated any non-2xx response (a rate limit, a 5xx, an auth error)
|
|
1720
1829
|
identically to a definitive 404 and released reserved inputs on a stale row;
|
|
@@ -1842,7 +1951,7 @@ committed key and its PIN, could spend without the mnemonic.
|
|
|
1842
1951
|
release a `nosend` action's reserved inputs — including one already handed to
|
|
1843
1952
|
a counterparty over PeerPay or LocalPay, turning a chain-status outage into a
|
|
1844
1953
|
payer-side double-spend race. The patch (`patches/@bsv+wallet-toolbox-
|
|
1845
|
-
|
|
1954
|
+
mobile+2.14.0.patch`) now retries the chain-status check once and, if still
|
|
1846
1955
|
unresolved, throws instead of invalidating — every in-app `abortAction`
|
|
1847
1956
|
caller already handles a thrown result sensibly, and Vault's own abort calls
|
|
1848
1957
|
(strictly unsigned-only) are unaffected. Verified end to end through Vault's
|
|
@@ -1933,7 +2042,7 @@ surfaced above, collected here for visibility:
|
|
|
1933
2042
|
- **Pairing QR signatures verify in the `@bsv/wallet-relay` 0.5.x format.**
|
|
1934
2043
|
`buildPairingSignatureMessage` (`walletConnectionValidation.ts`) had drifted
|
|
1935
2044
|
to a domained `bsv-wallet-pairing-v1|topic|backendIdentityKey|protocolID|
|
|
1936
|
-
|
|
2045
|
+
origin|expiry` transcript, while wallet-relay backends sign
|
|
1937
2046
|
`topic|backendIdentityKey|origin|expiry`, so every real pairing QR failed
|
|
1938
2047
|
with "Signature is not valid". Any future transcript change must be
|
|
1939
2048
|
coordinated with wallet-relay and its backends.
|
|
@@ -2153,7 +2262,7 @@ block:
|
|
|
2153
2262
|
only blocks an abort once the payer's own settlement row has already
|
|
2154
2263
|
advanced to handed-over, which never happens on a decline. It now accepts
|
|
2155
2264
|
an optional `watchDeclinedAbort?: (entry: { txid: string; reference:
|
|
2156
|
-
|
|
2265
|
+
string }) => Promise<void>` dependency, called after every decline (BSV or
|
|
2157
2266
|
token) it has a txid for, whether or not the abort itself succeeded.
|
|
2158
2267
|
`core/localpay/pendingAborts.ts` gains a durable watch list
|
|
2159
2268
|
(`queueDeclinedAbortWatch` / `verifyDeclinedAborts`, backed by a new
|
|
@@ -2190,7 +2299,7 @@ wallet" state as soon as the payment was durably queued, before
|
|
|
2190
2299
|
the overlay never retracted or recoloured, claiming a credit the device
|
|
2191
2300
|
could not back yet. `PaymentSuccessOverlay` gains an optional
|
|
2192
2301
|
`verification?: 'pending' | 'verified' | 'not-credited'` prop, defaulting to
|
|
2193
|
-
`'verified'` so every existing caller is unaffected. The overlay's
|
|
2302
|
+
`'verified'` so every existing caller is unaffected. The overlay's _timing_
|
|
2194
2303
|
is unchanged — still shown the instant the payment is durably queued; only
|
|
2195
2304
|
the claim is gated: `'pending'` shows a neutral "Confirming with your
|
|
2196
2305
|
wallet…" (`local_pay_received_confirming`) the moment it appears, resolving
|
|
@@ -2297,9 +2406,9 @@ Three fixes sharing `WalletContext.tsx`'s wiring:
|
|
|
2297
2406
|
to `AsyncStorage` so an app restart does not reset the cap.
|
|
2298
2407
|
- **Broadcast callback token**: the Arcade `X-CallbackToken` was
|
|
2299
2408
|
`keyDeriver.identityKey.substring(0, 32)` — the first 32 hex chars of the
|
|
2300
|
-
wallet's own
|
|
2409
|
+
wallet's own _public_ identity key, a value any past counterparty already
|
|
2301
2410
|
has. `core/services/callbackToken.ts`'s `deriveCallbackToken` derives it
|
|
2302
|
-
from a BRC-42
|
|
2411
|
+
from a BRC-42 _private_ key instead (fixed protocol/keyID, counterparty
|
|
2303
2412
|
`'self'`, then hashed) — deterministic per wallet, but only this wallet's
|
|
2304
2413
|
root key can compute it. The token is recomputed on every wallet build and
|
|
2305
2414
|
used for both the Arcade broadcast service and the Monitor's
|
|
@@ -2313,7 +2422,7 @@ Three fixes sharing `WalletContext.tsx`'s wiring:
|
|
|
2313
2422
|
answering for the wrong network, and this path never writes `spentBy`, so
|
|
2314
2423
|
nothing could ever undo a wrong call. `core/walletRepair/shouldMarkUnspendable.ts`
|
|
2315
2424
|
now requires the toolbox's own configured `getUtxoStatus` provider to
|
|
2316
|
-
|
|
2425
|
+
_also_ report the output as no longer a UTXO before committing to
|
|
2317
2426
|
`spendable: false`; either way, the claimed spender is now recorded in
|
|
2318
2427
|
`outputs.spendingDescription` as a paper trail (a free-text column
|
|
2319
2428
|
nothing else in this app reads or writes).
|
|
@@ -2328,7 +2437,7 @@ single timeout-guarded `getExchangeRate()` instead of re-implementing an
|
|
|
2328
2437
|
untimed fetch and its own cache/fallback.
|
|
2329
2438
|
|
|
2330
2439
|
Separately, that background refresh used to be fire-and-forget — its result
|
|
2331
|
-
only ever reached the UI on the
|
|
2440
|
+
only ever reached the UI on the _next_ cold start, so a session that opened
|
|
2332
2441
|
with a stale cached/fallback rate stayed stale until closed and reopened.
|
|
2333
2442
|
`getExchangeRate()` now returns an additional `refreshed: Promise<number |
|
|
2334
2443
|
undefined>` field (never rejects — every failure mode is still caught and
|
|
@@ -2362,7 +2471,7 @@ vetting. A foreign-domain match now gets `pay_trust_handle_domain_attested`
|
|
|
2362
2471
|
with no in-app way to resolve it. `core/services/vault/transfers.ts` gains
|
|
2363
2472
|
`resolveHeldVaultDeposit(w, adminOriginator, meta, scopeToken?)`: it asks
|
|
2364
2473
|
the network for the held txid's status first (`already-known` if the
|
|
2365
|
-
network already has it, otherwise re-broadcasts the
|
|
2474
|
+
network already has it, otherwise re-broadcasts the _exact_
|
|
2366
2475
|
already-signed bytes via the same `sendWith` call the normal release
|
|
2367
2476
|
uses — never a second transaction, never `abortAction`). `VaultScreen`
|
|
2368
2477
|
shows a "Finish the interrupted deposit" notice and button
|
|
@@ -2392,7 +2501,7 @@ vetting. A foreign-domain match now gets `pay_trust_handle_domain_attested`
|
|
|
2392
2501
|
`hasVaultMeta` flag, backed by the existing `vaultStore.isEnrolled()`
|
|
2393
2502
|
read (no new network call). `WalletHomeScreen` and `SettingsScreen` now
|
|
2394
2503
|
show their Vault entry point when `isVaultAvailable(selectedNetwork) ||
|
|
2395
|
-
|
|
2504
|
+
hasVaultMeta`, so an already-funded vault stays reachable even with
|
|
2396
2505
|
`EXPO_PUBLIC_VAULT_ENABLED` off or the network switched away from
|
|
2397
2506
|
mainnet. `VaultScreen`'s own withdraw/deposit gating is unchanged.
|
|
2398
2507
|
- **Vendored patch.** The `@bsv+wallet-toolbox-mobile+2.14.0.patch` funding
|
|
@@ -2402,12 +2511,12 @@ vetting. A foreign-domain match now gets `pay_trust_handle_domain_attested`
|
|
|
2402
2511
|
`validateSignableVaultPlan`'s strict input-count check then rejected
|
|
2403
2512
|
outright — spuriously failing an otherwise-legitimate withdraw or relock.
|
|
2404
2513
|
Re-keyed to the already-computed `vargs.__bsvVaultAdminAuthorized ===
|
|
2405
|
-
|
|
2514
|
+
true` flag, which covers deposit, withdraw and relock alike.
|
|
2406
2515
|
|
|
2407
2516
|
### Mandala: a handle-rail token is held before it is internalized
|
|
2408
2517
|
|
|
2409
2518
|
`@bsv/mandala`'s own `receiveTokens` calls `wallet.internalizeAction()`
|
|
2410
|
-
|
|
2519
|
+
_before_ it calls the settle hook that finally writes a `token_settlements`
|
|
2411
2520
|
row — on a handle-rail token's first credit, that row does not exist yet, so
|
|
2412
2521
|
`StorageExpoSQLite.attemptToPostReqsToNetwork`'s guard (which looks up
|
|
2413
2522
|
exactly that row) finds nothing and lets an unmediated broadcast through
|
|
@@ -2633,7 +2742,7 @@ under Node again.
|
|
|
2633
2742
|
optional arguments. **A host calling it directly must pass `incoming` (and
|
|
2634
2743
|
`labels`)**: without them, `completed`, `unproven` and `sending` now resolve
|
|
2635
2744
|
to "Spent". New exports from `ui/txStatus.ts`: `activityKind(incoming,
|
|
2636
|
-
|
|
2745
|
+
labels)`, the one place a row's word is decided, returning the new
|
|
2637
2746
|
`ActivityKind` (`'sent' | 'received' | 'spent' | 'transferred'`), and
|
|
2638
2747
|
`isPaymentAction(labels)`.
|
|
2639
2748
|
- Token (Mandala) rows use the same words: "Sent" or "Received" once settled,
|
|
@@ -2865,8 +2974,8 @@ New:
|
|
|
2865
2974
|
`VaultProgress.signed/total`.
|
|
2866
2975
|
- Transfers: `depositToVault(w, adminOriginator, satoshis, opts?)` needs no
|
|
2867
2976
|
hardware; `withdrawFromVault(w, adminOriginator, amount, reason,
|
|
2868
|
-
|
|
2869
|
-
|
|
2977
|
+
chosenSerial, opts?)`; `previewVaultWithdrawal(w, adminOriginator,
|
|
2978
|
+
chosenSerial, amount)` — the chosen key's selectable total, capped count
|
|
2870
2979
|
and unreachable set without reserving or tapping, for the remainder
|
|
2871
2980
|
confirmation before the tap; `relockVault`; `estimateRelockFee`;
|
|
2872
2981
|
`getVaultKeyCoverage`; `orphanedIfRemoved`;
|
|
@@ -3260,7 +3369,7 @@ pay-first UX, recipient-submits offline settlement (specs:
|
|
|
3260
3369
|
registers an InteractionManager handle for the duration of the animation, and
|
|
3261
3370
|
`Animated.loop` means that duration never ends — so the handle was held for
|
|
3262
3371
|
as long as the component stayed mounted, and while any handle is held
|
|
3263
|
-
`InteractionManager.runAfterInteractions` never fires for
|
|
3372
|
+
`InteractionManager.runAfterInteractions` never fires for _anyone_ in the
|
|
3264
3373
|
process. `Balance` renders `<AppLogo rotate />` whenever a balance is loading,
|
|
3265
3374
|
so this was reachable in normal use: `PayScreen`'s deferred proof sweep never
|
|
3266
3375
|
ran, and a host that defers real work the same way could hang indefinitely
|
package/README.md
CHANGED
|
@@ -47,68 +47,68 @@ Expo SDK line.
|
|
|
47
47
|
|
|
48
48
|
### React / Expo core (required)
|
|
49
49
|
|
|
50
|
-
| Package
|
|
51
|
-
|
|
|
52
|
-
| `react`
|
|
53
|
-
| `react-native` | 0.83.6
|
|
54
|
-
| `expo-router`
|
|
50
|
+
| Package | Version |
|
|
51
|
+
| -------------- | -------- |
|
|
52
|
+
| `react` | 19.2.0 |
|
|
53
|
+
| `react-native` | 0.83.6 |
|
|
54
|
+
| `expo-router` | ~55.0.16 |
|
|
55
55
|
|
|
56
56
|
### BSV SDK & protocol libraries (required)
|
|
57
57
|
|
|
58
|
-
| Package
|
|
59
|
-
|
|
|
60
|
-
| `@bsv/sdk`
|
|
61
|
-
| `@bsv/wallet-toolbox-mobile`
|
|
62
|
-
| `@bsv/btms-permission-module` | ^1.1.0
|
|
63
|
-
| `@bsv/air-gap`
|
|
64
|
-
| `@bsv/backup-cache-client`
|
|
65
|
-
| `@bsv/message-box-client`
|
|
66
|
-
| `@bsv/templates`
|
|
67
|
-
| `@noble/curves`
|
|
68
|
-
| `qrcode`
|
|
58
|
+
| Package | Version |
|
|
59
|
+
| ----------------------------- | ------- |
|
|
60
|
+
| `@bsv/sdk` | ^2.4.1 |
|
|
61
|
+
| `@bsv/wallet-toolbox-mobile` | ^2.4.3 |
|
|
62
|
+
| `@bsv/btms-permission-module` | ^1.1.0 |
|
|
63
|
+
| `@bsv/air-gap` | ^0.1.1 |
|
|
64
|
+
| `@bsv/backup-cache-client` | ^0.1.0 |
|
|
65
|
+
| `@bsv/message-box-client` | ^2.2.1 |
|
|
66
|
+
| `@bsv/templates` | ^1.10.0 |
|
|
67
|
+
| `@noble/curves` | ^2.3.0 |
|
|
68
|
+
| `qrcode` | ^1.5.4 |
|
|
69
69
|
|
|
70
70
|
### Expo native modules (required — each needs its own autolinking/config)
|
|
71
71
|
|
|
72
|
-
| Package
|
|
73
|
-
|
|
|
74
|
-
| `expo-sqlite`
|
|
75
|
-
| `expo-secure-store`
|
|
76
|
-
| `expo-camera`
|
|
77
|
-
| `expo-audio`
|
|
78
|
-
| `expo-clipboard`
|
|
79
|
-
| `expo-crypto`
|
|
80
|
-
| `expo-device`
|
|
81
|
-
| `expo-document-picker`
|
|
82
|
-
| `expo-file-system`
|
|
83
|
-
| `expo-haptics`
|
|
72
|
+
| Package | Version |
|
|
73
|
+
| --------------------------- | -------- |
|
|
74
|
+
| `expo-sqlite` | ~55.0.16 |
|
|
75
|
+
| `expo-secure-store` | ~55.0.14 |
|
|
76
|
+
| `expo-camera` | ~55.0.19 |
|
|
77
|
+
| `expo-audio` | ~55.0.16 |
|
|
78
|
+
| `expo-clipboard` | ~55.0.13 |
|
|
79
|
+
| `expo-crypto` | ~55.0.15 |
|
|
80
|
+
| `expo-device` | ~55.0.17 |
|
|
81
|
+
| `expo-document-picker` | ~55.0.13 |
|
|
82
|
+
| `expo-file-system` | ~55.0.20 |
|
|
83
|
+
| `expo-haptics` | ~55.0.14 |
|
|
84
84
|
| `expo-local-authentication` | ~55.0.14 |
|
|
85
|
-
| `expo-localization`
|
|
86
|
-
| `expo-print`
|
|
87
|
-
| `expo-sharing`
|
|
88
|
-
| `expo-status-bar`
|
|
89
|
-
| `expo-blur`
|
|
90
|
-
| `@expo/vector-icons`
|
|
85
|
+
| `expo-localization` | ~55.0.15 |
|
|
86
|
+
| `expo-print` | ~55.0.15 |
|
|
87
|
+
| `expo-sharing` | ~55.0.19 |
|
|
88
|
+
| `expo-status-bar` | ~55.0.6 |
|
|
89
|
+
| `expo-blur` | ~55.0.14 |
|
|
90
|
+
| `@expo/vector-icons` | ^15.0.3 |
|
|
91
91
|
|
|
92
92
|
### React Native native modules (required)
|
|
93
93
|
|
|
94
|
-
| Package
|
|
95
|
-
|
|
|
96
|
-
| `@react-native-async-storage/async-storage` | 2.2.0
|
|
97
|
-
| `@react-native-clipboard/clipboard`
|
|
98
|
-
| `@react-native-community/netinfo`
|
|
99
|
-
| `react-native-gesture-handler`
|
|
100
|
-
| `react-native-localize`
|
|
101
|
-
| `react-native-qrcode-svg`
|
|
102
|
-
| `react-native-reanimated`
|
|
103
|
-
| `react-native-safe-area-context`
|
|
104
|
-
| `react-native-svg`
|
|
105
|
-
| `react-native-sse`
|
|
94
|
+
| Package | Version |
|
|
95
|
+
| ------------------------------------------- | ------- |
|
|
96
|
+
| `@react-native-async-storage/async-storage` | 2.2.0 |
|
|
97
|
+
| `@react-native-clipboard/clipboard` | ^1.16.2 |
|
|
98
|
+
| `@react-native-community/netinfo` | 11.5.2 |
|
|
99
|
+
| `react-native-gesture-handler` | ~2.30.0 |
|
|
100
|
+
| `react-native-localize` | ^3.4.1 |
|
|
101
|
+
| `react-native-qrcode-svg` | ^6.3.15 |
|
|
102
|
+
| `react-native-reanimated` | 4.2.1 |
|
|
103
|
+
| `react-native-safe-area-context` | ~5.6.0 |
|
|
104
|
+
| `react-native-svg` | 15.15.3 |
|
|
105
|
+
| `react-native-sse` | ^1.2.1 |
|
|
106
106
|
|
|
107
107
|
### Pure JS rendering (required)
|
|
108
108
|
|
|
109
|
-
| Package
|
|
110
|
-
|
|
|
111
|
-
| `@urbit/sigil-js` | ^2.2.0
|
|
109
|
+
| Package | Version |
|
|
110
|
+
| ----------------- | ------- |
|
|
111
|
+
| `@urbit/sigil-js` | ^2.2.0 |
|
|
112
112
|
|
|
113
113
|
Draws the counterparty avatar on activity rows. This package imports only
|
|
114
114
|
its `./core` entry: the package root pulls in a DOM renderer that touches
|
|
@@ -126,22 +126,22 @@ the fix is a `resolveRequest` that maps `@urbit/sigil-js/core` to
|
|
|
126
126
|
|
|
127
127
|
### State & i18n (required)
|
|
128
128
|
|
|
129
|
-
| Package
|
|
130
|
-
|
|
|
131
|
-
| `mobx`
|
|
132
|
-
| `mobx-react-lite` | ^4.1.0
|
|
133
|
-
| `i18next`
|
|
134
|
-
| `react-i18next`
|
|
135
|
-
| `date-fns`
|
|
129
|
+
| Package | Version |
|
|
130
|
+
| ----------------- | ------- |
|
|
131
|
+
| `mobx` | ^6.13.7 |
|
|
132
|
+
| `mobx-react-lite` | ^4.1.0 |
|
|
133
|
+
| `i18next` | ^25.2.1 |
|
|
134
|
+
| `react-i18next` | ^15.5.3 |
|
|
135
|
+
| `date-fns` | ^4.1.0 |
|
|
136
136
|
|
|
137
137
|
### Nitro native modules — this repo's own packages (required)
|
|
138
138
|
|
|
139
|
-
| Package
|
|
140
|
-
|
|
|
141
|
-
| `react-native-nitro-modules`
|
|
139
|
+
| Package | Notes |
|
|
140
|
+
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
|
|
141
|
+
| `react-native-nitro-modules` | ^0.35.2. Nitro codegen runtime the three below build on. |
|
|
142
142
|
| `@bsv/react-native-localpay-transport` | Local WiFi/Bluetooth/BLE P2P payment transport. Published independently — see `packages/react-native-localpay-transport`. |
|
|
143
|
-
| `react-native-engine-native`
|
|
144
|
-
| `react-native-secp-native`
|
|
143
|
+
| `react-native-engine-native` | Native wallet-toolbox engine bindings. |
|
|
144
|
+
| `react-native-secp-native` | Native secp256k1 signing. |
|
|
145
145
|
|
|
146
146
|
`react-native-engine-native` and `react-native-secp-native` ship as sibling
|
|
147
147
|
`packages/` in this repo and are not yet published to npm independently —
|
|
@@ -151,8 +151,8 @@ dependencies.
|
|
|
151
151
|
|
|
152
152
|
### Optional
|
|
153
153
|
|
|
154
|
-
| Package
|
|
155
|
-
|
|
|
154
|
+
| Package | Notes |
|
|
155
|
+
| ---------------------- | ------------------------------------------------------------------------------------------------- |
|
|
156
156
|
| `react-native-yubikey` | Vault/hardware-key support. Absence is detected at runtime and vault features degrade gracefully. |
|
|
157
157
|
|
|
158
158
|
## Configuration
|
|
@@ -302,18 +302,18 @@ this is the pattern `bsv-wallet`'s own route files use:
|
|
|
302
302
|
export { WalletHomeScreen as default } from '@bsv/expo-wallet-toolbox/ui'
|
|
303
303
|
```
|
|
304
304
|
|
|
305
|
-
| Screen
|
|
306
|
-
|
|
|
307
|
-
| `WalletHomeScreen`
|
|
308
|
-
| `PayScreen`
|
|
309
|
-
| `SettingsScreen`
|
|
310
|
-
| `WalletConfigScreen`
|
|
311
|
-
| `VaultScreen`
|
|
312
|
-
| `VaultTransferScreen` | `app/vault-transfer.tsx`
|
|
313
|
-
| `ConnectionsScreen`
|
|
314
|
-
| `PairScreen`
|
|
315
|
-
| `TrustScreen`
|
|
316
|
-
| `LogsScreen`
|
|
305
|
+
| Screen | Source route in this repo |
|
|
306
|
+
| --------------------- | ------------------------- |
|
|
307
|
+
| `WalletHomeScreen` | `app/index.tsx` |
|
|
308
|
+
| `PayScreen` | `app/pay.tsx` |
|
|
309
|
+
| `SettingsScreen` | `app/settings.tsx` |
|
|
310
|
+
| `WalletConfigScreen` | `app/wallet-config.tsx` |
|
|
311
|
+
| `VaultScreen` | `app/vault.tsx` |
|
|
312
|
+
| `VaultTransferScreen` | `app/vault-transfer.tsx` |
|
|
313
|
+
| `ConnectionsScreen` | `app/connections.tsx` |
|
|
314
|
+
| `PairScreen` | `app/pair.tsx` |
|
|
315
|
+
| `TrustScreen` | `app/trust.tsx` |
|
|
316
|
+
| `LogsScreen` | `app/logs.tsx` |
|
|
317
317
|
|
|
318
318
|
> **Note:** `ConnectionsScreen` accepts pairing codes using `bsv-wallet://`
|
|
319
319
|
> or `bsv-browser://`. OS-level links also require native scheme registration
|
|
@@ -382,8 +382,8 @@ wraps `@expo/config-plugins`' `withEntitlementsPlist`:
|
|
|
382
382
|
```js
|
|
383
383
|
const { withEntitlementsPlist } = require('@expo/config-plugins')
|
|
384
384
|
|
|
385
|
-
module.exports =
|
|
386
|
-
withEntitlementsPlist(config,
|
|
385
|
+
module.exports = config =>
|
|
386
|
+
withEntitlementsPlist(config, mod => {
|
|
387
387
|
mod.modResults['com.apple.developer.nfc.readersession.formats'] = ['TAG']
|
|
388
388
|
return mod
|
|
389
389
|
})
|
|
@@ -540,7 +540,7 @@ are required — both hard-won during this package's extraction:
|
|
|
540
540
|
before writing a single test that touches wallet behavior:
|
|
541
541
|
`core/backup/client.ts` statically imports it, and it's re-exported
|
|
542
542
|
through the core barrel (`core/index.ts`), so any test that imports
|
|
543
|
-
|
|
543
|
+
_anything_ from `@bsv/expo-wallet-toolbox` pulls it in. The package
|
|
544
544
|
is `"type": "module"` (ESM-only, no CJS `require` export condition),
|
|
545
545
|
which Jest's default CJS-based resolver can't load — hence the
|
|
546
546
|
explicit redirect straight to its `dist/index.js` build. This bites
|
|
@@ -646,7 +646,7 @@ package imports itself by name, relying on the workspace's self-referencing
|
|
|
646
646
|
`node_modules` directory-walk resolution — the installed copy sits inside a
|
|
647
647
|
consumer's `node_modules` and is found there like any other dependency, not
|
|
648
648
|
through Node's dedicated package-self-reference feature). That feature only
|
|
649
|
-
kicks in when an `exports` map is present
|
|
649
|
+
kicks in when an `exports` map is present _and_ includes a `"."` entry — adding an
|
|
650
650
|
`exports` map without one would silently break every one of those ~50
|
|
651
651
|
imports at publish time, and adding one with only `"."` (no `"./ui"` entry)
|
|
652
652
|
would break every consumer's `/ui` subpath import instead.
|