@dynamic-labs/waas 4.53.1 → 4.54.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 +25 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +10 -10
- package/src/DynamicWaasMixin.cjs +41 -1
- package/src/DynamicWaasMixin.d.ts +12 -2
- package/src/DynamicWaasMixin.js +41 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,29 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.54.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.53.2...v4.54.0) (2026-01-16)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add iCloud backup method for wallet backup ([#10221](https://github.com/dynamic-labs/dynamic-auth/issues/10221)) ([36f5b8a](https://github.com/dynamic-labs/dynamic-auth/commit/36f5b8a0df50139fabbc6d6256f396a6d40313f4))
|
|
8
|
+
* add iCloud backup support for wallet key shares ([#10220](https://github.com/dynamic-labs/dynamic-auth/issues/10220)) ([f5f8135](https://github.com/dynamic-labs/dynamic-auth/commit/f5f813593d6ec834fc94f873fd7151b1f3e1a0ca))
|
|
9
|
+
* add legacyWalletId parameter to importPrivateKey ([#10244](https://github.com/dynamic-labs/dynamic-auth/issues/10244)) ([d281dd7](https://github.com/dynamic-labs/dynamic-auth/commit/d281dd7128ac1211e8ca0b72818e109ece7b9837))
|
|
10
|
+
|
|
11
|
+
### [4.53.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.53.1...v4.53.2) (2026-01-16)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* add iCloud backup functionality ([#10219](https://github.com/dynamic-labs/dynamic-auth/issues/10219)) ([44e95e5](https://github.com/dynamic-labs/dynamic-auth/commit/44e95e5a5dc99f83918a382ab1c69d452359c346))
|
|
17
|
+
* update PSBT building with Largest-First UTXO selection and fee priorities (high/medium/low) ([#10227](https://github.com/dynamic-labs/dynamic-auth/issues/10227)) ([94c5f5c](https://github.com/dynamic-labs/dynamic-auth/commit/94c5f5cb97432bb97374b754cb95bc23290dd184))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* allow late registered solana wallets to appear in the wallet list ([#10224](https://github.com/dynamic-labs/dynamic-auth/issues/10224)) ([2f418d4](https://github.com/dynamic-labs/dynamic-auth/commit/2f418d4f3e0543bdd829a45807329f89da1e41a7))
|
|
23
|
+
* correctly show app name in wallet app for wallet connect evm connections ([#10218](https://github.com/dynamic-labs/dynamic-auth/issues/10218)) ([fec0009](https://github.com/dynamic-labs/dynamic-auth/commit/fec0009177439baa67015050b4ad799119615f4f))
|
|
24
|
+
* destructure wallets from getWalletStandardWallets before calling find ([#10234](https://github.com/dynamic-labs/dynamic-auth/issues/10234)) ([b59617a](https://github.com/dynamic-labs/dynamic-auth/commit/b59617a8579b9c7d8a5f744a2ea9363ccb4aee58))
|
|
25
|
+
* **react-native:** filter connectors by enabled chains and add chain parameter to connectWallet ([#10230](https://github.com/dynamic-labs/dynamic-auth/issues/10230)) ([a2bbd03](https://github.com/dynamic-labs/dynamic-auth/commit/a2bbd03ece52950711d2eda18cb2345df15710dd))
|
|
26
|
+
|
|
2
27
|
### [4.53.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.53.0...v4.53.1) (2026-01-14)
|
|
3
28
|
|
|
4
29
|
## [4.53.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.52.5...v4.53.0) (2026-01-13)
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/waas",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.54.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
"./package.json": "./package.json"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
20
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
21
|
-
"@dynamic-labs-wallet/browser-wallet-client": "0.0.
|
|
22
|
-
"@dynamic-labs/ethereum-core": "4.
|
|
23
|
-
"@dynamic-labs/logger": "4.
|
|
24
|
-
"@dynamic-labs/solana-core": "4.
|
|
25
|
-
"@dynamic-labs/sui-core": "4.
|
|
26
|
-
"@dynamic-labs/utils": "4.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.
|
|
19
|
+
"@dynamic-labs/assert-package-version": "4.54.0",
|
|
20
|
+
"@dynamic-labs/sdk-api-core": "0.0.855",
|
|
21
|
+
"@dynamic-labs-wallet/browser-wallet-client": "0.0.248",
|
|
22
|
+
"@dynamic-labs/ethereum-core": "4.54.0",
|
|
23
|
+
"@dynamic-labs/logger": "4.54.0",
|
|
24
|
+
"@dynamic-labs/solana-core": "4.54.0",
|
|
25
|
+
"@dynamic-labs/sui-core": "4.54.0",
|
|
26
|
+
"@dynamic-labs/utils": "4.54.0",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.54.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {}
|
|
30
30
|
}
|
package/src/DynamicWaasMixin.cjs
CHANGED
|
@@ -156,7 +156,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
importPrivateKey(_a) {
|
|
159
|
-
return _tslib.__awaiter(this, arguments, void 0, function* ({ privateKey, thresholdSignatureScheme = 'TWO_OF_TWO', publicAddressCheck, addressType, }) {
|
|
159
|
+
return _tslib.__awaiter(this, arguments, void 0, function* ({ privateKey, thresholdSignatureScheme = 'TWO_OF_TWO', publicAddressCheck, addressType, legacyWalletId, }) {
|
|
160
160
|
var _b, _c;
|
|
161
161
|
const walletClient = yield this.getWaasWalletClient();
|
|
162
162
|
const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
|
|
@@ -166,6 +166,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
166
166
|
yield walletClient.importPrivateKey({
|
|
167
167
|
addressType,
|
|
168
168
|
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
169
|
+
legacyWalletId,
|
|
169
170
|
privateKey,
|
|
170
171
|
publicAddressCheck,
|
|
171
172
|
signedSessionId,
|
|
@@ -262,6 +263,45 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
262
263
|
});
|
|
263
264
|
});
|
|
264
265
|
}
|
|
266
|
+
backupKeySharesToICloud(_a) {
|
|
267
|
+
return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, password, }) {
|
|
268
|
+
var _b, _c;
|
|
269
|
+
if (!accountAddress) {
|
|
270
|
+
throw new utils.DynamicError('Account address is required');
|
|
271
|
+
}
|
|
272
|
+
const walletClient = yield this.getWaasWalletClient();
|
|
273
|
+
const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
|
|
274
|
+
if (!signedSessionId) {
|
|
275
|
+
throw new utils.DynamicError('Signed session ID is required');
|
|
276
|
+
}
|
|
277
|
+
return walletClient.backupKeySharesToICloud({
|
|
278
|
+
accountAddress,
|
|
279
|
+
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
280
|
+
password,
|
|
281
|
+
signedSessionId,
|
|
282
|
+
});
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
displayICloudSignIn(_a) {
|
|
286
|
+
return _tslib.__awaiter(this, arguments, void 0, function* ({ displayContainer, }) {
|
|
287
|
+
const walletClient = yield this.getWaasWalletClient();
|
|
288
|
+
return walletClient.displayICloudSignIn({
|
|
289
|
+
displayContainer,
|
|
290
|
+
});
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
hideICloudSignIn() {
|
|
294
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
295
|
+
const walletClient = yield this.getWaasWalletClient();
|
|
296
|
+
return walletClient.hideICloudSignIn();
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
isICloudAuthenticated() {
|
|
300
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
301
|
+
const walletClient = yield this.getWaasWalletClient();
|
|
302
|
+
return walletClient.isICloudAuthenticated();
|
|
303
|
+
});
|
|
304
|
+
}
|
|
265
305
|
refreshWalletAccountShares(_a) {
|
|
266
306
|
return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, password, }) {
|
|
267
307
|
var _b, _c, _d;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BitcoinConfig, DynamicWalletClient } from '@dynamic-labs-wallet/browser-wallet-client';
|
|
2
2
|
import { InstrumentOptions, Logger } from '@dynamic-labs/logger';
|
|
3
3
|
import { MFAAction } from '@dynamic-labs/sdk-api-core';
|
|
4
|
-
import {
|
|
4
|
+
import { InstrumentContext, InstrumentationTimer, TraceContext } from '../utils/instrumentation';
|
|
5
5
|
export declare class WaasExportHandler {
|
|
6
6
|
private iframeStamper;
|
|
7
7
|
setIframeStamper(iframe: HTMLIFrameElement): void;
|
|
@@ -53,11 +53,12 @@ export declare const withDynamicWaas: <T extends abstract new (...args: any[]) =
|
|
|
53
53
|
publicKeyHex: string;
|
|
54
54
|
rawPublicKey: string | Uint8Array | undefined;
|
|
55
55
|
}>;
|
|
56
|
-
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, }: {
|
|
56
|
+
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, }: {
|
|
57
57
|
privateKey: string;
|
|
58
58
|
thresholdSignatureScheme?: string;
|
|
59
59
|
publicAddressCheck?: string;
|
|
60
60
|
addressType?: string;
|
|
61
|
+
legacyWalletId?: string;
|
|
61
62
|
}): Promise<void>;
|
|
62
63
|
exportPrivateKey({ accountAddress, displayContainer, password, }?: {
|
|
63
64
|
accountAddress?: string;
|
|
@@ -79,6 +80,15 @@ export declare const withDynamicWaas: <T extends abstract new (...args: any[]) =
|
|
|
79
80
|
accountAddress: string;
|
|
80
81
|
password?: string;
|
|
81
82
|
}): Promise<void>;
|
|
83
|
+
backupKeySharesToICloud({ accountAddress, password, }: {
|
|
84
|
+
accountAddress: string;
|
|
85
|
+
password?: string;
|
|
86
|
+
}): Promise<void>;
|
|
87
|
+
displayICloudSignIn({ displayContainer, }: {
|
|
88
|
+
displayContainer: HTMLElement;
|
|
89
|
+
}): Promise<void>;
|
|
90
|
+
hideICloudSignIn(): Promise<void>;
|
|
91
|
+
isICloudAuthenticated(): Promise<boolean>;
|
|
82
92
|
refreshWalletAccountShares({ accountAddress, password, }: {
|
|
83
93
|
accountAddress: string;
|
|
84
94
|
password?: string;
|
package/src/DynamicWaasMixin.js
CHANGED
|
@@ -152,7 +152,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
154
|
importPrivateKey(_a) {
|
|
155
|
-
return __awaiter(this, arguments, void 0, function* ({ privateKey, thresholdSignatureScheme = 'TWO_OF_TWO', publicAddressCheck, addressType, }) {
|
|
155
|
+
return __awaiter(this, arguments, void 0, function* ({ privateKey, thresholdSignatureScheme = 'TWO_OF_TWO', publicAddressCheck, addressType, legacyWalletId, }) {
|
|
156
156
|
var _b, _c;
|
|
157
157
|
const walletClient = yield this.getWaasWalletClient();
|
|
158
158
|
const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
|
|
@@ -162,6 +162,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
162
162
|
yield walletClient.importPrivateKey({
|
|
163
163
|
addressType,
|
|
164
164
|
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
165
|
+
legacyWalletId,
|
|
165
166
|
privateKey,
|
|
166
167
|
publicAddressCheck,
|
|
167
168
|
signedSessionId,
|
|
@@ -258,6 +259,45 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
258
259
|
});
|
|
259
260
|
});
|
|
260
261
|
}
|
|
262
|
+
backupKeySharesToICloud(_a) {
|
|
263
|
+
return __awaiter(this, arguments, void 0, function* ({ accountAddress, password, }) {
|
|
264
|
+
var _b, _c;
|
|
265
|
+
if (!accountAddress) {
|
|
266
|
+
throw new DynamicError('Account address is required');
|
|
267
|
+
}
|
|
268
|
+
const walletClient = yield this.getWaasWalletClient();
|
|
269
|
+
const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
|
|
270
|
+
if (!signedSessionId) {
|
|
271
|
+
throw new DynamicError('Signed session ID is required');
|
|
272
|
+
}
|
|
273
|
+
return walletClient.backupKeySharesToICloud({
|
|
274
|
+
accountAddress,
|
|
275
|
+
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
276
|
+
password,
|
|
277
|
+
signedSessionId,
|
|
278
|
+
});
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
displayICloudSignIn(_a) {
|
|
282
|
+
return __awaiter(this, arguments, void 0, function* ({ displayContainer, }) {
|
|
283
|
+
const walletClient = yield this.getWaasWalletClient();
|
|
284
|
+
return walletClient.displayICloudSignIn({
|
|
285
|
+
displayContainer,
|
|
286
|
+
});
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
hideICloudSignIn() {
|
|
290
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
291
|
+
const walletClient = yield this.getWaasWalletClient();
|
|
292
|
+
return walletClient.hideICloudSignIn();
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
isICloudAuthenticated() {
|
|
296
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
297
|
+
const walletClient = yield this.getWaasWalletClient();
|
|
298
|
+
return walletClient.isICloudAuthenticated();
|
|
299
|
+
});
|
|
300
|
+
}
|
|
261
301
|
refreshWalletAccountShares(_a) {
|
|
262
302
|
return __awaiter(this, arguments, void 0, function* ({ accountAddress, password, }) {
|
|
263
303
|
var _b, _c, _d;
|