@exodus/web3-ethereum 12.18.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, chainId: _chainId, 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,6 +151,7 @@ const createEVMDepsFactory = ({ analytics, blockchainMetadata, }) => {
|
|
|
151
151
|
},
|
|
152
152
|
};
|
|
153
153
|
return {
|
|
154
|
+
addEthereumChain,
|
|
154
155
|
chainId: _chainId || 'undefined',
|
|
155
156
|
forwardRequest,
|
|
156
157
|
sendRawTransaction,
|
package/lib/types.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ 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;
|
|
30
31
|
chainId?: string;
|
|
31
32
|
origin: string;
|
|
@@ -43,7 +44,6 @@ export interface CreateEvmDepsParams {
|
|
|
43
44
|
transactionSigner: EVMTransactionSignerModule;
|
|
44
45
|
messageSigner?: EVMMessageSigner;
|
|
45
46
|
getLedgerDevice?: GetLedgerDevice;
|
|
46
|
-
addEthereumChain?: (param: AddEthereumChainParameter) => Promise<null>;
|
|
47
47
|
onEthWalletWatchAssetRequest?: (param: EthWalletWatchAsset) => Promise<boolean>;
|
|
48
48
|
}
|
|
49
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.
|
|
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": "
|
|
54
|
+
"gitHead": "8c03722fcb665e324c0a6b3019c844089d1d2b15"
|
|
55
55
|
}
|