@dynamic-labs/bitcoin 5.7.0 → 5.8.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 +14 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/connectors/DynamicWaasBitcoinConnector/DynamicWaasBitcoinConnector.cjs +1 -0
- package/src/connectors/DynamicWaasBitcoinConnector/DynamicWaasBitcoinConnector.d.ts +24 -10
- package/src/connectors/DynamicWaasBitcoinConnector/DynamicWaasBitcoinConnector.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
|
|
2
|
+
## [5.8.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.7.0...v5.8.0) (2026-09-09)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **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))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* 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))
|
|
13
|
+
* **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))
|
|
14
|
+
* 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))
|
|
15
|
+
|
|
2
16
|
## [5.7.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.6.1...v5.7.0) (2026-09-08)
|
|
3
17
|
|
|
4
18
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/bitcoin",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.8.0",
|
|
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.
|
|
33
|
-
"@dynamic-labs/logger": "5.
|
|
34
|
-
"@dynamic-labs/types": "5.
|
|
35
|
-
"@dynamic-labs/utils": "5.
|
|
36
|
-
"@dynamic-labs/waas": "5.
|
|
37
|
-
"@dynamic-labs/wallet-book": "5.
|
|
38
|
-
"@dynamic-labs/wallet-connector-core": "5.
|
|
32
|
+
"@dynamic-labs/assert-package-version": "5.8.0",
|
|
33
|
+
"@dynamic-labs/logger": "5.8.0",
|
|
34
|
+
"@dynamic-labs/types": "5.8.0",
|
|
35
|
+
"@dynamic-labs/utils": "5.8.0",
|
|
36
|
+
"@dynamic-labs/waas": "5.8.0",
|
|
37
|
+
"@dynamic-labs/wallet-book": "5.8.0",
|
|
38
|
+
"@dynamic-labs/wallet-connector-core": "5.8.0",
|
|
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,
|