@dynamic-labs/bitcoin 4.57.1 → 4.58.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 +16 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +9 -9
- package/src/connectors/DynamicWaasBitcoinConnector/DynamicWaasBitcoinConnector.cjs +3 -3
- package/src/connectors/DynamicWaasBitcoinConnector/DynamicWaasBitcoinConnector.d.ts +7 -0
- package/src/connectors/DynamicWaasBitcoinConnector/DynamicWaasBitcoinConnector.js +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.58.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.57.2...v4.58.0) (2026-01-28)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add password setup flow for WaaS wallets ([#10308](https://github.com/dynamic-labs/dynamic-auth/issues/10308)) ([aad892d](https://github.com/dynamic-labs/dynamic-auth/commit/aad892d0359df589753b141c1099a03c72b799d9))
|
|
8
|
+
* add useRefreshAuth ([#10280](https://github.com/dynamic-labs/dynamic-auth/issues/10280)) ([bff850a](https://github.com/dynamic-labs/dynamic-auth/commit/bff850afc4167d47d3a38c5e9845d35b754ea573))
|
|
9
|
+
* **waas:** add unlockWallet and getWalletRecoveryState methods ([#10286](https://github.com/dynamic-labs/dynamic-auth/issues/10286)) ([4c2f26b](https://github.com/dynamic-labs/dynamic-auth/commit/4c2f26b1cd6483406288513d73be66554cd3c66a))
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* ensure refresh user not update the jwt ([#10278](https://github.com/dynamic-labs/dynamic-auth/issues/10278)) ([c8cdbe6](https://github.com/dynamic-labs/dynamic-auth/commit/c8cdbe6e10636b39985f299a219fa362c25b4cd0))
|
|
14
|
+
* use isVersionedTransaction for reliable Solana transaction type detection ([#10319](https://github.com/dynamic-labs/dynamic-auth/issues/10319)) ([472aa15](https://github.com/dynamic-labs/dynamic-auth/commit/472aa15a94cfe541b22b96c5c63483e6a5971781))
|
|
15
|
+
|
|
16
|
+
### [4.57.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.57.1...v4.57.2) (2026-01-23)
|
|
17
|
+
|
|
2
18
|
### [4.57.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.57.0...v4.57.1) (2026-01-22)
|
|
3
19
|
|
|
4
20
|
|
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": "4.
|
|
3
|
+
"version": "4.58.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",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs-wallet/browser-wallet-client": "0.0.
|
|
21
|
+
"@dynamic-labs-wallet/browser-wallet-client": "0.0.254",
|
|
22
22
|
"@bitcoinerlab/secp256k1": "1.1.1",
|
|
23
23
|
"@btckit/types": "0.0.19",
|
|
24
24
|
"@dynamic-labs/sdk-api-core": "0.0.860",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"ecpair": "2.1.0",
|
|
29
29
|
"sats-connect": "4.2.1",
|
|
30
30
|
"jsontokens": "4.0.1",
|
|
31
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
32
|
-
"@dynamic-labs/logger": "4.
|
|
33
|
-
"@dynamic-labs/types": "4.
|
|
34
|
-
"@dynamic-labs/utils": "4.
|
|
35
|
-
"@dynamic-labs/waas": "4.
|
|
36
|
-
"@dynamic-labs/wallet-book": "4.
|
|
37
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
31
|
+
"@dynamic-labs/assert-package-version": "4.58.0",
|
|
32
|
+
"@dynamic-labs/logger": "4.58.0",
|
|
33
|
+
"@dynamic-labs/types": "4.58.0",
|
|
34
|
+
"@dynamic-labs/utils": "4.58.0",
|
|
35
|
+
"@dynamic-labs/waas": "4.58.0",
|
|
36
|
+
"@dynamic-labs/wallet-book": "4.58.0",
|
|
37
|
+
"@dynamic-labs/wallet-connector-core": "4.58.0",
|
|
38
38
|
"eventemitter3": "5.0.1"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {}
|
|
@@ -436,8 +436,8 @@ class DynamicWaasBitcoinConnector extends waas.withDynamicWaas(BitcoinWalletConn
|
|
|
436
436
|
});
|
|
437
437
|
if (!transaction.recipientAddress || !transaction.amount) {
|
|
438
438
|
logger.error('[DynamicWaasBitcoinConnector] Missing required transaction fields', {
|
|
439
|
-
hasAmount:
|
|
440
|
-
hasRecipientAddress:
|
|
439
|
+
hasAmount: Boolean(transaction.amount),
|
|
440
|
+
hasRecipientAddress: Boolean(transaction.recipientAddress),
|
|
441
441
|
});
|
|
442
442
|
throw new utils.DynamicError('Recipient address and amount are required');
|
|
443
443
|
}
|
|
@@ -469,7 +469,7 @@ class DynamicWaasBitcoinConnector extends waas.withDynamicWaas(BitcoinWalletConn
|
|
|
469
469
|
}),
|
|
470
470
|
});
|
|
471
471
|
logger.debug('[DynamicWaasBitcoinConnector] BitcoinUiTransaction created successfully', {
|
|
472
|
-
hasOnSubmit:
|
|
472
|
+
hasOnSubmit: Boolean(uiTransaction.submit),
|
|
473
473
|
transactionChain: uiTransaction.chain,
|
|
474
474
|
transactionFrom: uiTransaction.from,
|
|
475
475
|
});
|
|
@@ -111,6 +111,13 @@ declare const DynamicWaasBitcoinConnector_base: (abstract new (...args: any[]) =
|
|
|
111
111
|
message: string;
|
|
112
112
|
password?: string | undefined;
|
|
113
113
|
}): Promise<string>;
|
|
114
|
+
unlockWallet({ accountAddress, password, }: {
|
|
115
|
+
accountAddress: string;
|
|
116
|
+
password: string;
|
|
117
|
+
}): Promise<import("@dynamic-labs-wallet/browser-wallet-client").GetWalletResponse>;
|
|
118
|
+
getWalletRecoveryState({ accountAddress, }: {
|
|
119
|
+
accountAddress: string;
|
|
120
|
+
}): Promise<import("@dynamic-labs-wallet/browser-wallet-client").WalletRecoveryState>;
|
|
114
121
|
endSession(): Promise<void>;
|
|
115
122
|
getActiveAccountAddress(): Promise<string | undefined>;
|
|
116
123
|
getConnectedAccounts(): Promise<string[]>;
|
|
@@ -432,8 +432,8 @@ class DynamicWaasBitcoinConnector extends withDynamicWaas(BitcoinWalletConnector
|
|
|
432
432
|
});
|
|
433
433
|
if (!transaction.recipientAddress || !transaction.amount) {
|
|
434
434
|
logger.error('[DynamicWaasBitcoinConnector] Missing required transaction fields', {
|
|
435
|
-
hasAmount:
|
|
436
|
-
hasRecipientAddress:
|
|
435
|
+
hasAmount: Boolean(transaction.amount),
|
|
436
|
+
hasRecipientAddress: Boolean(transaction.recipientAddress),
|
|
437
437
|
});
|
|
438
438
|
throw new DynamicError('Recipient address and amount are required');
|
|
439
439
|
}
|
|
@@ -465,7 +465,7 @@ class DynamicWaasBitcoinConnector extends withDynamicWaas(BitcoinWalletConnector
|
|
|
465
465
|
}),
|
|
466
466
|
});
|
|
467
467
|
logger.debug('[DynamicWaasBitcoinConnector] BitcoinUiTransaction created successfully', {
|
|
468
|
-
hasOnSubmit:
|
|
468
|
+
hasOnSubmit: Boolean(uiTransaction.submit),
|
|
469
469
|
transactionChain: uiTransaction.chain,
|
|
470
470
|
transactionFrom: uiTransaction.from,
|
|
471
471
|
});
|