@dynamic-labs/waas-sui 4.12.2-preview.0 → 4.12.3

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,15 +1,27 @@
1
1
 
2
- ### [4.12.2-preview.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.12.1...v4.12.2-preview.0) (2025-04-15)
2
+ ### [4.12.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.12.2...v4.12.3) (2025-04-17)
3
3
 
4
4
 
5
5
  ### Features
6
6
 
7
- * add zksync smart accounts to global wallets ([cbbdec1](https://github.com/dynamic-labs/dynamic-auth/commit/cbbdec1f74fb19dcf739e10fdff5c4cfde28cfc6))
7
+ * default waas sui connector network based on enabled chains ([#8570](https://github.com/dynamic-labs/dynamic-auth/issues/8570)) ([9a11b01](https://github.com/dynamic-labs/dynamic-auth/commit/9a11b019bc8ed51873de9d24c93bcc3c1ed6406b))
8
+ * dynamic waas can sign smart account transactiosn ([#8551](https://github.com/dynamic-labs/dynamic-auth/issues/8551)) ([f4882eb](https://github.com/dynamic-labs/dynamic-auth/commit/f4882ebc869b5af72c3beb187bd1a98b83c06e04))
9
+
10
+ ### [4.12.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.12.1...v4.12.2) (2025-04-16)
11
+
12
+
13
+ ### Features
14
+
15
+ * (GVTY-2971) add sui to primary wallet chain list ([#8545](https://github.com/dynamic-labs/dynamic-auth/issues/8545)) ([9ed968f](https://github.com/dynamic-labs/dynamic-auth/commit/9ed968f4a49539262316e76158c5419e1c8e2e11))
16
+ * (GVTY-2975) attach sender for waas sui wallet sign transaction ([#8553](https://github.com/dynamic-labs/dynamic-auth/issues/8553)) ([bc06328](https://github.com/dynamic-labs/dynamic-auth/commit/bc06328e5f5b0170367ee6610d23ca7041926743))
17
+ * add zksync smart accounts to global wallets ([#8479](https://github.com/dynamic-labs/dynamic-auth/issues/8479)) ([fac9ed1](https://github.com/dynamic-labs/dynamic-auth/commit/fac9ed134bd21dc31a3c17d00c9c85027aeec6b1))
8
18
 
9
19
 
10
20
  ### Bug Fixes
11
21
 
12
22
  * **bridge:** wrong wallet/chain displaying when switching bridge chains ([#8541](https://github.com/dynamic-labs/dynamic-auth/issues/8541)) ([c9915d2](https://github.com/dynamic-labs/dynamic-auth/commit/c9915d2ede29aac0063ff89539a44e626285d8d0))
23
+ * don't show mobile store buttons if there's no mobile download link for the wallet ([#8542](https://github.com/dynamic-labs/dynamic-auth/issues/8542)) ([f86bf2b](https://github.com/dynamic-labs/dynamic-auth/commit/f86bf2b3b93392b5b9e51ed075e93f10f64d3368))
24
+ * embedded wallet fallback to first vc if vc is not on primary chain ([#8552](https://github.com/dynamic-labs/dynamic-auth/issues/8552)) ([634c323](https://github.com/dynamic-labs/dynamic-auth/commit/634c3236ad24abd9ed72aabe4ec928cf1385a586))
13
25
 
14
26
  ### [4.12.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.12.0...v4.12.1) (2025-04-15)
15
27
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.12.2-preview.0";
6
+ var version = "4.12.3";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.12.2-preview.0";
2
+ var version = "4.12.3";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/waas-sui",
3
- "version": "4.12.2-preview.0",
3
+ "version": "4.12.3",
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,16 +18,16 @@
18
18
  },
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
- "@dynamic-labs-wallet/sui": "0.0.60",
21
+ "@dynamic-labs-wallet/sui": "0.0.63",
22
22
  "@mysten/sui": "1.24.0",
23
23
  "@mysten/wallet-standard": "0.13.29",
24
- "@dynamic-labs/sui": "4.12.2-preview.0",
25
- "@dynamic-labs/assert-package-version": "4.12.2-preview.0",
26
- "@dynamic-labs/logger": "4.12.2-preview.0",
27
- "@dynamic-labs/rpc-providers": "4.12.2-preview.0",
28
- "@dynamic-labs/utils": "4.12.2-preview.0",
29
- "@dynamic-labs/wallet-book": "4.12.2-preview.0",
30
- "@dynamic-labs/wallet-connector-core": "4.12.2-preview.0"
24
+ "@dynamic-labs/sui": "4.12.3",
25
+ "@dynamic-labs/assert-package-version": "4.12.3",
26
+ "@dynamic-labs/logger": "4.12.3",
27
+ "@dynamic-labs/rpc-providers": "4.12.3",
28
+ "@dynamic-labs/utils": "4.12.3",
29
+ "@dynamic-labs/wallet-book": "4.12.3",
30
+ "@dynamic-labs/wallet-connector-core": "4.12.3"
31
31
  },
32
32
  "peerDependencies": {}
33
33
  }
@@ -22,16 +22,20 @@ class DynamicWaasSuiConnector extends sui.SuiWalletConnector {
22
22
  }
23
23
  connect() {
24
24
  return _tslib.__awaiter(this, void 0, void 0, function* () {
25
+ var _a, _b, _c;
25
26
  this.getWaasWalletClient();
26
27
  if (!this.activeNetworkId) {
27
- this.activeNetworkId = '501'; // default to mainnet
28
+ this.activeNetworkId =
29
+ ((_c = (_b = (_a = this.suiNetworks) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.networkId) === null || _c === void 0 ? void 0 : _c.toString()) || '501';
28
30
  }
29
31
  });
30
32
  }
31
33
  getNetwork() {
32
34
  return _tslib.__awaiter(this, void 0, void 0, function* () {
35
+ var _a, _b, _c;
33
36
  if (!this.activeNetworkId) {
34
- this.activeNetworkId = '501'; // fallback to mainnet
37
+ this.activeNetworkId =
38
+ ((_c = (_b = (_a = this.suiNetworks) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.networkId) === null || _c === void 0 ? void 0 : _c.toString()) || '501';
35
39
  }
36
40
  return this.activeNetworkId;
37
41
  });
@@ -18,16 +18,20 @@ class DynamicWaasSuiConnector extends SuiWalletConnector {
18
18
  }
19
19
  connect() {
20
20
  return __awaiter(this, void 0, void 0, function* () {
21
+ var _a, _b, _c;
21
22
  this.getWaasWalletClient();
22
23
  if (!this.activeNetworkId) {
23
- this.activeNetworkId = '501'; // default to mainnet
24
+ this.activeNetworkId =
25
+ ((_c = (_b = (_a = this.suiNetworks) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.networkId) === null || _c === void 0 ? void 0 : _c.toString()) || '501';
24
26
  }
25
27
  });
26
28
  }
27
29
  getNetwork() {
28
30
  return __awaiter(this, void 0, void 0, function* () {
31
+ var _a, _b, _c;
29
32
  if (!this.activeNetworkId) {
30
- this.activeNetworkId = '501'; // fallback to mainnet
33
+ this.activeNetworkId =
34
+ ((_c = (_b = (_a = this.suiNetworks) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.networkId) === null || _c === void 0 ? void 0 : _c.toString()) || '501';
31
35
  }
32
36
  return this.activeNetworkId;
33
37
  });
@@ -59,6 +59,10 @@ class WaasSuiWallet extends sui.SuiWallet {
59
59
  throw new Error('SUI wallet connector not found');
60
60
  }
61
61
  yield suiWalletConnector.connect();
62
+ transaction.setSender(this.address);
63
+ suiWalletConnector.getWalletClientByAddress({
64
+ accountAddress: this.address,
65
+ });
62
66
  const signedTransaction = yield suiWalletConnector.signTransaction(transaction);
63
67
  return signedTransaction;
64
68
  });
@@ -55,6 +55,10 @@ class WaasSuiWallet extends SuiWallet {
55
55
  throw new Error('SUI wallet connector not found');
56
56
  }
57
57
  yield suiWalletConnector.connect();
58
+ transaction.setSender(this.address);
59
+ suiWalletConnector.getWalletClientByAddress({
60
+ accountAddress: this.address,
61
+ });
58
62
  const signedTransaction = yield suiWalletConnector.signTransaction(transaction);
59
63
  return signedTransaction;
60
64
  });