@dynamic-labs/bitcoin 4.4.2-preview.0 → 4.4.2

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,13 +1,19 @@
1
1
 
2
- ### [4.4.2-preview.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.4.1...v4.4.2-preview.0) (2025-01-28)
2
+ ### [4.4.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.4.1...v4.4.2) (2025-01-30)
3
3
 
4
4
 
5
5
  ### Features
6
6
 
7
- * add support for 7702 on ZeroDevConnector ([a8c850a](https://github.com/dynamic-labs/dynamic-auth/commit/a8c850ab192d6113ad55a01a594d5d90ab0fbfa6))
8
- * implement experimental_signAuthorization method in TurnkeyEVMWalletConnector ([#7866](https://github.com/dynamic-labs/dynamic-auth/issues/7866)) ([96853fa](https://github.com/dynamic-labs/dynamic-auth/commit/96853fae170ca2f81cc01ccd6d9886446876412b))
9
- * implement experimental_signAuthorization method in TurnkeyEVMWalletConnector ([#7866](https://github.com/dynamic-labs/dynamic-auth/issues/7866)) ([d988e88](https://github.com/dynamic-labs/dynamic-auth/commit/d988e88eccd0b04ba5710c8aa437f5dfffeb1d74))
10
- * implement experimental_signAuthorization method in TurnkeyEVMWalletConnector ([#7866](https://github.com/dynamic-labs/dynamic-auth/issues/7866)) ([597f837](https://github.com/dynamic-labs/dynamic-auth/commit/597f8375bacef1e6a9a064604074c6920955a3e2))
7
+ * add support for Bitget BTC ([#7915](https://github.com/dynamic-labs/dynamic-auth/issues/7915)) ([3fe23f7](https://github.com/dynamic-labs/dynamic-auth/commit/3fe23f739818ef0f5d504c34f237d1d115e4f50c))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * add backpackeclipse to walletbook fallbacks ([#7932](https://github.com/dynamic-labs/dynamic-auth/issues/7932)) ([eeaa7da](https://github.com/dynamic-labs/dynamic-auth/commit/eeaa7da629cb06ffc856f2e7f99beefcb8553bbd))
13
+ * otp verified should always be true ([#7921](https://github.com/dynamic-labs/dynamic-auth/issues/7921)) ([ac884d6](https://github.com/dynamic-labs/dynamic-auth/commit/ac884d6475152778aabd72d2c923b3c0b7745b00))
14
+ * **qntm-2814:** return checksum address from coinbase and metamask ([#7927](https://github.com/dynamic-labs/dynamic-auth/issues/7927)) ([3169d4d](https://github.com/dynamic-labs/dynamic-auth/commit/3169d4dd717b840c3654d15bacb20780d515269b))
15
+ * fix: creation of embedded wallet sessions with external auth
16
+
11
17
 
12
18
  ### [4.4.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.4.0...v4.4.1) (2025-01-27)
13
19
 
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.2-preview.0";
6
+ var version = "4.4.2";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.4.2-preview.0";
2
+ var version = "4.4.2";
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.2-preview.0",
3
+ "version": "4.4.2",
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",
@@ -25,11 +25,11 @@
25
25
  "bitcoinjs-lib": "6.1.5",
26
26
  "sats-connect": "2.8.0",
27
27
  "jsontokens": "4.0.1",
28
- "@dynamic-labs/assert-package-version": "4.4.2-preview.0",
29
- "@dynamic-labs/types": "4.4.2-preview.0",
30
- "@dynamic-labs/utils": "4.4.2-preview.0",
31
- "@dynamic-labs/wallet-book": "4.4.2-preview.0",
32
- "@dynamic-labs/wallet-connector-core": "4.4.2-preview.0",
28
+ "@dynamic-labs/assert-package-version": "4.4.2",
29
+ "@dynamic-labs/types": "4.4.2",
30
+ "@dynamic-labs/utils": "4.4.2",
31
+ "@dynamic-labs/wallet-book": "4.4.2",
32
+ "@dynamic-labs/wallet-connector-core": "4.4.2",
33
33
  "eventemitter3": "5.0.1"
34
34
  },
35
35
  "peerDependencies": {}
@@ -0,0 +1,17 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var UnisatConnector = require('../UnisatConnector/UnisatConnector.cjs');
7
+
8
+ // Bitget uses the same api as Unisat
9
+ class BitgetConnector extends UnisatConnector.UnisatConnector {
10
+ constructor(opts) {
11
+ super(Object.assign(Object.assign({}, opts), { overrideKey: 'bitgetwalletbtc' }));
12
+ this.name = 'Bitget Wallet';
13
+ this.overrideKey = 'bitgetwalletbtc';
14
+ }
15
+ }
16
+
17
+ exports.BitgetConnector = BitgetConnector;
@@ -0,0 +1,7 @@
1
+ import { BitcoinWalletConnectorOpts } from '../BitcoinWalletConnector';
2
+ import { UnisatConnector } from '../UnisatConnector';
3
+ export declare class BitgetConnector extends UnisatConnector {
4
+ name: string;
5
+ overrideKey: string;
6
+ constructor(opts: BitcoinWalletConnectorOpts);
7
+ }
@@ -0,0 +1,13 @@
1
+ 'use client'
2
+ import { UnisatConnector } from '../UnisatConnector/UnisatConnector.js';
3
+
4
+ // Bitget uses the same api as Unisat
5
+ class BitgetConnector extends UnisatConnector {
6
+ constructor(opts) {
7
+ super(Object.assign(Object.assign({}, opts), { overrideKey: 'bitgetwalletbtc' }));
8
+ this.name = 'Bitget Wallet';
9
+ this.overrideKey = 'bitgetwalletbtc';
10
+ }
11
+ }
12
+
13
+ export { BitgetConnector };
@@ -0,0 +1 @@
1
+ export { BitgetConnector } from './BitgetConnector';
@@ -11,10 +11,16 @@ var createSignPsbtOptions = require('../../utils/psbt/createSignPsbtOptions.cjs'
11
11
 
12
12
  class UnisatConnector extends BitcoinWalletConnector.BitcoinWalletConnector {
13
13
  constructor(opts) {
14
- super(Object.assign(Object.assign({}, opts), { overrideKey: 'unisat' }));
14
+ var _a;
15
+ super(Object.assign(Object.assign({}, opts), { overrideKey: (_a = opts.overrideKey) !== null && _a !== void 0 ? _a : 'unisat' }));
15
16
  this.name = 'UniSat';
16
17
  this.overrideKey = 'unisat';
17
18
  }
19
+ // other connectors use the Unisat api and extend the UnisatConnector class
20
+ // so we need to use a different name for each connector
21
+ getConnectorName() {
22
+ return `${this.name.replace(' ', '')}Connector`;
23
+ }
18
24
  getAddress() {
19
25
  return _tslib.__awaiter(this, void 0, void 0, function* () {
20
26
  const provider = this.getProvider();
@@ -42,7 +48,7 @@ class UnisatConnector extends BitcoinWalletConnector.BitcoinWalletConnector {
42
48
  return;
43
49
  }
44
50
  if (options === null || options === void 0 ? void 0 : options.address) {
45
- walletConnectorCore.logger.debug('[UnisatConnector] signMessage - Not possible to specify address to sign with', {
51
+ walletConnectorCore.logger.debug(`[${this.getConnectorName()}] signMessage - Not possible to specify address to sign with`, {
46
52
  address: options.address,
47
53
  protocol: options.protocol,
48
54
  });
@@ -4,6 +4,7 @@ export declare class UnisatConnector extends BitcoinWalletConnector {
4
4
  name: string;
5
5
  overrideKey: string;
6
6
  constructor(opts: BitcoinWalletConnectorOpts);
7
+ private getConnectorName;
7
8
  getAddress(): Promise<string | undefined>;
8
9
  signMessage(messageToSign: string, options?: {
9
10
  address?: string;
@@ -7,10 +7,16 @@ import { createPsbtOptions } from '../../utils/psbt/createSignPsbtOptions.js';
7
7
 
8
8
  class UnisatConnector extends BitcoinWalletConnector {
9
9
  constructor(opts) {
10
- super(Object.assign(Object.assign({}, opts), { overrideKey: 'unisat' }));
10
+ var _a;
11
+ super(Object.assign(Object.assign({}, opts), { overrideKey: (_a = opts.overrideKey) !== null && _a !== void 0 ? _a : 'unisat' }));
11
12
  this.name = 'UniSat';
12
13
  this.overrideKey = 'unisat';
13
14
  }
15
+ // other connectors use the Unisat api and extend the UnisatConnector class
16
+ // so we need to use a different name for each connector
17
+ getConnectorName() {
18
+ return `${this.name.replace(' ', '')}Connector`;
19
+ }
14
20
  getAddress() {
15
21
  return __awaiter(this, void 0, void 0, function* () {
16
22
  const provider = this.getProvider();
@@ -38,7 +44,7 @@ class UnisatConnector extends BitcoinWalletConnector {
38
44
  return;
39
45
  }
40
46
  if (options === null || options === void 0 ? void 0 : options.address) {
41
- logger.debug('[UnisatConnector] signMessage - Not possible to specify address to sign with', {
47
+ logger.debug(`[${this.getConnectorName()}] signMessage - Not possible to specify address to sign with`, {
42
48
  address: options.address,
43
49
  protocol: options.protocol,
44
50
  });
package/src/index.cjs CHANGED
@@ -18,6 +18,7 @@ var OneKeyConnector = require('./connectors/OneKeyConnector/OneKeyConnector.cjs'
18
18
  var OylConnector = require('./connectors/OylConnector/OylConnector.cjs');
19
19
  var UnisatConnector = require('./connectors/UnisatConnector/UnisatConnector.cjs');
20
20
  var FallbackBitcoinConnector = require('./connectors/FallbackBitcoinConnector/FallbackBitcoinConnector.cjs');
21
+ var BitgetConnector = require('./connectors/BitgetConnector/BitgetConnector.cjs');
21
22
  var fetchBtcKitConnectors = require('./utils/fetchBtcKitConnectors/fetchBtcKitConnectors.cjs');
22
23
  var fetchSatsConnectConnectors = require('./utils/fetchSatsConnectConnectors/fetchSatsConnectConnectors.cjs');
23
24
  var hasSatsConnectFeature = require('./utils/hasSatsConnectFeature.cjs');
@@ -35,6 +36,7 @@ const BitcoinWalletConnectors = (props) => [
35
36
  OneKeyConnector.OneKeyConnector,
36
37
  OylConnector.OylConnector,
37
38
  UnisatConnector.UnisatConnector,
39
+ BitgetConnector.BitgetConnector,
38
40
  FallbackBitcoinConnector.FallbackBitcoinConnector,
39
41
  ];
40
42
 
package/src/index.js CHANGED
@@ -14,6 +14,7 @@ import { OneKeyConnector } from './connectors/OneKeyConnector/OneKeyConnector.js
14
14
  import { OylConnector } from './connectors/OylConnector/OylConnector.js';
15
15
  import { UnisatConnector } from './connectors/UnisatConnector/UnisatConnector.js';
16
16
  import { FallbackBitcoinConnector } from './connectors/FallbackBitcoinConnector/FallbackBitcoinConnector.js';
17
+ import { BitgetConnector } from './connectors/BitgetConnector/BitgetConnector.js';
17
18
  import { fetchBtcKitConnectors } from './utils/fetchBtcKitConnectors/fetchBtcKitConnectors.js';
18
19
  export { fetchBtcKitConnectors } from './utils/fetchBtcKitConnectors/fetchBtcKitConnectors.js';
19
20
  import { fetchSatsConnectConnectors } from './utils/fetchSatsConnectConnectors/fetchSatsConnectConnectors.js';
@@ -33,6 +34,7 @@ const BitcoinWalletConnectors = (props) => [
33
34
  OneKeyConnector,
34
35
  OylConnector,
35
36
  UnisatConnector,
37
+ BitgetConnector,
36
38
  FallbackBitcoinConnector,
37
39
  ];
38
40