@dynamic-labs/ethereum 2.0.5 → 2.0.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,19 @@
1
1
 
2
+ ### [2.0.7](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.6...v2.0.7) (2024-05-15)
3
+
4
+
5
+ ### Features
6
+
7
+ * add authFailure and authInit events ([#5461](https://github.com/dynamic-labs/DynamicAuth/issues/5461)) ([e02e1ad](https://github.com/dynamic-labs/DynamicAuth/commit/e02e1ad36b378e3b2c609fe5bfb2d37aa6a363e0))
8
+
9
+ ### [2.0.6](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.5...v2.0.6) (2024-05-03)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * fallback to walletconnect for zerion on mobile ([#5536](https://github.com/dynamic-labs/DynamicAuth/issues/5536)) ([#5537](https://github.com/dynamic-labs/DynamicAuth/issues/5537)) ([e013ee7](https://github.com/dynamic-labs/DynamicAuth/commit/e013ee7188f4f98fee478a65b1825cd16f4eedca))
15
+ * linking phantom wallets in mobile ([#5524](https://github.com/dynamic-labs/DynamicAuth/issues/5524)) ([#5557](https://github.com/dynamic-labs/DynamicAuth/issues/5557)) ([78017d1](https://github.com/dynamic-labs/DynamicAuth/commit/78017d1333cb78c5c95b2890de0f265756d8ef45))
16
+
2
17
  ### [2.0.5](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.4...v2.0.5) (2024-04-26)
3
18
 
4
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -31,13 +31,13 @@
31
31
  "@walletconnect/ethereum-provider": "2.11.2",
32
32
  "eventemitter3": "5.0.1",
33
33
  "buffer": "6.0.3",
34
- "@dynamic-labs/rpc-provider-ethereum": "2.0.5",
35
- "@dynamic-labs/turnkey": "2.0.5",
36
- "@dynamic-labs/types": "2.0.5",
37
- "@dynamic-labs/utils": "2.0.5",
38
- "@dynamic-labs/viem-utils": "2.0.5",
39
- "@dynamic-labs/wallet-book": "2.0.5",
40
- "@dynamic-labs/wallet-connector-core": "2.0.5",
34
+ "@dynamic-labs/rpc-provider-ethereum": "2.0.7",
35
+ "@dynamic-labs/turnkey": "2.0.7",
36
+ "@dynamic-labs/types": "2.0.7",
37
+ "@dynamic-labs/utils": "2.0.7",
38
+ "@dynamic-labs/viem-utils": "2.0.7",
39
+ "@dynamic-labs/wallet-book": "2.0.7",
40
+ "@dynamic-labs/wallet-connector-core": "2.0.7",
41
41
  "stream": "0.0.2"
42
42
  },
43
43
  "peerDependencies": {
@@ -7,18 +7,15 @@ var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
7
7
  var InjectedWalletBase = require('./InjectedWalletBase.cjs');
8
8
  var PhantomEvm = require('./PhantomEvm.cjs');
9
9
  var ExodusEvm = require('./ExodusEvm.cjs');
10
- var Zerion = require('./Zerion.cjs');
11
10
 
12
11
  const injectedWalletOverrides = [
13
12
  PhantomEvm.PhantomEvm,
14
13
  ExodusEvm.ExodusEvm,
15
- Zerion.Zerion,
16
14
  ];
17
15
  const filteredInjectedWalletKeysOverrides = [
18
16
  'phantomevm',
19
17
  'coinbase',
20
18
  'exodusevm',
21
- 'zerion',
22
19
  ];
23
20
  const fetchInjectedWalletConnector = ({ walletBook, }) => {
24
21
  var _a;
@@ -3,18 +3,15 @@ import { logger } from '@dynamic-labs/wallet-connector-core';
3
3
  import InjectedWalletBase from './InjectedWalletBase.js';
4
4
  import { PhantomEvm } from './PhantomEvm.js';
5
5
  import { ExodusEvm } from './ExodusEvm.js';
6
- import { Zerion } from './Zerion.js';
7
6
 
8
7
  const injectedWalletOverrides = [
9
8
  PhantomEvm,
10
9
  ExodusEvm,
11
- Zerion,
12
10
  ];
13
11
  const filteredInjectedWalletKeysOverrides = [
14
12
  'phantomevm',
15
13
  'coinbase',
16
14
  'exodusevm',
17
- 'zerion',
18
15
  ];
19
16
  const fetchInjectedWalletConnector = ({ walletBook, }) => {
20
17
  var _a;
@@ -1,38 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var InjectedWalletBase = require('./InjectedWalletBase.cjs');
6
-
7
- // on desktop, we use EIP-6963 to connect to the wallet so the injectedConfig
8
- // is not needed.
9
- const zerionWalletBookConfig = {
10
- eip6963Config: {
11
- rdns: 'io.zerion.wallet',
12
- },
13
- filterFromWalletConnect: true,
14
- injectedConfig: [
15
- {
16
- chain: 'evm',
17
- // adds isMetaMask flag to the wallet connector so that the window provider works
18
- // in the zerion in-app browser.
19
- extensionLocators: [{ flag: 'isMetaMask', value: true }],
20
- windowLocations: ['zerionWallet', 'zerionwallet.ethereum'],
21
- },
22
- ],
23
- name: 'Zerion',
24
- };
25
- class Zerion extends InjectedWalletBase {
26
- constructor(props) {
27
- super(props);
28
- this.name = 'Zerion';
29
- this.overrideKey = 'zerion';
30
- this.wallet = zerionWalletBookConfig;
31
- }
32
- isInstalledOnBrowser() {
33
- var _a;
34
- return Boolean(window.zerionWallet || ((_a = window.zerionwallet) === null || _a === void 0 ? void 0 : _a.ethereum));
35
- }
36
- }
37
-
38
- exports.Zerion = Zerion;
@@ -1,10 +0,0 @@
1
- import { WalletSchema } from '@dynamic-labs/wallet-book';
2
- import { EthWalletConnectorOpts } from '../EthWalletConnector';
3
- import InjectedWalletBase from './InjectedWalletBase';
4
- export declare class Zerion extends InjectedWalletBase {
5
- name: string;
6
- overrideKey: string;
7
- wallet: WalletSchema;
8
- constructor(props: EthWalletConnectorOpts);
9
- isInstalledOnBrowser(): boolean;
10
- }
@@ -1,34 +0,0 @@
1
- import InjectedWalletBase from './InjectedWalletBase.js';
2
-
3
- // on desktop, we use EIP-6963 to connect to the wallet so the injectedConfig
4
- // is not needed.
5
- const zerionWalletBookConfig = {
6
- eip6963Config: {
7
- rdns: 'io.zerion.wallet',
8
- },
9
- filterFromWalletConnect: true,
10
- injectedConfig: [
11
- {
12
- chain: 'evm',
13
- // adds isMetaMask flag to the wallet connector so that the window provider works
14
- // in the zerion in-app browser.
15
- extensionLocators: [{ flag: 'isMetaMask', value: true }],
16
- windowLocations: ['zerionWallet', 'zerionwallet.ethereum'],
17
- },
18
- ],
19
- name: 'Zerion',
20
- };
21
- class Zerion extends InjectedWalletBase {
22
- constructor(props) {
23
- super(props);
24
- this.name = 'Zerion';
25
- this.overrideKey = 'zerion';
26
- this.wallet = zerionWalletBookConfig;
27
- }
28
- isInstalledOnBrowser() {
29
- var _a;
30
- return Boolean(window.zerionWallet || ((_a = window.zerionwallet) === null || _a === void 0 ? void 0 : _a.ethereum));
31
- }
32
- }
33
-
34
- export { Zerion };