@exodus/web3-ethereum 12.17.0 → 12.19.0

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.
@@ -9,7 +9,7 @@ async function getDefaultPurposeForLedger(asset) {
9
9
  return purposes[0];
10
10
  }
11
11
  const createEVMDepsFactory = ({ analytics, blockchainMetadata, }) => {
12
- return ({ assetName, origin, getAsset, getAddress: _getAddress, getSupportedChainIds, getPrivateKey, getFeeData: getFeeConfig, getCustomFeeRate, getActiveWalletAccount, simulateEthereumTransactions, getActiveWalletAccountData, transactionSigner, messageSigner: _messageSigner, getLedgerDevice, onEthWalletWatchAssetRequest: _onEthWalletWatchAssetRequest, }) => {
12
+ return ({ addEthereumChain, assetName, chainId: _chainId, origin, getAsset, getAddress: _getAddress, getSupportedChainIds, getPrivateKey, getFeeData: getFeeConfig, getCustomFeeRate, getActiveWalletAccount, simulateEthereumTransactions, getActiveWalletAccountData, transactionSigner, messageSigner: _messageSigner, getLedgerDevice, onEthWalletWatchAssetRequest: _onEthWalletWatchAssetRequest, }) => {
13
13
  const asset = getAsset(assetName);
14
14
  const server = getServer(asset);
15
15
  const forwardRequest = async ({ method, params }) => {
@@ -151,7 +151,8 @@ const createEVMDepsFactory = ({ analytics, blockchainMetadata, }) => {
151
151
  },
152
152
  };
153
153
  return {
154
- chainId: 'undefined',
154
+ addEthereumChain,
155
+ chainId: _chainId || 'undefined',
155
156
  forwardRequest,
156
157
  sendRawTransaction,
157
158
  getAddress,
package/lib/types.d.ts CHANGED
@@ -26,7 +26,9 @@ export interface CreateEvmDepsFactoryParams {
26
26
  }
27
27
  declare type SimulateTransactionsFn = (params: EthSimulateTransactionParams) => Promise<EthAggregatedTransactionSimulationResult>;
28
28
  export interface CreateEvmDepsParams {
29
+ addEthereumChain?: (param: AddEthereumChainParameter) => Promise<null>;
29
30
  assetName: string;
31
+ chainId?: string;
30
32
  origin: string;
31
33
  getAddress: (assetName: string) => Promise<string>;
32
34
  getActiveWalletAccount: () => Promise<string>;
@@ -42,7 +44,6 @@ export interface CreateEvmDepsParams {
42
44
  transactionSigner: EVMTransactionSignerModule;
43
45
  messageSigner?: EVMMessageSigner;
44
46
  getLedgerDevice?: GetLedgerDevice;
45
- addEthereumChain?: (param: AddEthereumChainParameter) => Promise<null>;
46
47
  onEthWalletWatchAssetRequest?: (param: EthWalletWatchAsset) => Promise<boolean>;
47
48
  }
48
49
  export declare type EVMFactory = (params: CreateEvmDepsParams) => EVMDeps;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@exodus/web3-ethereum",
3
3
  "description": "Apps connectivity library for EVM-compatible chains.",
4
- "version": "12.17.0",
4
+ "version": "12.19.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "module": "lib/index.js",
@@ -51,5 +51,5 @@
51
51
  "@exodus/web3-validation": "^1.38.0",
52
52
  "@wallet-standard/base": "^1.0.1"
53
53
  },
54
- "gitHead": "fd27d08c77e036bc7fc316bd2d9980747122b69a"
54
+ "gitHead": "8c03722fcb665e324c0a6b3019c844089d1d2b15"
55
55
  }