@dynamic-labs/wagmi-connector 0.16.0-RC.6 → 0.16.0-RC.7

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,25 @@
1
1
 
2
+ ## [0.16.0-RC.7](https://github.com/dynamic-labs/DynamicAuth/compare/v0.16.0-RC.6...v0.16.0-RC.7) (2023-03-27)
3
+
4
+
5
+ ### Features
6
+
7
+ * support phantom evm in non-override mode ([6505dfa](https://github.com/dynamic-labs/DynamicAuth/commit/6505dfa15640c775bc3c9a25c830b64ad9d5c4ce))
8
+ * update user profile ui ([#1670](https://github.com/dynamic-labs/DynamicAuth/issues/1670)) ([13220fa](https://github.com/dynamic-labs/DynamicAuth/commit/13220faee806a94d3594c21f61cf00ad9eb23dbf))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **CustomerCallbacks:** make sure that we always call customer callbacks ([5013508](https://github.com/dynamic-labs/DynamicAuth/commit/5013508207d3c55a591b4e781e12049757528526))
14
+ * do not filter out magic even if all chains are disabled ([6970129](https://github.com/dynamic-labs/DynamicAuth/commit/697012962909427ca30c4426e86c7b080261e76d))
15
+ * **email_wallet:** display loading state for magic auth ([ebab810](https://github.com/dynamic-labs/DynamicAuth/commit/ebab81041c7988cd6b239ab4614755b693b6f3b4))
16
+ * exclude flow from primary wallet sync hook ([d6fc719](https://github.com/dynamic-labs/DynamicAuth/commit/d6fc719f9c382b66666a7aebdbea71b92e9df43b))
17
+ * **magic_wallet:** disconnect user when magic is logged out ([8573cb5](https://github.com/dynamic-labs/DynamicAuth/commit/8573cb50231da281c534d3f83a05aa3f7b55bd14))
18
+ * **magic_wallet:** prevent failure when email is edited ([dd7cbbb](https://github.com/dynamic-labs/DynamicAuth/commit/dd7cbbb823aa65ef1df80a5dcf909aff961c37ce))
19
+ * **NetworkPicker:** make sure that we use correct network picker on 'network not supported' step ([2062d5f](https://github.com/dynamic-labs/DynamicAuth/commit/2062d5fb2ad68c2b44c70445c0146cc7b9ee56bc))
20
+ * remove dep on multi-wallet in wagmi connector ([e8069b3](https://github.com/dynamic-labs/DynamicAuth/commit/e8069b30a39728e8175880838e2bd3e30c0adb1f))
21
+ * wallet transfer icon size ([77409bd](https://github.com/dynamic-labs/DynamicAuth/commit/77409bd0c1f674be26c93786235bd9f95d5b29ad))
22
+
2
23
  ## [0.16.0-RC.6](https://github.com/dynamic-labs/DynamicAuth/compare/v0.16.0-RC.5...v0.16.0-RC.6) (2023-03-21)
3
24
 
4
25
 
package/index.cjs CHANGED
@@ -7,7 +7,6 @@ var wagmi = require('wagmi');
7
7
  var _public = require('wagmi/providers/public');
8
8
  var sdkReact = require('@dynamic-labs/sdk-react');
9
9
  var utils = require('ethers/lib/utils.js');
10
- var multiWallet = require('@dynamic-labs/multi-wallet');
11
10
  var allChains = require('wagmi/chains');
12
11
  var ethers = require('ethers');
13
12
 
@@ -1188,7 +1187,7 @@ class Connector extends wagmi.Connector {
1188
1187
  connect(config) {
1189
1188
  return __awaiter(this, void 0, void 0, function* () {
1190
1189
  if (!this.walletConnector) {
1191
- throw new multiWallet.DynamicError('WalletConnector is not defined');
1190
+ throw new Error('WalletConnector is not defined');
1192
1191
  }
1193
1192
  const account = yield this.getAccount();
1194
1193
  this.setupEventListeners();
@@ -1228,7 +1227,7 @@ class Connector extends wagmi.Connector {
1228
1227
  return __awaiter(this, void 0, void 0, function* () {
1229
1228
  const address = yield (_a = this.walletConnector) === null || _a === void 0 ? void 0 : _a.fetchPublicAddress();
1230
1229
  if (!address) {
1231
- throw new multiWallet.DynamicError('Not connected');
1230
+ throw new Error('Not connected');
1232
1231
  }
1233
1232
  return utils.getAddress(address);
1234
1233
  });
@@ -1236,11 +1235,11 @@ class Connector extends wagmi.Connector {
1236
1235
  getChainId() {
1237
1236
  return __awaiter(this, void 0, void 0, function* () {
1238
1237
  if (!this.walletConnector) {
1239
- throw new multiWallet.DynamicError('WalletConnector is not defined');
1238
+ throw new Error('WalletConnector is not defined');
1240
1239
  }
1241
1240
  const network = yield this.walletConnector.getNetwork();
1242
1241
  if (!network) {
1243
- throw new multiWallet.DynamicError('Network is not defined');
1242
+ throw new Error('Network is not defined');
1244
1243
  }
1245
1244
  return network;
1246
1245
  });
@@ -1289,7 +1288,7 @@ class Connector extends wagmi.Connector {
1289
1288
  });
1290
1289
  }
1291
1290
  watchAsset(asset) {
1292
- throw new multiWallet.DynamicError('Method not implemented.');
1291
+ throw new Error('Method not implemented.');
1293
1292
  }
1294
1293
  }
1295
1294
 
package/index.js CHANGED
@@ -3,7 +3,6 @@ import { Connector as Connector$1, useClient, useConnect, useDisconnect, mainnet
3
3
  import { publicProvider } from 'wagmi/providers/public';
4
4
  import { useDynamicContext } from '@dynamic-labs/sdk-react';
5
5
  import { getAddress, hexValue } from 'ethers/lib/utils.js';
6
- import { DynamicError } from '@dynamic-labs/multi-wallet';
7
6
  import * as allChains from 'wagmi/chains';
8
7
  import { providers } from 'ethers';
9
8
 
@@ -1161,7 +1160,7 @@ class Connector extends Connector$1 {
1161
1160
  connect(config) {
1162
1161
  return __awaiter(this, void 0, void 0, function* () {
1163
1162
  if (!this.walletConnector) {
1164
- throw new DynamicError('WalletConnector is not defined');
1163
+ throw new Error('WalletConnector is not defined');
1165
1164
  }
1166
1165
  const account = yield this.getAccount();
1167
1166
  this.setupEventListeners();
@@ -1201,7 +1200,7 @@ class Connector extends Connector$1 {
1201
1200
  return __awaiter(this, void 0, void 0, function* () {
1202
1201
  const address = yield (_a = this.walletConnector) === null || _a === void 0 ? void 0 : _a.fetchPublicAddress();
1203
1202
  if (!address) {
1204
- throw new DynamicError('Not connected');
1203
+ throw new Error('Not connected');
1205
1204
  }
1206
1205
  return getAddress(address);
1207
1206
  });
@@ -1209,11 +1208,11 @@ class Connector extends Connector$1 {
1209
1208
  getChainId() {
1210
1209
  return __awaiter(this, void 0, void 0, function* () {
1211
1210
  if (!this.walletConnector) {
1212
- throw new DynamicError('WalletConnector is not defined');
1211
+ throw new Error('WalletConnector is not defined');
1213
1212
  }
1214
1213
  const network = yield this.walletConnector.getNetwork();
1215
1214
  if (!network) {
1216
- throw new DynamicError('Network is not defined');
1215
+ throw new Error('Network is not defined');
1217
1216
  }
1218
1217
  return network;
1219
1218
  });
@@ -1262,7 +1261,7 @@ class Connector extends Connector$1 {
1262
1261
  });
1263
1262
  }
1264
1263
  watchAsset(asset) {
1265
- throw new DynamicError('Method not implemented.');
1264
+ throw new Error('Method not implemented.');
1266
1265
  }
1267
1266
  }
1268
1267
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/wagmi-connector",
3
- "version": "0.16.0-RC.6",
3
+ "version": "0.16.0-RC.7",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,8 +12,7 @@
12
12
  "react": "^17.0.2 || ^18.0.0",
13
13
  "ethers": "^5.7.2",
14
14
  "wagmi": "~0.10.3",
15
- "@dynamic-labs/multi-wallet": "0.16.0-RC.6",
16
- "@dynamic-labs/sdk-react": "0.16.0-RC.6"
15
+ "@dynamic-labs/sdk-react": "0.16.0-RC.7"
17
16
  },
18
17
  "license": "MIT",
19
18
  "module": "./index.js",