@dynamic-labs/ethereum 3.0.0-alpha.0 → 3.0.0-alpha.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,32 @@
1
1
 
2
+ ## [3.0.0-alpha.2](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.1...v3.0.0-alpha.2) (2024-06-11)
3
+
4
+
5
+ ### Features
6
+
7
+ * add silent signing ([#5712](https://github.com/dynamic-labs/DynamicAuth/issues/5712)) ([17f06f2](https://github.com/dynamic-labs/DynamicAuth/commit/17f06f24d9f576b4d3d879e14de73dc6e9ab2118)), closes [#5807](https://github.com/dynamic-labs/DynamicAuth/issues/5807) [#5908](https://github.com/dynamic-labs/DynamicAuth/issues/5908) [#5932](https://github.com/dynamic-labs/DynamicAuth/issues/5932) [#5937](https://github.com/dynamic-labs/DynamicAuth/issues/5937) [#5949](https://github.com/dynamic-labs/DynamicAuth/issues/5949)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * ensure backup code acknowledgement can be shown async ([#5955](https://github.com/dynamic-labs/DynamicAuth/issues/5955)) ([6e4d053](https://github.com/dynamic-labs/DynamicAuth/commit/6e4d0536f4d5eafc93fc6986d3ad8dc66bccd143))
13
+ * ensure sign message will not show 2 times ([#5938](https://github.com/dynamic-labs/DynamicAuth/issues/5938)) ([8b5a16b](https://github.com/dynamic-labs/DynamicAuth/commit/8b5a16bab201ff0a74d6f5065d454ba62131a761))
14
+ * process undefined in browser context ([#5920](https://github.com/dynamic-labs/DynamicAuth/issues/5920)) ([02fed81](https://github.com/dynamic-labs/DynamicAuth/commit/02fed811c53f7d14c91aab47d0b69ea2697619a7))
15
+
16
+ ## [3.0.0-alpha.1](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.0...v3.0.0-alpha.1) (2024-06-10)
17
+
18
+
19
+ ### Features
20
+
21
+ * hide wallets from wallet list that can't have multiple accounts linked ([#5892](https://github.com/dynamic-labs/DynamicAuth/issues/5892)) ([41f0114](https://github.com/dynamic-labs/DynamicAuth/commit/41f0114633dfdc3f0c27e1859da122e5c96e297d))
22
+ * update mfa backup code acknowledgement ([#5874](https://github.com/dynamic-labs/DynamicAuth/issues/5874)) ([4dea5e4](https://github.com/dynamic-labs/DynamicAuth/commit/4dea5e401c468d830f881bf5268055160a9cfa83))
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * init coinbase provider adhoc ([#5907](https://github.com/dynamic-labs/DynamicAuth/issues/5907)) ([f778d97](https://github.com/dynamic-labs/DynamicAuth/commit/f778d974d5e70ac72abe70030cad2b76583e1581))
28
+ * versioned tx needs address lookup table ([#5909](https://github.com/dynamic-labs/DynamicAuth/issues/5909)) ([3daf0bc](https://github.com/dynamic-labs/DynamicAuth/commit/3daf0bc45c19c532a519031a813942df0e929107))
29
+
2
30
  ## [3.0.0-alpha.0](https://github.com/dynamic-labs/DynamicAuth/compare/v2.2.0-alpha.5...v3.0.0-alpha.0) (2024-06-10)
3
31
 
4
32
  ## [2.2.0-alpha.5](https://github.com/dynamic-labs/DynamicAuth/compare/v2.2.0-alpha.4...v2.2.0-alpha.5) (2024-06-08)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum",
3
- "version": "3.0.0-alpha.0",
3
+ "version": "3.0.0-alpha.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
@@ -26,18 +26,18 @@
26
26
  "./package.json": "./package.json"
27
27
  },
28
28
  "dependencies": {
29
- "@dynamic-labs/sdk-api-core": "0.0.460",
29
+ "@dynamic-labs/sdk-api-core": "0.0.461",
30
30
  "@coinbase/wallet-sdk": "4.0.3",
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": "3.0.0-alpha.0",
35
- "@dynamic-labs/turnkey": "3.0.0-alpha.0",
36
- "@dynamic-labs/types": "3.0.0-alpha.0",
37
- "@dynamic-labs/utils": "3.0.0-alpha.0",
38
- "@dynamic-labs/viem-utils": "3.0.0-alpha.0",
39
- "@dynamic-labs/wallet-book": "3.0.0-alpha.0",
40
- "@dynamic-labs/wallet-connector-core": "3.0.0-alpha.0",
34
+ "@dynamic-labs/rpc-provider-ethereum": "3.0.0-alpha.2",
35
+ "@dynamic-labs/turnkey": "3.0.0-alpha.2",
36
+ "@dynamic-labs/types": "3.0.0-alpha.2",
37
+ "@dynamic-labs/utils": "3.0.0-alpha.2",
38
+ "@dynamic-labs/viem-utils": "3.0.0-alpha.2",
39
+ "@dynamic-labs/wallet-book": "3.0.0-alpha.2",
40
+ "@dynamic-labs/wallet-connector-core": "3.0.0-alpha.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;