@dynamic-labs/starknet 1.2.0-alpha.1 → 1.2.0

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,21 @@
1
1
 
2
+ ## [1.2.0](https://github.com/dynamic-labs/DynamicAuth/compare/v1.2.0-alpha.1...v1.2.0) (2024-02-29)
3
+
4
+
5
+ ### Features
6
+
7
+ * add networkValidationMode and deprecate enableForcedNetworkValidation ([#4776](https://github.com/dynamic-labs/DynamicAuth/issues/4776)) ([d826bf7](https://github.com/dynamic-labs/DynamicAuth/commit/d826bf704814e69466f811186499839472d107fc))
8
+ * include l1 fee to gas estimation ([#4743](https://github.com/dynamic-labs/DynamicAuth/issues/4743)) ([601a7ab](https://github.com/dynamic-labs/DynamicAuth/commit/601a7ab07791e89b07eb70f2960ff855eff84a87))
9
+ * add FilterChain helper function ([#4632](https://github.com/dynamic-labs/DynamicAuth/issues/4632)) ([56d474b](https://github.com/dynamic-labs/DynamicAuth/commit/56d474bf50a566774179ae929c4587ef841809bc))
10
+ * allow exporting embedded wallets key/seed using email auth session ([#4580](https://github.com/dynamic-labs/DynamicAuth/issues/4580)) ([7b7a826](https://github.com/dynamic-labs/DynamicAuth/commit/7b7a8265ff16057284a50046f2310e1abdca5e50))
11
+ * add retry email otp in headless ([#4639](https://github.com/dynamic-labs/DynamicAuth/issues/4639)) ([70630e2](https://github.com/dynamic-labs/DynamicAuth/commit/70630e28e4b370581add65fc5f69c41c28346cc6))
12
+ * add tabs to wallet list view ([#4619](https://github.com/dynamic-labs/DynamicAuth/issues/4619)) ([c552a8e](https://github.com/dynamic-labs/DynamicAuth/commit/c552a8ec9a484b6015e95e9b3b30cd1cd151a45b))
13
+
14
+ ### Bug Fixes
15
+
16
+ * enable Banxa for all chains ([#4791](https://github.com/dynamic-labs/DynamicAuth/issues/4791)) ([#4823](https://github.com/dynamic-labs/DynamicAuth/issues/4823)) ([18f76f7](https://github.com/dynamic-labs/DynamicAuth/commit/18f76f7798c58009a70a8322e87e78047a6e33a0))
17
+ * fix universal links when using walletconnect ([#4773](https://github.com/dynamic-labs/DynamicAuth/issues/4773)) ([#4779](https://github.com/dynamic-labs/DynamicAuth/issues/4779)) ([3186ef8](https://github.com/dynamic-labs/DynamicAuth/commit/3186ef8896cebd750d2998ad9cc43e4bd11a594a))
18
+
2
19
  ## [1.2.0-alpha.1](https://github.com/dynamic-labs/DynamicAuth/compare/v1.2.0-alpha.0...v1.2.0-alpha.1) (2024-02-09)
3
20
 
4
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/starknet",
3
- "version": "1.2.0-alpha.1",
3
+ "version": "1.2.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -31,11 +31,11 @@
31
31
  "text-encoding": "0.7.0",
32
32
  "starknetkit": "1.1.3",
33
33
  "@dynamic-labs/sdk-api": "0.0.363",
34
- "@dynamic-labs/rpc-providers": "1.2.0-alpha.1",
35
- "@dynamic-labs/types": "1.2.0-alpha.1",
36
- "@dynamic-labs/utils": "1.2.0-alpha.1",
37
- "@dynamic-labs/wallet-book": "1.2.0-alpha.1",
38
- "@dynamic-labs/wallet-connector-core": "1.2.0-alpha.1"
34
+ "@dynamic-labs/rpc-providers": "1.2.0",
35
+ "@dynamic-labs/types": "1.2.0",
36
+ "@dynamic-labs/utils": "1.2.0",
37
+ "@dynamic-labs/wallet-book": "1.2.0",
38
+ "@dynamic-labs/wallet-connector-core": "1.2.0"
39
39
  },
40
40
  "peerDependencies": {}
41
41
  }
@@ -97,8 +97,10 @@ class StarknetWalletConnector extends walletConnectorCore.WalletConnectorBase {
97
97
  fetchPublicAddress() {
98
98
  return _tslib.__awaiter(this, void 0, void 0, function* () {
99
99
  const wallet = this.getWallet();
100
- yield (wallet === null || wallet === void 0 ? void 0 : wallet.isPreauthorized());
101
- yield this.connect();
100
+ if (wallet && !(wallet === null || wallet === void 0 ? void 0 : wallet.isConnected)) {
101
+ yield (wallet === null || wallet === void 0 ? void 0 : wallet.isPreauthorized());
102
+ yield this.connect();
103
+ }
102
104
  return Promise.resolve(wallet === null || wallet === void 0 ? void 0 : wallet.selectedAddress);
103
105
  });
104
106
  }
@@ -93,8 +93,10 @@ class StarknetWalletConnector extends WalletConnectorBase {
93
93
  fetchPublicAddress() {
94
94
  return __awaiter(this, void 0, void 0, function* () {
95
95
  const wallet = this.getWallet();
96
- yield (wallet === null || wallet === void 0 ? void 0 : wallet.isPreauthorized());
97
- yield this.connect();
96
+ if (wallet && !(wallet === null || wallet === void 0 ? void 0 : wallet.isConnected)) {
97
+ yield (wallet === null || wallet === void 0 ? void 0 : wallet.isPreauthorized());
98
+ yield this.connect();
99
+ }
98
100
  return Promise.resolve(wallet === null || wallet === void 0 ? void 0 : wallet.selectedAddress);
99
101
  });
100
102
  }