@dynamic-labs/ethereum 2.1.2-alpha.1 → 2.1.3

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
+ ### [2.1.3](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.2...v2.1.3) (2024-06-14)
3
+
4
+
5
+ ### Features
6
+
7
+ * add in-app browser navigation support for sats-connect ([#5990](https://github.com/dynamic-labs/DynamicAuth/issues/5990)) ([7ea15b9](https://github.com/dynamic-labs/DynamicAuth/commit/7ea15b93d1864164acb82c1e73aae7f9130e1d44))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * cache getGenesisHash call to prevent over calling ([#5966](https://github.com/dynamic-labs/DynamicAuth/issues/5966)) ([#5970](https://github.com/dynamic-labs/DynamicAuth/issues/5970)) ([b624b2e](https://github.com/dynamic-labs/DynamicAuth/commit/b624b2ea5b398bf464d3098e7d81d83c7b5bf659))
13
+ * improvements to embedded solana wallet ([#6001](https://github.com/dynamic-labs/DynamicAuth/issues/6001)) ([a6437c9](https://github.com/dynamic-labs/DynamicAuth/commit/a6437c93e1946bca609d3d99d282123275022376)) ([#5815](https://github.com/dynamic-labs/DynamicAuth/issues/5815)) ([#5978](https://github.com/dynamic-labs/DynamicAuth/issues/5978)) ([dd92973](https://github.com/dynamic-labs/DynamicAuth/commit/dd9297365f0ccbee1217325328e173ae7ee9a922))
14
+ * show linked wallets with unavailable providers in user wallets list ([#6005](https://github.com/dynamic-labs/DynamicAuth/issues/6005)) ([79796d1](https://github.com/dynamic-labs/DynamicAuth/commit/79796d1b73670265ca9897314252b620afaa2e8a))
15
+ * close switch network modal after switching to a supported network ([#5987](https://github.com/dynamic-labs/DynamicAuth/issues/5987)) ([a7e762e](https://github.com/dynamic-labs/DynamicAuth/commit/a7e762ef63a72492d0c083a344111589a6fbc455))
16
+
17
+ ### [2.1.2](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.2-alpha.1...v2.1.2) (2024-06-10)
18
+
19
+
20
+ ### Features
21
+
22
+ * hide wallets from wallet list that can't have multiple accounts linked ([#5935](https://github.com/dynamic-labs/DynamicAuth/issues/5935)) ([20f9b15](https://github.com/dynamic-labs/DynamicAuth/commit/20f9b15b145cbc57519155691b3640149eec3689))
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * ensure sign message will not show 2 times ([#5938](https://github.com/dynamic-labs/DynamicAuth/issues/5938)) ([#5941](https://github.com/dynamic-labs/DynamicAuth/issues/5941)) ([2c5a156](https://github.com/dynamic-labs/DynamicAuth/commit/2c5a156ead565bd25067b3bc2b23cbc704f9b314))
28
+ * improve logic related to embedded wallets and emailVerifcation ([#5947](https://github.com/dynamic-labs/DynamicAuth/issues/5947)) ([b885a14](https://github.com/dynamic-labs/DynamicAuth/commit/b885a14dcf200f05233e4ab42b8b518d877d291a))
29
+ * init coinbase provider adhoc ([#5907](https://github.com/dynamic-labs/DynamicAuth/issues/5907)) ([#5933](https://github.com/dynamic-labs/DynamicAuth/issues/5933)) ([2fa1f52](https://github.com/dynamic-labs/DynamicAuth/commit/2fa1f528b27113ee108252ee874ee7f5ead88329))
30
+ * remove force consent and account selection even for returning google users ([#5912](https://github.com/dynamic-labs/DynamicAuth/issues/5912)) ([26a07f2](https://github.com/dynamic-labs/DynamicAuth/commit/26a07f29bdb8bf32a080396906a21d8b084c202f))
31
+ * resolve the default phone country based on enabled countries ([#5](https://github.com/dynamic-labs/DynamicAuth/issues/5)… ([#5916](https://github.com/dynamic-labs/DynamicAuth/issues/5916)) ([8f27c00](https://github.com/dynamic-labs/DynamicAuth/commit/8f27c0082edb77b964b8402cfa75c6a896b061d3)), closes [#5910](https://github.com/dynamic-labs/DynamicAuth/issues/5910)
32
+ * versioned tx needs address lookup table ([#5909](https://github.com/dynamic-labs/DynamicAuth/issues/5909)) ([#5919](https://github.com/dynamic-labs/DynamicAuth/issues/5919)) ([22e3ca2](https://github.com/dynamic-labs/DynamicAuth/commit/22e3ca2d0b27d15efb50e3092a7bc3a0c0d255a5))
33
+
2
34
  ### [2.1.2-alpha.1](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.2-alpha.0...v2.1.2-alpha.1) (2024-06-07)
3
35
 
4
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum",
3
- "version": "2.1.2-alpha.1",
3
+ "version": "2.1.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.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.1.2-alpha.1",
35
- "@dynamic-labs/turnkey": "2.1.2-alpha.1",
36
- "@dynamic-labs/types": "2.1.2-alpha.1",
37
- "@dynamic-labs/utils": "2.1.2-alpha.1",
38
- "@dynamic-labs/viem-utils": "2.1.2-alpha.1",
39
- "@dynamic-labs/wallet-book": "2.1.2-alpha.1",
40
- "@dynamic-labs/wallet-connector-core": "2.1.2-alpha.1",
34
+ "@dynamic-labs/rpc-provider-ethereum": "2.1.3",
35
+ "@dynamic-labs/turnkey": "2.1.3",
36
+ "@dynamic-labs/types": "2.1.3",
37
+ "@dynamic-labs/utils": "2.1.3",
38
+ "@dynamic-labs/viem-utils": "2.1.3",
39
+ "@dynamic-labs/wallet-book": "2.1.3",
40
+ "@dynamic-labs/wallet-connector-core": "2.1.3",
41
41
  "stream": "0.0.2"
42
42
  },
43
43
  "peerDependencies": {
@@ -20,14 +20,15 @@ class Coinbase extends EthWalletConnector.EthWalletConnector {
20
20
  this.connectedChain = 'EVM';
21
21
  this.canConnectViaQrCode = false;
22
22
  this.canConnectViaCustodialService = true;
23
- this.coinbaseProvider = helpers.getCoinbaseProvider({
24
- opts: {
25
- appLogoUrl: appLogoUrl,
26
- appName: appName,
27
- evmNetworks: evmNetworks,
28
- walletPreference: coinbaseWalletPreference,
29
- },
30
- });
23
+ this.coinbaseProviderOpts = {
24
+ appLogoUrl: appLogoUrl,
25
+ appName: appName,
26
+ evmNetworks: evmNetworks,
27
+ walletPreference: coinbaseWalletPreference,
28
+ };
29
+ }
30
+ get coinbaseProvider() {
31
+ return helpers.getCoinbaseProvider(this.coinbaseProviderOpts);
31
32
  }
32
33
  getConnectedAccounts() {
33
34
  return _tslib.__awaiter(this, void 0, void 0, function* () {
@@ -1,6 +1,7 @@
1
+ import { ProviderInterface } from '@coinbase/wallet-sdk';
1
2
  import { Chain } from '@dynamic-labs/wallet-connector-core';
2
3
  import { EthWalletConnector } from '../EthWalletConnector';
3
- import { CoinbaseOpts } from './types';
4
+ import { CoinbaseOpts, GetCoinbaseProviderOpts } from './types';
4
5
  export declare class Coinbase extends EthWalletConnector {
5
6
  name: string;
6
7
  overrideKey: string;
@@ -8,8 +9,9 @@ export declare class Coinbase extends EthWalletConnector {
8
9
  connectedChain: Chain;
9
10
  canConnectViaQrCode: boolean;
10
11
  canConnectViaCustodialService: boolean;
11
- private coinbaseProvider;
12
+ coinbaseProviderOpts: GetCoinbaseProviderOpts;
12
13
  constructor({ appName, appLogoUrl, evmNetworks, coinbaseWalletPreference, ...props }: CoinbaseOpts);
14
+ get coinbaseProvider(): ProviderInterface;
13
15
  getConnectedAccounts(): Promise<string[]>;
14
16
  isInstalledOnBrowser(): boolean;
15
17
  getAddress(): Promise<string | undefined>;
@@ -16,14 +16,15 @@ class Coinbase extends EthWalletConnector {
16
16
  this.connectedChain = 'EVM';
17
17
  this.canConnectViaQrCode = false;
18
18
  this.canConnectViaCustodialService = true;
19
- this.coinbaseProvider = getCoinbaseProvider({
20
- opts: {
21
- appLogoUrl: appLogoUrl,
22
- appName: appName,
23
- evmNetworks: evmNetworks,
24
- walletPreference: coinbaseWalletPreference,
25
- },
26
- });
19
+ this.coinbaseProviderOpts = {
20
+ appLogoUrl: appLogoUrl,
21
+ appName: appName,
22
+ evmNetworks: evmNetworks,
23
+ walletPreference: coinbaseWalletPreference,
24
+ };
25
+ }
26
+ get coinbaseProvider() {
27
+ return getCoinbaseProvider(this.coinbaseProviderOpts);
27
28
  }
28
29
  getConnectedAccounts() {
29
30
  return __awaiter(this, void 0, void 0, function* () {
@@ -10,7 +10,7 @@ var walletSdk = require('@coinbase/wallet-sdk');
10
10
  let coinbaseProvider;
11
11
  const baseSepolia = 84532;
12
12
  const baseMainnet = 8453;
13
- const getCoinbaseProvider = ({ opts: { appLogoUrl, appName, evmNetworks, walletPreference } = {}, }) => {
13
+ const getCoinbaseProvider = ({ appLogoUrl, appName, evmNetworks, walletPreference, } = {}) => {
14
14
  const appChainIds = evmNetworks === null || evmNetworks === void 0 ? void 0 : evmNetworks.map((network) => Number(network.chainId));
15
15
  // just brings base sepolia to the front of the list, because that is treated as the default chain
16
16
  const hasBaseSepolia = evmNetworks === null || evmNetworks === void 0 ? void 0 : evmNetworks.some((network) => network.chainId === baseSepolia);
@@ -6,7 +6,7 @@ import { CoinbaseWalletSDK } from '@coinbase/wallet-sdk';
6
6
  let coinbaseProvider;
7
7
  const baseSepolia = 84532;
8
8
  const baseMainnet = 8453;
9
- const getCoinbaseProvider = ({ opts: { appLogoUrl, appName, evmNetworks, walletPreference } = {}, }) => {
9
+ const getCoinbaseProvider = ({ appLogoUrl, appName, evmNetworks, walletPreference, } = {}) => {
10
10
  const appChainIds = evmNetworks === null || evmNetworks === void 0 ? void 0 : evmNetworks.map((network) => Number(network.chainId));
11
11
  // just brings base sepolia to the front of the list, because that is treated as the default chain
12
12
  const hasBaseSepolia = evmNetworks === null || evmNetworks === void 0 ? void 0 : evmNetworks.some((network) => network.chainId === baseSepolia);
@@ -10,10 +10,7 @@ export type GetCoinbaseProviderOpts = {
10
10
  export type CoinbaseProviderHandlerOpts = {
11
11
  onDisconnect(): Promise<void>;
12
12
  };
13
- export type GetCoinbaseProvider = (args: {
14
- handlers?: CoinbaseProviderHandlerOpts;
15
- opts?: GetCoinbaseProviderOpts;
16
- }) => ProviderInterface;
13
+ export type GetCoinbaseProvider = (opts?: GetCoinbaseProviderOpts) => ProviderInterface;
17
14
  export type CoinbaseOpts = EthWalletConnectorOpts & {
18
15
  appLogoUrl?: string;
19
16
  appName?: string;
@@ -22,6 +22,10 @@ export declare class EthProviderHelper {
22
22
  features: string[];
23
23
  name: string;
24
24
  } | undefined;
25
+ walletStandardLocators?: {
26
+ name: string;
27
+ locator: string;
28
+ }[] | undefined;
25
29
  windowLocations?: string[] | undefined;
26
30
  } | undefined;
27
31
  installedProviders(): IEthereum[];