@dynamic-labs/bitcoin 5.7.0 → 5.8.1

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 CHANGED
@@ -1,4 +1,25 @@
1
1
 
2
+ ### [5.8.1](https://github.com/dynamic-labs/dynamic-auth/compare/v5.8.0...v5.8.1) (2026-09-15)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * **wallet-connect:** fix Rabby WalletConnect connection ([#12385](https://github.com/dynamic-labs/dynamic-auth/issues/12385)) ([df2a93c](https://github.com/dynamic-labs/dynamic-auth/commit/df2a93cd95b75b74dd47468faedad88c463b14de))
8
+
9
+ ## [5.8.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.7.0...v5.8.0) (2026-09-09)
10
+
11
+
12
+ ### Features
13
+
14
+ * **solana-core:** standalone sponsored ATA creation ([#12365](https://github.com/dynamic-labs/dynamic-auth/issues/12365)) ([ac2e776](https://github.com/dynamic-labs/dynamic-auth/commit/ac2e7769fcf91c868e961a227b8acb6347bf3f13))
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * do not report wallets installed from a provider selection router ([#12340](https://github.com/dynamic-labs/dynamic-auth/issues/12340)) ([dac5546](https://github.com/dynamic-labs/dynamic-auth/commit/dac5546edf6004c37bd84dd2089d94952949230b))
20
+ * **screening:** soften the blocked-wallet copy to be provider-neutral ([#12358](https://github.com/dynamic-labs/dynamic-auth/issues/12358)) ([b4854d8](https://github.com/dynamic-labs/dynamic-auth/commit/b4854d88fa67f684be0e133edd5fd4a4bf5c7f37))
21
+ * show transaction amount when simulation returns no transfers ([#12355](https://github.com/dynamic-labs/dynamic-auth/issues/12355)) ([bfaf337](https://github.com/dynamic-labs/dynamic-auth/commit/bfaf337e5350970f71255baff065e0cdbccdc7ca))
22
+
2
23
  ## [5.7.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.6.1...v5.7.0) (2026-09-08)
3
24
 
4
25
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "5.7.0";
6
+ var version = "5.8.1";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "5.7.0";
2
+ var version = "5.8.1";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/bitcoin",
3
- "version": "5.7.0",
3
+ "version": "5.8.1",
4
4
  "description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -29,13 +29,13 @@
29
29
  "ecpair": "2.1.0",
30
30
  "sats-connect": "4.2.1",
31
31
  "jsontokens": "4.0.1",
32
- "@dynamic-labs/assert-package-version": "5.7.0",
33
- "@dynamic-labs/logger": "5.7.0",
34
- "@dynamic-labs/types": "5.7.0",
35
- "@dynamic-labs/utils": "5.7.0",
36
- "@dynamic-labs/waas": "5.7.0",
37
- "@dynamic-labs/wallet-book": "5.7.0",
38
- "@dynamic-labs/wallet-connector-core": "5.7.0",
32
+ "@dynamic-labs/assert-package-version": "5.8.1",
33
+ "@dynamic-labs/logger": "5.8.1",
34
+ "@dynamic-labs/types": "5.8.1",
35
+ "@dynamic-labs/utils": "5.8.1",
36
+ "@dynamic-labs/waas": "5.8.1",
37
+ "@dynamic-labs/wallet-book": "5.8.1",
38
+ "@dynamic-labs/wallet-connector-core": "5.8.1",
39
39
  "eventemitter3": "5.0.1"
40
40
  },
41
41
  "peerDependencies": {}
@@ -405,6 +405,7 @@ class DynamicWaasBitcoinConnector extends waas.withDynamicWaas(BitcoinWalletConn
405
405
  const signedTransaction = yield walletClient.signTransaction({
406
406
  allowedSighash: request.allowedSighash,
407
407
  authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
408
+ bitcoinConfig: { network: yield this.getBitcoinNetworkEnum() },
408
409
  elevatedAccessToken,
409
410
  mfaToken,
410
411
  password,
@@ -63,6 +63,7 @@ declare const DynamicWaasBitcoinConnector_base: (abstract new (...args: any[]) =
63
63
  getSignedSessionId: () => Promise<string>;
64
64
  };
65
65
  createDynamicWaasClient(traceContext?: import("dist/packages/waas/utils/instrumentation").TraceContext | undefined): Promise<import("@dynamic-labs-wallet/browser-wallet-client").DynamicWalletClient>;
66
+ detachWaasClient(client: import("@dynamic-labs-wallet/browser-wallet-client").DynamicWalletClient | undefined, reason: string): boolean;
66
67
  getWaasWalletClient(traceContext?: import("dist/packages/waas/utils/instrumentation").TraceContext | undefined, { forceRebuild }?: {
67
68
  forceRebuild?: boolean | undefined;
68
69
  } | undefined): Promise<import("@dynamic-labs-wallet/browser-wallet-client").DynamicWalletClient>;
@@ -136,15 +137,7 @@ declare const DynamicWaasBitcoinConnector_base: (abstract new (...args: any[]) =
136
137
  hideICloudSignIn(): Promise<void>;
137
138
  isICloudAuthenticated(): Promise<boolean>;
138
139
  refreshWalletAccountShares({ accountAddress, password, }: import("@dynamic-labs/wallet-connector-core").RefreshWalletAccountSharesParams): Promise<void>;
139
- reshareWalletAccountShares({ accountAddress, thresholdSignatureScheme, password, }: import("@dynamic-labs/wallet-connector-core").ReshareWalletAccountSharesParams): Promise<void>; /**
140
- * Finds the credential that owns `address`, either as its primary (mainnet)
141
- * address or as one of its network-tagged additional addresses.
142
- *
143
- * This connector is shared across every Bitcoin wallet of the user —
144
- * `verifiedCredentials` holds them all — so the owning credential must be
145
- * looked up by address. Reading `verifiedCredential` instead would always
146
- * answer with the user's *first* wallet.
147
- */
140
+ reshareWalletAccountShares({ accountAddress, thresholdSignatureScheme, password, }: import("@dynamic-labs/wallet-connector-core").ReshareWalletAccountSharesParams): Promise<void>;
148
141
  revokeDelegation({ accountAddress, password, }: {
149
142
  accountAddress: string;
150
143
  password?: string | undefined;
@@ -152,7 +145,28 @@ declare const DynamicWaasBitcoinConnector_base: (abstract new (...args: any[]) =
152
145
  updatePassword({ accountAddress, existingPassword, newPassword, }: import("@dynamic-labs/wallet-connector-core").UpdatePasswordParams): Promise<void>;
153
146
  setPassword({ accountAddress, newPassword, }: {
154
147
  accountAddress: string;
155
- newPassword: string;
148
+ newPassword: string; /**
149
+ * True when `accountAddress` belongs to the same wallet as the currently
150
+ * active address — including when the active address is a *different*
151
+ * network-tagged encoding of that same wallet (e.g. the testnet address
152
+ * set by switchNetwork, compared against the wallet's primary mainnet
153
+ * address).
154
+ *
155
+ * Used by getWalletClientByAddress to avoid clobbering an explicit
156
+ * switchNetwork: callers like ensureActiveAccount re-assert the wallet's
157
+ * primary address before every send/sign, and setting activeAccountAddress
158
+ * back to that primary address would silently undo the network switch —
159
+ * UTXO/PSBT/broadcast calls would then run against the wrong (likely
160
+ * unfunded) encoding while getNetwork still reports the switched network.
161
+ *
162
+ * Compares the two resolved credential *objects* by reference rather than
163
+ * by id: both lookups run against the same verifiedCredentials array in
164
+ * the same synchronous call, so `.find()` returns the identical element
165
+ * for both addresses whenever they belong to the same wallet. Comparing
166
+ * `.id` instead would be wrong whenever accountAddress doesn't resolve to
167
+ * any known credential yet (e.g. a brand-new wallet not yet synced) —
168
+ * `undefined === undefined` would falsely read as "same wallet".
169
+ */
156
170
  }): Promise<void>;
157
171
  signRawMessage({ accountAddress, context, message, password, }: {
158
172
  accountAddress: string;
@@ -401,6 +401,7 @@ class DynamicWaasBitcoinConnector extends withDynamicWaas(BitcoinWalletConnector
401
401
  const signedTransaction = yield walletClient.signTransaction({
402
402
  allowedSighash: request.allowedSighash,
403
403
  authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
404
+ bitcoinConfig: { network: yield this.getBitcoinNetworkEnum() },
404
405
  elevatedAccessToken,
405
406
  mfaToken,
406
407
  password,