@dynamic-labs/waas-sui 4.12.2 → 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,4 +1,12 @@
1
1
 
2
+ ### [4.12.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.12.2...v4.12.3) (2025-04-17)
3
+
4
+
5
+ ### Features
6
+
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
+
2
10
  ### [4.12.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.12.1...v4.12.2) (2025-04-16)
3
11
 
4
12
 
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";
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";
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",
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",
25
- "@dynamic-labs/assert-package-version": "4.12.2",
26
- "@dynamic-labs/logger": "4.12.2",
27
- "@dynamic-labs/rpc-providers": "4.12.2",
28
- "@dynamic-labs/utils": "4.12.2",
29
- "@dynamic-labs/wallet-book": "4.12.2",
30
- "@dynamic-labs/wallet-connector-core": "4.12.2"
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
  });