@dynamic-labs/ethereum-core 4.0.0-alpha.29 → 4.0.0-alpha.30

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,21 @@
1
1
 
2
+ ## [4.0.0-alpha.30](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.29...v4.0.0-alpha.30) (2024-11-13)
3
+
4
+
5
+ ### ⚠ BREAKING CHANGES
6
+
7
+ * check wallet limitations from metadata (#7413)
8
+
9
+ ### Bug Fixes
10
+
11
+ * confirmation ui disabled for solana signall and signTransaction ([#7403](https://github.com/dynamic-labs/dynamic-auth/issues/7403)) ([98a352a](https://github.com/dynamic-labs/dynamic-auth/commit/98a352a826202abad734f00df1b3d19080ecf1e2))
12
+ * get starknet wallets directly from window ([#7421](https://github.com/dynamic-labs/dynamic-auth/issues/7421)) ([13e24f7](https://github.com/dynamic-labs/dynamic-auth/commit/13e24f70accf7747f5137fc3f2b05c00939c3af3))
13
+ * issue with SollanaWalletConnectorWithConfig embedded wallets ([#7405](https://github.com/dynamic-labs/dynamic-auth/issues/7405)) ([f08ecd6](https://github.com/dynamic-labs/dynamic-auth/commit/f08ecd6955faf191177bb9833b7a594637a6c4cc))
14
+ * set override key in starknet injected connector ([#7420](https://github.com/dynamic-labs/dynamic-auth/issues/7420)) ([74b2887](https://github.com/dynamic-labs/dynamic-auth/commit/74b28874661b3bad1e0a0f92aa9d3c987dc71225))
15
+
16
+
17
+ * check wallet limitations from metadata ([#7413](https://github.com/dynamic-labs/dynamic-auth/issues/7413)) ([a419de6](https://github.com/dynamic-labs/dynamic-auth/commit/a419de643ea4ff240a27825c10670ba92589b71b))
18
+
2
19
  ## [4.0.0-alpha.29](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.28...v4.0.0-alpha.29) (2024-11-07)
3
20
 
4
21
  ## [4.0.0-alpha.28](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.27...v4.0.0-alpha.28) (2024-11-07)
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.0.0-alpha.29";
6
+ var version = "4.0.0-alpha.30";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.0.0-alpha.29";
2
+ var version = "4.0.0-alpha.30";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum-core",
3
- "version": "4.0.0-alpha.29",
3
+ "version": "4.0.0-alpha.30",
4
4
  "description": "Core package for utilities and types for viem",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -22,12 +22,12 @@
22
22
  },
23
23
  "peerDependencies": {
24
24
  "viem": "^2.7.6",
25
- "@dynamic-labs/assert-package-version": "4.0.0-alpha.29",
26
- "@dynamic-labs/logger": "4.0.0-alpha.29",
27
- "@dynamic-labs/rpc-providers": "4.0.0-alpha.29",
28
- "@dynamic-labs/types": "4.0.0-alpha.29",
29
- "@dynamic-labs/utils": "4.0.0-alpha.29",
30
- "@dynamic-labs/wallet-book": "4.0.0-alpha.29",
31
- "@dynamic-labs/wallet-connector-core": "4.0.0-alpha.29"
25
+ "@dynamic-labs/assert-package-version": "4.0.0-alpha.30",
26
+ "@dynamic-labs/logger": "4.0.0-alpha.30",
27
+ "@dynamic-labs/rpc-providers": "4.0.0-alpha.30",
28
+ "@dynamic-labs/types": "4.0.0-alpha.30",
29
+ "@dynamic-labs/utils": "4.0.0-alpha.30",
30
+ "@dynamic-labs/wallet-book": "4.0.0-alpha.30",
31
+ "@dynamic-labs/wallet-connector-core": "4.0.0-alpha.30"
32
32
  }
33
33
  }
@@ -21,6 +21,8 @@ class EthereumWalletConnector extends walletConnectorCore.WalletConnectorBase {
21
21
  constructor(props) {
22
22
  var _a;
23
23
  super(props);
24
+ this.supportedChains = ['EVM', 'ETH'];
25
+ this.connectedChain = 'EVM';
24
26
  this.ChainWallet = EthereumWallet.EthereumWallet;
25
27
  this.evmNetworkRpcMap = () => this.evmNetworks.reduce((acc, network) => {
26
28
  var _a;
@@ -1,7 +1,7 @@
1
1
  import { Account, Hex, PublicClient, Transport, Chain as ViemChain, WalletClient } from 'viem';
2
2
  import { EvmNetwork, GenericNetwork, IUITransaction, TransactionReceipt, WalletUiUtils } from '@dynamic-labs/types';
3
3
  import { WalletBookSchema } from '@dynamic-labs/wallet-book';
4
- import { ISendBalanceWalletConnector, InternalWalletConnector, NameServiceData, WalletConnectorBase, WalletMetadata } from '@dynamic-labs/wallet-connector-core';
4
+ import { Chain, ISendBalanceWalletConnector, InternalWalletConnector, NameServiceData, WalletConnectorBase, WalletMetadata } from '@dynamic-labs/wallet-connector-core';
5
5
  import { IChainRpcProviders } from '../rpc';
6
6
  import { EthereumWallet } from '../wallet';
7
7
  export type SwitchNetworkOps = {
@@ -19,8 +19,10 @@ export type EthereumWalletConnectorOpts = {
19
19
  metadata?: WalletMetadata;
20
20
  };
21
21
  export declare abstract class EthereumWalletConnector extends WalletConnectorBase<typeof EthereumWallet> implements ISendBalanceWalletConnector {
22
- ChainWallet: typeof EthereumWallet;
22
+ supportedChains: Chain[];
23
+ connectedChain: Chain;
23
24
  evmNetworks: EvmNetwork[];
25
+ ChainWallet: typeof EthereumWallet;
24
26
  private activeAccount;
25
27
  private activeChain;
26
28
  private walletUiUtils;
@@ -2849,6 +2851,7 @@ export declare abstract class EthereumWalletConnector extends WalletConnectorBas
2849
2851
  [x: `address[${string}]`]: undefined;
2850
2852
  [x: `bool[${string}]`]: undefined;
2851
2853
  [x: `bytes[${string}]`]: undefined;
2854
+ [x: `bytes10[${string}]`]: undefined;
2852
2855
  [x: `bytes1[${string}]`]: undefined;
2853
2856
  [x: `bytes32[${string}]`]: undefined;
2854
2857
  [x: `bytes31[${string}]`]: undefined;
@@ -2873,7 +2876,6 @@ export declare abstract class EthereumWalletConnector extends WalletConnectorBas
2873
2876
  [x: `bytes13[${string}]`]: undefined;
2874
2877
  [x: `bytes12[${string}]`]: undefined;
2875
2878
  [x: `bytes11[${string}]`]: undefined;
2876
- [x: `bytes10[${string}]`]: undefined;
2877
2879
  [x: `bytes9[${string}]`]: undefined;
2878
2880
  [x: `bytes8[${string}]`]: undefined;
2879
2881
  [x: `bytes7[${string}]`]: undefined;
@@ -2951,6 +2953,7 @@ export declare abstract class EthereumWalletConnector extends WalletConnectorBas
2951
2953
  address?: undefined;
2952
2954
  bool?: undefined;
2953
2955
  bytes?: undefined;
2956
+ bytes10?: undefined;
2954
2957
  bytes1?: undefined;
2955
2958
  bytes32?: undefined;
2956
2959
  bytes31?: undefined;
@@ -2975,7 +2978,6 @@ export declare abstract class EthereumWalletConnector extends WalletConnectorBas
2975
2978
  bytes13?: undefined;
2976
2979
  bytes12?: undefined;
2977
2980
  bytes11?: undefined;
2978
- bytes10?: undefined;
2979
2981
  bytes9?: undefined;
2980
2982
  bytes8?: undefined;
2981
2983
  bytes7?: undefined;
@@ -17,6 +17,8 @@ class EthereumWalletConnector extends WalletConnectorBase {
17
17
  constructor(props) {
18
18
  var _a;
19
19
  super(props);
20
+ this.supportedChains = ['EVM', 'ETH'];
21
+ this.connectedChain = 'EVM';
20
22
  this.ChainWallet = EthereumWallet;
21
23
  this.evmNetworkRpcMap = () => this.evmNetworks.reduce((acc, network) => {
22
24
  var _a;