@dynamic-labs/waas 4.35.0 → 4.36.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 +14 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +7 -7
- package/src/DynamicWaasMixin.cjs +28 -1
- package/src/DynamicWaasMixin.d.ts +5 -0
- package/src/DynamicWaasMixin.js +28 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.36.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.35.0...v4.36.0) (2025-10-03)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add refresh/reshare settings on next login ([#9611](https://github.com/dynamic-labs/dynamic-auth/issues/9611)) ([49ce9a9](https://github.com/dynamic-labs/dynamic-auth/commit/49ce9a920bd3b4f7e7a4c3227bd8ecf2e6d0e37d))
|
|
8
|
+
* add waas mpc reshare on connectors ([#9610](https://github.com/dynamic-labs/dynamic-auth/issues/9610)) ([15394df](https://github.com/dynamic-labs/dynamic-auth/commit/15394dfb35c279b86c440066295eb8f3b8b1e342))
|
|
9
|
+
* send non-native tokens with sui sendbalance ([#9620](https://github.com/dynamic-labs/dynamic-auth/issues/9620)) ([c2c2b2b](https://github.com/dynamic-labs/dynamic-auth/commit/c2c2b2b5108933acf0858c61f96c902868531737))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* send balance input alignment ([#9617](https://github.com/dynamic-labs/dynamic-auth/issues/9617)) ([00d9f7c](https://github.com/dynamic-labs/dynamic-auth/commit/00d9f7cfd9e77660be8855367dbb14b139b6f146))
|
|
15
|
+
|
|
2
16
|
## [4.35.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.34.0...v4.35.0) (2025-10-02)
|
|
3
17
|
|
|
4
18
|
|
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.36.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"./package.json": "./package.json"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
19
|
+
"@dynamic-labs/assert-package-version": "4.36.0",
|
|
20
20
|
"@dynamic-labs/sdk-api-core": "0.0.791",
|
|
21
21
|
"@dynamic-labs-wallet/browser-wallet-client": "0.0.169",
|
|
22
|
-
"@dynamic-labs/ethereum-core": "4.
|
|
23
|
-
"@dynamic-labs/solana-core": "4.
|
|
24
|
-
"@dynamic-labs/sui-core": "4.
|
|
25
|
-
"@dynamic-labs/utils": "4.
|
|
26
|
-
"@dynamic-labs/wallet-book": "4.
|
|
22
|
+
"@dynamic-labs/ethereum-core": "4.36.0",
|
|
23
|
+
"@dynamic-labs/solana-core": "4.36.0",
|
|
24
|
+
"@dynamic-labs/sui-core": "4.36.0",
|
|
25
|
+
"@dynamic-labs/utils": "4.36.0",
|
|
26
|
+
"@dynamic-labs/wallet-book": "4.36.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {}
|
|
29
29
|
}
|
package/src/DynamicWaasMixin.cjs
CHANGED
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
|
|
6
6
|
var _tslib = require('../_virtual/_tslib.cjs');
|
|
7
7
|
var browserWalletClient = require('@dynamic-labs-wallet/browser-wallet-client');
|
|
8
|
-
var utils = require('@dynamic-labs/utils');
|
|
9
8
|
var sdkApiCore = require('@dynamic-labs/sdk-api-core');
|
|
9
|
+
var utils = require('@dynamic-labs/utils');
|
|
10
10
|
var _package = require('../package.cjs');
|
|
11
11
|
var constants = require('../utils/constants.cjs');
|
|
12
12
|
|
|
@@ -251,6 +251,33 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
251
251
|
});
|
|
252
252
|
});
|
|
253
253
|
}
|
|
254
|
+
reshareWalletAccountShares(_a) {
|
|
255
|
+
return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, thresholdSignatureScheme, password, }) {
|
|
256
|
+
var _b, _c;
|
|
257
|
+
if (!accountAddress) {
|
|
258
|
+
throw new utils.DynamicError('Account address is required');
|
|
259
|
+
}
|
|
260
|
+
const walletClient = yield this.getWaasWalletClient();
|
|
261
|
+
const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
|
|
262
|
+
if (!signedSessionId) {
|
|
263
|
+
throw new utils.DynamicError('Signed session ID is required');
|
|
264
|
+
}
|
|
265
|
+
const wallets = yield walletClient.getWallets();
|
|
266
|
+
const wallet = wallets.find((w) => w.accountAddress === accountAddress);
|
|
267
|
+
if (!wallet) {
|
|
268
|
+
throw new utils.DynamicError('Wallet not found');
|
|
269
|
+
}
|
|
270
|
+
const oldThresholdSignatureScheme = wallet.thresholdSignatureScheme;
|
|
271
|
+
return walletClient.reshare({
|
|
272
|
+
accountAddress,
|
|
273
|
+
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
274
|
+
newThresholdSignatureScheme: thresholdSignatureScheme,
|
|
275
|
+
oldThresholdSignatureScheme,
|
|
276
|
+
password,
|
|
277
|
+
signedSessionId,
|
|
278
|
+
});
|
|
279
|
+
});
|
|
280
|
+
}
|
|
254
281
|
updatePassword(_a) {
|
|
255
282
|
return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, existingPassword, newPassword, }) {
|
|
256
283
|
var _b, _c;
|
|
@@ -71,6 +71,11 @@ export declare const withDynamicWaas: <T extends abstract new (...args: any[]) =
|
|
|
71
71
|
accountAddress: string;
|
|
72
72
|
password?: string;
|
|
73
73
|
}): Promise<void>;
|
|
74
|
+
reshareWalletAccountShares({ accountAddress, thresholdSignatureScheme, password, }: {
|
|
75
|
+
accountAddress: string;
|
|
76
|
+
thresholdSignatureScheme: string;
|
|
77
|
+
password?: string;
|
|
78
|
+
}): Promise<void>;
|
|
74
79
|
updatePassword({ accountAddress, existingPassword, newPassword, }: {
|
|
75
80
|
accountAddress: string;
|
|
76
81
|
existingPassword: string;
|
package/src/DynamicWaasMixin.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { __awaiter } from '../_virtual/_tslib.js';
|
|
3
3
|
import { DynamicWalletClient } from '@dynamic-labs-wallet/browser-wallet-client';
|
|
4
|
-
import { DynamicError } from '@dynamic-labs/utils';
|
|
5
4
|
import { MFAAction } from '@dynamic-labs/sdk-api-core';
|
|
5
|
+
import { DynamicError } from '@dynamic-labs/utils';
|
|
6
6
|
import { version } from '../package.js';
|
|
7
7
|
import { DEFAULT_BASE_API_URL, DEFAULT_BASE_MPC_RELAY_API_URL } from '../utils/constants.js';
|
|
8
8
|
|
|
@@ -247,6 +247,33 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
247
247
|
});
|
|
248
248
|
});
|
|
249
249
|
}
|
|
250
|
+
reshareWalletAccountShares(_a) {
|
|
251
|
+
return __awaiter(this, arguments, void 0, function* ({ accountAddress, thresholdSignatureScheme, password, }) {
|
|
252
|
+
var _b, _c;
|
|
253
|
+
if (!accountAddress) {
|
|
254
|
+
throw new DynamicError('Account address is required');
|
|
255
|
+
}
|
|
256
|
+
const walletClient = yield this.getWaasWalletClient();
|
|
257
|
+
const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
|
|
258
|
+
if (!signedSessionId) {
|
|
259
|
+
throw new DynamicError('Signed session ID is required');
|
|
260
|
+
}
|
|
261
|
+
const wallets = yield walletClient.getWallets();
|
|
262
|
+
const wallet = wallets.find((w) => w.accountAddress === accountAddress);
|
|
263
|
+
if (!wallet) {
|
|
264
|
+
throw new DynamicError('Wallet not found');
|
|
265
|
+
}
|
|
266
|
+
const oldThresholdSignatureScheme = wallet.thresholdSignatureScheme;
|
|
267
|
+
return walletClient.reshare({
|
|
268
|
+
accountAddress,
|
|
269
|
+
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
270
|
+
newThresholdSignatureScheme: thresholdSignatureScheme,
|
|
271
|
+
oldThresholdSignatureScheme,
|
|
272
|
+
password,
|
|
273
|
+
signedSessionId,
|
|
274
|
+
});
|
|
275
|
+
});
|
|
276
|
+
}
|
|
250
277
|
updatePassword(_a) {
|
|
251
278
|
return __awaiter(this, arguments, void 0, function* ({ accountAddress, existingPassword, newPassword, }) {
|
|
252
279
|
var _b, _c;
|