@dynamic-labs/waas-sui 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
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-sui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.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,21 +18,21 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs-sdk/client": "1.
|
|
22
|
-
"@dynamic-labs/sdk-api-core": "0.0
|
|
23
|
-
"@dynamic-labs-wallet/browser-wallet-client": "1.0.
|
|
21
|
+
"@dynamic-labs-sdk/client": "1.29.0",
|
|
22
|
+
"@dynamic-labs/sdk-api-core": "0.12.0",
|
|
23
|
+
"@dynamic-labs-wallet/browser-wallet-client": "1.0.106",
|
|
24
24
|
"@dynamic-labs-wallet/forward-mpc-client": "1.0.1",
|
|
25
25
|
"@mysten/sui": "1.45.2",
|
|
26
26
|
"@mysten/wallet-standard": "0.19.9",
|
|
27
|
-
"@dynamic-labs/assert-package-version": "5.
|
|
28
|
-
"@dynamic-labs/logger": "5.
|
|
29
|
-
"@dynamic-labs/rpc-providers": "5.
|
|
30
|
-
"@dynamic-labs/sui-core": "5.
|
|
31
|
-
"@dynamic-labs/types": "5.
|
|
32
|
-
"@dynamic-labs/utils": "5.
|
|
33
|
-
"@dynamic-labs/waas": "5.
|
|
34
|
-
"@dynamic-labs/wallet-book": "5.
|
|
35
|
-
"@dynamic-labs/wallet-connector-core": "5.
|
|
27
|
+
"@dynamic-labs/assert-package-version": "5.4.0",
|
|
28
|
+
"@dynamic-labs/logger": "5.4.0",
|
|
29
|
+
"@dynamic-labs/rpc-providers": "5.4.0",
|
|
30
|
+
"@dynamic-labs/sui-core": "5.4.0",
|
|
31
|
+
"@dynamic-labs/types": "5.4.0",
|
|
32
|
+
"@dynamic-labs/utils": "5.4.0",
|
|
33
|
+
"@dynamic-labs/waas": "5.4.0",
|
|
34
|
+
"@dynamic-labs/wallet-book": "5.4.0",
|
|
35
|
+
"@dynamic-labs/wallet-connector-core": "5.4.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {}
|
|
38
38
|
}
|
|
@@ -105,7 +105,7 @@ class DynamicWaasSuiConnector extends waas.withDynamicWaas(suiCore.SuiWalletConn
|
|
|
105
105
|
}
|
|
106
106
|
// Override importPrivateKey to use the proper type casting for SUI
|
|
107
107
|
importPrivateKey(_a) {
|
|
108
|
-
return _tslib.__awaiter(this, arguments, void 0, function* ({ privateKey, thresholdSignatureScheme = 'TWO_OF_TWO', publicAddressCheck, legacyWalletId, }) {
|
|
108
|
+
return _tslib.__awaiter(this, arguments, void 0, function* ({ privateKey, thresholdSignatureScheme = 'TWO_OF_TWO', publicAddressCheck, legacyWalletId, password, addressType, isRawScalarImport, }) {
|
|
109
109
|
var _b, _c;
|
|
110
110
|
const walletClient = yield this.getWaasWalletClient();
|
|
111
111
|
const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
|
|
@@ -113,8 +113,11 @@ class DynamicWaasSuiConnector extends waas.withDynamicWaas(suiCore.SuiWalletConn
|
|
|
113
113
|
throw new utils.DynamicError('Signed session ID is required', 'signed_session_id_is_required');
|
|
114
114
|
}
|
|
115
115
|
yield walletClient.importPrivateKey({
|
|
116
|
+
addressType,
|
|
116
117
|
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
118
|
+
isRawScalarImport,
|
|
117
119
|
legacyWalletId,
|
|
120
|
+
password,
|
|
118
121
|
privateKey,
|
|
119
122
|
publicAddressCheck,
|
|
120
123
|
signedSessionId,
|
|
@@ -94,13 +94,14 @@ declare const DynamicWaasSuiConnector_base: (abstract new (...args: any[]) => {
|
|
|
94
94
|
}): Promise<{
|
|
95
95
|
shareSetId: string;
|
|
96
96
|
}>;
|
|
97
|
-
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, password, }: {
|
|
97
|
+
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, password, isRawScalarImport, }: {
|
|
98
98
|
privateKey: string;
|
|
99
99
|
thresholdSignatureScheme?: string | undefined;
|
|
100
100
|
publicAddressCheck?: string | undefined;
|
|
101
101
|
addressType?: string | undefined;
|
|
102
102
|
legacyWalletId?: string | undefined;
|
|
103
103
|
password?: string | undefined;
|
|
104
|
+
isRawScalarImport?: boolean | undefined;
|
|
104
105
|
}): Promise<void>;
|
|
105
106
|
migrateFromFireblocks({ deviceId, jwt, walletPassword, ncwStorage, expectedAddresses, coinTypes, password, }: {
|
|
106
107
|
deviceId: string;
|
|
@@ -191,6 +192,12 @@ declare const DynamicWaasSuiConnector_base: (abstract new (...args: any[]) => {
|
|
|
191
192
|
getWalletRecoveryState({ accountAddress, }: {
|
|
192
193
|
accountAddress: string;
|
|
193
194
|
}): Promise<import("@dynamic-labs-wallet/browser-wallet-client").WalletRecoveryState>;
|
|
195
|
+
createOfflineRecoveryShares({ accountAddress, password, cloudProviderAccessToken, mfaToken, }: {
|
|
196
|
+
accountAddress: string;
|
|
197
|
+
password?: string | undefined;
|
|
198
|
+
cloudProviderAccessToken?: string | undefined;
|
|
199
|
+
mfaToken?: string | undefined;
|
|
200
|
+
}): Promise<void>;
|
|
194
201
|
endSession(reason?: LogoutReason | undefined): Promise<void>;
|
|
195
202
|
getActiveAccountAddress(): Promise<string | undefined>;
|
|
196
203
|
getConnectedAccounts(): Promise<string[]>;
|
|
@@ -241,11 +248,15 @@ export declare class DynamicWaasSuiConnector extends DynamicWaasSuiConnector_bas
|
|
|
241
248
|
private setActiveAccountAddress;
|
|
242
249
|
getActiveAccountAddress(): Promise<string | undefined>;
|
|
243
250
|
validateActiveWallet(expectedAddress: string): Promise<void>;
|
|
244
|
-
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, legacyWalletId, }: {
|
|
251
|
+
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, legacyWalletId, password, addressType, isRawScalarImport, }: {
|
|
245
252
|
privateKey: string;
|
|
246
253
|
thresholdSignatureScheme?: string;
|
|
247
254
|
publicAddressCheck?: string;
|
|
248
255
|
legacyWalletId?: string;
|
|
256
|
+
password?: string;
|
|
257
|
+
addressType?: string;
|
|
258
|
+
/** SUI is one of the ed25519 chains: `privateKey` may be a raw 32-byte scalar (hex). */
|
|
259
|
+
isRawScalarImport?: boolean;
|
|
249
260
|
}): Promise<void>;
|
|
250
261
|
signMessage(message: string): Promise<string>;
|
|
251
262
|
private createAndSignTransaction;
|
|
@@ -101,7 +101,7 @@ class DynamicWaasSuiConnector extends withDynamicWaas(SuiWalletConnector) {
|
|
|
101
101
|
}
|
|
102
102
|
// Override importPrivateKey to use the proper type casting for SUI
|
|
103
103
|
importPrivateKey(_a) {
|
|
104
|
-
return __awaiter(this, arguments, void 0, function* ({ privateKey, thresholdSignatureScheme = 'TWO_OF_TWO', publicAddressCheck, legacyWalletId, }) {
|
|
104
|
+
return __awaiter(this, arguments, void 0, function* ({ privateKey, thresholdSignatureScheme = 'TWO_OF_TWO', publicAddressCheck, legacyWalletId, password, addressType, isRawScalarImport, }) {
|
|
105
105
|
var _b, _c;
|
|
106
106
|
const walletClient = yield this.getWaasWalletClient();
|
|
107
107
|
const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
|
|
@@ -109,8 +109,11 @@ class DynamicWaasSuiConnector extends withDynamicWaas(SuiWalletConnector) {
|
|
|
109
109
|
throw new DynamicError('Signed session ID is required', 'signed_session_id_is_required');
|
|
110
110
|
}
|
|
111
111
|
yield walletClient.importPrivateKey({
|
|
112
|
+
addressType,
|
|
112
113
|
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
114
|
+
isRawScalarImport,
|
|
113
115
|
legacyWalletId,
|
|
116
|
+
password,
|
|
114
117
|
privateKey,
|
|
115
118
|
publicAddressCheck,
|
|
116
119
|
signedSessionId,
|