@dynamic-labs/cosmos 4.5.0 → 4.5.2

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,26 @@
1
1
 
2
+ ### [4.5.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.5.1...v4.5.2) (2025-02-08)
3
+
4
+
5
+ ### Features
6
+
7
+ * add getEnabledNetworks method to wallet connectors ([#8000](https://github.com/dynamic-labs/dynamic-auth/issues/8000)) ([450cdcd](https://github.com/dynamic-labs/dynamic-auth/commit/450cdcd98b11c734fb9c9d97bb1813cf5538e85e))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * add fallback for exchange rate lookup failure ([#7994](https://github.com/dynamic-labs/dynamic-auth/issues/7994)) ([1359724](https://github.com/dynamic-labs/dynamic-auth/commit/1359724ec2931c61324bfe8d73110d862ebc016f))
13
+ * add USDT and USDC as hardcoded to 1 ([#8012](https://github.com/dynamic-labs/dynamic-auth/issues/8012)) ([92dcd2f](https://github.com/dynamic-labs/dynamic-auth/commit/92dcd2f6a90e8eeca034edf1682336896180281e))
14
+ * underflow bigint issue with small sol transfers ([#8006](https://github.com/dynamic-labs/dynamic-auth/issues/8006)) ([3fd00c2](https://github.com/dynamic-labs/dynamic-auth/commit/3fd00c2f0d0e10333f0206cb80197375de836003))
15
+ * view address react 17 compatibility ([#8002](https://github.com/dynamic-labs/dynamic-auth/issues/8002)) ([782e0f3](https://github.com/dynamic-labs/dynamic-auth/commit/782e0f323f388cac1d0773420ae45595aa806c26))
16
+
17
+ ### [4.5.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.5.0...v4.5.1) (2025-02-05)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * improve sdk performance ([#7992](https://github.com/dynamic-labs/dynamic-auth/issues/7992)) ([7c541d4](https://github.com/dynamic-labs/dynamic-auth/commit/7c541d498b3afe708e468327e53c839826029490))
23
+
2
24
  ## [4.5.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.4.4...v4.5.0) (2025-02-04)
3
25
 
4
26
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.5.0";
6
+ var version = "4.5.2";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.5.0";
2
+ var version = "4.5.2";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/cosmos",
3
- "version": "4.5.0",
3
+ "version": "4.5.2",
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",
@@ -19,11 +19,11 @@
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
21
  "@keplr-wallet/types": "0.12.121",
22
- "@dynamic-labs/assert-package-version": "4.5.0",
23
- "@dynamic-labs/types": "4.5.0",
24
- "@dynamic-labs/utils": "4.5.0",
25
- "@dynamic-labs/wallet-book": "4.5.0",
26
- "@dynamic-labs/wallet-connector-core": "4.5.0"
22
+ "@dynamic-labs/assert-package-version": "4.5.2",
23
+ "@dynamic-labs/types": "4.5.2",
24
+ "@dynamic-labs/utils": "4.5.2",
25
+ "@dynamic-labs/wallet-book": "4.5.2",
26
+ "@dynamic-labs/wallet-connector-core": "4.5.2"
27
27
  },
28
28
  "peerDependencies": {}
29
29
  }
@@ -166,6 +166,17 @@ class CosmosWalletConnector extends walletConnectorCore.WalletConnectorBase {
166
166
  return JSON.stringify(signatureWithPrefix);
167
167
  });
168
168
  }
169
+ getBlockExplorerUrlsForCurrentNetwork() {
170
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
171
+ return ['https://www.mintscan.io/cosmos/'];
172
+ });
173
+ }
174
+ getEnabledNetworks() {
175
+ return this.evmNetworks;
176
+ }
177
+ supportsNetworkSwitching() {
178
+ return true;
179
+ }
169
180
  }
170
181
 
171
182
  exports.CosmosWalletConnector = CosmosWalletConnector;
@@ -53,5 +53,8 @@ export declare abstract class CosmosWalletConnector extends WalletConnectorBase
53
53
  isInstalledOnBrowser(): boolean;
54
54
  _handleAccountChange(): Promise<void>;
55
55
  signMessage(messageToSign: string): Promise<string | undefined>;
56
+ getBlockExplorerUrlsForCurrentNetwork(): Promise<string[]>;
57
+ getEnabledNetworks(): GenericNetwork[];
58
+ supportsNetworkSwitching(): boolean;
56
59
  }
57
60
  export {};
@@ -162,6 +162,17 @@ class CosmosWalletConnector extends WalletConnectorBase {
162
162
  return JSON.stringify(signatureWithPrefix);
163
163
  });
164
164
  }
165
+ getBlockExplorerUrlsForCurrentNetwork() {
166
+ return __awaiter(this, void 0, void 0, function* () {
167
+ return ['https://www.mintscan.io/cosmos/'];
168
+ });
169
+ }
170
+ getEnabledNetworks() {
171
+ return this.evmNetworks;
172
+ }
173
+ supportsNetworkSwitching() {
174
+ return true;
175
+ }
165
176
  }
166
177
 
167
178
  export { CosmosWalletConnector, DYNAMIC_COSMOS_NETWORK_ID };