@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.
Files changed (244) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/EthereumProvider.d.ts +0 -1
  3. package/dist/cjs/actions/checkPermitSupport.d.ts +16 -20
  4. package/dist/cjs/actions/constants.d.ts +0 -1
  5. package/dist/cjs/actions/getAccountCode.d.ts +13 -18
  6. package/dist/cjs/actions/getAllowance.d.ts +13 -14
  7. package/dist/cjs/actions/getEthereumBalance.d.ts +0 -1
  8. package/dist/cjs/actions/getMaxPriorityFeePerGas.d.ts +0 -1
  9. package/dist/cjs/actions/getMulticallAddress.d.ts +0 -1
  10. package/dist/cjs/actions/isBatchingSupported.d.ts +1 -6
  11. package/dist/cjs/actions/isSafeSignature.d.ts +6 -11
  12. package/dist/cjs/actions/isSafeWallet.d.ts +4 -10
  13. package/dist/cjs/actions/isSmartContractWallet.d.ts +4 -4
  14. package/dist/cjs/actions/resolveENSAddress.d.ts +0 -1
  15. package/dist/cjs/actions/resolveEthereumAddress.d.ts +0 -1
  16. package/dist/cjs/actions/resolveTransactionHash.d.ts +0 -1
  17. package/dist/cjs/actions/resolveUNSAddress.d.ts +0 -1
  18. package/dist/cjs/actions/setAllowance.d.ts +19 -29
  19. package/dist/cjs/actions/waitForBatchTransactionReceipt.d.ts +0 -1
  20. package/dist/cjs/actions/waitForRelayedTransactionReceipt.d.ts +0 -1
  21. package/dist/cjs/actions/waitForSafeTransactionExecution.d.ts +9 -16
  22. package/dist/cjs/actions/waitForTransactionReceipt.d.ts +1 -7
  23. package/dist/cjs/client/publicClient.d.ts +5 -6
  24. package/dist/cjs/client/safeClient.d.ts +0 -1
  25. package/dist/cjs/core/EthereumStepExecutor.d.ts +0 -1
  26. package/dist/cjs/core/tasks/EthereumBatchedSignAndExecuteTask.d.ts +0 -1
  27. package/dist/cjs/core/tasks/EthereumBatchedWaitForTransactionTask.d.ts +0 -1
  28. package/dist/cjs/core/tasks/EthereumCheckAllowanceTask.d.ts +0 -1
  29. package/dist/cjs/core/tasks/EthereumCheckBalanceTask.d.ts +8 -9
  30. package/dist/cjs/core/tasks/EthereumCheckPermitsTask.d.ts +0 -1
  31. package/dist/cjs/core/tasks/EthereumNativePermitTask.d.ts +0 -1
  32. package/dist/cjs/core/tasks/EthereumPrepareTransactionTask.d.ts +0 -1
  33. package/dist/cjs/core/tasks/EthereumRelayedSignAndExecuteTask.d.ts +0 -1
  34. package/dist/cjs/core/tasks/EthereumRelayedWaitForTransactionTask.d.ts +0 -1
  35. package/dist/cjs/core/tasks/EthereumResetAllowanceTask.d.ts +0 -1
  36. package/dist/cjs/core/tasks/EthereumSetAllowanceTask.d.ts +0 -1
  37. package/dist/cjs/core/tasks/EthereumSignAndExecuteTask.d.ts +0 -1
  38. package/dist/cjs/core/tasks/EthereumStandardSignAndExecuteTask.d.ts +0 -1
  39. package/dist/cjs/core/tasks/EthereumStandardWaitForTransactionTask.d.ts +0 -1
  40. package/dist/cjs/core/tasks/EthereumWaitForTransactionStatusTask.d.ts +0 -1
  41. package/dist/cjs/core/tasks/EthereumWaitForTransactionTask.d.ts +0 -1
  42. package/dist/cjs/core/tasks/helpers/estimateTransactionRequest.d.ts +0 -1
  43. package/dist/cjs/core/tasks/helpers/getEthereumExecutionStrategy.d.ts +4 -5
  44. package/dist/cjs/core/tasks/helpers/getTxLink.d.ts +0 -1
  45. package/dist/cjs/core/tasks/helpers/getUpdatedStep.d.ts +0 -1
  46. package/dist/cjs/core/tasks/helpers/isPermit2Supported.d.ts +0 -1
  47. package/dist/cjs/core/tasks/helpers/shouldCheckForAllowance.d.ts +0 -1
  48. package/dist/cjs/core/tasks/helpers/signHyperliquidTypedData.d.ts +0 -1
  49. package/dist/cjs/core/tasks/helpers/switchChain.d.ts +15 -16
  50. package/dist/cjs/core/tasks/helpers/updateActionWithReceipt.d.ts +3 -4
  51. package/dist/cjs/errors/parseEthereumErrors.d.ts +0 -1
  52. package/dist/cjs/hyperliquid/agentWallet.d.ts +0 -1
  53. package/dist/cjs/hyperliquid/isHyperliquidAgentStep.d.ts +0 -1
  54. package/dist/cjs/permits/allowanceTransfer.d.ts +0 -1
  55. package/dist/cjs/permits/canAccountUseNativePermits.d.ts +5 -6
  56. package/dist/cjs/permits/constants.d.ts +19 -20
  57. package/dist/cjs/permits/domain.d.ts +0 -1
  58. package/dist/cjs/permits/encodeNativePermitData.d.ts +0 -1
  59. package/dist/cjs/permits/encodePermit2Data.d.ts +0 -1
  60. package/dist/cjs/permits/getNativePermit.d.ts +1 -8
  61. package/dist/cjs/permits/getPermitTransferFromValues.d.ts +0 -1
  62. package/dist/cjs/permits/invariant.d.ts +14 -14
  63. package/dist/cjs/permits/isDelegationDesignatorCode.d.ts +20 -20
  64. package/dist/cjs/permits/isNativePermitValid.d.ts +2 -3
  65. package/dist/cjs/permits/signPermit2Message.d.ts +0 -1
  66. package/dist/cjs/permits/signatureTransfer.d.ts +0 -1
  67. package/dist/cjs/permits/types.d.ts +0 -1
  68. package/dist/cjs/types.d.ts +0 -1
  69. package/dist/cjs/utils/abi.d.ts +0 -1
  70. package/dist/cjs/utils/convertExtendedChain.d.ts +0 -1
  71. package/dist/cjs/utils/getActionWithFallback.d.ts +13 -14
  72. package/dist/cjs/utils/getDomainChainId.d.ts +4 -5
  73. package/dist/cjs/utils/getSafeApiKey.d.ts +0 -1
  74. package/dist/cjs/utils/isContractCallStep.d.ts +0 -1
  75. package/dist/cjs/utils/isExtendedChain.d.ts +0 -1
  76. package/dist/cjs/utils/isGaslessStep.d.ts +0 -1
  77. package/dist/cjs/utils/isRelayerStep.d.ts +0 -1
  78. package/dist/cjs/utils/isValidSignature.d.ts +6 -7
  79. package/dist/cjs/version.d.ts +1 -1
  80. package/dist/cjs/version.js +1 -1
  81. package/dist/cjs/version.js.map +1 -1
  82. package/dist/esm/EthereumProvider.d.ts +0 -1
  83. package/dist/esm/EthereumProvider.d.ts.map +1 -1
  84. package/dist/esm/actions/checkPermitSupport.d.ts +16 -20
  85. package/dist/esm/actions/checkPermitSupport.d.ts.map +1 -1
  86. package/dist/esm/actions/constants.d.ts +0 -1
  87. package/dist/esm/actions/constants.d.ts.map +1 -1
  88. package/dist/esm/actions/getAccountCode.d.ts +13 -18
  89. package/dist/esm/actions/getAccountCode.d.ts.map +1 -1
  90. package/dist/esm/actions/getAllowance.d.ts +13 -14
  91. package/dist/esm/actions/getAllowance.d.ts.map +1 -1
  92. package/dist/esm/actions/getEthereumBalance.d.ts +0 -1
  93. package/dist/esm/actions/getEthereumBalance.d.ts.map +1 -1
  94. package/dist/esm/actions/getMaxPriorityFeePerGas.d.ts +0 -1
  95. package/dist/esm/actions/getMaxPriorityFeePerGas.d.ts.map +1 -1
  96. package/dist/esm/actions/getMulticallAddress.d.ts +0 -1
  97. package/dist/esm/actions/getMulticallAddress.d.ts.map +1 -1
  98. package/dist/esm/actions/isBatchingSupported.d.ts +1 -6
  99. package/dist/esm/actions/isBatchingSupported.d.ts.map +1 -1
  100. package/dist/esm/actions/isSafeSignature.d.ts +6 -11
  101. package/dist/esm/actions/isSafeSignature.d.ts.map +1 -1
  102. package/dist/esm/actions/isSafeWallet.d.ts +4 -10
  103. package/dist/esm/actions/isSafeWallet.d.ts.map +1 -1
  104. package/dist/esm/actions/isSmartContractWallet.d.ts +4 -4
  105. package/dist/esm/actions/isSmartContractWallet.d.ts.map +1 -1
  106. package/dist/esm/actions/resolveENSAddress.d.ts +0 -1
  107. package/dist/esm/actions/resolveENSAddress.d.ts.map +1 -1
  108. package/dist/esm/actions/resolveEthereumAddress.d.ts +0 -1
  109. package/dist/esm/actions/resolveEthereumAddress.d.ts.map +1 -1
  110. package/dist/esm/actions/resolveTransactionHash.d.ts +0 -1
  111. package/dist/esm/actions/resolveTransactionHash.d.ts.map +1 -1
  112. package/dist/esm/actions/resolveUNSAddress.d.ts +0 -1
  113. package/dist/esm/actions/resolveUNSAddress.d.ts.map +1 -1
  114. package/dist/esm/actions/setAllowance.d.ts +19 -29
  115. package/dist/esm/actions/setAllowance.d.ts.map +1 -1
  116. package/dist/esm/actions/waitForBatchTransactionReceipt.d.ts +0 -1
  117. package/dist/esm/actions/waitForBatchTransactionReceipt.d.ts.map +1 -1
  118. package/dist/esm/actions/waitForRelayedTransactionReceipt.d.ts +0 -1
  119. package/dist/esm/actions/waitForRelayedTransactionReceipt.d.ts.map +1 -1
  120. package/dist/esm/actions/waitForSafeTransactionExecution.d.ts +9 -16
  121. package/dist/esm/actions/waitForSafeTransactionExecution.d.ts.map +1 -1
  122. package/dist/esm/actions/waitForTransactionReceipt.d.ts +1 -7
  123. package/dist/esm/actions/waitForTransactionReceipt.d.ts.map +1 -1
  124. package/dist/esm/client/publicClient.d.ts +5 -6
  125. package/dist/esm/client/publicClient.d.ts.map +1 -1
  126. package/dist/esm/client/safeClient.d.ts +0 -1
  127. package/dist/esm/client/safeClient.d.ts.map +1 -1
  128. package/dist/esm/client/types.d.ts.map +1 -1
  129. package/dist/esm/core/EthereumStepExecutor.d.ts +0 -1
  130. package/dist/esm/core/EthereumStepExecutor.d.ts.map +1 -1
  131. package/dist/esm/core/tasks/EthereumBatchedSignAndExecuteTask.d.ts +0 -1
  132. package/dist/esm/core/tasks/EthereumBatchedSignAndExecuteTask.d.ts.map +1 -1
  133. package/dist/esm/core/tasks/EthereumBatchedWaitForTransactionTask.d.ts +0 -1
  134. package/dist/esm/core/tasks/EthereumBatchedWaitForTransactionTask.d.ts.map +1 -1
  135. package/dist/esm/core/tasks/EthereumCheckAllowanceTask.d.ts +0 -1
  136. package/dist/esm/core/tasks/EthereumCheckAllowanceTask.d.ts.map +1 -1
  137. package/dist/esm/core/tasks/EthereumCheckBalanceTask.d.ts +8 -9
  138. package/dist/esm/core/tasks/EthereumCheckBalanceTask.d.ts.map +1 -1
  139. package/dist/esm/core/tasks/EthereumCheckPermitsTask.d.ts +0 -1
  140. package/dist/esm/core/tasks/EthereumCheckPermitsTask.d.ts.map +1 -1
  141. package/dist/esm/core/tasks/EthereumNativePermitTask.d.ts +0 -1
  142. package/dist/esm/core/tasks/EthereumNativePermitTask.d.ts.map +1 -1
  143. package/dist/esm/core/tasks/EthereumPrepareTransactionTask.d.ts +0 -1
  144. package/dist/esm/core/tasks/EthereumPrepareTransactionTask.d.ts.map +1 -1
  145. package/dist/esm/core/tasks/EthereumRelayedSignAndExecuteTask.d.ts +0 -1
  146. package/dist/esm/core/tasks/EthereumRelayedSignAndExecuteTask.d.ts.map +1 -1
  147. package/dist/esm/core/tasks/EthereumRelayedWaitForTransactionTask.d.ts +0 -1
  148. package/dist/esm/core/tasks/EthereumRelayedWaitForTransactionTask.d.ts.map +1 -1
  149. package/dist/esm/core/tasks/EthereumResetAllowanceTask.d.ts +0 -1
  150. package/dist/esm/core/tasks/EthereumResetAllowanceTask.d.ts.map +1 -1
  151. package/dist/esm/core/tasks/EthereumSetAllowanceTask.d.ts +0 -1
  152. package/dist/esm/core/tasks/EthereumSetAllowanceTask.d.ts.map +1 -1
  153. package/dist/esm/core/tasks/EthereumSignAndExecuteTask.d.ts +0 -1
  154. package/dist/esm/core/tasks/EthereumSignAndExecuteTask.d.ts.map +1 -1
  155. package/dist/esm/core/tasks/EthereumStandardSignAndExecuteTask.d.ts +0 -1
  156. package/dist/esm/core/tasks/EthereumStandardSignAndExecuteTask.d.ts.map +1 -1
  157. package/dist/esm/core/tasks/EthereumStandardWaitForTransactionTask.d.ts +0 -1
  158. package/dist/esm/core/tasks/EthereumStandardWaitForTransactionTask.d.ts.map +1 -1
  159. package/dist/esm/core/tasks/EthereumWaitForTransactionStatusTask.d.ts +0 -1
  160. package/dist/esm/core/tasks/EthereumWaitForTransactionStatusTask.d.ts.map +1 -1
  161. package/dist/esm/core/tasks/EthereumWaitForTransactionTask.d.ts +0 -1
  162. package/dist/esm/core/tasks/EthereumWaitForTransactionTask.d.ts.map +1 -1
  163. package/dist/esm/core/tasks/helpers/estimateTransactionRequest.d.ts +0 -1
  164. package/dist/esm/core/tasks/helpers/estimateTransactionRequest.d.ts.map +1 -1
  165. package/dist/esm/core/tasks/helpers/getEthereumExecutionStrategy.d.ts +4 -5
  166. package/dist/esm/core/tasks/helpers/getEthereumExecutionStrategy.d.ts.map +1 -1
  167. package/dist/esm/core/tasks/helpers/getTxLink.d.ts +0 -1
  168. package/dist/esm/core/tasks/helpers/getTxLink.d.ts.map +1 -1
  169. package/dist/esm/core/tasks/helpers/getUpdatedStep.d.ts +0 -1
  170. package/dist/esm/core/tasks/helpers/getUpdatedStep.d.ts.map +1 -1
  171. package/dist/esm/core/tasks/helpers/isPermit2Supported.d.ts +0 -1
  172. package/dist/esm/core/tasks/helpers/isPermit2Supported.d.ts.map +1 -1
  173. package/dist/esm/core/tasks/helpers/shouldCheckForAllowance.d.ts +0 -1
  174. package/dist/esm/core/tasks/helpers/shouldCheckForAllowance.d.ts.map +1 -1
  175. package/dist/esm/core/tasks/helpers/signHyperliquidTypedData.d.ts +0 -1
  176. package/dist/esm/core/tasks/helpers/signHyperliquidTypedData.d.ts.map +1 -1
  177. package/dist/esm/core/tasks/helpers/switchChain.d.ts +15 -16
  178. package/dist/esm/core/tasks/helpers/switchChain.d.ts.map +1 -1
  179. package/dist/esm/core/tasks/helpers/updateActionWithReceipt.d.ts +3 -4
  180. package/dist/esm/core/tasks/helpers/updateActionWithReceipt.d.ts.map +1 -1
  181. package/dist/esm/errors/parseEthereumErrors.d.ts +0 -1
  182. package/dist/esm/errors/parseEthereumErrors.d.ts.map +1 -1
  183. package/dist/esm/hyperliquid/agentWallet.d.ts +0 -1
  184. package/dist/esm/hyperliquid/agentWallet.d.ts.map +1 -1
  185. package/dist/esm/hyperliquid/isHyperliquidAgentStep.d.ts +0 -1
  186. package/dist/esm/hyperliquid/isHyperliquidAgentStep.d.ts.map +1 -1
  187. package/dist/esm/permits/allowanceTransfer.d.ts +0 -1
  188. package/dist/esm/permits/allowanceTransfer.d.ts.map +1 -1
  189. package/dist/esm/permits/canAccountUseNativePermits.d.ts +5 -6
  190. package/dist/esm/permits/canAccountUseNativePermits.d.ts.map +1 -1
  191. package/dist/esm/permits/constants.d.ts +19 -20
  192. package/dist/esm/permits/constants.d.ts.map +1 -1
  193. package/dist/esm/permits/domain.d.ts +0 -1
  194. package/dist/esm/permits/domain.d.ts.map +1 -1
  195. package/dist/esm/permits/encodeNativePermitData.d.ts +0 -1
  196. package/dist/esm/permits/encodeNativePermitData.d.ts.map +1 -1
  197. package/dist/esm/permits/encodePermit2Data.d.ts +0 -1
  198. package/dist/esm/permits/encodePermit2Data.d.ts.map +1 -1
  199. package/dist/esm/permits/getNativePermit.d.ts +1 -8
  200. package/dist/esm/permits/getNativePermit.d.ts.map +1 -1
  201. package/dist/esm/permits/getPermitTransferFromValues.d.ts +0 -1
  202. package/dist/esm/permits/getPermitTransferFromValues.d.ts.map +1 -1
  203. package/dist/esm/permits/invariant.d.ts +14 -14
  204. package/dist/esm/permits/invariant.d.ts.map +1 -1
  205. package/dist/esm/permits/isDelegationDesignatorCode.d.ts +20 -20
  206. package/dist/esm/permits/isDelegationDesignatorCode.d.ts.map +1 -1
  207. package/dist/esm/permits/isNativePermitValid.d.ts +2 -3
  208. package/dist/esm/permits/isNativePermitValid.d.ts.map +1 -1
  209. package/dist/esm/permits/signPermit2Message.d.ts +0 -1
  210. package/dist/esm/permits/signPermit2Message.d.ts.map +1 -1
  211. package/dist/esm/permits/signatureTransfer.d.ts +0 -1
  212. package/dist/esm/permits/signatureTransfer.d.ts.map +1 -1
  213. package/dist/esm/permits/types.d.ts +0 -1
  214. package/dist/esm/permits/types.d.ts.map +1 -1
  215. package/dist/esm/types.d.ts +0 -1
  216. package/dist/esm/types.d.ts.map +1 -1
  217. package/dist/esm/utils/abi.d.ts +0 -1
  218. package/dist/esm/utils/abi.d.ts.map +1 -1
  219. package/dist/esm/utils/convertExtendedChain.d.ts +0 -1
  220. package/dist/esm/utils/convertExtendedChain.d.ts.map +1 -1
  221. package/dist/esm/utils/getActionWithFallback.d.ts +13 -14
  222. package/dist/esm/utils/getActionWithFallback.d.ts.map +1 -1
  223. package/dist/esm/utils/getDomainChainId.d.ts +4 -5
  224. package/dist/esm/utils/getDomainChainId.d.ts.map +1 -1
  225. package/dist/esm/utils/getSafeApiKey.d.ts +0 -1
  226. package/dist/esm/utils/getSafeApiKey.d.ts.map +1 -1
  227. package/dist/esm/utils/isContractCallStep.d.ts +0 -1
  228. package/dist/esm/utils/isContractCallStep.d.ts.map +1 -1
  229. package/dist/esm/utils/isExtendedChain.d.ts +0 -1
  230. package/dist/esm/utils/isExtendedChain.d.ts.map +1 -1
  231. package/dist/esm/utils/isGaslessStep.d.ts +0 -1
  232. package/dist/esm/utils/isGaslessStep.d.ts.map +1 -1
  233. package/dist/esm/utils/isRelayerStep.d.ts +0 -1
  234. package/dist/esm/utils/isRelayerStep.d.ts.map +1 -1
  235. package/dist/esm/utils/isValidSignature.d.ts +6 -7
  236. package/dist/esm/utils/isValidSignature.d.ts.map +1 -1
  237. package/dist/esm/utils/isZeroAddress.d.ts.map +1 -1
  238. package/dist/esm/utils/median.d.ts.map +1 -1
  239. package/dist/esm/version.d.ts +1 -1
  240. package/dist/esm/version.d.ts.map +1 -1
  241. package/dist/esm/version.js +1 -1
  242. package/dist/esm/version.js.map +1 -1
  243. package/package.json +2 -2
  244. package/src/version.ts +1 -1
@@ -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,6 +1,5 @@
1
1
  import { ExtendedChain } from "@lifi/sdk";
2
2
  import { Hash } from "viem";
3
-
4
3
  //#region src/core/tasks/helpers/getTxLink.d.ts
5
4
  declare const getTxLink: (chain: ExtendedChain, txHash: Hash) => string;
6
5
  //#endregion
@@ -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,6 +1,5 @@
1
1
  import { SDKStorage } from "@lifi/sdk";
2
2
  import { LocalAccount } from "viem";
3
-
4
3
  //#region src/hyperliquid/agentWallet.d.ts
5
4
  interface AgentWalletResult {
6
5
  account: LocalAccount;
@@ -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,5 +1,4 @@
1
1
  import { Address, TypedData, TypedDataDomain } from "viem";
2
-
3
2
  //#region src/permits/allowanceTransfer.d.ts
4
3
  declare const MaxAllowanceTransferAmount: bigint;
5
4
  declare const MaxAllowanceExpiration: bigint;
@@ -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, TypedDataDomain } from "viem";
2
-
3
2
  //#region src/permits/domain.d.ts
4
3
  declare function permit2Domain(permit2Address: Address, chainId: number): TypedDataDomain;
5
4
  //#endregion
@@ -1,5 +1,4 @@
1
1
  import { Address, Hash, Hex } from "viem";
2
-
3
2
  //#region src/permits/encodeNativePermitData.d.ts
4
3
  declare const encodeNativePermitData: (tokenAddress: Address, amount: bigint, deadline: bigint, signature: Hash, transactionData: Hex) => Hex;
5
4
  //#endregion
@@ -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 };
@@ -1,6 +1,5 @@
1
1
  import { ExtendedChain, SDKClient, SignedTypedData } from "@lifi/sdk";
2
2
  import { Address, Client, Hex } from "viem";
3
-
4
3
  //#region src/permits/signPermit2Message.d.ts
5
4
  interface SignPermit2MessageParams {
6
5
  client: Client;
@@ -1,5 +1,4 @@
1
1
  import { Address, Hex, TypedData, TypedDataDomain } from "viem";
2
-
3
2
  //#region src/permits/signatureTransfer.d.ts
4
3
  type Witness = {
5
4
  witness: any;
@@ -1,5 +1,4 @@
1
1
  import { Address, Hash, TypedData, TypedDataDomain } from "viem";
2
-
3
2
  //#region src/permits/types.d.ts
4
3
  type PermitSignature = {
5
4
  signature: Hash;
@@ -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>;
@@ -1,5 +1,4 @@
1
1
  import { Abi } from "viem";
2
-
3
2
  //#region src/utils/abi.d.ts
4
3
  declare const permit2ProxyAbi: Abi;
5
4
  declare const eip2612Abi: Abi;
@@ -1,6 +1,5 @@
1
1
  import { ExtendedChain } from "@lifi/sdk";
2
2
  import { Chain } from "viem";
3
-
4
3
  //#region src/utils/convertExtendedChain.d.ts
5
4
  declare const convertExtendedChain: (chain: ExtendedChain) => Chain;
6
5
  //#endregion
@@ -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,5 +1,4 @@
1
1
  import { SDKClient } from "@lifi/sdk";
2
-
3
2
  //#region src/utils/getSafeApiKey.d.ts
4
3
  declare function getSafeApiKey(client: SDKClient): string | undefined;
5
4
  //#endregion
@@ -1,5 +1,4 @@
1
1
  import { LiFiStep, LiFiStepExtended } from "@lifi/sdk";
2
-
3
2
  //#region src/utils/isContractCallStep.d.ts
4
3
  declare function isContractCallStep(step: LiFiStepExtended | LiFiStep): boolean;
5
4
  //#endregion
@@ -1,5 +1,4 @@
1
1
  import { ExtendedChain } from "@lifi/sdk";
2
-
3
2
  //#region src/utils/isExtendedChain.d.ts
4
3
  declare function isExtendedChain(chain: any): chain is ExtendedChain;
5
4
  //#endregion
@@ -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,6 +1,5 @@
1
1
  import { RelayerStep } from "../types.js";
2
2
  import { LiFiStep, LiFiStepExtended } from "@lifi/sdk";
3
-
4
3
  //#region src/utils/isRelayerStep.d.ts
5
4
  declare function isRelayerStep(step: LiFiStepExtended | LiFiStep): 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
@@ -1,6 +1,6 @@
1
1
  //#region src/version.d.ts
2
2
  declare const name = "@lifi/sdk-provider-ethereum";
3
- declare const version = "4.0.5";
3
+ declare const version = "4.0.6";
4
4
  //#endregion
5
5
  export { name, version };
6
6
  //# sourceMappingURL=version.d.ts.map
@@ -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.5";
4
+ const version = "4.0.6";
5
5
  //#endregion
6
6
  exports.name = name;
7
7
  exports.version = version;
@@ -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.5'\n"],"mappings":";;AAAA,MAAa,OAAO;AACpB,MAAa,UAAU"}
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"}
@@ -1,5 +1,4 @@
1
1
  import { EthereumProviderOptions, EthereumSDKProvider } from "./types.js";
2
-
3
2
  //#region src/EthereumProvider.d.ts
4
3
  declare function EthereumProvider(options?: EthereumProviderOptions): EthereumSDKProvider;
5
4
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"EthereumProvider.d.ts","names":[],"sources":["../../src/EthereumProvider.ts"],"mappings":";;;iBAOgB,gBAAA,CACd,OAAA,GAAU,uBAAA,GACT,mBAAA"}
1
+ {"version":3,"file":"EthereumProvider.d.ts","names":[],"sources":["../../src/EthereumProvider.ts"],"mappings":";;iBAOgB,iBACd,UAAU,0BACT"}
@@ -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 */nativePermitSupported: boolean; /** Whether Permit2 is available and has sufficient allowance */
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;