@dynamic-labs/waas 5.3.1 → 5.4.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 +39 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +12 -12
- package/src/DynamicWaasMixin.cjs +24 -1
- package/src/DynamicWaasMixin.d.ts +8 -1
- package/src/DynamicWaasMixin.js +24 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,43 @@
|
|
|
1
1
|
|
|
2
|
+
## [5.4.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.3.2...v5.4.0) (2026-08-25)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **aleo:** wire up signMessage on the WaaS Aleo connector ([#12235](https://github.com/dynamic-labs/dynamic-auth/issues/12235)) ([e56cbf5](https://github.com/dynamic-labs/dynamic-auth/commit/e56cbf5546bdcc21ce916dece43ae36dcea9b808))
|
|
8
|
+
* **waas:** thread isRawScalarImport through importPrivateKey for ed25519 chains ([#12220](https://github.com/dynamic-labs/dynamic-auth/issues/12220)) ([ced9efa](https://github.com/dynamic-labs/dynamic-auth/commit/ced9efac5fa5a4a1280383419f56fe22733722cd))
|
|
9
|
+
* **webview:** add policies message contract and controller ([#12248](https://github.com/dynamic-labs/dynamic-auth/issues/12248)) ([8557c1e](https://github.com/dynamic-labs/dynamic-auth/commit/8557c1ed3861e12f1f06b2bb610184813b577daa))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **bitcoin:** pass the wallet's address type when signing ([#12265](https://github.com/dynamic-labs/dynamic-auth/issues/12265)) ([b8a8eab](https://github.com/dynamic-labs/dynamic-auth/commit/b8a8eab7e4cc294cc307fb10ea6814e76111a274))
|
|
15
|
+
* remediate high-severity tar vulnerability and prune a dead override ([#12268](https://github.com/dynamic-labs/dynamic-auth/issues/12268)) ([6b1b343](https://github.com/dynamic-labs/dynamic-auth/commit/6b1b343e7947e8da30012446677e342ae9bfe14a))
|
|
16
|
+
* **waas-svm:** fix retry-classification and environmentId gaps in [#12240](https://github.com/dynamic-labs/dynamic-auth/issues/12240) ([#12247](https://github.com/dynamic-labs/dynamic-auth/issues/12247)) ([e79cecc](https://github.com/dynamic-labs/dynamic-auth/commit/e79ceccd424c48c3a7f45fdd6ea288c269ac0171))
|
|
17
|
+
* **wallet-connect:** reopen WalletConnect IndexedDB when the browser closes the connection ([#12262](https://github.com/dynamic-labs/dynamic-auth/issues/12262)) ([1a20dde](https://github.com/dynamic-labs/dynamic-auth/commit/1a20ddeaeec590ae3390c9e47ef3c14738379b83))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Performance Improvements
|
|
21
|
+
|
|
22
|
+
* **ethereum-gasless-core:** parallel 7702 auth signing and long-poll sponsored-tx status ([#12225](https://github.com/dynamic-labs/dynamic-auth/issues/12225)) ([53ca916](https://github.com/dynamic-labs/dynamic-auth/commit/53ca91668f8dd839c52d55a0e5d7bb5257f7f415))
|
|
23
|
+
|
|
24
|
+
### [5.3.2](https://github.com/dynamic-labs/dynamic-auth/compare/v5.3.1...v5.3.2) (2026-08-19)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* **bitcoin:** add allowedSighash to embedded wallet signPsbt ([#12233](https://github.com/dynamic-labs/dynamic-auth/issues/12233)) ([d0ff829](https://github.com/dynamic-labs/dynamic-auth/commit/d0ff8291a3d1771d5ca356172acc10af94349b15))
|
|
30
|
+
* **bitcoin:** forward signingIndexes to embedded PSBT signing ([#12211](https://github.com/dynamic-labs/dynamic-auth/issues/12211)) ([733da3d](https://github.com/dynamic-labs/dynamic-auth/commit/733da3d32f39a9ae6d813df84fcff6350ba12eb5))
|
|
31
|
+
* expose createOfflineRecoveryShares SDK function in webview and legacy client ([#12239](https://github.com/dynamic-labs/dynamic-auth/issues/12239)) ([c8056e8](https://github.com/dynamic-labs/dynamic-auth/commit/c8056e8d5a1c66ac0146b046bc7cc198de118f0b))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
|
|
36
|
+
* **bitcoin:** parse PSBTs with the active network's address encoding ([#12219](https://github.com/dynamic-labs/dynamic-auth/issues/12219)) ([8b151e2](https://github.com/dynamic-labs/dynamic-auth/commit/8b151e23440094cfa0d48728e1d0f19de567ca05))
|
|
37
|
+
* **bitcoin:** stop ensureActiveAccount from resetting a switched network ([#12215](https://github.com/dynamic-labs/dynamic-auth/issues/12215)) ([86668b7](https://github.com/dynamic-labs/dynamic-auth/commit/86668b79d23cd89b7e96518551cdaecab7dd5ce3))
|
|
38
|
+
* remediate high-severity dependency vulnerabilities ([#12238](https://github.com/dynamic-labs/dynamic-auth/issues/12238)) ([a4fc78c](https://github.com/dynamic-labs/dynamic-auth/commit/a4fc78ca27ee44ce6a1038c4e0d07f55528b4994))
|
|
39
|
+
* **waas-svm:** retry SVM gas sponsorship before falling back, then throw ([#12240](https://github.com/dynamic-labs/dynamic-auth/issues/12240)) ([f599a7a](https://github.com/dynamic-labs/dynamic-auth/commit/f599a7af55727e06373772acf574ee7c43e56bbb))
|
|
40
|
+
|
|
2
41
|
### [5.3.1](https://github.com/dynamic-labs/dynamic-auth/compare/v5.3.0...v5.3.1) (2026-08-14)
|
|
3
42
|
|
|
4
43
|
## [5.3.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.2.0...v5.3.0) (2026-08-12)
|
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": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,19 +16,19 @@
|
|
|
16
16
|
"./package.json": "./package.json"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@dynamic-labs-sdk/client": "1.
|
|
20
|
-
"@dynamic-labs/assert-package-version": "5.
|
|
21
|
-
"@dynamic-labs/sdk-api-core": "0.0
|
|
22
|
-
"@dynamic-labs-wallet/browser-wallet-client": "1.0.
|
|
19
|
+
"@dynamic-labs-sdk/client": "1.29.0",
|
|
20
|
+
"@dynamic-labs/assert-package-version": "5.4.0",
|
|
21
|
+
"@dynamic-labs/sdk-api-core": "0.12.0",
|
|
22
|
+
"@dynamic-labs-wallet/browser-wallet-client": "1.0.106",
|
|
23
23
|
"@dynamic-labs-wallet/forward-mpc-client": "1.0.1",
|
|
24
24
|
"zod": "4.0.5",
|
|
25
|
-
"@dynamic-labs/ethereum-core": "5.
|
|
26
|
-
"@dynamic-labs/logger": "5.
|
|
27
|
-
"@dynamic-labs/solana-core": "5.
|
|
28
|
-
"@dynamic-labs/sui-core": "5.
|
|
29
|
-
"@dynamic-labs/utils": "5.
|
|
30
|
-
"@dynamic-labs/wallet-book": "5.
|
|
31
|
-
"@dynamic-labs/wallet-connector-core": "5.
|
|
25
|
+
"@dynamic-labs/ethereum-core": "5.4.0",
|
|
26
|
+
"@dynamic-labs/logger": "5.4.0",
|
|
27
|
+
"@dynamic-labs/solana-core": "5.4.0",
|
|
28
|
+
"@dynamic-labs/sui-core": "5.4.0",
|
|
29
|
+
"@dynamic-labs/utils": "5.4.0",
|
|
30
|
+
"@dynamic-labs/wallet-book": "5.4.0",
|
|
31
|
+
"@dynamic-labs/wallet-connector-core": "5.4.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {}
|
|
34
34
|
}
|
package/src/DynamicWaasMixin.cjs
CHANGED
|
@@ -346,7 +346,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
346
346
|
});
|
|
347
347
|
}
|
|
348
348
|
importPrivateKey(_a) {
|
|
349
|
-
return _tslib.__awaiter(this, arguments, void 0, function* ({ privateKey, thresholdSignatureScheme = 'TWO_OF_TWO', publicAddressCheck, addressType, legacyWalletId, password, }) {
|
|
349
|
+
return _tslib.__awaiter(this, arguments, void 0, function* ({ privateKey, thresholdSignatureScheme = 'TWO_OF_TWO', publicAddressCheck, addressType, legacyWalletId, password, isRawScalarImport, }) {
|
|
350
350
|
var _b, _c;
|
|
351
351
|
const walletClient = yield this.getWaasWalletClient();
|
|
352
352
|
const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
|
|
@@ -356,6 +356,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
356
356
|
yield walletClient.importPrivateKey({
|
|
357
357
|
addressType,
|
|
358
358
|
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
359
|
+
isRawScalarImport,
|
|
359
360
|
legacyWalletId,
|
|
360
361
|
password,
|
|
361
362
|
privateKey,
|
|
@@ -798,6 +799,28 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
798
799
|
});
|
|
799
800
|
});
|
|
800
801
|
}
|
|
802
|
+
createOfflineRecoveryShares(_a) {
|
|
803
|
+
return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, password, cloudProviderAccessToken, mfaToken, }) {
|
|
804
|
+
return this.runBackupLifecycle({
|
|
805
|
+
accountAddress,
|
|
806
|
+
password,
|
|
807
|
+
performBackup: (_b) => _tslib.__awaiter(this, [_b], void 0, function* ({ walletClient, resolvedPassword, signedSessionId, sessionPublicKey, traceContext, }) {
|
|
808
|
+
var _c;
|
|
809
|
+
return walletClient.offlineRecovery({
|
|
810
|
+
accountAddress,
|
|
811
|
+
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
812
|
+
cloudProviderAccessToken,
|
|
813
|
+
mfaToken,
|
|
814
|
+
password: resolvedPassword,
|
|
815
|
+
sessionPublicKey,
|
|
816
|
+
signedSessionId,
|
|
817
|
+
traceContext,
|
|
818
|
+
});
|
|
819
|
+
}),
|
|
820
|
+
provider: 'offline-recovery',
|
|
821
|
+
});
|
|
822
|
+
});
|
|
823
|
+
}
|
|
801
824
|
endSession(reason) {
|
|
802
825
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
803
826
|
var _a;
|
|
@@ -111,13 +111,14 @@ export declare const withDynamicWaas: <T extends abstract new (...args: any[]) =
|
|
|
111
111
|
}): Promise<{
|
|
112
112
|
shareSetId: string;
|
|
113
113
|
}>;
|
|
114
|
-
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, password, }: {
|
|
114
|
+
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, password, isRawScalarImport, }: {
|
|
115
115
|
privateKey: string;
|
|
116
116
|
thresholdSignatureScheme?: string;
|
|
117
117
|
publicAddressCheck?: string;
|
|
118
118
|
addressType?: string;
|
|
119
119
|
legacyWalletId?: string;
|
|
120
120
|
password?: string;
|
|
121
|
+
isRawScalarImport?: boolean;
|
|
121
122
|
}): Promise<void>;
|
|
122
123
|
migrateFromFireblocks({ deviceId, jwt, walletPassword, ncwStorage, expectedAddresses, coinTypes, password, }: {
|
|
123
124
|
deviceId: string;
|
|
@@ -223,6 +224,12 @@ export declare const withDynamicWaas: <T extends abstract new (...args: any[]) =
|
|
|
223
224
|
getWalletRecoveryState({ accountAddress, }: {
|
|
224
225
|
accountAddress: string;
|
|
225
226
|
}): Promise<import("@dynamic-labs-wallet/browser-wallet-client").WalletRecoveryState>;
|
|
227
|
+
createOfflineRecoveryShares({ accountAddress, password, cloudProviderAccessToken, mfaToken, }: {
|
|
228
|
+
accountAddress: string;
|
|
229
|
+
password?: string;
|
|
230
|
+
cloudProviderAccessToken?: string;
|
|
231
|
+
mfaToken?: string;
|
|
232
|
+
}): Promise<void>;
|
|
226
233
|
endSession(reason?: LogoutReason): Promise<void>;
|
|
227
234
|
getActiveAccountAddress(): Promise<string | undefined>;
|
|
228
235
|
/**
|
package/src/DynamicWaasMixin.js
CHANGED
|
@@ -342,7 +342,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
342
342
|
});
|
|
343
343
|
}
|
|
344
344
|
importPrivateKey(_a) {
|
|
345
|
-
return __awaiter(this, arguments, void 0, function* ({ privateKey, thresholdSignatureScheme = 'TWO_OF_TWO', publicAddressCheck, addressType, legacyWalletId, password, }) {
|
|
345
|
+
return __awaiter(this, arguments, void 0, function* ({ privateKey, thresholdSignatureScheme = 'TWO_OF_TWO', publicAddressCheck, addressType, legacyWalletId, password, isRawScalarImport, }) {
|
|
346
346
|
var _b, _c;
|
|
347
347
|
const walletClient = yield this.getWaasWalletClient();
|
|
348
348
|
const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
|
|
@@ -352,6 +352,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
352
352
|
yield walletClient.importPrivateKey({
|
|
353
353
|
addressType,
|
|
354
354
|
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
355
|
+
isRawScalarImport,
|
|
355
356
|
legacyWalletId,
|
|
356
357
|
password,
|
|
357
358
|
privateKey,
|
|
@@ -794,6 +795,28 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
794
795
|
});
|
|
795
796
|
});
|
|
796
797
|
}
|
|
798
|
+
createOfflineRecoveryShares(_a) {
|
|
799
|
+
return __awaiter(this, arguments, void 0, function* ({ accountAddress, password, cloudProviderAccessToken, mfaToken, }) {
|
|
800
|
+
return this.runBackupLifecycle({
|
|
801
|
+
accountAddress,
|
|
802
|
+
password,
|
|
803
|
+
performBackup: (_b) => __awaiter(this, [_b], void 0, function* ({ walletClient, resolvedPassword, signedSessionId, sessionPublicKey, traceContext, }) {
|
|
804
|
+
var _c;
|
|
805
|
+
return walletClient.offlineRecovery({
|
|
806
|
+
accountAddress,
|
|
807
|
+
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
808
|
+
cloudProviderAccessToken,
|
|
809
|
+
mfaToken,
|
|
810
|
+
password: resolvedPassword,
|
|
811
|
+
sessionPublicKey,
|
|
812
|
+
signedSessionId,
|
|
813
|
+
traceContext,
|
|
814
|
+
});
|
|
815
|
+
}),
|
|
816
|
+
provider: 'offline-recovery',
|
|
817
|
+
});
|
|
818
|
+
});
|
|
819
|
+
}
|
|
797
820
|
endSession(reason) {
|
|
798
821
|
return __awaiter(this, void 0, void 0, function* () {
|
|
799
822
|
var _a;
|