@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
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPermitTransferFromValues.d.ts","names":[],"sources":["../../../src/permits/getPermitTransferFromValues.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getPermitTransferFromValues.d.ts","names":[],"sources":["../../../src/permits/getPermitTransferFromValues.ts"],"mappings":";;;;cAOa,8BACX,QAAQ,WACR,YAAY,QACZ,OAAO,eACP,cAAc,SACd,mBACC,QAAQ"}
|
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invariant.d.ts","names":[],"sources":["../../../src/permits/invariant.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"invariant.d.ts","names":[],"sources":["../../../src/permits/invariant.ts"],"mappings":";;;;;;;;;;;;;;;;iBAoBgB,UACd,gBAMA,4CACS"}
|
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isDelegationDesignatorCode.d.ts","names":[],"sources":["../../../src/permits/isDelegationDesignatorCode.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"isDelegationDesignatorCode.d.ts","names":[],"sources":["../../../src/permits/isDelegationDesignatorCode.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;cAqBa,6BAA8B"}
|
|
@@ -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 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isNativePermitValid.d.ts","names":[],"sources":["../../../src/permits/isNativePermitValid.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"isNativePermitValid.d.ts","names":[],"sources":["../../../src/permits/isNativePermitValid.ts"],"mappings":";;;;;cAMa,sBACX,QAAQ,iBACR,WAAW"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signPermit2Message.d.ts","names":[],"sources":["../../../src/permits/signPermit2Message.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"signPermit2Message.d.ts","names":[],"sources":["../../../src/permits/signPermit2Message.ts"],"mappings":";;;UASU;EACR,QAAQ;EACR,OAAO;EACP,cAAc;EACd;EACA,MAAM;EACN;;iBAGoB,mBACpB,QAAQ,WACR,QAAQ,2BACP,QAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signatureTransfer.d.ts","names":[],"sources":["../../../src/permits/signatureTransfer.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"signatureTransfer.d.ts","names":[],"sources":["../../../src/permits/signatureTransfer.ts"],"mappings":";;KAUY;EACV;EACA;EACA,aAAa;IAAiB;IAAc;;;KAGlC;EACV,OAAO;EACP;;KAGU;EACV,WAAW;EACX,SAAS;EACT;EACA;;KAGU;EACV,WAAW;EACX,SAAS;EACT;EACA;;KAGU;EACV,QAAQ;EACR,OAAO;EACP,SAAS;;KAGC;EACV,QAAQ;EACR,OAAO;EACP,SAAS;;iBAkCK,sBACd,QAAQ,oBACR,gBAAgB,SAChB,iBACA,UAAU,UACT;iBAiCa,2BACd,QAAQ,yBACR,gBAAgB,SAChB,iBACA,UAAU,UACT;iBAmCa,cAAc,UAAU,oBACtC,QAAQ,GACR,gBAAgB,SAChB,iBACA,UAAU,UACT;iBACa,cAAc,UAAU,yBACtC,QAAQ,GACR,gBAAgB,SAChB,iBACA,UAAU,UACT;iBAaa,KAAK,UAAU,qBAAqB,yBAClD,QAAQ,GACR,gBAAgB,SAChB,iBACA,UAAU,UACT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/permits/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/permits/types.ts"],"mappings":";;KAEY;EACV,WAAW;;KAGD;EACV,OAAO;EACP,SAAS;EACT;EACA;EACA;;KAGU;EACV;EACA,QAAQ;EACR,OAAO;EACP,SAAS"}
|
package/dist/esm/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/esm/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../../src/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../src/types.ts"],"mappings":";;;UAqBiB;EACf,wBAAwB,QAAQ;EAChC,eAAe,oBAAoB,QAAQ;EAC3C,0BAA0B;EAC1B;EACA;;UAGe;EACf;EACA,qBAAqB;EACrB,oBAAoB;EACpB,OAAO;EACP,iBAAiB;EACjB;EACA;EACA;;UAGe,oCACP,qBACN;EACF;EACA,gBAAgB;EAChB,cACE,MAAM,kBACN,2BACG,QAAQ;EACb,eAAe,oBAAoB,QAAQ;EAC3C,aAAa,QAAQ,cAAc;;EAEnC,cAAc;;UAGC,4BAA4B;EAC3C,SAAS;EACT,WAAW,SAAS;EACpB,oBAAoB,QAAQ;;iBAGd,mBACd,UAAU,cACT,YAAY;KAIH;EACV,OAAO;EACP;;KAGU;EACV,OAAO;EACP;;KAGU;EACV,OAAO;EACP;EACA;;UAGe;EACf,cAAc;EACd,OAAO;EACP;EACA;;UAGe;EACf,cAAc;EACd,OAAO;EACP;;KAGU;EACV,IAAI;EACJ,OAAO;EACP;EACA;;KAGU,oBAAoB;EAI9B;;KAGU,eAAe,mBAAmB;EAC5C,WAAW,aAAa,mBAAmB"}
|
package/dist/esm/utils/abi.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abi.d.ts","names":[],"sources":["../../../src/utils/abi.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"abi.d.ts","names":[],"sources":["../../../src/utils/abi.ts"],"mappings":";;cAEa,iBAAiB;cAOjB,YAAY;cAWZ,YAAY;cAIZ,cAAc;cAId,kBAAkB;cAIlB,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convertExtendedChain.d.ts","names":[],"sources":["../../../src/utils/convertExtendedChain.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"convertExtendedChain.d.ts","names":[],"sources":["../../../src/utils/convertExtendedChain.ts"],"mappings":";;;cAaa,uBAAwB,OAAO,kBAAgB"}
|
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getActionWithFallback.d.ts","names":[],"sources":["../../../src/utils/getActionWithFallback.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getActionWithFallback.d.ts","names":[],"sources":["../../../src/utils/getActionWithFallback.ts"],"mappings":";;;;;;;;;;;;;;;;;cA2Ba,wBACX,kBAAkB,WAClB,cAAc,mBACd,gBAAgB,qBAChB,kBAAkB,uBAClB;;GACA,eAAe,OAAO,WAAW,OAAO,SAAS,WAAW,WAC5D,YACA,YAEA,QAAQ,WACR,cAAc,QACd,WAAW,GAAG,QAAQ,YAAY,eAAe,YACjD,YAAY,sBAAsB,+BAClC,QAAQ,eACP,QAAQ,QAAQ"}
|
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDomainChainId.d.ts","names":[],"sources":["../../../src/utils/getDomainChainId.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getDomainChainId.d.ts","names":[],"sources":["../../../src/utils/getDomainChainId.ts"],"mappings":";;;;;;;cAOa,mBAAoB,QAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSafeApiKey.d.ts","names":[],"sources":["../../../src/utils/getSafeApiKey.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getSafeApiKey.d.ts","names":[],"sources":["../../../src/utils/getSafeApiKey.ts"],"mappings":";;iBAGgB,cAAc,QAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isContractCallStep.d.ts","names":[],"sources":["../../../src/utils/isContractCallStep.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"isContractCallStep.d.ts","names":[],"sources":["../../../src/utils/isContractCallStep.ts"],"mappings":";;iBAEgB,mBAAmB,MAAM,mBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isExtendedChain.d.ts","names":[],"sources":["../../../src/utils/isExtendedChain.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"isExtendedChain.d.ts","names":[],"sources":["../../../src/utils/isExtendedChain.ts"],"mappings":";;iBAEgB,gBAAgB,aAAa,SAAS"}
|
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isGaslessStep.d.ts","names":[],"sources":["../../../src/utils/isGaslessStep.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"isGaslessStep.d.ts","names":[],"sources":["../../../src/utils/isGaslessStep.ts"],"mappings":";;;iBAGgB,cACd,MAAM,mBAAmB,UACzB,QAAQ,gBACP,QAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isRelayerStep.d.ts","names":[],"sources":["../../../src/utils/isRelayerStep.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"isRelayerStep.d.ts","names":[],"sources":["../../../src/utils/isRelayerStep.ts"],"mappings":";;;iBAGgB,cACd,MAAM,mBAAmB,WACxB,QAAQ"}
|
|
@@ -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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isValidSignature.d.ts","names":[],"sources":["../../../src/utils/isValidSignature.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"isValidSignature.d.ts","names":[],"sources":["../../../src/utils/isValidSignature.ts"],"mappings":";;;;;;;;;iBAUgB,iBACd,WAAW,yBACV,aAAa;iBAIA,qBACd,WAAW,iCACF,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isZeroAddress.d.ts","names":[],"sources":["../../../src/utils/isZeroAddress.ts"],"mappings":";cAAa
|
|
1
|
+
{"version":3,"file":"isZeroAddress.d.ts","names":[],"sources":["../../../src/utils/isZeroAddress.ts"],"mappings":";cAAa;cACA;cAGA,gBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"median.d.ts","names":[],"sources":["../../../src/utils/median.ts"],"mappings":";cAAa,
|
|
1
|
+
{"version":3,"file":"median.d.ts","names":[],"sources":["../../../src/utils/median.ts"],"mappings":";cAAa,SAAU"}
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","names":[],"sources":["../../src/version.ts"],"mappings":";cAAa
|
|
1
|
+
{"version":3,"file":"version.d.ts","names":[],"sources":["../../src/version.ts"],"mappings":";cAAa;cACA"}
|
package/dist/esm/version.js
CHANGED
package/dist/esm/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.6'\n"],"mappings":";AAAA,MAAa,OAAO;AACpB,MAAa,UAAU"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lifi/sdk-provider-ethereum",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.6",
|
|
4
4
|
"description": "LI.FI Ethereum SDK Provider for Any-to-Any Cross-Chain-Swap",
|
|
5
5
|
"homepage": "https://github.com/lifinance/sdk",
|
|
6
6
|
"bugs": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"./package.json": "./package.json"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"viem": "^2.
|
|
31
|
+
"viem": "^2.55.1",
|
|
32
32
|
"@lifi/sdk": "4.1.0"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = '@lifi/sdk-provider-ethereum'
|
|
2
|
-
export const version = '4.0.
|
|
2
|
+
export const version = '4.0.6'
|