@dynamic-labs/ethereum 0.18.0-RC.16 → 0.18.0-RC.18

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,36 @@
1
1
 
2
+ ## [0.18.0-RC.18](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.0-RC.17...v0.18.0-RC.18) (2023-07-24)
3
+
4
+ ### Bug Fixes
5
+
6
+ * do not call connectSuccess when already connected ([#2705](https://github.com/dynamic-labs/DynamicAuth/issues/2705)) ([12a65fb](https://github.com/dynamic-labs/DynamicAuth/commit/12a65fb5e59a38de0f5fb0e7eab3ce3d558f201f))
7
+ * do not proceed to authSuccess if there are still missing fields ([#2712](https://github.com/dynamic-labs/DynamicAuth/issues/2712)) ([2fb10ed](https://github.com/dynamic-labs/DynamicAuth/commit/2fb10ed7f9c28476d61856887b517bdae10b80f4))
8
+ * add legacy safari detection ([#2733](https://github.com/dynamic-labs/DynamicAuth/issues/2733)) ([1b21c57](https://github.com/dynamic-labs/DynamicAuth/commit/1b21c57c1fd7c458f499cc09ef60364c314b0464))
9
+
10
+ ## [0.18.0-RC.17](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.0-RC.16...v0.18.0-RC.17) (2023-07-24)
11
+
12
+
13
+ ### Features
14
+
15
+ * add ongoingVerifications object disclaiming which verifications are in progress ([#2633](https://github.com/dynamic-labs/DynamicAuth/issues/2633)) ([948c778](https://github.com/dynamic-labs/DynamicAuth/commit/948c778e5955fcf80e31ac7f368e7605cd7eb7d5))
16
+ * add rabby wallet support ([#2590](https://github.com/dynamic-labs/DynamicAuth/issues/2590)) ([d70c49d](https://github.com/dynamic-labs/DynamicAuth/commit/d70c49d0b348ced3ee5691fdfc19b3eef5ba79db))
17
+ * **DYN-2399:** send dynamicContext props from sdk to api ([#2659](https://github.com/dynamic-labs/DynamicAuth/issues/2659)) ([f06787b](https://github.com/dynamic-labs/DynamicAuth/commit/f06787bf6ec1dc69c53ee6287fd3721d47901ad1))
18
+ * introduce MenuList and Dropdown components to unify previously redundant implementations ([#2675](https://github.com/dynamic-labs/DynamicAuth/issues/2675)) ([dfc63a5](https://github.com/dynamic-labs/DynamicAuth/commit/dfc63a5fef2c00cf0187e7a481dc3267d44f6cc3))
19
+ * **QNTM-101:** add loading state to button ([#2691](https://github.com/dynamic-labs/DynamicAuth/issues/2691)) ([5a7b539](https://github.com/dynamic-labs/DynamicAuth/commit/5a7b5392c4b17cc26ecc621d11afdf37f2f10c65))
20
+ * update blocto version to v2 ([#2651](https://github.com/dynamic-labs/DynamicAuth/issues/2651)) ([441f85e](https://github.com/dynamic-labs/DynamicAuth/commit/441f85efa3921a57b9b282631016162902c8aabb))
21
+ * verify connected wallets network at runtime ([#2667](https://github.com/dynamic-labs/DynamicAuth/issues/2667)) ([8fa8dcc](https://github.com/dynamic-labs/DynamicAuth/commit/8fa8dccdfcb56d9d76d0cd00a153a95e5d52b4dc))
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * correctly round balance numbers on widget ([#2625](https://github.com/dynamic-labs/DynamicAuth/issues/2625)) ([7b45483](https://github.com/dynamic-labs/DynamicAuth/commit/7b45483e7bdb458434b7787f9df930ba9acbc8e0))
27
+ * decrease NetworkNotSupported useEffects calls to avoid race condition ([#2731](https://github.com/dynamic-labs/DynamicAuth/issues/2731)) ([6a7baf1](https://github.com/dynamic-labs/DynamicAuth/commit/6a7baf1c63e82b27d03540d670603fe11685348a))
28
+ * **GVTY-58:** do not allow users to submit empty whitespace strings in onboarding form ([#2720](https://github.com/dynamic-labs/DynamicAuth/issues/2720)) ([916f27a](https://github.com/dynamic-labs/DynamicAuth/commit/916f27a5c880281245c71af3f16217cda5317c26))
29
+ * playwright tests were failing due to new cookies popup that overlapped sdk modal ([#2709](https://github.com/dynamic-labs/DynamicAuth/issues/2709)) ([9254777](https://github.com/dynamic-labs/DynamicAuth/commit/92547773047687fcc50ad6b895b1b59176d42af7))
30
+ * **QNTM-111:** call onConnectSuccess with correct wallet connector in… ([#2724](https://github.com/dynamic-labs/DynamicAuth/issues/2724)) ([159e78c](https://github.com/dynamic-labs/DynamicAuth/commit/159e78ce458762f0e2ccbaf2acbc81efde35830a))
31
+ * **QNTM-98:** improve connectedWallets state management and connected wallets events listeners ([#2696](https://github.com/dynamic-labs/DynamicAuth/issues/2696)) ([3a91a37](https://github.com/dynamic-labs/DynamicAuth/commit/3a91a371423f50d28640141d0ca6a643a8dcf25a))
32
+ * update broken safe icon ([#2713](https://github.com/dynamic-labs/DynamicAuth/issues/2713)) ([42943b4](https://github.com/dynamic-labs/DynamicAuth/commit/42943b4684c165ec103fbed0e69e691bee4d305f))
33
+
2
34
  ## [0.18.0-RC.16](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.0-RC.15...v0.18.0-RC.16) (2023-07-18)
3
35
 
4
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum",
3
- "version": "0.18.0-RC.16",
3
+ "version": "0.18.0-RC.18",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -32,11 +32,11 @@
32
32
  "ethers": "5.7.2",
33
33
  "eventemitter3": "5.0.1",
34
34
  "buffer": "6.0.3",
35
- "@dynamic-labs/rpc-providers": "0.18.0-RC.16",
36
- "@dynamic-labs/types": "0.18.0-RC.16",
37
- "@dynamic-labs/utils": "0.18.0-RC.16",
38
- "@dynamic-labs/wallet-book": "0.18.0-RC.16",
39
- "@dynamic-labs/wallet-connector-core": "0.18.0-RC.16"
35
+ "@dynamic-labs/rpc-providers": "0.18.0-RC.18",
36
+ "@dynamic-labs/types": "0.18.0-RC.18",
37
+ "@dynamic-labs/utils": "0.18.0-RC.18",
38
+ "@dynamic-labs/wallet-book": "0.18.0-RC.18",
39
+ "@dynamic-labs/wallet-connector-core": "0.18.0-RC.18"
40
40
  },
41
41
  "peerDependencies": {}
42
42
  }
@@ -160,6 +160,7 @@ _a.installedProviderLookup([
160
160
  { flag: 'isZerion', value: false },
161
161
  { flag: 'isMetaMask', value: true },
162
162
  { flag: 'isSuperb', value: false },
163
+ { flag: 'isRabby', value: false },
163
164
  ]);
164
165
  EthProviderHelper.BraveProvider = () => _a.installedProviderLookup([{ flag: 'isBraveWallet', value: true }]);
165
166
  EthProviderHelper.DawnProvider = () => _a.installedProviderLookup([{ flag: 'isDawn', value: true }]);
@@ -173,6 +174,7 @@ EthProviderHelper.TrustWalletProvider = () => _a.installedProviderLookup([{ flag
173
174
  EthProviderHelper.PhantomProvider = () => _a.installedProviderLookup([{ flag: 'isPhantom', value: true }]);
174
175
  EthProviderHelper.ZerionProvider = () => _a.installedProviderLookup([{ flag: 'isZerion', value: true }]);
175
176
  EthProviderHelper.SuperbProvider = () => _a.installedProviderLookup([{ flag: 'isSuperb', value: true }]);
177
+ EthProviderHelper.RabbyProvider = () => _a.installedProviderLookup([{ flag: 'isRabby', value: true }]);
176
178
  EthProviderHelper.UnknownInjectedProvider = () => _a.installedProviderLookup([
177
179
  { flag: 'isMetaMask', value: false },
178
180
  { flag: 'isExodus', value: false },
@@ -186,6 +188,7 @@ EthProviderHelper.UnknownInjectedProvider = () => _a.installedProviderLookup([
186
188
  { flag: 'isPhantom', value: false },
187
189
  { flag: 'isZerion', value: false },
188
190
  { flag: 'isSuperb', value: false },
191
+ { flag: 'isRabby', value: false },
189
192
  ]);
190
193
  EthProviderHelper.providers = {
191
194
  bloctoinjected: _a.BloctoProvider,
@@ -199,6 +202,7 @@ EthProviderHelper.providers = {
199
202
  metamask: _a.MetamaskProvider,
200
203
  opera: _a.OperaProvider,
201
204
  phantomevm: _a.PhantomProvider,
205
+ rabby: _a.RabbyProvider,
202
206
  superb: _a.SuperbProvider,
203
207
  trust: _a.TrustWalletProvider,
204
208
  zerion: _a.ZerionProvider,
@@ -16,6 +16,7 @@ export declare class EthProviderHelper {
16
16
  static PhantomProvider: Provider;
17
17
  static ZerionProvider: Provider;
18
18
  static SuperbProvider: Provider;
19
+ static RabbyProvider: Provider;
19
20
  static UnknownInjectedProvider: Provider;
20
21
  static providers: {
21
22
  [wallet: string]: Provider;
@@ -156,6 +156,7 @@ _a.installedProviderLookup([
156
156
  { flag: 'isZerion', value: false },
157
157
  { flag: 'isMetaMask', value: true },
158
158
  { flag: 'isSuperb', value: false },
159
+ { flag: 'isRabby', value: false },
159
160
  ]);
160
161
  EthProviderHelper.BraveProvider = () => _a.installedProviderLookup([{ flag: 'isBraveWallet', value: true }]);
161
162
  EthProviderHelper.DawnProvider = () => _a.installedProviderLookup([{ flag: 'isDawn', value: true }]);
@@ -169,6 +170,7 @@ EthProviderHelper.TrustWalletProvider = () => _a.installedProviderLookup([{ flag
169
170
  EthProviderHelper.PhantomProvider = () => _a.installedProviderLookup([{ flag: 'isPhantom', value: true }]);
170
171
  EthProviderHelper.ZerionProvider = () => _a.installedProviderLookup([{ flag: 'isZerion', value: true }]);
171
172
  EthProviderHelper.SuperbProvider = () => _a.installedProviderLookup([{ flag: 'isSuperb', value: true }]);
173
+ EthProviderHelper.RabbyProvider = () => _a.installedProviderLookup([{ flag: 'isRabby', value: true }]);
172
174
  EthProviderHelper.UnknownInjectedProvider = () => _a.installedProviderLookup([
173
175
  { flag: 'isMetaMask', value: false },
174
176
  { flag: 'isExodus', value: false },
@@ -182,6 +184,7 @@ EthProviderHelper.UnknownInjectedProvider = () => _a.installedProviderLookup([
182
184
  { flag: 'isPhantom', value: false },
183
185
  { flag: 'isZerion', value: false },
184
186
  { flag: 'isSuperb', value: false },
187
+ { flag: 'isRabby', value: false },
185
188
  ]);
186
189
  EthProviderHelper.providers = {
187
190
  bloctoinjected: _a.BloctoProvider,
@@ -195,6 +198,7 @@ EthProviderHelper.providers = {
195
198
  metamask: _a.MetamaskProvider,
196
199
  opera: _a.OperaProvider,
197
200
  phantomevm: _a.PhantomProvider,
201
+ rabby: _a.RabbyProvider,
198
202
  superb: _a.SuperbProvider,
199
203
  trust: _a.TrustWalletProvider,
200
204
  zerion: _a.ZerionProvider,
package/src/index.cjs CHANGED
@@ -27,6 +27,7 @@ var PhantomEvm = require('./injected/PhantomEvm.cjs');
27
27
  var Trust = require('./injected/Trust.cjs');
28
28
  var UnknownInjectedWallet = require('./injected/UnknownInjectedWallet.cjs');
29
29
  var Zerion = require('./injected/Zerion.cjs');
30
+ var Rabby = require('./injected/Rabby.cjs');
30
31
 
31
32
  const EthereumWalletConnectors = (props) => [
32
33
  ...index.injectedWallets,
@@ -50,4 +51,5 @@ exports.PhantomEvm = PhantomEvm.PhantomEvm;
50
51
  exports.Trust = Trust.Trust;
51
52
  exports.UnknownInjectedWallet = UnknownInjectedWallet.UnknownInjectedWallet;
52
53
  exports.Zerion = Zerion.Zerion;
54
+ exports.Rabby = Rabby.Rabby;
53
55
  exports.EthereumWalletConnectors = EthereumWalletConnectors;
package/src/index.js CHANGED
@@ -24,6 +24,7 @@ export { PhantomEvm } from './injected/PhantomEvm.js';
24
24
  export { Trust } from './injected/Trust.js';
25
25
  export { UnknownInjectedWallet } from './injected/UnknownInjectedWallet.js';
26
26
  export { Zerion } from './injected/Zerion.js';
27
+ export { Rabby } from './injected/Rabby.js';
27
28
 
28
29
  const EthereumWalletConnectors = (props) => [
29
30
  ...injectedWallets,
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var InjectedWalletBase = require('./InjectedWalletBase.cjs');
6
+
7
+ class Rabby extends InjectedWalletBase {
8
+ constructor() {
9
+ super(...arguments);
10
+ this.name = 'Rabby';
11
+ this.walletConnectorFallback = true;
12
+ }
13
+ }
14
+
15
+ exports.Rabby = Rabby;
@@ -0,0 +1,5 @@
1
+ import InjectedWalletBase from './InjectedWalletBase';
2
+ export declare class Rabby extends InjectedWalletBase {
3
+ name: string;
4
+ walletConnectorFallback: boolean;
5
+ }
@@ -0,0 +1,11 @@
1
+ import InjectedWalletBase from './InjectedWalletBase.js';
2
+
3
+ class Rabby extends InjectedWalletBase {
4
+ constructor() {
5
+ super(...arguments);
6
+ this.name = 'Rabby';
7
+ this.walletConnectorFallback = true;
8
+ }
9
+ }
10
+
11
+ export { Rabby };
@@ -15,6 +15,7 @@ var Trust = require('./Trust.cjs');
15
15
  var UnknownInjectedWallet = require('./UnknownInjectedWallet.cjs');
16
16
  var Zerion = require('./Zerion.cjs');
17
17
  var Superb = require('./Superb.cjs');
18
+ var Rabby = require('./Rabby.cjs');
18
19
 
19
20
  const injectedWallets = [
20
21
  BloctoInjected.BloctoInjected,
@@ -30,6 +31,7 @@ const injectedWallets = [
30
31
  UnknownInjectedWallet.UnknownInjectedWallet,
31
32
  Zerion.Zerion,
32
33
  Superb.Superb,
34
+ Rabby.Rabby,
33
35
  ];
34
36
 
35
37
  exports.BloctoInjected = BloctoInjected.BloctoInjected;
@@ -44,4 +46,5 @@ exports.PhantomEvm = PhantomEvm.PhantomEvm;
44
46
  exports.Trust = Trust.Trust;
45
47
  exports.UnknownInjectedWallet = UnknownInjectedWallet.UnknownInjectedWallet;
46
48
  exports.Zerion = Zerion.Zerion;
49
+ exports.Rabby = Rabby.Rabby;
47
50
  exports.injectedWallets = injectedWallets;
@@ -11,4 +11,5 @@ export * from './PhantomEvm';
11
11
  export * from './Trust';
12
12
  export * from './UnknownInjectedWallet';
13
13
  export * from './Zerion';
14
+ export * from './Rabby';
14
15
  export declare const injectedWallets: WalletConnectorConstructor[];
@@ -23,6 +23,8 @@ export { UnknownInjectedWallet } from './UnknownInjectedWallet.js';
23
23
  import { Zerion } from './Zerion.js';
24
24
  export { Zerion } from './Zerion.js';
25
25
  import { Superb } from './Superb.js';
26
+ import { Rabby } from './Rabby.js';
27
+ export { Rabby } from './Rabby.js';
26
28
 
27
29
  const injectedWallets = [
28
30
  BloctoInjected,
@@ -38,6 +40,7 @@ const injectedWallets = [
38
40
  UnknownInjectedWallet,
39
41
  Zerion,
40
42
  Superb,
43
+ Rabby,
41
44
  ];
42
45
 
43
46
  export { injectedWallets };
package/src/types.d.ts CHANGED
@@ -19,5 +19,5 @@ export type IEthereum = {
19
19
  method: T;
20
20
  } | object) => Promise<T extends 'eth_requestAccounts' ? [string] : object>;
21
21
  };
22
- export type ProviderFlag = 'isDawn' | 'isBraveWallet' | 'isCoinbaseWallet' | 'isFrame' | 'isGamestop' | 'isMetaMask' | 'isExodus' | 'isOpera' | 'isBlocto' | 'isTrustWallet' | 'isZerion' | 'isPhantom' | 'isSuperb';
22
+ export type ProviderFlag = 'isDawn' | 'isBraveWallet' | 'isCoinbaseWallet' | 'isFrame' | 'isGamestop' | 'isMetaMask' | 'isExodus' | 'isOpera' | 'isBlocto' | 'isTrustWallet' | 'isZerion' | 'isPhantom' | 'isSuperb' | 'isRabby';
23
23
  export type EthProviderCondition = ProviderCondition<ProviderFlag>;
@@ -14,6 +14,7 @@ const filteredWalletConnectWallets = [
14
14
  'lilico',
15
15
  'Keplr',
16
16
  'Zerion',
17
+ 'Rabby',
17
18
  ];
18
19
  const fetchWalletConnectWallets = ({ isWalletConnectV2Enabled, walletBook, }) => {
19
20
  var _a;
@@ -10,6 +10,7 @@ const filteredWalletConnectWallets = [
10
10
  'lilico',
11
11
  'Keplr',
12
12
  'Zerion',
13
+ 'Rabby',
13
14
  ];
14
15
  const fetchWalletConnectWallets = ({ isWalletConnectV2Enabled, walletBook, }) => {
15
16
  var _a;