@dynamic-labs/bitcoin 4.4.4 → 4.5.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
+ ### [4.5.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.5.0...v4.5.1) (2025-02-05)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * improve sdk performance ([#7992](https://github.com/dynamic-labs/dynamic-auth/issues/7992)) ([7c541d4](https://github.com/dynamic-labs/dynamic-auth/commit/7c541d498b3afe708e468327e53c839826029490))
8
+
9
+ ## [4.5.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.4.4...v4.5.0) (2025-02-04)
10
+
11
+
12
+ ### Features
13
+
14
+ * allow injecting onramp providers for funding via sdk overrides ([#7967](https://github.com/dynamic-labs/dynamic-auth/issues/7967)) ([d738b3b](https://github.com/dynamic-labs/dynamic-auth/commit/d738b3ba1307bc6f2ffc5c8f98a44c6f509c0e96))
15
+ * headless transaction simulation ([#7928](https://github.com/dynamic-labs/dynamic-auth/issues/7928)) ([8eb4c9c](https://github.com/dynamic-labs/dynamic-auth/commit/8eb4c9cd9857a34c56f2e58aba124b5b7e185359))
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * memo hooks and state to reduce rerenders ([#7912](https://github.com/dynamic-labs/dynamic-auth/issues/7912)) ([5351570](https://github.com/dynamic-labs/dynamic-auth/commit/5351570874eb3b9465d2a2c99ea5caaa787ecc80))
21
+ * rely on bitcoin sats-connect transaction inputs for handling sigHashTypes ([#7969](https://github.com/dynamic-labs/dynamic-auth/issues/7969)) ([e043306](https://github.com/dynamic-labs/dynamic-auth/commit/e043306be44dd9058265c19d7e14cb07dd6db1fe))
22
+
2
23
  ### [4.4.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.4.3...v4.4.4) (2025-01-31)
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 = "4.4.4";
6
+ var version = "4.5.1";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.4.4";
2
+ var version = "4.5.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.4.4",
3
+ "version": "4.5.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",
@@ -19,17 +19,17 @@
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
21
  "@btckit/types": "0.0.19",
22
- "@dynamic-labs/sdk-api-core": "0.0.604",
22
+ "@dynamic-labs/sdk-api-core": "0.0.607",
23
23
  "@wallet-standard/app": "1.0.1",
24
24
  "@wallet-standard/base": "1.0.1",
25
25
  "bitcoinjs-lib": "6.1.5",
26
- "sats-connect": "2.8.0",
26
+ "sats-connect": "3.0.1",
27
27
  "jsontokens": "4.0.1",
28
- "@dynamic-labs/assert-package-version": "4.4.4",
29
- "@dynamic-labs/types": "4.4.4",
30
- "@dynamic-labs/utils": "4.4.4",
31
- "@dynamic-labs/wallet-book": "4.4.4",
32
- "@dynamic-labs/wallet-connector-core": "4.4.4",
28
+ "@dynamic-labs/assert-package-version": "4.5.1",
29
+ "@dynamic-labs/types": "4.5.1",
30
+ "@dynamic-labs/utils": "4.5.1",
31
+ "@dynamic-labs/wallet-book": "4.5.1",
32
+ "@dynamic-labs/wallet-connector-core": "4.5.1",
33
33
  "eventemitter3": "5.0.1"
34
34
  },
35
35
  "peerDependencies": {}
@@ -214,7 +214,6 @@ class BitcoinSatsConnectConnector extends BitcoinWalletConnector.BitcoinWalletCo
214
214
  request,
215
215
  });
216
216
  const signedPsbt = yield this.signTransaction({
217
- allowedSignHash: request.allowedSighash[0],
218
217
  broadcast: false,
219
218
  inputsToSign: createSignPsbtOptions.createSignPsbtOptionsForSatsConnect(psbtFromBase64, request, this.isLegacy),
220
219
  psbtBase64: request.unsignedPsbtBase64,
@@ -210,7 +210,6 @@ class BitcoinSatsConnectConnector extends BitcoinWalletConnector {
210
210
  request,
211
211
  });
212
212
  const signedPsbt = yield this.signTransaction({
213
- allowedSignHash: request.allowedSighash[0],
214
213
  broadcast: false,
215
214
  inputsToSign: createSignPsbtOptionsForSatsConnect(psbtFromBase64, request, this.isLegacy),
216
215
  psbtBase64: request.unsignedPsbtBase64,
@@ -311,6 +311,11 @@ class BitcoinWalletConnector extends walletConnectorCore.WalletConnectorBase {
311
311
  return this.signMessage(messageToSign, { address });
312
312
  });
313
313
  }
314
+ getBlockExplorerUrlsForCurrentNetwork() {
315
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
316
+ return ['https://btcscan.org/'];
317
+ });
318
+ }
314
319
  }
315
320
 
316
321
  exports.BitcoinWalletConnector = BitcoinWalletConnector;
@@ -52,4 +52,5 @@ export declare abstract class BitcoinWalletConnector extends WalletConnectorBase
52
52
  protocol?: BitcoinSignProtocol;
53
53
  }): Promise<string | undefined>;
54
54
  proveOwnership(address: string, messageToSign: string): Promise<string | undefined>;
55
+ getBlockExplorerUrlsForCurrentNetwork(): Promise<string[]>;
55
56
  }
@@ -307,6 +307,11 @@ class BitcoinWalletConnector extends WalletConnectorBase {
307
307
  return this.signMessage(messageToSign, { address });
308
308
  });
309
309
  }
310
+ getBlockExplorerUrlsForCurrentNetwork() {
311
+ return __awaiter(this, void 0, void 0, function* () {
312
+ return ['https://btcscan.org/'];
313
+ });
314
+ }
310
315
  }
311
316
 
312
317
  export { BitcoinWalletConnector };