@lifi/sdk-provider-ethereum 4.0.5 → 4.0.7
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 +13 -0
- package/dist/cjs/EthereumProvider.d.ts +0 -1
- package/dist/cjs/actions/checkPermitSupport.d.ts +16 -20
- package/dist/cjs/actions/constants.d.ts +0 -1
- package/dist/cjs/actions/getAccountCode.d.ts +13 -18
- package/dist/cjs/actions/getAllowance.d.ts +13 -14
- package/dist/cjs/actions/getEthereumBalance.d.ts +0 -1
- package/dist/cjs/actions/getMaxPriorityFeePerGas.d.ts +0 -1
- package/dist/cjs/actions/getMulticallAddress.d.ts +0 -1
- package/dist/cjs/actions/isBatchingSupported.d.ts +1 -6
- package/dist/cjs/actions/isSafeSignature.d.ts +6 -11
- package/dist/cjs/actions/isSafeWallet.d.ts +4 -10
- package/dist/cjs/actions/isSmartContractWallet.d.ts +4 -4
- package/dist/cjs/actions/resolveENSAddress.d.ts +0 -1
- package/dist/cjs/actions/resolveEthereumAddress.d.ts +0 -1
- package/dist/cjs/actions/resolveTransactionHash.d.ts +0 -1
- package/dist/cjs/actions/resolveUNSAddress.d.ts +0 -1
- package/dist/cjs/actions/setAllowance.d.ts +19 -29
- package/dist/cjs/actions/waitForBatchTransactionReceipt.d.ts +0 -1
- package/dist/cjs/actions/waitForRelayedTransactionReceipt.d.ts +0 -1
- package/dist/cjs/actions/waitForSafeTransactionExecution.d.ts +9 -16
- package/dist/cjs/actions/waitForTransactionReceipt.d.ts +1 -7
- package/dist/cjs/client/publicClient.d.ts +5 -6
- package/dist/cjs/client/safeClient.d.ts +0 -1
- package/dist/cjs/core/EthereumStepExecutor.d.ts +0 -1
- package/dist/cjs/core/tasks/EthereumBatchedSignAndExecuteTask.d.ts +0 -1
- package/dist/cjs/core/tasks/EthereumBatchedWaitForTransactionTask.d.ts +0 -1
- package/dist/cjs/core/tasks/EthereumCheckAllowanceTask.d.ts +0 -1
- package/dist/cjs/core/tasks/EthereumCheckBalanceTask.d.ts +8 -9
- package/dist/cjs/core/tasks/EthereumCheckPermitsTask.d.ts +0 -1
- package/dist/cjs/core/tasks/EthereumNativePermitTask.d.ts +0 -1
- package/dist/cjs/core/tasks/EthereumPrepareTransactionTask.d.ts +0 -1
- package/dist/cjs/core/tasks/EthereumRelayedSignAndExecuteTask.d.ts +0 -1
- package/dist/cjs/core/tasks/EthereumRelayedWaitForTransactionTask.d.ts +0 -1
- package/dist/cjs/core/tasks/EthereumResetAllowanceTask.d.ts +0 -1
- package/dist/cjs/core/tasks/EthereumSetAllowanceTask.d.ts +0 -1
- package/dist/cjs/core/tasks/EthereumSignAndExecuteTask.d.ts +0 -1
- package/dist/cjs/core/tasks/EthereumStandardSignAndExecuteTask.d.ts +0 -1
- package/dist/cjs/core/tasks/EthereumStandardWaitForTransactionTask.d.ts +0 -1
- package/dist/cjs/core/tasks/EthereumWaitForTransactionStatusTask.d.ts +0 -1
- package/dist/cjs/core/tasks/EthereumWaitForTransactionTask.d.ts +0 -1
- package/dist/cjs/core/tasks/helpers/estimateTransactionRequest.d.ts +0 -1
- package/dist/cjs/core/tasks/helpers/getEthereumExecutionStrategy.d.ts +4 -5
- package/dist/cjs/core/tasks/helpers/getTxLink.d.ts +0 -1
- package/dist/cjs/core/tasks/helpers/getUpdatedStep.d.ts +0 -1
- package/dist/cjs/core/tasks/helpers/isPermit2Supported.d.ts +0 -1
- package/dist/cjs/core/tasks/helpers/shouldCheckForAllowance.d.ts +0 -1
- package/dist/cjs/core/tasks/helpers/signHyperliquidTypedData.d.ts +0 -1
- package/dist/cjs/core/tasks/helpers/switchChain.d.ts +15 -16
- package/dist/cjs/core/tasks/helpers/updateActionWithReceipt.d.ts +3 -4
- package/dist/cjs/errors/parseEthereumErrors.d.ts +0 -1
- package/dist/cjs/hyperliquid/agentWallet.d.ts +0 -1
- package/dist/cjs/hyperliquid/isHyperliquidAgentStep.d.ts +0 -1
- package/dist/cjs/permits/allowanceTransfer.d.ts +0 -1
- package/dist/cjs/permits/canAccountUseNativePermits.d.ts +5 -6
- package/dist/cjs/permits/constants.d.ts +19 -20
- package/dist/cjs/permits/domain.d.ts +0 -1
- package/dist/cjs/permits/encodeNativePermitData.d.ts +0 -1
- package/dist/cjs/permits/encodePermit2Data.d.ts +0 -1
- package/dist/cjs/permits/getNativePermit.d.ts +1 -8
- package/dist/cjs/permits/getPermitTransferFromValues.d.ts +0 -1
- package/dist/cjs/permits/invariant.d.ts +14 -14
- package/dist/cjs/permits/isDelegationDesignatorCode.d.ts +20 -20
- package/dist/cjs/permits/isNativePermitValid.d.ts +2 -3
- package/dist/cjs/permits/signPermit2Message.d.ts +0 -1
- package/dist/cjs/permits/signatureTransfer.d.ts +0 -1
- package/dist/cjs/permits/types.d.ts +0 -1
- package/dist/cjs/types.d.ts +0 -1
- package/dist/cjs/utils/abi.d.ts +0 -1
- package/dist/cjs/utils/convertExtendedChain.d.ts +0 -1
- package/dist/cjs/utils/getActionWithFallback.d.ts +13 -14
- package/dist/cjs/utils/getDomainChainId.d.ts +4 -5
- package/dist/cjs/utils/getSafeApiKey.d.ts +0 -1
- package/dist/cjs/utils/isContractCallStep.d.ts +0 -1
- package/dist/cjs/utils/isExtendedChain.d.ts +0 -1
- package/dist/cjs/utils/isGaslessStep.d.ts +0 -1
- package/dist/cjs/utils/isRelayerStep.d.ts +0 -1
- package/dist/cjs/utils/isValidSignature.d.ts +6 -7
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/esm/EthereumProvider.d.ts +0 -1
- package/dist/esm/EthereumProvider.d.ts.map +1 -1
- package/dist/esm/actions/checkPermitSupport.d.ts +16 -20
- package/dist/esm/actions/checkPermitSupport.d.ts.map +1 -1
- package/dist/esm/actions/constants.d.ts +0 -1
- package/dist/esm/actions/constants.d.ts.map +1 -1
- package/dist/esm/actions/getAccountCode.d.ts +13 -18
- package/dist/esm/actions/getAccountCode.d.ts.map +1 -1
- package/dist/esm/actions/getAllowance.d.ts +13 -14
- package/dist/esm/actions/getAllowance.d.ts.map +1 -1
- package/dist/esm/actions/getEthereumBalance.d.ts +0 -1
- package/dist/esm/actions/getEthereumBalance.d.ts.map +1 -1
- package/dist/esm/actions/getMaxPriorityFeePerGas.d.ts +0 -1
- package/dist/esm/actions/getMaxPriorityFeePerGas.d.ts.map +1 -1
- package/dist/esm/actions/getMulticallAddress.d.ts +0 -1
- package/dist/esm/actions/getMulticallAddress.d.ts.map +1 -1
- package/dist/esm/actions/isBatchingSupported.d.ts +1 -6
- package/dist/esm/actions/isBatchingSupported.d.ts.map +1 -1
- package/dist/esm/actions/isSafeSignature.d.ts +6 -11
- package/dist/esm/actions/isSafeSignature.d.ts.map +1 -1
- package/dist/esm/actions/isSafeWallet.d.ts +4 -10
- package/dist/esm/actions/isSafeWallet.d.ts.map +1 -1
- package/dist/esm/actions/isSmartContractWallet.d.ts +4 -4
- package/dist/esm/actions/isSmartContractWallet.d.ts.map +1 -1
- package/dist/esm/actions/resolveENSAddress.d.ts +0 -1
- package/dist/esm/actions/resolveENSAddress.d.ts.map +1 -1
- package/dist/esm/actions/resolveEthereumAddress.d.ts +0 -1
- package/dist/esm/actions/resolveEthereumAddress.d.ts.map +1 -1
- package/dist/esm/actions/resolveTransactionHash.d.ts +0 -1
- package/dist/esm/actions/resolveTransactionHash.d.ts.map +1 -1
- package/dist/esm/actions/resolveUNSAddress.d.ts +0 -1
- package/dist/esm/actions/resolveUNSAddress.d.ts.map +1 -1
- package/dist/esm/actions/setAllowance.d.ts +19 -29
- package/dist/esm/actions/setAllowance.d.ts.map +1 -1
- package/dist/esm/actions/waitForBatchTransactionReceipt.d.ts +0 -1
- package/dist/esm/actions/waitForBatchTransactionReceipt.d.ts.map +1 -1
- package/dist/esm/actions/waitForRelayedTransactionReceipt.d.ts +0 -1
- package/dist/esm/actions/waitForRelayedTransactionReceipt.d.ts.map +1 -1
- package/dist/esm/actions/waitForSafeTransactionExecution.d.ts +9 -16
- package/dist/esm/actions/waitForSafeTransactionExecution.d.ts.map +1 -1
- package/dist/esm/actions/waitForTransactionReceipt.d.ts +1 -7
- package/dist/esm/actions/waitForTransactionReceipt.d.ts.map +1 -1
- package/dist/esm/client/publicClient.d.ts +5 -6
- package/dist/esm/client/publicClient.d.ts.map +1 -1
- package/dist/esm/client/safeClient.d.ts +0 -1
- package/dist/esm/client/safeClient.d.ts.map +1 -1
- package/dist/esm/client/types.d.ts.map +1 -1
- package/dist/esm/core/EthereumStepExecutor.d.ts +0 -1
- package/dist/esm/core/EthereumStepExecutor.d.ts.map +1 -1
- package/dist/esm/core/tasks/EthereumBatchedSignAndExecuteTask.d.ts +0 -1
- package/dist/esm/core/tasks/EthereumBatchedSignAndExecuteTask.d.ts.map +1 -1
- package/dist/esm/core/tasks/EthereumBatchedWaitForTransactionTask.d.ts +0 -1
- package/dist/esm/core/tasks/EthereumBatchedWaitForTransactionTask.d.ts.map +1 -1
- package/dist/esm/core/tasks/EthereumCheckAllowanceTask.d.ts +0 -1
- package/dist/esm/core/tasks/EthereumCheckAllowanceTask.d.ts.map +1 -1
- package/dist/esm/core/tasks/EthereumCheckBalanceTask.d.ts +8 -9
- package/dist/esm/core/tasks/EthereumCheckBalanceTask.d.ts.map +1 -1
- package/dist/esm/core/tasks/EthereumCheckPermitsTask.d.ts +0 -1
- package/dist/esm/core/tasks/EthereumCheckPermitsTask.d.ts.map +1 -1
- package/dist/esm/core/tasks/EthereumNativePermitTask.d.ts +0 -1
- package/dist/esm/core/tasks/EthereumNativePermitTask.d.ts.map +1 -1
- package/dist/esm/core/tasks/EthereumPrepareTransactionTask.d.ts +0 -1
- package/dist/esm/core/tasks/EthereumPrepareTransactionTask.d.ts.map +1 -1
- package/dist/esm/core/tasks/EthereumRelayedSignAndExecuteTask.d.ts +0 -1
- package/dist/esm/core/tasks/EthereumRelayedSignAndExecuteTask.d.ts.map +1 -1
- package/dist/esm/core/tasks/EthereumRelayedWaitForTransactionTask.d.ts +0 -1
- package/dist/esm/core/tasks/EthereumRelayedWaitForTransactionTask.d.ts.map +1 -1
- package/dist/esm/core/tasks/EthereumResetAllowanceTask.d.ts +0 -1
- package/dist/esm/core/tasks/EthereumResetAllowanceTask.d.ts.map +1 -1
- package/dist/esm/core/tasks/EthereumSetAllowanceTask.d.ts +0 -1
- package/dist/esm/core/tasks/EthereumSetAllowanceTask.d.ts.map +1 -1
- package/dist/esm/core/tasks/EthereumSignAndExecuteTask.d.ts +0 -1
- package/dist/esm/core/tasks/EthereumSignAndExecuteTask.d.ts.map +1 -1
- package/dist/esm/core/tasks/EthereumStandardSignAndExecuteTask.d.ts +0 -1
- package/dist/esm/core/tasks/EthereumStandardSignAndExecuteTask.d.ts.map +1 -1
- package/dist/esm/core/tasks/EthereumStandardWaitForTransactionTask.d.ts +0 -1
- package/dist/esm/core/tasks/EthereumStandardWaitForTransactionTask.d.ts.map +1 -1
- package/dist/esm/core/tasks/EthereumWaitForTransactionStatusTask.d.ts +0 -1
- package/dist/esm/core/tasks/EthereumWaitForTransactionStatusTask.d.ts.map +1 -1
- package/dist/esm/core/tasks/EthereumWaitForTransactionTask.d.ts +0 -1
- package/dist/esm/core/tasks/EthereumWaitForTransactionTask.d.ts.map +1 -1
- package/dist/esm/core/tasks/helpers/estimateTransactionRequest.d.ts +0 -1
- package/dist/esm/core/tasks/helpers/estimateTransactionRequest.d.ts.map +1 -1
- package/dist/esm/core/tasks/helpers/getEthereumExecutionStrategy.d.ts +4 -5
- package/dist/esm/core/tasks/helpers/getEthereumExecutionStrategy.d.ts.map +1 -1
- package/dist/esm/core/tasks/helpers/getTxLink.d.ts +0 -1
- package/dist/esm/core/tasks/helpers/getTxLink.d.ts.map +1 -1
- package/dist/esm/core/tasks/helpers/getUpdatedStep.d.ts +0 -1
- package/dist/esm/core/tasks/helpers/getUpdatedStep.d.ts.map +1 -1
- package/dist/esm/core/tasks/helpers/isPermit2Supported.d.ts +0 -1
- package/dist/esm/core/tasks/helpers/isPermit2Supported.d.ts.map +1 -1
- package/dist/esm/core/tasks/helpers/shouldCheckForAllowance.d.ts +0 -1
- package/dist/esm/core/tasks/helpers/shouldCheckForAllowance.d.ts.map +1 -1
- package/dist/esm/core/tasks/helpers/signHyperliquidTypedData.d.ts +0 -1
- package/dist/esm/core/tasks/helpers/signHyperliquidTypedData.d.ts.map +1 -1
- package/dist/esm/core/tasks/helpers/switchChain.d.ts +15 -16
- package/dist/esm/core/tasks/helpers/switchChain.d.ts.map +1 -1
- package/dist/esm/core/tasks/helpers/updateActionWithReceipt.d.ts +3 -4
- package/dist/esm/core/tasks/helpers/updateActionWithReceipt.d.ts.map +1 -1
- package/dist/esm/errors/parseEthereumErrors.d.ts +0 -1
- package/dist/esm/errors/parseEthereumErrors.d.ts.map +1 -1
- package/dist/esm/hyperliquid/agentWallet.d.ts +0 -1
- package/dist/esm/hyperliquid/agentWallet.d.ts.map +1 -1
- package/dist/esm/hyperliquid/isHyperliquidAgentStep.d.ts +0 -1
- package/dist/esm/hyperliquid/isHyperliquidAgentStep.d.ts.map +1 -1
- package/dist/esm/permits/allowanceTransfer.d.ts +0 -1
- package/dist/esm/permits/allowanceTransfer.d.ts.map +1 -1
- package/dist/esm/permits/canAccountUseNativePermits.d.ts +5 -6
- package/dist/esm/permits/canAccountUseNativePermits.d.ts.map +1 -1
- package/dist/esm/permits/constants.d.ts +19 -20
- package/dist/esm/permits/constants.d.ts.map +1 -1
- package/dist/esm/permits/domain.d.ts +0 -1
- package/dist/esm/permits/domain.d.ts.map +1 -1
- package/dist/esm/permits/encodeNativePermitData.d.ts +0 -1
- package/dist/esm/permits/encodeNativePermitData.d.ts.map +1 -1
- package/dist/esm/permits/encodePermit2Data.d.ts +0 -1
- package/dist/esm/permits/encodePermit2Data.d.ts.map +1 -1
- package/dist/esm/permits/getNativePermit.d.ts +1 -8
- package/dist/esm/permits/getNativePermit.d.ts.map +1 -1
- package/dist/esm/permits/getPermitTransferFromValues.d.ts +0 -1
- package/dist/esm/permits/getPermitTransferFromValues.d.ts.map +1 -1
- package/dist/esm/permits/invariant.d.ts +14 -14
- package/dist/esm/permits/invariant.d.ts.map +1 -1
- package/dist/esm/permits/isDelegationDesignatorCode.d.ts +20 -20
- package/dist/esm/permits/isDelegationDesignatorCode.d.ts.map +1 -1
- package/dist/esm/permits/isNativePermitValid.d.ts +2 -3
- package/dist/esm/permits/isNativePermitValid.d.ts.map +1 -1
- package/dist/esm/permits/signPermit2Message.d.ts +0 -1
- package/dist/esm/permits/signPermit2Message.d.ts.map +1 -1
- package/dist/esm/permits/signatureTransfer.d.ts +0 -1
- package/dist/esm/permits/signatureTransfer.d.ts.map +1 -1
- package/dist/esm/permits/types.d.ts +0 -1
- package/dist/esm/permits/types.d.ts.map +1 -1
- package/dist/esm/types.d.ts +0 -1
- package/dist/esm/types.d.ts.map +1 -1
- package/dist/esm/utils/abi.d.ts +0 -1
- package/dist/esm/utils/abi.d.ts.map +1 -1
- package/dist/esm/utils/convertExtendedChain.d.ts +0 -1
- package/dist/esm/utils/convertExtendedChain.d.ts.map +1 -1
- package/dist/esm/utils/getActionWithFallback.d.ts +13 -14
- package/dist/esm/utils/getActionWithFallback.d.ts.map +1 -1
- package/dist/esm/utils/getDomainChainId.d.ts +4 -5
- package/dist/esm/utils/getDomainChainId.d.ts.map +1 -1
- package/dist/esm/utils/getSafeApiKey.d.ts +0 -1
- package/dist/esm/utils/getSafeApiKey.d.ts.map +1 -1
- package/dist/esm/utils/isContractCallStep.d.ts +0 -1
- package/dist/esm/utils/isContractCallStep.d.ts.map +1 -1
- package/dist/esm/utils/isExtendedChain.d.ts +0 -1
- package/dist/esm/utils/isExtendedChain.d.ts.map +1 -1
- package/dist/esm/utils/isGaslessStep.d.ts +0 -1
- package/dist/esm/utils/isGaslessStep.d.ts.map +1 -1
- package/dist/esm/utils/isRelayerStep.d.ts +0 -1
- package/dist/esm/utils/isRelayerStep.d.ts.map +1 -1
- package/dist/esm/utils/isValidSignature.d.ts +6 -7
- package/dist/esm/utils/isValidSignature.d.ts.map +1 -1
- package/dist/esm/utils/isZeroAddress.d.ts.map +1 -1
- package/dist/esm/utils/median.d.ts.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.d.ts.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/package.json +3 -3
- package/src/version.ts +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EthereumStepExecutorContext } from "../../types.js";
|
|
2
2
|
import { BaseStepExecutionTask, TaskResult } from "@lifi/sdk";
|
|
3
|
-
|
|
4
3
|
//#region src/core/tasks/EthereumWaitForTransactionTask.d.ts
|
|
5
4
|
declare class EthereumWaitForTransactionTask extends BaseStepExecutionTask {
|
|
6
5
|
run(context: EthereumStepExecutorContext): Promise<TaskResult>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SDKClient, TransactionParameters } from "@lifi/sdk";
|
|
2
2
|
import { Client } from "viem";
|
|
3
|
-
|
|
4
3
|
//#region src/core/tasks/helpers/estimateTransactionRequest.d.ts
|
|
5
4
|
declare const estimateTransactionRequest: (client: SDKClient, viemClient: Client, transactionRequest: TransactionParameters) => Promise<TransactionParameters>;
|
|
6
5
|
//#endregion
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { EthereumStepExecutorContext } from "../../../types.js";
|
|
2
2
|
import { TransactionMethodType } from "@lifi/sdk";
|
|
3
|
-
|
|
4
3
|
//#region src/core/tasks/helpers/getEthereumExecutionStrategy.d.ts
|
|
5
4
|
/**
|
|
6
|
-
* Determines the execution strategy: 'relayed', 'batched', or 'standard'.
|
|
7
|
-
* Falls back to 'standard' when EIP-5792 batching is unavailable,
|
|
8
|
-
* the wallet rejected the 7702 upgrade, or the tool doesn't support it.
|
|
9
|
-
*/
|
|
5
|
+
* Determines the execution strategy: 'relayed', 'batched', or 'standard'.
|
|
6
|
+
* Falls back to 'standard' when EIP-5792 batching is unavailable,
|
|
7
|
+
* the wallet rejected the 7702 upgrade, or the tool doesn't support it.
|
|
8
|
+
*/
|
|
10
9
|
declare function getEthereumExecutionStrategy(context: EthereumStepExecutorContext, forceRecalculate?: boolean): Promise<TransactionMethodType>;
|
|
11
10
|
//#endregion
|
|
12
11
|
export { getEthereumExecutionStrategy };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ExecutionOptions, LiFiStepExtended, SDKClient, SignedTypedData } from "@lifi/sdk";
|
|
2
|
-
|
|
3
2
|
//#region src/core/tasks/helpers/getUpdatedStep.d.ts
|
|
4
3
|
declare const getUpdatedStep: (client: SDKClient, step: LiFiStepExtended, executionOptions?: ExecutionOptions, signedTypedData?: SignedTypedData[]) => Promise<LiFiStepExtended>;
|
|
5
4
|
//#endregion
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ExtendedChain, LiFiStepExtended, TransactionMethodType } from "@lifi/sdk";
|
|
2
|
-
|
|
3
2
|
//#region src/core/tasks/helpers/isPermit2Supported.d.ts
|
|
4
3
|
declare const isPermit2Supported: (step: LiFiStepExtended, fromChain: ExtendedChain, isFromNativeToken: boolean, disableMessageSigning: boolean, strategy: TransactionMethodType) => boolean;
|
|
5
4
|
//#endregion
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { LiFiStepExtended, StatusManager } from "@lifi/sdk";
|
|
2
|
-
|
|
3
2
|
//#region src/core/tasks/helpers/shouldCheckForAllowance.d.ts
|
|
4
3
|
declare const shouldCheckForAllowance: (step: LiFiStepExtended, isBridgeExecution: boolean, isFromNativeToken: boolean, statusManager: StatusManager) => boolean;
|
|
5
4
|
//#endregion
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EthereumStepExecutorContext } from "../../../types.js";
|
|
2
2
|
import { SignedTypedData, TypedData } from "@lifi/sdk";
|
|
3
|
-
|
|
4
3
|
//#region src/core/tasks/helpers/signHyperliquidTypedData.d.ts
|
|
5
4
|
declare const signHyperliquidTypedData: (context: EthereumStepExecutorContext, intentTypedData: TypedData[]) => Promise<SignedTypedData[] | undefined>;
|
|
6
5
|
//#endregion
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { Client } from "viem";
|
|
2
|
-
|
|
3
2
|
//#region src/core/tasks/helpers/switchChain.d.ts
|
|
4
3
|
/**
|
|
5
|
-
* This method checks whether the wallet client is configured for the correct chain.
|
|
6
|
-
* If yes it returns the wallet clien.
|
|
7
|
-
* If no and if user interaction is allowed it triggers the switchChain callback. If no user interaction is allowed it aborts.
|
|
8
|
-
*
|
|
9
|
-
* Account Type: local -
|
|
10
|
-
* We need to create and return a new connector client from the switchChain callback in order to continue execution on a new chain.
|
|
11
|
-
*
|
|
12
|
-
* Account Type: json-rpc -
|
|
13
|
-
* We can switch chain and return existing connector client from the switchChain callback in order to continue execution on a new chain.
|
|
14
|
-
* @param client The client to switch the chain for
|
|
15
|
-
* @param targetChainId The target chain id to switch to
|
|
16
|
-
* @param allowUserInteraction Whether user interaction is allowed
|
|
17
|
-
* @param switchChainCallback The callback to switch the chain
|
|
18
|
-
* @returns New connector client
|
|
19
|
-
*/
|
|
4
|
+
* This method checks whether the wallet client is configured for the correct chain.
|
|
5
|
+
* If yes it returns the wallet clien.
|
|
6
|
+
* If no and if user interaction is allowed it triggers the switchChain callback. If no user interaction is allowed it aborts.
|
|
7
|
+
*
|
|
8
|
+
* Account Type: local -
|
|
9
|
+
* We need to create and return a new connector client from the switchChain callback in order to continue execution on a new chain.
|
|
10
|
+
*
|
|
11
|
+
* Account Type: json-rpc -
|
|
12
|
+
* We can switch chain and return existing connector client from the switchChain callback in order to continue execution on a new chain.
|
|
13
|
+
* @param client The client to switch the chain for
|
|
14
|
+
* @param targetChainId The target chain id to switch to
|
|
15
|
+
* @param allowUserInteraction Whether user interaction is allowed
|
|
16
|
+
* @param switchChainCallback The callback to switch the chain
|
|
17
|
+
* @returns New connector client
|
|
18
|
+
*/
|
|
20
19
|
declare const switchChain: (client: Client, targetChainId: number, allowUserInteraction: boolean, switchChainCallback?: (chainId: number) => Promise<Client | undefined>) => Promise<Client | undefined>;
|
|
21
20
|
//#endregion
|
|
22
21
|
export { switchChain };
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { WalletCallReceipt as WalletCallReceipt$1 } from "../../../types.js";
|
|
2
2
|
import { ExecutionAction, ExtendedChain, LiFiStepExtended, StatusManager } from "@lifi/sdk";
|
|
3
3
|
import { TransactionReceipt } from "viem";
|
|
4
|
-
|
|
5
4
|
//#region src/core/tasks/helpers/updateActionWithReceipt.d.ts
|
|
6
5
|
/**
|
|
7
|
-
* Update action to PENDING with txHash/txLink from a transaction receipt when the receipt hash differs from current action.
|
|
8
|
-
* Returns the updated action or the same action if no update.
|
|
9
|
-
*/
|
|
6
|
+
* Update action to PENDING with txHash/txLink from a transaction receipt when the receipt hash differs from current action.
|
|
7
|
+
* Returns the updated action or the same action if no update.
|
|
8
|
+
*/
|
|
10
9
|
declare function updateActionWithReceipt(statusManager: StatusManager, step: LiFiStepExtended, fromChain: ExtendedChain, receipt: TransactionReceipt | WalletCallReceipt$1 | undefined, action: ExecutionAction): ExecutionAction;
|
|
11
10
|
//#endregion
|
|
12
11
|
export { updateActionWithReceipt };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ExecuteStepRetryError, ExecuteStepRetryParams, ExecutionAction, LiFiStep, SDKError } from "@lifi/sdk";
|
|
2
|
-
|
|
3
2
|
//#region src/errors/parseEthereumErrors.d.ts
|
|
4
3
|
declare const parseEthereumErrors: (e: Error, step?: LiFiStep, action?: ExecutionAction, retryParams?: ExecuteStepRetryParams) => Promise<SDKError | ExecuteStepRetryError>;
|
|
5
4
|
declare const isAtomicReadyWalletRejectedUpgradeError: (e: any) => boolean;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { LiFiStep, LiFiStepExtended, TypedData } from "@lifi/sdk";
|
|
2
|
-
|
|
3
2
|
//#region src/hyperliquid/isHyperliquidAgentStep.d.ts
|
|
4
3
|
declare function isHyperliquidAgentStep(step: LiFiStepExtended | LiFiStep): boolean;
|
|
5
4
|
declare function isApproveAgentMessage(typedData: TypedData): boolean;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { SDKClient } from "@lifi/sdk";
|
|
2
2
|
import { Client } from "viem";
|
|
3
|
-
|
|
4
3
|
//#region src/permits/canAccountUseNativePermits.d.ts
|
|
5
4
|
/**
|
|
6
|
-
* Whether the account can use native EIP-2612 permits — true for EOAs and
|
|
7
|
-
* EIP-7702 delegated EOAs (both produce ECDSA signatures), false for
|
|
8
|
-
* smart-contract wallets. Conservatively false on missing chain id or RPC
|
|
9
|
-
* failure ("if unsure, don't use permits").
|
|
10
|
-
*/
|
|
5
|
+
* Whether the account can use native EIP-2612 permits — true for EOAs and
|
|
6
|
+
* EIP-7702 delegated EOAs (both produce ECDSA signatures), false for
|
|
7
|
+
* smart-contract wallets. Conservatively false on missing chain id or RPC
|
|
8
|
+
* failure ("if unsure, don't use permits").
|
|
9
|
+
*/
|
|
11
10
|
declare const canAccountUseNativePermits: (client: SDKClient, viemClient: Client) => Promise<boolean>;
|
|
12
11
|
//#endregion
|
|
13
12
|
export { canAccountUseNativePermits };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Hex } from "viem";
|
|
2
|
-
|
|
3
2
|
//#region src/permits/constants.d.ts
|
|
4
3
|
declare const MaxUint48: bigint;
|
|
5
4
|
declare const MaxUint160: bigint;
|
|
@@ -15,32 +14,32 @@ declare const EIP_2612_PERMIT_SELECTOR = "0xd505accf";
|
|
|
15
14
|
declare const DAI_PERMIT_SELECTOR = "0x8fcbaf0c";
|
|
16
15
|
declare const PatcherMagicNumber = 314159265359n;
|
|
17
16
|
/**
|
|
18
|
-
* EIP-712 domain typehash with chainId
|
|
19
|
-
* @link https://eips.ethereum.org/EIPS/eip-712#specification
|
|
20
|
-
*
|
|
21
|
-
* keccak256(toBytes(
|
|
22
|
-
* 'EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)'
|
|
23
|
-
* ))
|
|
24
|
-
*/
|
|
17
|
+
* EIP-712 domain typehash with chainId
|
|
18
|
+
* @link https://eips.ethereum.org/EIPS/eip-712#specification
|
|
19
|
+
*
|
|
20
|
+
* keccak256(toBytes(
|
|
21
|
+
* 'EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)'
|
|
22
|
+
* ))
|
|
23
|
+
*/
|
|
25
24
|
declare const EIP712_DOMAIN_TYPEHASH: Hex;
|
|
26
25
|
/**
|
|
27
|
-
* EIP-712 domain typehash with salt (e.g. USDC.e on Polygon)
|
|
28
|
-
* @link https://eips.ethereum.org/EIPS/eip-712#specification
|
|
29
|
-
*
|
|
30
|
-
* keccak256(toBytes(
|
|
31
|
-
* 'EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)'
|
|
32
|
-
* ))
|
|
33
|
-
*/
|
|
26
|
+
* EIP-712 domain typehash with salt (e.g. USDC.e on Polygon)
|
|
27
|
+
* @link https://eips.ethereum.org/EIPS/eip-712#specification
|
|
28
|
+
*
|
|
29
|
+
* keccak256(toBytes(
|
|
30
|
+
* 'EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)'
|
|
31
|
+
* ))
|
|
32
|
+
*/
|
|
34
33
|
declare const EIP712_DOMAIN_TYPEHASH_WITH_SALT: Hex;
|
|
35
34
|
declare const EIP712_DOMAINS_WITHOUT_VERSION: Hex[];
|
|
36
35
|
/**
|
|
37
|
-
* @signature Permit(address holder,address spender,uint256 nonce,uint256 expiry,bool allowed)
|
|
38
|
-
* */
|
|
36
|
+
* @signature Permit(address holder,address spender,uint256 nonce,uint256 expiry,bool allowed)
|
|
37
|
+
* */
|
|
39
38
|
declare const DAI_LIKE_PERMIT_TYPEHASH: Hex;
|
|
40
39
|
/**
|
|
41
|
-
* @example `${tokenAddress}:${chainId}.toLowerCase()`
|
|
42
|
-
* @warning Only toLowerCase string
|
|
43
|
-
* */
|
|
40
|
+
* @example `${tokenAddress}:${chainId}.toLowerCase()`
|
|
41
|
+
* @warning Only toLowerCase string
|
|
42
|
+
* */
|
|
44
43
|
declare const TOKEN_ADDRESSES_WITH_SALT: string[];
|
|
45
44
|
declare const eip2612Types: {
|
|
46
45
|
readonly Permit: readonly [{
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Address, Hash, Hex } from "viem";
|
|
2
|
-
|
|
3
2
|
//#region src/permits/encodePermit2Data.d.ts
|
|
4
3
|
declare const encodePermit2Data: (tokenAddress: Address, amount: bigint, nonce: bigint, deadline: bigint, transactionData: Hex, signature: Hash, accountAddress?: Address, witness?: boolean) => Hex;
|
|
5
4
|
//#endregion
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { NativePermitData } from "./types.js";
|
|
2
2
|
import { SDKClient } from "@lifi/sdk";
|
|
3
3
|
import { Address, Client } from "viem";
|
|
4
|
-
|
|
5
4
|
//#region src/permits/getNativePermit.d.ts
|
|
6
5
|
type GetNativePermitParams = {
|
|
7
6
|
client: SDKClient;
|
|
@@ -20,13 +19,7 @@ type GetNativePermitParams = {
|
|
|
20
19
|
* @param tokenAddress - The address of the token to check for permit support
|
|
21
20
|
* @returns {Promise<NativePermitData>} Object containing permit data including name, version, nonce and support status
|
|
22
21
|
*/
|
|
23
|
-
declare const getNativePermit: (viemClient: Client, {
|
|
24
|
-
client,
|
|
25
|
-
chainId,
|
|
26
|
-
tokenAddress,
|
|
27
|
-
spenderAddress,
|
|
28
|
-
amount
|
|
29
|
-
}: GetNativePermitParams) => Promise<NativePermitData | undefined>;
|
|
22
|
+
declare const getNativePermit: (viemClient: Client, { client, chainId, tokenAddress, spenderAddress, amount }: GetNativePermitParams) => Promise<NativePermitData | undefined>;
|
|
30
23
|
//#endregion
|
|
31
24
|
export { getNativePermit };
|
|
32
25
|
//# sourceMappingURL=getNativePermit.d.ts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PermitTransferFrom } from "./signatureTransfer.js";
|
|
2
2
|
import { ExtendedChain, SDKClient } from "@lifi/sdk";
|
|
3
3
|
import { Address, Client } from "viem";
|
|
4
|
-
|
|
5
4
|
//#region src/permits/getPermitTransferFromValues.d.ts
|
|
6
5
|
declare const getPermitTransferFromValues: (client: SDKClient, viemClient: Client, chain: ExtendedChain, tokenAddress: Address, amount: bigint) => Promise<PermitTransferFrom>;
|
|
7
6
|
//#endregion
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
//#region src/permits/invariant.d.ts
|
|
2
2
|
/**
|
|
3
|
-
* `invariant` is used to [assert](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#assertion-functions) that the `condition` is [truthy](https://github.com/getify/You-Dont-Know-JS/blob/bdbe570600d4e1107d0b131787903ca1c9ec8140/up%20%26%20going/ch2.md#truthy--falsy).
|
|
4
|
-
*
|
|
5
|
-
* 💥 `invariant` will `throw` an `Error` if the `condition` is [falsey](https://github.com/getify/You-Dont-Know-JS/blob/bdbe570600d4e1107d0b131787903ca1c9ec8140/up%20%26%20going/ch2.md#truthy--falsy)
|
|
6
|
-
*
|
|
7
|
-
* 🤏 `message`s are not displayed in production environments to help keep bundles small
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
*
|
|
11
|
-
* ```ts
|
|
12
|
-
* const value: Person | null = { name: 'Alex' };
|
|
13
|
-
* invariant(value, 'Expected value to be a person');
|
|
14
|
-
* // type of `value`` has been narrowed to `Person`
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
3
|
+
* `invariant` is used to [assert](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#assertion-functions) that the `condition` is [truthy](https://github.com/getify/You-Dont-Know-JS/blob/bdbe570600d4e1107d0b131787903ca1c9ec8140/up%20%26%20going/ch2.md#truthy--falsy).
|
|
4
|
+
*
|
|
5
|
+
* 💥 `invariant` will `throw` an `Error` if the `condition` is [falsey](https://github.com/getify/You-Dont-Know-JS/blob/bdbe570600d4e1107d0b131787903ca1c9ec8140/up%20%26%20going/ch2.md#truthy--falsy)
|
|
6
|
+
*
|
|
7
|
+
* 🤏 `message`s are not displayed in production environments to help keep bundles small
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
*
|
|
11
|
+
* ```ts
|
|
12
|
+
* const value: Person | null = { name: 'Alex' };
|
|
13
|
+
* invariant(value, 'Expected value to be a person');
|
|
14
|
+
* // type of `value`` has been narrowed to `Person`
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
17
|
declare function invariant(condition: any, message?: string | (() => string)): asserts condition;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { invariant };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
//#region src/permits/isDelegationDesignatorCode.d.ts
|
|
2
2
|
/**
|
|
3
|
-
* EIP-7702 introduces delegation designators that allow EOAs to delegate execution to other contracts.
|
|
4
|
-
* A delegation designator starts with 0xef0100 followed by the target contract address.
|
|
5
|
-
*
|
|
6
|
-
* When an EOA has this code, it means:
|
|
7
|
-
* - The EOA can still send transactions (unlike other contract accounts)
|
|
8
|
-
* - All contract calls are delegated to the target address
|
|
9
|
-
* - The code itself remains as the delegation designator (0xef0100 || address)
|
|
10
|
-
*
|
|
11
|
-
* Delegation Designator Structure:
|
|
12
|
-
*
|
|
13
|
-
* ─────┬───┬──┬───────────────────────────────────────┐
|
|
14
|
-
* │ │ │ │
|
|
15
|
-
* 0x ef 0100 a94f5374fce5edbc8e2a8697c15331677e6ebf0b
|
|
16
|
-
* │ │ └───────────────────────────────────────┘
|
|
17
|
-
* │ │ Target Address
|
|
18
|
-
* │ └── 7702
|
|
19
|
-
* └── 3541
|
|
20
|
-
*
|
|
21
|
-
* @see https://eips.ethereum.org/EIPS/eip-7702
|
|
22
|
-
*/
|
|
3
|
+
* EIP-7702 introduces delegation designators that allow EOAs to delegate execution to other contracts.
|
|
4
|
+
* A delegation designator starts with 0xef0100 followed by the target contract address.
|
|
5
|
+
*
|
|
6
|
+
* When an EOA has this code, it means:
|
|
7
|
+
* - The EOA can still send transactions (unlike other contract accounts)
|
|
8
|
+
* - All contract calls are delegated to the target address
|
|
9
|
+
* - The code itself remains as the delegation designator (0xef0100 || address)
|
|
10
|
+
*
|
|
11
|
+
* Delegation Designator Structure:
|
|
12
|
+
*
|
|
13
|
+
* ─────┬───┬──┬───────────────────────────────────────┐
|
|
14
|
+
* │ │ │ │
|
|
15
|
+
* 0x ef 0100 a94f5374fce5edbc8e2a8697c15331677e6ebf0b
|
|
16
|
+
* │ │ └───────────────────────────────────────┘
|
|
17
|
+
* │ │ Target Address
|
|
18
|
+
* │ └── 7702
|
|
19
|
+
* └── 3541
|
|
20
|
+
*
|
|
21
|
+
* @see https://eips.ethereum.org/EIPS/eip-7702
|
|
22
|
+
*/
|
|
23
23
|
declare const isDelegationDesignatorCode: (code?: string) => boolean;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { isDelegationDesignatorCode };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { SignedTypedData, TypedData } from "@lifi/sdk";
|
|
2
|
-
|
|
3
2
|
//#region src/permits/isNativePermitValid.d.ts
|
|
4
3
|
/**
|
|
5
|
-
* Checks if an existing native permit is valid for the given requirements
|
|
6
|
-
*/
|
|
4
|
+
* Checks if an existing native permit is valid for the given requirements
|
|
5
|
+
*/
|
|
7
6
|
declare const isNativePermitValid: (permit: SignedTypedData, typedData: TypedData) => boolean;
|
|
8
7
|
//#endregion
|
|
9
8
|
export { isNativePermitValid };
|
package/dist/cjs/types.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BaseToken, LiFiStep, LiFiStepExtended, SDKClient, SDKProvider, SDKStorage, SignedTypedData, StepExecutorContext, TransactionMethodType, TransactionParameters } from "@lifi/sdk";
|
|
2
2
|
import { Address, Client, FallbackTransportConfig, Hex, WalletCallReceipt as WalletCallReceipt$1 } from "viem";
|
|
3
|
-
|
|
4
3
|
//#region src/types.d.ts
|
|
5
4
|
interface EthereumProviderOptions {
|
|
6
5
|
getWalletClient?: () => Promise<Client>;
|
package/dist/cjs/utils/abi.d.ts
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import { SDKClient } from "@lifi/sdk";
|
|
2
2
|
import { Account, Chain, Client, PublicActions, RpcSchema, Transport, WalletActions } from "viem";
|
|
3
|
-
|
|
4
3
|
//#region src/utils/getActionWithFallback.d.ts
|
|
5
4
|
/**
|
|
6
|
-
* Executes an action with a fallback to public client if the wallet client fails due to rate limiting
|
|
7
|
-
* or similar recoverable errors.
|
|
8
|
-
*
|
|
9
|
-
* Note: Only falls back to public client if the initial client was a wallet client (has an account address).
|
|
10
|
-
* If the initial client was already a public client, no fallback will occur.
|
|
11
|
-
*
|
|
12
|
-
* @param client - The SDK client
|
|
13
|
-
* @param walletClient - The wallet client to use primarily
|
|
14
|
-
* @param action - The function or method to execute
|
|
15
|
-
* @param actionName - The name of the action (used for error handling)
|
|
16
|
-
* @param params - The parameters for the action
|
|
17
|
-
* @returns The result of the action
|
|
18
|
-
*/
|
|
5
|
+
* Executes an action with a fallback to public client if the wallet client fails due to rate limiting
|
|
6
|
+
* or similar recoverable errors.
|
|
7
|
+
*
|
|
8
|
+
* Note: Only falls back to public client if the initial client was a wallet client (has an account address).
|
|
9
|
+
* If the initial client was already a public client, no fallback will occur.
|
|
10
|
+
*
|
|
11
|
+
* @param client - The SDK client
|
|
12
|
+
* @param walletClient - The wallet client to use primarily
|
|
13
|
+
* @param action - The function or method to execute
|
|
14
|
+
* @param actionName - The name of the action (used for error handling)
|
|
15
|
+
* @param params - The parameters for the action
|
|
16
|
+
* @returns The result of the action
|
|
17
|
+
*/
|
|
19
18
|
declare const getActionWithFallback: <transport extends Transport, chain extends Chain | undefined, account extends Account | undefined, rpcSchema extends RpcSchema | undefined, extended extends {
|
|
20
19
|
[key: string]: unknown;
|
|
21
20
|
}, client extends Client<transport, chain, account, rpcSchema, extended>, parameters, returnType>(client: SDKClient, walletClient: client, actionFn: (_: client, parameters: parameters) => returnType, name: keyof PublicActions | keyof WalletActions | (string & {}), params: parameters) => Promise<Awaited<returnType>>;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { TypedDataDomain } from "viem";
|
|
2
|
-
|
|
3
2
|
//#region src/utils/getDomainChainId.d.ts
|
|
4
3
|
/**
|
|
5
|
-
* Helper function to get the chain ID from a TypedDataDomain.
|
|
6
|
-
* Extracts the chain ID from either the chainId field or the salt field.
|
|
7
|
-
* The salt is expected to be a padded hex string representation of the chainId.
|
|
8
|
-
*/
|
|
4
|
+
* Helper function to get the chain ID from a TypedDataDomain.
|
|
5
|
+
* Extracts the chain ID from either the chainId field or the salt field.
|
|
6
|
+
* The salt is expected to be a padded hex string representation of the chainId.
|
|
7
|
+
*/
|
|
9
8
|
declare const getDomainChainId: (domain: TypedDataDomain) => number | null;
|
|
10
9
|
//#endregion
|
|
11
10
|
export { getDomainChainId };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { RelayerStep } from "../types.js";
|
|
2
2
|
import { ExtendedChain, LiFiStep, LiFiStepExtended } from "@lifi/sdk";
|
|
3
|
-
|
|
4
3
|
//#region src/utils/isGaslessStep.d.ts
|
|
5
4
|
declare function isGaslessStep(step: LiFiStepExtended | LiFiStep, chain?: ExtendedChain): step is RelayerStep;
|
|
6
5
|
//#endregion
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { Hex } from "viem";
|
|
2
|
-
|
|
3
2
|
//#region src/utils/isValidSignature.d.ts
|
|
4
3
|
/**
|
|
5
|
-
* Checks that a wallet-returned signature is a usable hex string.
|
|
6
|
-
* Some wallets can resolve `signTypedData` with a nullish or empty ('0x')
|
|
7
|
-
* value instead of rejecting.
|
|
8
|
-
* Signature length is intentionally not validated: 65-byte, EIP-2098 compact
|
|
9
|
-
* and arbitrary-length smart account (ERC-1271) signatures are all valid.
|
|
10
|
-
*/
|
|
4
|
+
* Checks that a wallet-returned signature is a usable hex string.
|
|
5
|
+
* Some wallets can resolve `signTypedData` with a nullish or empty ('0x')
|
|
6
|
+
* value instead of rejecting.
|
|
7
|
+
* Signature length is intentionally not validated: 65-byte, EIP-2098 compact
|
|
8
|
+
* and arbitrary-length smart account (ERC-1271) signatures are all valid.
|
|
9
|
+
*/
|
|
11
10
|
declare function isValidSignature(signature: Hex | null | undefined): signature is Hex;
|
|
12
11
|
declare function assertValidSignature(signature: Hex | null | undefined): asserts signature is Hex;
|
|
13
12
|
//#endregion
|
package/dist/cjs/version.d.ts
CHANGED
package/dist/cjs/version.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
//#region src/version.ts
|
|
3
3
|
const name = "@lifi/sdk-provider-ethereum";
|
|
4
|
-
const version = "4.0.
|
|
4
|
+
const version = "4.0.7";
|
|
5
5
|
//#endregion
|
|
6
6
|
exports.name = name;
|
|
7
7
|
exports.version = version;
|
package/dist/cjs/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","names":[],"sources":["../../src/version.ts"],"sourcesContent":["export const name = '@lifi/sdk-provider-ethereum'\nexport const version = '4.0.
|
|
1
|
+
{"version":3,"file":"version.js","names":[],"sources":["../../src/version.ts"],"sourcesContent":["export const name = '@lifi/sdk-provider-ethereum'\nexport const version = '4.0.7'\n"],"mappings":";;AAAA,MAAa,OAAO;AACpB,MAAa,UAAU"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EthereumProvider.d.ts","names":[],"sources":["../../src/EthereumProvider.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"EthereumProvider.d.ts","names":[],"sources":["../../src/EthereumProvider.ts"],"mappings":";;iBAOgB,iBACd,UAAU,0BACT"}
|