@dynamic-labs/waas 4.63.0 → 4.63.1
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 +18 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +9 -9
- package/src/DynamicWaasMixin.cjs +9 -2
- package/src/DynamicWaasMixin.d.ts +7 -1
- package/src/DynamicWaasMixin.js +10 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.63.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.63.0...v4.63.1) (2026-02-24)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add elevated access token to WaaS export ([#10481](https://github.com/dynamic-labs/dynamic-auth/issues/10481)) ([9a3c6a6](https://github.com/dynamic-labs/dynamic-auth/commit/9a3c6a6eaa4bd7ced5aeb873fe7872717d0e25d9))
|
|
8
|
+
* add multi-wallet delegation support with React parity ([#10450](https://github.com/dynamic-labs/dynamic-auth/issues/10450)) ([e4d5135](https://github.com/dynamic-labs/dynamic-auth/commit/e4d5135c50595c022dfb02da2d9f05a389c0ee09))
|
|
9
|
+
* add Stellar chain support with balance fetching and network mapping ([#10494](https://github.com/dynamic-labs/dynamic-auth/issues/10494)) ([f12553c](https://github.com/dynamic-labs/dynamic-auth/commit/f12553ce864a56a75f87d1d55c087e1fc9378cc6))
|
|
10
|
+
* add Stellar WaaS transaction signing and broadcast UI ([#10495](https://github.com/dynamic-labs/dynamic-auth/issues/10495)) ([f87a860](https://github.com/dynamic-labs/dynamic-auth/commit/f87a860f59cdf5b0c4f99586c61e60186efc19f2))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* cancel authFlowClose timeout when navigation occurs during delay ([#10487](https://github.com/dynamic-labs/dynamic-auth/issues/10487)) ([aef92b4](https://github.com/dynamic-labs/dynamic-auth/commit/aef92b4a80827c517819cc63414acdf3e9ad7b05))
|
|
16
|
+
* **e2e:** update gating test to expect user:basic scope ([#10505](https://github.com/dynamic-labs/dynamic-auth/issues/10505)) ([56f449a](https://github.com/dynamic-labs/dynamic-auth/commit/56f449a282f37b33d365d60380c7a68c1cf5eced)), closes [dynamic-labs/redcoast#8339](https://github.com/dynamic-labs/redcoast/issues/8339)
|
|
17
|
+
* use selected network for Horizon server and include WaaS connector in StellarWalletConnectors ([#10493](https://github.com/dynamic-labs/dynamic-auth/issues/10493)) ([f340c09](https://github.com/dynamic-labs/dynamic-auth/commit/f340c094f08afb39829f2d90db2ec665a69ba469))
|
|
18
|
+
* **waas:** normalize SOL to SVM chain name when looking up WaaS connector ([#10506](https://github.com/dynamic-labs/dynamic-auth/issues/10506)) ([102d314](https://github.com/dynamic-labs/dynamic-auth/commit/102d3142d65d0e67338884affc736e5151a8e296))
|
|
19
|
+
|
|
2
20
|
## [4.63.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.62.0...v4.63.0) (2026-02-24)
|
|
3
21
|
|
|
4
22
|
|
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.63.
|
|
3
|
+
"version": "4.63.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
"./package.json": "./package.json"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@dynamic-labs/assert-package-version": "4.63.
|
|
19
|
+
"@dynamic-labs/assert-package-version": "4.63.1",
|
|
20
20
|
"@dynamic-labs/sdk-api-core": "0.0.875",
|
|
21
21
|
"@dynamic-labs-wallet/browser-wallet-client": "0.0.276",
|
|
22
|
-
"@dynamic-labs/ethereum-core": "4.63.
|
|
23
|
-
"@dynamic-labs/logger": "4.63.
|
|
24
|
-
"@dynamic-labs/solana-core": "4.63.
|
|
25
|
-
"@dynamic-labs/sui-core": "4.63.
|
|
26
|
-
"@dynamic-labs/utils": "4.63.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.63.
|
|
28
|
-
"@dynamic-labs/wallet-connector-core": "4.63.
|
|
22
|
+
"@dynamic-labs/ethereum-core": "4.63.1",
|
|
23
|
+
"@dynamic-labs/logger": "4.63.1",
|
|
24
|
+
"@dynamic-labs/solana-core": "4.63.1",
|
|
25
|
+
"@dynamic-labs/sui-core": "4.63.1",
|
|
26
|
+
"@dynamic-labs/utils": "4.63.1",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.63.1",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "4.63.1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {}
|
|
31
31
|
}
|
package/src/DynamicWaasMixin.cjs
CHANGED
|
@@ -38,6 +38,9 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
38
38
|
setGetMfaTokenFunction(getMfaToken) {
|
|
39
39
|
this.getMfaToken = getMfaToken;
|
|
40
40
|
}
|
|
41
|
+
setGetElevatedAccessTokenFunction(getElevatedAccessToken) {
|
|
42
|
+
this.getElevatedAccessToken = getElevatedAccessToken;
|
|
43
|
+
}
|
|
41
44
|
setGetWalletPasswordFunction(getWalletPassword) {
|
|
42
45
|
this.getWalletPassword = getWalletPassword;
|
|
43
46
|
}
|
|
@@ -220,7 +223,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
220
223
|
}
|
|
221
224
|
exportPrivateKey() {
|
|
222
225
|
return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, displayContainer, password, } = {}) {
|
|
223
|
-
var _a, _b, _c;
|
|
226
|
+
var _a, _b, _c, _d;
|
|
224
227
|
const walletClient = yield this.getWaasWalletClient();
|
|
225
228
|
const targetAccountAddress = accountAddress || (yield this.getActiveAccountAddress());
|
|
226
229
|
if (!targetAccountAddress) {
|
|
@@ -240,10 +243,14 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
240
243
|
const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
|
|
241
244
|
mfaAction: sdkApiCore.MFAAction.WalletWaasExport,
|
|
242
245
|
}));
|
|
246
|
+
const elevatedAccessToken = yield ((_c = this.getElevatedAccessToken) === null || _c === void 0 ? void 0 : _c.call(this, {
|
|
247
|
+
scope: sdkApiCore.TokenScope.Walletexport,
|
|
248
|
+
}));
|
|
243
249
|
yield walletClient.exportPrivateKey({
|
|
244
250
|
accountAddress: targetAccountAddress,
|
|
245
|
-
authToken: (
|
|
251
|
+
authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
|
|
246
252
|
displayContainer,
|
|
253
|
+
elevatedAccessToken,
|
|
247
254
|
mfaToken,
|
|
248
255
|
password: resolvedPassword,
|
|
249
256
|
signedSessionId,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BitcoinConfig, DynamicWalletClient } from '@dynamic-labs-wallet/browser-wallet-client';
|
|
2
2
|
import { InstrumentOptions, Logger } from '@dynamic-labs/logger';
|
|
3
|
-
import { MFAAction } from '@dynamic-labs/sdk-api-core';
|
|
3
|
+
import { MFAAction, TokenScope } from '@dynamic-labs/sdk-api-core';
|
|
4
4
|
import { GetWalletPasswordFn } from '@dynamic-labs/wallet-connector-core';
|
|
5
5
|
import { InstrumentContext, InstrumentationTimer, TraceContext } from '../utils/instrumentation';
|
|
6
6
|
export declare class WaasExportHandler {
|
|
@@ -19,6 +19,9 @@ export declare const withDynamicWaas: <T extends abstract new (...args: any[]) =
|
|
|
19
19
|
}) => Promise<string | undefined>) | undefined;
|
|
20
20
|
getWalletPassword?: GetWalletPasswordFn | undefined;
|
|
21
21
|
getAuthToken?: (() => string) | undefined;
|
|
22
|
+
getElevatedAccessToken?: ((props: {
|
|
23
|
+
scope: TokenScope;
|
|
24
|
+
}) => Promise<string | undefined>) | undefined;
|
|
22
25
|
environmentId?: string | undefined;
|
|
23
26
|
baseApiUrl?: string | undefined;
|
|
24
27
|
relayUrl?: string | undefined;
|
|
@@ -34,6 +37,9 @@ export declare const withDynamicWaas: <T extends abstract new (...args: any[]) =
|
|
|
34
37
|
setGetMfaTokenFunction(getMfaToken: (props?: {
|
|
35
38
|
mfaAction?: MFAAction;
|
|
36
39
|
}) => Promise<string | undefined>): void;
|
|
40
|
+
setGetElevatedAccessTokenFunction(getElevatedAccessToken: (params: {
|
|
41
|
+
scope: TokenScope;
|
|
42
|
+
}) => Promise<string | undefined>): void;
|
|
37
43
|
setGetWalletPasswordFunction(getWalletPassword: GetWalletPasswordFn): void;
|
|
38
44
|
/**
|
|
39
45
|
* Checks if the wallet needs a password for signing operations.
|
package/src/DynamicWaasMixin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 { MFAAction } from '@dynamic-labs/sdk-api-core';
|
|
4
|
+
import { MFAAction, TokenScope } from '@dynamic-labs/sdk-api-core';
|
|
5
5
|
import { DynamicError, PlatformService } from '@dynamic-labs/utils';
|
|
6
6
|
import { createWaasClientSecureStorage } from '../utils/createWaasClientSecureStorage.js';
|
|
7
7
|
import { version } from '../package.js';
|
|
@@ -34,6 +34,9 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
34
34
|
setGetMfaTokenFunction(getMfaToken) {
|
|
35
35
|
this.getMfaToken = getMfaToken;
|
|
36
36
|
}
|
|
37
|
+
setGetElevatedAccessTokenFunction(getElevatedAccessToken) {
|
|
38
|
+
this.getElevatedAccessToken = getElevatedAccessToken;
|
|
39
|
+
}
|
|
37
40
|
setGetWalletPasswordFunction(getWalletPassword) {
|
|
38
41
|
this.getWalletPassword = getWalletPassword;
|
|
39
42
|
}
|
|
@@ -216,7 +219,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
216
219
|
}
|
|
217
220
|
exportPrivateKey() {
|
|
218
221
|
return __awaiter(this, arguments, void 0, function* ({ accountAddress, displayContainer, password, } = {}) {
|
|
219
|
-
var _a, _b, _c;
|
|
222
|
+
var _a, _b, _c, _d;
|
|
220
223
|
const walletClient = yield this.getWaasWalletClient();
|
|
221
224
|
const targetAccountAddress = accountAddress || (yield this.getActiveAccountAddress());
|
|
222
225
|
if (!targetAccountAddress) {
|
|
@@ -236,10 +239,14 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
236
239
|
const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
|
|
237
240
|
mfaAction: MFAAction.WalletWaasExport,
|
|
238
241
|
}));
|
|
242
|
+
const elevatedAccessToken = yield ((_c = this.getElevatedAccessToken) === null || _c === void 0 ? void 0 : _c.call(this, {
|
|
243
|
+
scope: TokenScope.Walletexport,
|
|
244
|
+
}));
|
|
239
245
|
yield walletClient.exportPrivateKey({
|
|
240
246
|
accountAddress: targetAccountAddress,
|
|
241
|
-
authToken: (
|
|
247
|
+
authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
|
|
242
248
|
displayContainer,
|
|
249
|
+
elevatedAccessToken,
|
|
243
250
|
mfaToken,
|
|
244
251
|
password: resolvedPassword,
|
|
245
252
|
signedSessionId,
|