@dynamic-labs/bitcoin 4.90.0 → 4.91.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,40 @@
1
1
 
2
+ ### [4.91.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.91.0...v4.91.1) (2026-06-24)
3
+
4
+
5
+ ### Features
6
+
7
+ * **aleo:** update sendBalance with individual and marketplace logic ([#11709](https://github.com/dynamic-labs/dynamic-auth/issues/11709)) ([f8dfc48](https://github.com/dynamic-labs/dynamic-auth/commit/f8dfc488ae607fbbbcc3432a3ef69f746f0b7df0))
8
+ * **sdk-react-core:** surface shielded address in Midnight deposit view ([#11698](https://github.com/dynamic-labs/dynamic-auth/issues/11698)) ([79c5402](https://github.com/dynamic-labs/dynamic-auth/commit/79c54029b1d8f722cf9f1d8b4c11977898442ac0))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * display actual error message for WaaS export failures instead of generic fallback ([#11498](https://github.com/dynamic-labs/dynamic-auth/issues/11498)) ([373c931](https://github.com/dynamic-labs/dynamic-auth/commit/373c931eb96c88e484c557ee8f2934660d028f97))
14
+ * **wallet-book:** guard replaceKey and remove stale override ([#11682](https://github.com/dynamic-labs/dynamic-auth/issues/11682)) ([13947d9](https://github.com/dynamic-labs/dynamic-auth/commit/13947d972ed1f8227712bfc01af9cc2be616a78a))
15
+
16
+
17
+ ### Performance Improvements
18
+
19
+ * **e2e:** prebuild Expo web bundle for RN e2e tests ([#11674](https://github.com/dynamic-labs/dynamic-auth/issues/11674)) ([16e002d](https://github.com/dynamic-labs/dynamic-auth/commit/16e002d59b2035e3f2c116879a78418a959da8bc))
20
+
21
+ ## [4.91.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.90.0...v4.91.0) (2026-06-23)
22
+
23
+
24
+ ### Features
25
+
26
+ * **midnight:** add WaaS layer to @dynamic-labs/midnight ([#11006](https://github.com/dynamic-labs/dynamic-auth/issues/11006)) ([01b9d16](https://github.com/dynamic-labs/dynamic-auth/commit/01b9d16d0ba92a141a9be546ca00cca4029894d5))
27
+ * **sdk-react-core:** widget support for Midnight multi-address display + export hiding ([#11008](https://github.com/dynamic-labs/dynamic-auth/issues/11008)) ([87320b4](https://github.com/dynamic-labs/dynamic-auth/commit/87320b4d6e286b88e17f144641346e16a27e9e71))
28
+ * **waas:** wire session public key through host backup ops for keyshare diagnostics [DYNT-1280] ([#11675](https://github.com/dynamic-labs/dynamic-auth/issues/11675)) ([4f7981c](https://github.com/dynamic-labs/dynamic-auth/commit/4f7981c009930469dec7b3dec93f20f99bbe5498))
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * **ethereum-aa:** make ZeroDevConnector inert instead of throwing when ZeroDev config is absent ([#11610](https://github.com/dynamic-labs/dynamic-auth/issues/11610)) ([a3aab6a](https://github.com/dynamic-labs/dynamic-auth/commit/a3aab6a97e2e996f96b725f9336704b844f79603))
34
+ * **react-native-extension:** fall back to react-native-webview when embedded native module is unavailable ([#11683](https://github.com/dynamic-labs/dynamic-auth/issues/11683)) ([3f8d92c](https://github.com/dynamic-labs/dynamic-auth/commit/3f8d92ca0c327128b16e3355ab2f4e63d2c8e731))
35
+ * **sdk-react-core:** warn instead of throwing when ZeroDev connector is absent ([#11611](https://github.com/dynamic-labs/dynamic-auth/issues/11611)) ([5836252](https://github.com/dynamic-labs/dynamic-auth/commit/58362524e45205399c0fdc5b92414190d1929e0b))
36
+ * **waas-evm:** sign EOA transactions with the resolved chainId, not the connector default ([#11653](https://github.com/dynamic-labs/dynamic-auth/issues/11653)) ([e634098](https://github.com/dynamic-labs/dynamic-auth/commit/e634098f0f23f4c53f92a580db6f4aacbd6b1f92))
37
+
2
38
  ## [4.90.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.89.0...v4.90.0) (2026-06-19)
3
39
 
4
40
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.90.0";
6
+ var version = "4.91.1";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.90.0";
2
+ var version = "4.91.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": "4.90.0",
3
+ "version": "4.91.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",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
- "@dynamic-labs-wallet/browser-wallet-client": "1.0.42",
21
+ "@dynamic-labs-wallet/browser-wallet-client": "1.0.44",
22
22
  "@dynamic-labs-wallet/forward-mpc-client": "0.12.0",
23
23
  "@bitcoinerlab/secp256k1": "1.1.1",
24
24
  "@btckit/types": "0.0.19",
@@ -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": "4.90.0",
33
- "@dynamic-labs/logger": "4.90.0",
34
- "@dynamic-labs/types": "4.90.0",
35
- "@dynamic-labs/utils": "4.90.0",
36
- "@dynamic-labs/waas": "4.90.0",
37
- "@dynamic-labs/wallet-book": "4.90.0",
38
- "@dynamic-labs/wallet-connector-core": "4.90.0",
32
+ "@dynamic-labs/assert-package-version": "4.91.1",
33
+ "@dynamic-labs/logger": "4.91.1",
34
+ "@dynamic-labs/types": "4.91.1",
35
+ "@dynamic-labs/utils": "4.91.1",
36
+ "@dynamic-labs/waas": "4.91.1",
37
+ "@dynamic-labs/wallet-book": "4.91.1",
38
+ "@dynamic-labs/wallet-connector-core": "4.91.1",
39
39
  "eventemitter3": "5.0.1"
40
40
  },
41
41
  "peerDependencies": {}
@@ -12,6 +12,7 @@ declare const DynamicWaasBitcoinConnector_base: (abstract new (...args: any[]) =
12
12
  overrideKey: string;
13
13
  isEmbeddedWallet: boolean;
14
14
  getSignedSessionId?: (() => Promise<string>) | undefined;
15
+ getSessionPublicKey?: (() => Promise<string | undefined>) | undefined;
15
16
  getMfaToken?: ((props?: {
16
17
  mfaAction?: MFAAction | undefined;
17
18
  } | undefined) => Promise<string | undefined>) | undefined;
@@ -20,6 +21,7 @@ declare const DynamicWaasBitcoinConnector_base: (abstract new (...args: any[]) =
20
21
  getElevatedAccessToken?: ((props: {
21
22
  scope: TokenScope;
22
23
  }) => Promise<string | undefined>) | undefined;
24
+ onUnauthorized?: (() => void | Promise<void>) | undefined;
23
25
  environmentId?: string | undefined;
24
26
  baseApiUrl?: string | undefined;
25
27
  relayUrl?: string | undefined;
@@ -31,6 +33,7 @@ declare const DynamicWaasBitcoinConnector_base: (abstract new (...args: any[]) =
31
33
  __exportHandler: import("@dynamic-labs/waas").WaasExportHandler;
32
34
  validateActiveWallet(expectedAddress: string): Promise<void>;
33
35
  setGetAuthTokenFunction(getAuthToken: () => string): void;
36
+ setOnUnauthorizedFunction(onUnauthorized: () => void | Promise<void>): void;
34
37
  setWaasAuthMode(authMode: "cookie" | "header"): void;
35
38
  setGetMfaTokenFunction(getMfaToken: (props?: {
36
39
  mfaAction?: MFAAction | undefined;
@@ -50,6 +53,7 @@ declare const DynamicWaasBitcoinConnector_base: (abstract new (...args: any[]) =
50
53
  setBaseClientKeysharesRelayApiUrl(baseClientKeysharesRelayApiUrl?: string | undefined): void;
51
54
  setRelayUrl(relayUrl: string): void;
52
55
  setGetSignedSessionIdFunction(getSignedSessionId: () => Promise<string>): void;
56
+ setGetSessionPublicKeyFunction(getSessionPublicKey: () => Promise<string | undefined>): void;
53
57
  delegateKeyShares({ accountAddress, password, }: {
54
58
  accountAddress: string;
55
59
  password?: string | undefined;
@@ -82,7 +86,10 @@ declare const DynamicWaasBitcoinConnector_base: (abstract new (...args: any[]) =
82
86
  password?: string | undefined;
83
87
  } | undefined): Promise<void>;
84
88
  getExportHandler(): {
85
- clear: () => void;
89
+ clear: () => void; /**
90
+ * Gets all connected account addresses
91
+ * @returns Array of connected account addresses (currently returns single active address)
92
+ */
86
93
  };
87
94
  exportClientKeyshares({ accountAddress, password, }: {
88
95
  accountAddress: string;
@@ -121,18 +128,17 @@ declare const DynamicWaasBitcoinConnector_base: (abstract new (...args: any[]) =
121
128
  }): Promise<void>;
122
129
  updatePassword({ accountAddress, existingPassword, newPassword, }: {
123
130
  accountAddress: string;
124
- /**
125
- * Get the enabled networks for Bitcoin
126
- * Returns configured networks from props
127
- * @returns Array containing Bitcoin network configurations
128
- */
129
131
  existingPassword?: string | undefined;
130
132
  newPassword: string;
131
133
  }): Promise<void>;
132
134
  setPassword({ accountAddress, newPassword, }: {
133
135
  accountAddress: string;
134
136
  newPassword: string;
135
- }): Promise<void>;
137
+ }): Promise<void>; /**
138
+ * Signs a message using the wallet UI utils for user interaction
139
+ * @param message - The message to sign
140
+ * @returns The signed message as a string
141
+ */
136
142
  signRawMessage({ accountAddress, message, password, }: {
137
143
  accountAddress: string;
138
144
  message: string;
@@ -159,12 +165,28 @@ declare const DynamicWaasBitcoinConnector_base: (abstract new (...args: any[]) =
159
165
  errorType?: undefined;
160
166
  };
161
167
  instrument(message: string, context: import("@dynamic-labs/logger").InstrumentOptions & import("dist/packages/waas/utils/instrumentation").InstrumentContext & Record<string, any>): void;
168
+ /**
169
+ * Sends a raw Bitcoin transaction to the mempool
170
+ * @param rawTransaction - The raw transaction in hex format
171
+ * @returns The transaction ID
172
+ * @throws {DynamicError} If no transaction is specified or sending fails
173
+ */
162
174
  instrumentAsync<T_1>({ operation, resource, fn, context, }: {
163
175
  operation: string;
164
176
  resource: string;
165
177
  fn: (timing: import("dist/packages/waas/utils/instrumentation").InstrumentationTimer) => Promise<T_1>;
166
178
  context?: Record<string, any> | undefined;
167
179
  }): Promise<T_1>;
180
+ getPrivateBalance(): Promise<{
181
+ unshielded: Record<string, string>;
182
+ shielded: Record<string, string>;
183
+ dust: {
184
+ balance: string;
185
+ cap: string;
186
+ };
187
+ address: string;
188
+ dustSynced: boolean;
189
+ }>;
168
190
  }) & typeof BitcoinWalletConnector;
169
191
  /**
170
192
  * Bitcoin connector for Dynamic WaaS (Wallet as a Service)