@dynamic-labs/ethereum 2.1.2-alpha.0 → 2.1.2

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,28 @@
1
1
 
2
+ ### [2.1.2](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.2-alpha.1...v2.1.2) (2024-06-10)
3
+
4
+
5
+ ### Features
6
+
7
+ * 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))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * 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))
13
+ * 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))
14
+ * 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))
15
+ * 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))
16
+ * 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)
17
+ * 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))
18
+
19
+ ### [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)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * find phantom solana provider when opening dapp on new tab ([#5902](https://github.com/dynamic-labs/DynamicAuth/issues/5902)) ([99daf87](https://github.com/dynamic-labs/DynamicAuth/commit/99daf87f17caed870a76e4f89a257a14da37c7ab)), closes [#5895](https://github.com/dynamic-labs/DynamicAuth/issues/5895) [#5896](https://github.com/dynamic-labs/DynamicAuth/issues/5896) [#5897](https://github.com/dynamic-labs/DynamicAuth/issues/5897)
25
+
2
26
  ### [2.1.2-alpha.0](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.1...v2.1.2-alpha.0) (2024-06-07)
3
27
 
4
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum",
3
- "version": "2.1.2-alpha.0",
3
+ "version": "2.1.2",
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.0",
35
- "@dynamic-labs/turnkey": "2.1.2-alpha.0",
36
- "@dynamic-labs/types": "2.1.2-alpha.0",
37
- "@dynamic-labs/utils": "2.1.2-alpha.0",
38
- "@dynamic-labs/viem-utils": "2.1.2-alpha.0",
39
- "@dynamic-labs/wallet-book": "2.1.2-alpha.0",
40
- "@dynamic-labs/wallet-connector-core": "2.1.2-alpha.0",
34
+ "@dynamic-labs/rpc-provider-ethereum": "2.1.2",
35
+ "@dynamic-labs/turnkey": "2.1.2",
36
+ "@dynamic-labs/types": "2.1.2",
37
+ "@dynamic-labs/utils": "2.1.2",
38
+ "@dynamic-labs/viem-utils": "2.1.2",
39
+ "@dynamic-labs/wallet-book": "2.1.2",
40
+ "@dynamic-labs/wallet-connector-core": "2.1.2",
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[];