@dynamic-labs/ethereum 1.1.0-alpha.5 → 1.1.0-alpha.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,29 @@
1
1
 
2
+ ## [1.1.0-alpha.7](https://github.com/dynamic-labs/DynamicAuth/compare/v1.1.0-alpha.6...v1.1.0-alpha.7) (2023-12-28)
3
+
4
+
5
+ ### Features
6
+
7
+ * better coinbase deeplinking ux ([#4164](https://github.com/dynamic-labs/DynamicAuth/issues/4164)) ([5252608](https://github.com/dynamic-labs/DynamicAuth/commit/525260851900a33a52f129def338963400344205))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * don't prompt for connect when selecting bitcoin wallet if already connected ([#4265](https://github.com/dynamic-labs/DynamicAuth/issues/4265)) ([adef402](https://github.com/dynamic-labs/DynamicAuth/commit/adef402ef94270a17fab896a8585a7f2eacd3681))
13
+
14
+ ## [1.1.0-alpha.6](https://github.com/dynamic-labs/DynamicAuth/compare/v1.1.0-alpha.5...v1.1.0-alpha.6) (2023-12-27)
15
+
16
+
17
+ ### Features
18
+
19
+ * add multi-wallet-prompts-widget ([#4166](https://github.com/dynamic-labs/DynamicAuth/issues/4166)) ([151e3d2](https://github.com/dynamic-labs/DynamicAuth/commit/151e3d2e7bebbf18448e4af8eecbf660f713cd3d))
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * coinbase solana signMessage ([#4254](https://github.com/dynamic-labs/DynamicAuth/issues/4254)) ([f0300a9](https://github.com/dynamic-labs/DynamicAuth/commit/f0300a93ed6c9ba9dfab613820d8cedbe72abb87))
25
+ * make useConnectWithEmailOtp work cross views ([#4252](https://github.com/dynamic-labs/DynamicAuth/issues/4252)) ([a097119](https://github.com/dynamic-labs/DynamicAuth/commit/a097119556c38a22f338a783f79d512b99203cf5))
26
+
2
27
  ## [1.1.0-alpha.5](https://github.com/dynamic-labs/DynamicAuth/compare/v1.1.0-alpha.4...v1.1.0-alpha.5) (2023-12-21)
3
28
 
4
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum",
3
- "version": "1.1.0-alpha.5",
3
+ "version": "1.1.0-alpha.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -26,18 +26,18 @@
26
26
  "./package.json": "./package.json"
27
27
  },
28
28
  "dependencies": {
29
- "@coinbase/wallet-sdk": "3.7.2",
29
+ "@coinbase/wallet-sdk": "3.9.1",
30
30
  "@walletconnect/client": "1.8.0",
31
31
  "@walletconnect/ethereum-provider": "1.8.0",
32
32
  "@walletconnect/universal-provider": "2.10.6",
33
33
  "eventemitter3": "5.0.1",
34
34
  "buffer": "6.0.3",
35
- "@dynamic-labs/rpc-providers": "1.1.0-alpha.5",
36
- "@dynamic-labs/turnkey": "1.1.0-alpha.5",
37
- "@dynamic-labs/types": "1.1.0-alpha.5",
38
- "@dynamic-labs/utils": "1.1.0-alpha.5",
39
- "@dynamic-labs/wallet-book": "1.1.0-alpha.5",
40
- "@dynamic-labs/wallet-connector-core": "1.1.0-alpha.5",
35
+ "@dynamic-labs/rpc-providers": "1.1.0-alpha.7",
36
+ "@dynamic-labs/turnkey": "1.1.0-alpha.7",
37
+ "@dynamic-labs/types": "1.1.0-alpha.7",
38
+ "@dynamic-labs/utils": "1.1.0-alpha.7",
39
+ "@dynamic-labs/wallet-book": "1.1.0-alpha.7",
40
+ "@dynamic-labs/wallet-connector-core": "1.1.0-alpha.7",
41
41
  "stream": "0.0.2"
42
42
  },
43
43
  "peerDependencies": {
@@ -11,19 +11,13 @@ var constants = require('../../constants.cjs');
11
11
  const jsonRpcUrl = `https://mainnet.infura.io/v3/${constants.INFURA_ID}`;
12
12
  const chainId = 1;
13
13
  let coinbaseProvider;
14
- const getCoinbaseProvider = ({ opts: { appLogoUrl, appName = '', evmNetworks = [] } = {}, handlers, }) => {
14
+ const getCoinbaseProvider = ({ opts: { appLogoUrl, appName = '', evmNetworks = [] } = {}, }) => {
15
15
  var _a, _b;
16
16
  if (!coinbaseProvider) {
17
17
  const coinbaseWalletSDK = new walletSdk.CoinbaseWalletSDK({
18
18
  appLogoUrl,
19
19
  appName,
20
- eventListener: {
21
- onEvent: (eventType) => {
22
- if (eventType === 'walletlink_sdk.disconnected') {
23
- handlers === null || handlers === void 0 ? void 0 : handlers.onDisconnect();
24
- }
25
- },
26
- },
20
+ enableMobileWalletLink: true,
27
21
  headlessMode: true,
28
22
  reloadOnDisconnect: false,
29
23
  });
@@ -7,19 +7,13 @@ import { INFURA_ID } from '../../constants.js';
7
7
  const jsonRpcUrl = `https://mainnet.infura.io/v3/${INFURA_ID}`;
8
8
  const chainId = 1;
9
9
  let coinbaseProvider;
10
- const getCoinbaseProvider = ({ opts: { appLogoUrl, appName = '', evmNetworks = [] } = {}, handlers, }) => {
10
+ const getCoinbaseProvider = ({ opts: { appLogoUrl, appName = '', evmNetworks = [] } = {}, }) => {
11
11
  var _a, _b;
12
12
  if (!coinbaseProvider) {
13
13
  const coinbaseWalletSDK = new CoinbaseWalletSDK({
14
14
  appLogoUrl,
15
15
  appName,
16
- eventListener: {
17
- onEvent: (eventType) => {
18
- if (eventType === 'walletlink_sdk.disconnected') {
19
- handlers === null || handlers === void 0 ? void 0 : handlers.onDisconnect();
20
- }
21
- },
22
- },
16
+ enableMobileWalletLink: true,
23
17
  headlessMode: true,
24
18
  reloadOnDisconnect: false,
25
19
  });
@@ -5,11 +5,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var _tslib = require('../../_virtual/_tslib.cjs');
6
6
  var viem = require('viem');
7
7
  var walletBook = require('@dynamic-labs/wallet-book');
8
- var EthWalletConnector = require('../EthWalletConnector.cjs');
9
8
  require('../polyfills.cjs');
10
9
  require('@dynamic-labs/turnkey');
11
10
  require('@dynamic-labs/utils');
12
11
  var ethProviderHelper = require('../ethProviderHelper.cjs');
12
+ var EthWalletConnector = require('../EthWalletConnector.cjs');
13
13
  require('../walletConnect/walletConnectV2.cjs');
14
14
  require('@walletconnect/ethereum-provider');
15
15
  require('@dynamic-labs/wallet-connector-core');
@@ -1,6 +1,6 @@
1
1
  import { Chain, FetchPublicAddressOpts } from '@dynamic-labs/wallet-connector-core';
2
- import { EthWalletConnector, EthWalletConnectorOpts } from '../EthWalletConnector';
3
2
  import { EthProviderHelper } from '..';
3
+ import { EthWalletConnector, EthWalletConnectorOpts } from '../EthWalletConnector';
4
4
  type CoinbaseOpts = EthWalletConnectorOpts & {
5
5
  appLogoUrl?: string;
6
6
  appName?: string;
@@ -1,11 +1,11 @@
1
1
  import { __rest, __awaiter } from '../../_virtual/_tslib.js';
2
2
  import { createPublicClient, custom, createWalletClient } from 'viem';
3
3
  import { findWalletBookWallet } from '@dynamic-labs/wallet-book';
4
- import { EthWalletConnector } from '../EthWalletConnector.js';
5
4
  import '../polyfills.js';
6
5
  import '@dynamic-labs/turnkey';
7
6
  import '@dynamic-labs/utils';
8
7
  import { EthProviderHelper } from '../ethProviderHelper.js';
8
+ import { EthWalletConnector } from '../EthWalletConnector.js';
9
9
  import '../walletConnect/walletConnectV2.js';
10
10
  import '@walletconnect/ethereum-provider';
11
11
  import '@dynamic-labs/wallet-connector-core';
@@ -16,10 +16,7 @@ class EthProviderHelper {
16
16
  getInstalledProvider() {
17
17
  const eip6963Config = this.getEip6963Config();
18
18
  if (eip6963Config) {
19
- const eip6963Provider = this.eip6963ProviderLookup(eip6963Config.rdns);
20
- if (eip6963Provider) {
21
- return eip6963Provider;
22
- }
19
+ return this.eip6963ProviderLookup(eip6963Config.rdns);
23
20
  }
24
21
  const config = this.getInjectedConfig();
25
22
  if (!config ||
@@ -12,10 +12,7 @@ class EthProviderHelper {
12
12
  getInstalledProvider() {
13
13
  const eip6963Config = this.getEip6963Config();
14
14
  if (eip6963Config) {
15
- const eip6963Provider = this.eip6963ProviderLookup(eip6963Config.rdns);
16
- if (eip6963Provider) {
17
- return eip6963Provider;
18
- }
15
+ return this.eip6963ProviderLookup(eip6963Config.rdns);
19
16
  }
20
17
  const config = this.getInjectedConfig();
21
18
  if (!config ||