@dynamic-labs/waas 4.51.2 → 4.52.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 CHANGED
@@ -1,4 +1,20 @@
1
1
 
2
+ ### [4.52.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.52.0...v4.52.1) (2025-12-23)
3
+
4
+
5
+ ### Features
6
+
7
+ * add getConnectedAccounts to waas mixin ([#10157](https://github.com/dynamic-labs/dynamic-auth/issues/10157)) ([959f216](https://github.com/dynamic-labs/dynamic-auth/commit/959f216a981a8008d1d051eb9813793d634049e0))
8
+
9
+ ## [4.52.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.51.2...v4.52.0) (2025-12-22)
10
+
11
+
12
+ ### Features
13
+
14
+ * add dynamic waas ton connector ([#9981](https://github.com/dynamic-labs/dynamic-auth/issues/9981)) ([95f2ecf](https://github.com/dynamic-labs/dynamic-auth/commit/95f2ecf253550ec8badad588a904599321a5846d))
15
+ * add getTransactionHistory to react-native ([#10132](https://github.com/dynamic-labs/dynamic-auth/issues/10132)) ([bed6ce1](https://github.com/dynamic-labs/dynamic-auth/commit/bed6ce13b5e12f80121eebf6421355ae2b87968d))
16
+ * add useGetTransactionHistory hook ([#10131](https://github.com/dynamic-labs/dynamic-auth/issues/10131)) ([431e7e1](https://github.com/dynamic-labs/dynamic-auth/commit/431e7e1a70cd0556c14f55c2827bb419f38a59c9))
17
+
2
18
  ### [4.51.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.51.1...v4.51.2) (2025-12-19)
3
19
 
4
20
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.51.2";
6
+ var version = "4.52.1";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.51.2";
2
+ var version = "4.52.1";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/waas",
3
- "version": "4.51.2",
3
+ "version": "4.52.1",
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.51.2",
19
+ "@dynamic-labs/assert-package-version": "4.52.1",
20
20
  "@dynamic-labs/sdk-api-core": "0.0.843",
21
21
  "@dynamic-labs-wallet/browser-wallet-client": "0.0.217",
22
- "@dynamic-labs/ethereum-core": "4.51.2",
23
- "@dynamic-labs/logger": "4.51.2",
24
- "@dynamic-labs/solana-core": "4.51.2",
25
- "@dynamic-labs/sui-core": "4.51.2",
26
- "@dynamic-labs/utils": "4.51.2",
27
- "@dynamic-labs/wallet-book": "4.51.2"
22
+ "@dynamic-labs/ethereum-core": "4.52.1",
23
+ "@dynamic-labs/logger": "4.52.1",
24
+ "@dynamic-labs/solana-core": "4.52.1",
25
+ "@dynamic-labs/sui-core": "4.52.1",
26
+ "@dynamic-labs/utils": "4.52.1",
27
+ "@dynamic-labs/wallet-book": "4.52.1"
28
28
  },
29
29
  "peerDependencies": {}
30
30
  }
@@ -90,6 +90,7 @@ const withDynamicWaas = (BaseClass) => {
90
90
  EVM: 'EVM',
91
91
  SOL: 'SVM',
92
92
  SUI: 'SUI',
93
+ TON: 'TON',
93
94
  };
94
95
  const chainName = chainNameMap[connectedChain];
95
96
  if (!chainName) {
@@ -384,6 +385,28 @@ const withDynamicWaas = (BaseClass) => {
384
385
  this.dynamicWaasClient = undefined;
385
386
  });
386
387
  }
388
+ /**
389
+ * Get connected accounts by fetching wallets from Waas client.
390
+ */
391
+ getConnectedAccounts() {
392
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
393
+ try {
394
+ const walletClient = yield this.getWaasWalletClient();
395
+ const wallets = yield walletClient.getWallets();
396
+ const addresses = wallets
397
+ .map((w) => w === null || w === void 0 ? void 0 : w.accountAddress)
398
+ .filter((a) => typeof a === 'string');
399
+ return addresses;
400
+ }
401
+ catch (error) {
402
+ // If fetching wallets fails, return empty array
403
+ this.logger.debug('[getConnectedAccounts] Failed to fetch wallets from Waas client', {
404
+ error,
405
+ });
406
+ return [];
407
+ }
408
+ });
409
+ }
387
410
  generateTraceId() {
388
411
  // Generate a 128-bit trace ID
389
412
  // 128-bit = 16 bytes = 32 hexadecimal characters
@@ -102,6 +102,10 @@ export declare const withDynamicWaas: <T extends abstract new (...args: any[]) =
102
102
  }): Promise<string>;
103
103
  endSession(): Promise<void>;
104
104
  getActiveAccountAddress(): Promise<string | undefined>;
105
+ /**
106
+ * Get connected accounts by fetching wallets from Waas client.
107
+ */
108
+ getConnectedAccounts(): Promise<string[]>;
105
109
  generateTraceId(): string;
106
110
  /**
107
111
  * Helper method to instrument with automatic properties inclusion
@@ -86,6 +86,7 @@ const withDynamicWaas = (BaseClass) => {
86
86
  EVM: 'EVM',
87
87
  SOL: 'SVM',
88
88
  SUI: 'SUI',
89
+ TON: 'TON',
89
90
  };
90
91
  const chainName = chainNameMap[connectedChain];
91
92
  if (!chainName) {
@@ -380,6 +381,28 @@ const withDynamicWaas = (BaseClass) => {
380
381
  this.dynamicWaasClient = undefined;
381
382
  });
382
383
  }
384
+ /**
385
+ * Get connected accounts by fetching wallets from Waas client.
386
+ */
387
+ getConnectedAccounts() {
388
+ return __awaiter(this, void 0, void 0, function* () {
389
+ try {
390
+ const walletClient = yield this.getWaasWalletClient();
391
+ const wallets = yield walletClient.getWallets();
392
+ const addresses = wallets
393
+ .map((w) => w === null || w === void 0 ? void 0 : w.accountAddress)
394
+ .filter((a) => typeof a === 'string');
395
+ return addresses;
396
+ }
397
+ catch (error) {
398
+ // If fetching wallets fails, return empty array
399
+ this.logger.debug('[getConnectedAccounts] Failed to fetch wallets from Waas client', {
400
+ error,
401
+ });
402
+ return [];
403
+ }
404
+ });
405
+ }
383
406
  generateTraceId() {
384
407
  // Generate a 128-bit trace ID
385
408
  // 128-bit = 16 bytes = 32 hexadecimal characters