@lifi/sdk-provider-ethereum 4.0.5 → 4.0.6
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 +6 -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 +2 -2
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @lifi/sdk-provider-ethereum
|
|
2
2
|
|
|
3
|
+
## 4.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#429](https://github.com/lifinance/sdk/pull/429) [`1de76f9`](https://github.com/lifinance/sdk/commit/1de76f93fcbdddc9df269581822036e4eecd3e78) Thanks [@chybisov](https://github.com/chybisov)! - Bump runtime dependencies: viem to 2.55.1 (ethereum), @bigmi/core to 0.9.0 (bitcoin), and @mysten/sui to 2.20.3 (sui).
|
|
8
|
+
|
|
3
9
|
## 4.0.5
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -1,30 +1,26 @@
|
|
|
1
1
|
import { ExtendedChain, SDKClient } from "@lifi/sdk";
|
|
2
2
|
import { Address } from "viem";
|
|
3
|
-
|
|
4
3
|
//#region src/actions/checkPermitSupport.d.ts
|
|
5
4
|
type PermitSupport = {
|
|
6
|
-
/** Whether the token supports EIP-2612 native permits */
|
|
5
|
+
/** Whether the token supports EIP-2612 native permits */
|
|
6
|
+
nativePermitSupported: boolean;
|
|
7
|
+
/** Whether Permit2 is available and has sufficient allowance */
|
|
7
8
|
permit2AllowanceSufficient: boolean;
|
|
8
9
|
};
|
|
9
10
|
/**
|
|
10
|
-
* Checks what permit types are supported for a token on a specific chain.
|
|
11
|
-
* Checks in order:
|
|
12
|
-
* 1. Native permit (EIP-2612) support
|
|
13
|
-
* 2. Permit2 availability and allowance
|
|
14
|
-
*
|
|
15
|
-
* @param client - The SDK client
|
|
16
|
-
* @param chain - The chain to check permit support on
|
|
17
|
-
* @param tokenAddress - The token address to check
|
|
18
|
-
* @param ownerAddress - The address that would sign the permit
|
|
19
|
-
* @param amount - The amount to check allowance against for Permit2
|
|
20
|
-
* @returns Object indicating which permit types are supported
|
|
21
|
-
*/
|
|
22
|
-
declare const checkPermitSupport: (client: SDKClient, {
|
|
23
|
-
chain,
|
|
24
|
-
tokenAddress,
|
|
25
|
-
ownerAddress,
|
|
26
|
-
amount
|
|
27
|
-
}: {
|
|
11
|
+
* Checks what permit types are supported for a token on a specific chain.
|
|
12
|
+
* Checks in order:
|
|
13
|
+
* 1. Native permit (EIP-2612) support
|
|
14
|
+
* 2. Permit2 availability and allowance
|
|
15
|
+
*
|
|
16
|
+
* @param client - The SDK client
|
|
17
|
+
* @param chain - The chain to check permit support on
|
|
18
|
+
* @param tokenAddress - The token address to check
|
|
19
|
+
* @param ownerAddress - The address that would sign the permit
|
|
20
|
+
* @param amount - The amount to check allowance against for Permit2
|
|
21
|
+
* @returns Object indicating which permit types are supported
|
|
22
|
+
*/
|
|
23
|
+
declare const checkPermitSupport: (client: SDKClient, { chain, tokenAddress, ownerAddress, amount }: {
|
|
28
24
|
chain: ExtendedChain;
|
|
29
25
|
tokenAddress: Address;
|
|
30
26
|
ownerAddress: Address;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SDKClient } from "@lifi/sdk";
|
|
2
2
|
import { Address, Hex } from "viem";
|
|
3
|
-
|
|
4
3
|
//#region src/actions/getAccountCode.d.ts
|
|
5
4
|
type GetAccountCodeParams = {
|
|
6
5
|
client: SDKClient;
|
|
@@ -8,23 +7,19 @@ type GetAccountCodeParams = {
|
|
|
8
7
|
address: Address;
|
|
9
8
|
};
|
|
10
9
|
/**
|
|
11
|
-
* Shared `eth_getCode` fetcher. Deliberately uncached across executions so
|
|
12
|
-
* a wallet re-delegate / upgrade / un-delegate in another tab is never
|
|
13
|
-
* served stale; `withDedupe` only collapses concurrent in-flight callers.
|
|
14
|
-
*
|
|
15
|
-
* Always queries the SDK's per-chain public client (never the wallet
|
|
16
|
-
* client) so cross-chain steps and post-chain-switch flows read from the
|
|
17
|
-
* chain the step actually executes on.
|
|
18
|
-
*
|
|
19
|
-
* Returns `undefined` on RPC failure. Each caller MUST classify that
|
|
20
|
-
* explicitly (e.g. "treat as EOA" vs. "treat as not-permittable") — there
|
|
21
|
-
* is no single safe default.
|
|
22
|
-
*/
|
|
23
|
-
declare const getAccountCode: ({
|
|
24
|
-
client,
|
|
25
|
-
chainId,
|
|
26
|
-
address
|
|
27
|
-
}: GetAccountCodeParams) => Promise<Hex | undefined>;
|
|
10
|
+
* Shared `eth_getCode` fetcher. Deliberately uncached across executions so
|
|
11
|
+
* a wallet re-delegate / upgrade / un-delegate in another tab is never
|
|
12
|
+
* served stale; `withDedupe` only collapses concurrent in-flight callers.
|
|
13
|
+
*
|
|
14
|
+
* Always queries the SDK's per-chain public client (never the wallet
|
|
15
|
+
* client) so cross-chain steps and post-chain-switch flows read from the
|
|
16
|
+
* chain the step actually executes on.
|
|
17
|
+
*
|
|
18
|
+
* Returns `undefined` on RPC failure. Each caller MUST classify that
|
|
19
|
+
* explicitly (e.g. "treat as EOA" vs. "treat as not-permittable") — there
|
|
20
|
+
* is no single safe default.
|
|
21
|
+
*/
|
|
22
|
+
declare const getAccountCode: ({ client, chainId, address }: GetAccountCodeParams) => Promise<Hex | undefined>;
|
|
28
23
|
//#endregion
|
|
29
24
|
export { getAccountCode };
|
|
30
25
|
//# sourceMappingURL=getAccountCode.d.ts.map
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import { TokenAllowance, TokenSpender, TokenSpenderAllowance } from "../types.js";
|
|
2
2
|
import { BaseToken, ChainId, SDKClient } from "@lifi/sdk";
|
|
3
3
|
import { Address, Client } from "viem";
|
|
4
|
-
|
|
5
4
|
//#region src/actions/getAllowance.d.ts
|
|
6
5
|
declare const getAllowance: (client: SDKClient, viemClient: Client, tokenAddress: Address, ownerAddress: Address, spenderAddress: Address) => Promise<bigint>;
|
|
7
6
|
declare const getAllowanceMulticall: (client: SDKClient, viemClient: Client, chainId: ChainId, tokens: TokenSpender[], ownerAddress: Address) => Promise<TokenSpenderAllowance[]>;
|
|
8
7
|
/**
|
|
9
|
-
* Get the current allowance for a certain token.
|
|
10
|
-
* @param client - The SDK client
|
|
11
|
-
* @param token - The token that should be checked
|
|
12
|
-
* @param ownerAddress - The owner of the token
|
|
13
|
-
* @param spenderAddress - The spender address that has to be approved
|
|
14
|
-
* @returns Returns allowance
|
|
15
|
-
*/
|
|
8
|
+
* Get the current allowance for a certain token.
|
|
9
|
+
* @param client - The SDK client
|
|
10
|
+
* @param token - The token that should be checked
|
|
11
|
+
* @param ownerAddress - The owner of the token
|
|
12
|
+
* @param spenderAddress - The spender address that has to be approved
|
|
13
|
+
* @returns Returns allowance
|
|
14
|
+
*/
|
|
16
15
|
declare const getTokenAllowance: (client: SDKClient, token: BaseToken, ownerAddress: Address, spenderAddress: Address) => Promise<bigint | undefined>;
|
|
17
16
|
/**
|
|
18
|
-
* Get the current allowance for a list of token/spender address pairs.
|
|
19
|
-
* @param client - The SDK client
|
|
20
|
-
* @param ownerAddress - The owner of the tokens
|
|
21
|
-
* @param tokens - A list of token and spender address pairs
|
|
22
|
-
* @returns Returns array of tokens and their allowance
|
|
23
|
-
*/
|
|
17
|
+
* Get the current allowance for a list of token/spender address pairs.
|
|
18
|
+
* @param client - The SDK client
|
|
19
|
+
* @param ownerAddress - The owner of the tokens
|
|
20
|
+
* @param tokens - A list of token and spender address pairs
|
|
21
|
+
* @returns Returns array of tokens and their allowance
|
|
22
|
+
*/
|
|
24
23
|
declare const getTokenAllowanceMulticall: (client: SDKClient, ownerAddress: Address, tokens: TokenSpender[]) => Promise<TokenAllowance[]>;
|
|
25
24
|
//#endregion
|
|
26
25
|
export { getAllowance, getAllowanceMulticall, getTokenAllowance, getTokenAllowanceMulticall };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SDKClient, Token, TokenAmount } from "@lifi/sdk";
|
|
2
2
|
import { Address } from "viem";
|
|
3
|
-
|
|
4
3
|
//#region src/actions/getEthereumBalance.d.ts
|
|
5
4
|
declare const getEthereumBalance: (client: SDKClient, walletAddress: Address, tokens: Token[]) => Promise<TokenAmount[]>;
|
|
6
5
|
//#endregion
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { SDKClient } from "@lifi/sdk";
|
|
2
2
|
import { Client } from "viem";
|
|
3
|
-
|
|
4
3
|
//#region src/actions/isBatchingSupported.d.ts
|
|
5
|
-
declare function isBatchingSupported(client: SDKClient, {
|
|
6
|
-
client: viemClient,
|
|
7
|
-
chainId,
|
|
8
|
-
skipReady
|
|
9
|
-
}: {
|
|
4
|
+
declare function isBatchingSupported(client: SDKClient, { client: viemClient, chainId, skipReady }: {
|
|
10
5
|
client?: Client;
|
|
11
6
|
chainId: number;
|
|
12
7
|
skipReady?: boolean;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SDKClient } from "@lifi/sdk";
|
|
2
2
|
import { Address } from "viem";
|
|
3
|
-
|
|
4
3
|
//#region src/actions/isSafeSignature.d.ts
|
|
5
4
|
interface IsSafeSignatureProps {
|
|
6
5
|
hash: string;
|
|
@@ -8,16 +7,12 @@ interface IsSafeSignatureProps {
|
|
|
8
7
|
address?: Address;
|
|
9
8
|
}
|
|
10
9
|
/**
|
|
11
|
-
* Check if a transaction response is a Safe wallet signature (queued transaction)
|
|
12
|
-
*
|
|
13
|
-
* Safe wallets via Rabby return a signature (65 bytes = 132 chars) instead of
|
|
14
|
-
* a transaction hash (32 bytes = 66 chars) for queued transactions.
|
|
15
|
-
*/
|
|
16
|
-
declare function isSafeSignature(client: SDKClient, {
|
|
17
|
-
hash,
|
|
18
|
-
chainId,
|
|
19
|
-
address
|
|
20
|
-
}: IsSafeSignatureProps): Promise<boolean>;
|
|
10
|
+
* Check if a transaction response is a Safe wallet signature (queued transaction)
|
|
11
|
+
*
|
|
12
|
+
* Safe wallets via Rabby return a signature (65 bytes = 132 chars) instead of
|
|
13
|
+
* a transaction hash (32 bytes = 66 chars) for queued transactions.
|
|
14
|
+
*/
|
|
15
|
+
declare function isSafeSignature(client: SDKClient, { hash, chainId, address }: IsSafeSignatureProps): Promise<boolean>;
|
|
21
16
|
//#endregion
|
|
22
17
|
export { IsSafeSignatureProps, isSafeSignature };
|
|
23
18
|
//# sourceMappingURL=isSafeSignature.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SDKClient } from "@lifi/sdk";
|
|
2
2
|
import { Address } from "viem";
|
|
3
|
-
|
|
4
3
|
//#region src/actions/isSafeWallet.d.ts
|
|
5
4
|
type IsSafeWalletParams = {
|
|
6
5
|
client: SDKClient;
|
|
@@ -9,15 +8,10 @@ type IsSafeWalletParams = {
|
|
|
9
8
|
safeApiKey?: string;
|
|
10
9
|
};
|
|
11
10
|
/**
|
|
12
|
-
* Check if an address is a Safe wallet via the Safe Transaction Service,
|
|
13
|
-
* short-circuiting on `eth_getCode` for EOAs (incl. EIP-7702 delegated).
|
|
14
|
-
*/
|
|
15
|
-
declare function isSafeWallet({
|
|
16
|
-
client,
|
|
17
|
-
chainId,
|
|
18
|
-
address,
|
|
19
|
-
safeApiKey
|
|
20
|
-
}: IsSafeWalletParams): Promise<boolean>;
|
|
11
|
+
* Check if an address is a Safe wallet via the Safe Transaction Service,
|
|
12
|
+
* short-circuiting on `eth_getCode` for EOAs (incl. EIP-7702 delegated).
|
|
13
|
+
*/
|
|
14
|
+
declare function isSafeWallet({ client, chainId, address, safeApiKey }: IsSafeWalletParams): Promise<boolean>;
|
|
21
15
|
//#endregion
|
|
22
16
|
export { isSafeWallet };
|
|
23
17
|
//# sourceMappingURL=isSafeWallet.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
//#region src/actions/isSmartContractWallet.d.ts
|
|
2
2
|
/**
|
|
3
|
-
* True iff the code is a smart-contract wallet (Safe, ERC-4337, ERC-7579,
|
|
4
|
-
* custom). Plain EOAs and EIP-7702 delegated EOAs (which still pay their
|
|
5
|
-
* own gas / can sign ECDSA) return false.
|
|
6
|
-
*/
|
|
3
|
+
* True iff the code is a smart-contract wallet (Safe, ERC-4337, ERC-7579,
|
|
4
|
+
* custom). Plain EOAs and EIP-7702 delegated EOAs (which still pay their
|
|
5
|
+
* own gas / can sign ECDSA) return false.
|
|
6
|
+
*/
|
|
7
7
|
declare const isSmartContractWalletCode: (code?: string) => boolean;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { isSmartContractWalletCode };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SDKClient } from "@lifi/sdk";
|
|
2
2
|
import { Client, Hash } from "viem";
|
|
3
|
-
|
|
4
3
|
//#region src/actions/resolveTransactionHash.d.ts
|
|
5
4
|
declare const resolveTransactionHash: (client: SDKClient, viemClient: Client, txHashOrSignature: Hash, chainId: number) => Promise<Hash>;
|
|
6
5
|
//#endregion
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ChainId, ChainType, CoinKey, SDKClient } from "@lifi/sdk";
|
|
2
|
-
|
|
3
2
|
//#region src/actions/resolveUNSAddress.d.ts
|
|
4
3
|
declare const resolveUNSAddress: (client: SDKClient, name: string, chainType: ChainType, chain?: ChainId, token?: CoinKey) => Promise<string | undefined>;
|
|
5
4
|
//#endregion
|
|
@@ -1,39 +1,29 @@
|
|
|
1
1
|
import { ApproveTokenRequest, RevokeApprovalRequest } from "../types.js";
|
|
2
2
|
import { ExecutionOptions, SDKClient } from "@lifi/sdk";
|
|
3
3
|
import { Address, Client, Hash, Hex } from "viem";
|
|
4
|
-
|
|
5
4
|
//#region src/actions/setAllowance.d.ts
|
|
6
5
|
declare const setAllowance: (client: SDKClient, viemClient: Client, tokenAddress: Address, contractAddress: Address, amount: bigint, executionOptions?: ExecutionOptions, returnPopulatedTransaction?: boolean) => Promise<Hash | Hex>;
|
|
7
6
|
/**
|
|
8
|
-
* Set approval for a certain token and amount.
|
|
9
|
-
* @param client - The SDK client
|
|
10
|
-
* @param request - The approval request
|
|
11
|
-
* @param request.walletClient - The Viem wallet client used to send the transaction
|
|
12
|
-
* @param request.token - The token for which to set the allowance
|
|
13
|
-
* @param request.spenderAddress - The address of the spender
|
|
14
|
-
* @param request.amount - The amount of tokens to approve
|
|
15
|
-
* @returns Returns Hash or nothing
|
|
16
|
-
*/
|
|
17
|
-
declare const setTokenAllowance: (client: SDKClient, {
|
|
18
|
-
walletClient,
|
|
19
|
-
token,
|
|
20
|
-
spenderAddress,
|
|
21
|
-
amount
|
|
22
|
-
}: ApproveTokenRequest) => Promise<Hash | void>;
|
|
7
|
+
* Set approval for a certain token and amount.
|
|
8
|
+
* @param client - The SDK client
|
|
9
|
+
* @param request - The approval request
|
|
10
|
+
* @param request.walletClient - The Viem wallet client used to send the transaction
|
|
11
|
+
* @param request.token - The token for which to set the allowance
|
|
12
|
+
* @param request.spenderAddress - The address of the spender
|
|
13
|
+
* @param request.amount - The amount of tokens to approve
|
|
14
|
+
* @returns Returns Hash or nothing
|
|
15
|
+
*/
|
|
16
|
+
declare const setTokenAllowance: (client: SDKClient, { walletClient, token, spenderAddress, amount }: ApproveTokenRequest) => Promise<Hash | void>;
|
|
23
17
|
/**
|
|
24
|
-
* Revoke approval for a certain token.
|
|
25
|
-
* @param client - The SDK client
|
|
26
|
-
* @param request - The revoke request
|
|
27
|
-
* @param request.walletClient - The Viem wallet client used to send the transaction
|
|
28
|
-
* @param request.token - The token for which to revoke the allowance
|
|
29
|
-
* @param request.spenderAddress - The address of the spender
|
|
30
|
-
* @returns Returns Hash or nothing
|
|
31
|
-
*/
|
|
32
|
-
declare const revokeTokenApproval: (client: SDKClient, {
|
|
33
|
-
walletClient,
|
|
34
|
-
token,
|
|
35
|
-
spenderAddress
|
|
36
|
-
}: RevokeApprovalRequest) => Promise<Hash | void>;
|
|
18
|
+
* Revoke approval for a certain token.
|
|
19
|
+
* @param client - The SDK client
|
|
20
|
+
* @param request - The revoke request
|
|
21
|
+
* @param request.walletClient - The Viem wallet client used to send the transaction
|
|
22
|
+
* @param request.token - The token for which to revoke the allowance
|
|
23
|
+
* @param request.spenderAddress - The address of the spender
|
|
24
|
+
* @returns Returns Hash or nothing
|
|
25
|
+
*/
|
|
26
|
+
declare const revokeTokenApproval: (client: SDKClient, { walletClient, token, spenderAddress }: RevokeApprovalRequest) => Promise<Hash | void>;
|
|
37
27
|
//#endregion
|
|
38
28
|
export { revokeTokenApproval, setAllowance, setTokenAllowance };
|
|
39
29
|
//# sourceMappingURL=setAllowance.d.ts.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { WalletCallReceipt as WalletCallReceipt$1 } from "../types.js";
|
|
2
2
|
import { Client, Hash } from "viem";
|
|
3
3
|
import { GetCallsStatusReturnType } from "viem/actions";
|
|
4
|
-
|
|
5
4
|
//#region src/actions/waitForBatchTransactionReceipt.d.ts
|
|
6
5
|
declare const waitForBatchTransactionReceipt: (client: Client, batchHash: Hash, onFailed?: (result: GetCallsStatusReturnType) => void) => Promise<WalletCallReceipt$1>;
|
|
7
6
|
//#endregion
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { WalletCallReceipt as WalletCallReceipt$1 } from "../types.js";
|
|
2
2
|
import { LiFiStep, SDKClient } from "@lifi/sdk";
|
|
3
3
|
import { Hash } from "viem";
|
|
4
|
-
|
|
5
4
|
//#region src/actions/waitForRelayedTransactionReceipt.d.ts
|
|
6
5
|
declare const waitForRelayedTransactionReceipt: (client: SDKClient, taskId: Hash, step: LiFiStep) => Promise<WalletCallReceipt$1>;
|
|
7
6
|
//#endregion
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SDKClient } from "@lifi/sdk";
|
|
2
2
|
import { Address, Hash } from "viem";
|
|
3
|
-
|
|
4
3
|
//#region src/actions/waitForSafeTransactionExecution.d.ts
|
|
5
4
|
interface WaitForSafeTransactionExecutionProps {
|
|
6
5
|
chainId: number;
|
|
@@ -10,21 +9,15 @@ interface WaitForSafeTransactionExecutionProps {
|
|
|
10
9
|
timeout?: number;
|
|
11
10
|
}
|
|
12
11
|
/**
|
|
13
|
-
* Polls the Safe Transaction Service until the transaction matching the given signature
|
|
14
|
-
* is executed, then resolves with the on-chain transaction hash.
|
|
15
|
-
*
|
|
16
|
-
* @param client - {@link SDKClient}
|
|
17
|
-
* @param props - {@link WaitForSafeTransactionExecutionProps}
|
|
18
|
-
* @returns The on-chain transaction hash once the Safe transaction is executed.
|
|
19
|
-
* @throws {TransactionError} If the transaction fails, is replaced, or polling times out.
|
|
20
|
-
*/
|
|
21
|
-
declare function waitForSafeTransactionExecution(client: SDKClient, {
|
|
22
|
-
chainId,
|
|
23
|
-
safeAddress,
|
|
24
|
-
signature,
|
|
25
|
-
pollingInterval,
|
|
26
|
-
timeout: timeoutMs
|
|
27
|
-
}: WaitForSafeTransactionExecutionProps): Promise<Hash>;
|
|
12
|
+
* Polls the Safe Transaction Service until the transaction matching the given signature
|
|
13
|
+
* is executed, then resolves with the on-chain transaction hash.
|
|
14
|
+
*
|
|
15
|
+
* @param client - {@link SDKClient}
|
|
16
|
+
* @param props - {@link WaitForSafeTransactionExecutionProps}
|
|
17
|
+
* @returns The on-chain transaction hash once the Safe transaction is executed.
|
|
18
|
+
* @throws {TransactionError} If the transaction fails, is replaced, or polling times out.
|
|
19
|
+
*/
|
|
20
|
+
declare function waitForSafeTransactionExecution(client: SDKClient, { chainId, safeAddress, signature, pollingInterval, timeout: timeoutMs }: WaitForSafeTransactionExecutionProps): Promise<Hash>;
|
|
28
21
|
//#endregion
|
|
29
22
|
export { WaitForSafeTransactionExecutionProps, waitForSafeTransactionExecution };
|
|
30
23
|
//# sourceMappingURL=waitForSafeTransactionExecution.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ChainId, SDKClient } from "@lifi/sdk";
|
|
2
2
|
import { Chain, Client, Hash, ReplacementReturnType, TransactionReceipt } from "viem";
|
|
3
|
-
|
|
4
3
|
//#region src/actions/waitForTransactionReceipt.d.ts
|
|
5
4
|
interface WaitForTransactionReceiptProps {
|
|
6
5
|
client: Client;
|
|
@@ -8,12 +7,7 @@ interface WaitForTransactionReceiptProps {
|
|
|
8
7
|
txHash: Hash;
|
|
9
8
|
onReplaced?: (response: ReplacementReturnType<Chain | undefined>) => void;
|
|
10
9
|
}
|
|
11
|
-
declare function waitForTransactionReceipt(client: SDKClient, {
|
|
12
|
-
client: viemClient,
|
|
13
|
-
chainId,
|
|
14
|
-
txHash,
|
|
15
|
-
onReplaced
|
|
16
|
-
}: WaitForTransactionReceiptProps): Promise<TransactionReceipt | undefined>;
|
|
10
|
+
declare function waitForTransactionReceipt(client: SDKClient, { client: viemClient, chainId, txHash, onReplaced }: WaitForTransactionReceiptProps): Promise<TransactionReceipt | undefined>;
|
|
17
11
|
//#endregion
|
|
18
12
|
export { waitForTransactionReceipt };
|
|
19
13
|
//# sourceMappingURL=waitForTransactionReceipt.d.ts.map
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { SDKClient } from "@lifi/sdk";
|
|
2
2
|
import { Client } from "viem";
|
|
3
|
-
|
|
4
3
|
//#region src/client/publicClient.d.ts
|
|
5
4
|
/**
|
|
6
|
-
* Get an instance of a provider for a specific chain
|
|
7
|
-
* @param client - The SDK client
|
|
8
|
-
* @param chainId - Id of the chain the provider is for
|
|
9
|
-
* @returns The public client for the given chain
|
|
10
|
-
*/
|
|
5
|
+
* Get an instance of a provider for a specific chain
|
|
6
|
+
* @param client - The SDK client
|
|
7
|
+
* @param chainId - Id of the chain the provider is for
|
|
8
|
+
* @returns The public client for the given chain
|
|
9
|
+
*/
|
|
11
10
|
declare const getPublicClient: (client: SDKClient, chainId: number) => Promise<Client>;
|
|
12
11
|
//#endregion
|
|
13
12
|
export { getPublicClient };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EthereumStepExecutorContext } from "../types.js";
|
|
2
2
|
import { BaseStepExecutor, ExecuteStepRetryError, ExecuteStepRetryParams, ExecutionAction, LiFiStepExtended, SDKError, StepExecutorBaseContext, StepExecutorOptions, TaskPipeline } from "@lifi/sdk";
|
|
3
3
|
import { Client } from "viem";
|
|
4
|
-
|
|
5
4
|
//#region src/core/EthereumStepExecutor.d.ts
|
|
6
5
|
interface EthereumStepExecutorOptions extends StepExecutorOptions {
|
|
7
6
|
client: Client;
|
|
@@ -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/EthereumBatchedSignAndExecuteTask.d.ts
|
|
5
4
|
declare class EthereumBatchedSignAndExecuteTask extends BaseStepExecutionTask {
|
|
6
5
|
run(context: EthereumStepExecutorContext): Promise<TaskResult>;
|
|
@@ -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/EthereumBatchedWaitForTransactionTask.d.ts
|
|
5
4
|
declare class EthereumBatchedWaitForTransactionTask extends BaseStepExecutionTask {
|
|
6
5
|
run(context: EthereumStepExecutorContext): Promise<TaskResult>;
|
|
@@ -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/EthereumCheckAllowanceTask.d.ts
|
|
5
4
|
declare class EthereumCheckAllowanceTask extends BaseStepExecutionTask {
|
|
6
5
|
override shouldRun(context: EthereumStepExecutorContext): Promise<boolean>;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { EthereumStepExecutorContext } from "../../types.js";
|
|
2
2
|
import { CheckBalanceOptions, CheckBalanceTask } from "@lifi/sdk";
|
|
3
|
-
|
|
4
3
|
//#region src/core/tasks/EthereumCheckBalanceTask.d.ts
|
|
5
4
|
/**
|
|
6
|
-
* Skips the outer-tx gas check for steps where the wallet doesn't fund it:
|
|
7
|
-
* smart-contract wallets (Safe Apps, 4337, 7579, …) where the
|
|
8
|
-
* executor / bundler / paymaster pays, and relayed steps. Source amount
|
|
9
|
-
* and non-included native fees are still verified.
|
|
10
|
-
*
|
|
11
|
-
* Skip-bias is intentional: a wrong skip is caught by the wallet rejecting
|
|
12
|
-
* the tx; a wrong enforce blocks a tx that would have succeeded.
|
|
13
|
-
*/
|
|
5
|
+
* Skips the outer-tx gas check for steps where the wallet doesn't fund it:
|
|
6
|
+
* smart-contract wallets (Safe Apps, 4337, 7579, …) where the
|
|
7
|
+
* executor / bundler / paymaster pays, and relayed steps. Source amount
|
|
8
|
+
* and non-included native fees are still verified.
|
|
9
|
+
*
|
|
10
|
+
* Skip-bias is intentional: a wrong skip is caught by the wallet rejecting
|
|
11
|
+
* the tx; a wrong enforce blocks a tx that would have succeeded.
|
|
12
|
+
*/
|
|
14
13
|
declare class EthereumCheckBalanceTask extends CheckBalanceTask {
|
|
15
14
|
protected override getCheckBalanceOptions(context: EthereumStepExecutorContext): Promise<CheckBalanceOptions>;
|
|
16
15
|
}
|
|
@@ -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/EthereumCheckPermitsTask.d.ts
|
|
5
4
|
declare class EthereumCheckPermitsTask extends BaseStepExecutionTask {
|
|
6
5
|
override shouldRun(context: EthereumStepExecutorContext): Promise<boolean>;
|
|
@@ -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/EthereumNativePermitTask.d.ts
|
|
5
4
|
declare class EthereumNativePermitTask extends BaseStepExecutionTask {
|
|
6
5
|
override shouldRun(context: EthereumStepExecutorContext): Promise<boolean>;
|
|
@@ -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/EthereumPrepareTransactionTask.d.ts
|
|
5
4
|
declare class EthereumPrepareTransactionTask extends BaseStepExecutionTask {
|
|
6
5
|
run(context: EthereumStepExecutorContext): Promise<TaskResult>;
|
|
@@ -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/EthereumRelayedSignAndExecuteTask.d.ts
|
|
5
4
|
declare class EthereumRelayedSignAndExecuteTask extends BaseStepExecutionTask {
|
|
6
5
|
run(context: EthereumStepExecutorContext): Promise<TaskResult>;
|
|
@@ -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/EthereumRelayedWaitForTransactionTask.d.ts
|
|
5
4
|
declare class EthereumRelayedWaitForTransactionTask extends BaseStepExecutionTask {
|
|
6
5
|
run(context: EthereumStepExecutorContext): Promise<TaskResult>;
|
|
@@ -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/EthereumResetAllowanceTask.d.ts
|
|
5
4
|
declare class EthereumResetAllowanceTask extends BaseStepExecutionTask {
|
|
6
5
|
override shouldRun(context: EthereumStepExecutorContext): Promise<boolean>;
|
|
@@ -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/EthereumSetAllowanceTask.d.ts
|
|
5
4
|
declare class EthereumSetAllowanceTask extends BaseStepExecutionTask {
|
|
6
5
|
override shouldRun(context: EthereumStepExecutorContext): Promise<boolean>;
|
|
@@ -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/EthereumSignAndExecuteTask.d.ts
|
|
5
4
|
declare class EthereumSignAndExecuteTask extends BaseStepExecutionTask {
|
|
6
5
|
run(context: EthereumStepExecutorContext): Promise<TaskResult>;
|
|
@@ -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/EthereumStandardSignAndExecuteTask.d.ts
|
|
5
4
|
declare class EthereumStandardSignAndExecuteTask extends BaseStepExecutionTask {
|
|
6
5
|
run(context: EthereumStepExecutorContext): Promise<TaskResult>;
|
|
@@ -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/EthereumStandardWaitForTransactionTask.d.ts
|
|
5
4
|
declare class EthereumStandardWaitForTransactionTask extends BaseStepExecutionTask {
|
|
6
5
|
run(context: EthereumStepExecutorContext): Promise<TaskResult>;
|
|
@@ -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/EthereumWaitForTransactionStatusTask.d.ts
|
|
5
4
|
declare class EthereumWaitForTransactionStatusTask extends BaseStepExecutionTask {
|
|
6
5
|
run(context: EthereumStepExecutorContext): Promise<TaskResult>;
|
|
@@ -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>;
|