@lifi/sdk-provider-ethereum 4.0.14 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (261) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/cjs/EthereumProvider.d.ts +1 -2
  3. package/dist/cjs/EthereumProvider.js +5 -0
  4. package/dist/cjs/EthereumProvider.js.map +1 -1
  5. package/dist/cjs/actions/checkPermitSupport.d.ts +1 -2
  6. package/dist/cjs/actions/constants.d.ts +6 -7
  7. package/dist/cjs/actions/getAccountCode.d.ts +1 -2
  8. package/dist/cjs/actions/getAllowance.d.ts +4 -5
  9. package/dist/cjs/actions/getEthereumBalance.d.ts +1 -2
  10. package/dist/cjs/actions/getMaxPriorityFeePerGas.d.ts +1 -2
  11. package/dist/cjs/actions/getMulticallAddress.d.ts +1 -2
  12. package/dist/cjs/actions/isBatchingSupported.d.ts +1 -2
  13. package/dist/cjs/actions/isSafeSignature.d.ts +2 -3
  14. package/dist/cjs/actions/isSafeWallet.d.ts +1 -2
  15. package/dist/cjs/actions/isSmartContractWallet.d.ts +1 -2
  16. package/dist/cjs/actions/resolveENSAddress.d.ts +1 -2
  17. package/dist/cjs/actions/resolveEthereumAddress.d.ts +1 -2
  18. package/dist/cjs/actions/resolveTransactionHash.d.ts +1 -2
  19. package/dist/cjs/actions/resolveUNSAddress.d.ts +1 -2
  20. package/dist/cjs/actions/setAllowance.d.ts +3 -4
  21. package/dist/cjs/actions/waitForBatchTransactionReceipt.d.ts +1 -2
  22. package/dist/cjs/actions/waitForRelayedTransactionReceipt.d.ts +1 -2
  23. package/dist/cjs/actions/waitForSafeTransactionExecution.d.ts +2 -3
  24. package/dist/cjs/actions/waitForTransactionReceipt.d.ts +1 -2
  25. package/dist/cjs/client/publicClient.d.ts +1 -2
  26. package/dist/cjs/client/safeClient.d.ts +3 -4
  27. package/dist/cjs/client/types.d.ts +3 -4
  28. package/dist/cjs/core/EthereumStepExecutor.d.ts +1 -2
  29. package/dist/cjs/core/tasks/EthereumBatchedSignAndExecuteTask.d.ts +1 -2
  30. package/dist/cjs/core/tasks/EthereumBatchedWaitForTransactionTask.d.ts +1 -2
  31. package/dist/cjs/core/tasks/EthereumCheckAllowanceTask.d.ts +1 -2
  32. package/dist/cjs/core/tasks/EthereumCheckBalanceTask.d.ts +1 -2
  33. package/dist/cjs/core/tasks/EthereumCheckPermitsTask.d.ts +1 -2
  34. package/dist/cjs/core/tasks/EthereumNativePermitTask.d.ts +1 -2
  35. package/dist/cjs/core/tasks/EthereumPrepareTransactionTask.d.ts +1 -2
  36. package/dist/cjs/core/tasks/EthereumRelayedSignAndExecuteTask.d.ts +1 -2
  37. package/dist/cjs/core/tasks/EthereumRelayedWaitForTransactionTask.d.ts +1 -2
  38. package/dist/cjs/core/tasks/EthereumResetAllowanceTask.d.ts +1 -2
  39. package/dist/cjs/core/tasks/EthereumSetAllowanceTask.d.ts +1 -2
  40. package/dist/cjs/core/tasks/EthereumSignAndExecuteTask.d.ts +1 -2
  41. package/dist/cjs/core/tasks/EthereumStandardSignAndExecuteTask.d.ts +1 -2
  42. package/dist/cjs/core/tasks/EthereumStandardWaitForTransactionTask.d.ts +1 -2
  43. package/dist/cjs/core/tasks/EthereumWaitForTransactionStatusTask.d.ts +1 -2
  44. package/dist/cjs/core/tasks/EthereumWaitForTransactionTask.d.ts +1 -2
  45. package/dist/cjs/core/tasks/helpers/estimateTransactionRequest.d.ts +1 -2
  46. package/dist/cjs/core/tasks/helpers/getEthereumExecutionStrategy.d.ts +1 -2
  47. package/dist/cjs/core/tasks/helpers/getTxLink.d.ts +1 -2
  48. package/dist/cjs/core/tasks/helpers/getUpdatedStep.d.ts +1 -2
  49. package/dist/cjs/core/tasks/helpers/resolvePermit2Support.d.ts +1 -2
  50. package/dist/cjs/core/tasks/helpers/shouldCheckForAllowance.d.ts +1 -2
  51. package/dist/cjs/core/tasks/helpers/signHyperliquidTypedData.d.ts +1 -2
  52. package/dist/cjs/core/tasks/helpers/switchChain.d.ts +1 -2
  53. package/dist/cjs/core/tasks/helpers/updateActionWithReceipt.d.ts +1 -2
  54. package/dist/cjs/errors/parseEthereumErrors.d.ts +2 -3
  55. package/dist/cjs/hyperliquid/agentWallet.d.ts +2 -3
  56. package/dist/cjs/hyperliquid/isHyperliquidAgentStep.d.ts +4 -5
  57. package/dist/cjs/permits/acceptsRawEcdsaSignature.d.ts +1 -2
  58. package/dist/cjs/permits/allowanceTransfer.d.ts +12 -13
  59. package/dist/cjs/permits/canAccountUseNativePermits.d.ts +1 -2
  60. package/dist/cjs/permits/canAccountUsePermit2.d.ts +1 -2
  61. package/dist/cjs/permits/constants.d.ts +20 -21
  62. package/dist/cjs/permits/domain.d.ts +1 -2
  63. package/dist/cjs/permits/encodeNativePermitData.d.ts +1 -2
  64. package/dist/cjs/permits/encodePermit2Data.d.ts +1 -2
  65. package/dist/cjs/permits/getNativePermit.d.ts +1 -2
  66. package/dist/cjs/permits/getPermitTransferFromValues.d.ts +1 -2
  67. package/dist/cjs/permits/invariant.d.ts +1 -2
  68. package/dist/cjs/permits/isDelegationDesignatorCode.d.ts +1 -2
  69. package/dist/cjs/permits/isNativePermitValid.d.ts +1 -2
  70. package/dist/cjs/permits/signPermit2Message.d.ts +1 -2
  71. package/dist/cjs/permits/signatureTransfer.d.ts +11 -12
  72. package/dist/cjs/permits/types.d.ts +3 -4
  73. package/dist/cjs/types.d.ts +13 -14
  74. package/dist/cjs/utils/abi.d.ts +6 -7
  75. package/dist/cjs/utils/convertExtendedChain.d.ts +1 -2
  76. package/dist/cjs/utils/getActionWithFallback.d.ts +1 -2
  77. package/dist/cjs/utils/getDomainChainId.d.ts +1 -2
  78. package/dist/cjs/utils/getSafeApiKey.d.ts +1 -2
  79. package/dist/cjs/utils/isContractCallStep.d.ts +1 -2
  80. package/dist/cjs/utils/isExtendedChain.d.ts +1 -2
  81. package/dist/cjs/utils/isGaslessStep.d.ts +1 -2
  82. package/dist/cjs/utils/isRelayerStep.d.ts +1 -2
  83. package/dist/cjs/utils/isValidSignature.d.ts +2 -3
  84. package/dist/cjs/utils/isZeroAddress.d.ts +3 -4
  85. package/dist/cjs/utils/median.d.ts +1 -2
  86. package/dist/cjs/version.d.ts +2 -3
  87. package/dist/cjs/version.js +1 -1
  88. package/dist/cjs/version.js.map +1 -1
  89. package/dist/esm/EthereumProvider.d.ts +1 -2
  90. package/dist/esm/EthereumProvider.d.ts.map +1 -1
  91. package/dist/esm/EthereumProvider.js +5 -0
  92. package/dist/esm/EthereumProvider.js.map +1 -1
  93. package/dist/esm/actions/checkPermitSupport.d.ts +1 -2
  94. package/dist/esm/actions/checkPermitSupport.d.ts.map +1 -1
  95. package/dist/esm/actions/constants.d.ts +6 -7
  96. package/dist/esm/actions/constants.d.ts.map +1 -1
  97. package/dist/esm/actions/getAccountCode.d.ts +1 -2
  98. package/dist/esm/actions/getAccountCode.d.ts.map +1 -1
  99. package/dist/esm/actions/getAllowance.d.ts +4 -5
  100. package/dist/esm/actions/getAllowance.d.ts.map +1 -1
  101. package/dist/esm/actions/getEthereumBalance.d.ts +1 -2
  102. package/dist/esm/actions/getEthereumBalance.d.ts.map +1 -1
  103. package/dist/esm/actions/getMaxPriorityFeePerGas.d.ts +1 -2
  104. package/dist/esm/actions/getMaxPriorityFeePerGas.d.ts.map +1 -1
  105. package/dist/esm/actions/getMulticallAddress.d.ts +1 -2
  106. package/dist/esm/actions/getMulticallAddress.d.ts.map +1 -1
  107. package/dist/esm/actions/isBatchingSupported.d.ts +1 -2
  108. package/dist/esm/actions/isBatchingSupported.d.ts.map +1 -1
  109. package/dist/esm/actions/isSafeSignature.d.ts +2 -3
  110. package/dist/esm/actions/isSafeSignature.d.ts.map +1 -1
  111. package/dist/esm/actions/isSafeWallet.d.ts +1 -2
  112. package/dist/esm/actions/isSafeWallet.d.ts.map +1 -1
  113. package/dist/esm/actions/isSmartContractWallet.d.ts +1 -2
  114. package/dist/esm/actions/isSmartContractWallet.d.ts.map +1 -1
  115. package/dist/esm/actions/resolveENSAddress.d.ts +1 -2
  116. package/dist/esm/actions/resolveENSAddress.d.ts.map +1 -1
  117. package/dist/esm/actions/resolveEthereumAddress.d.ts +1 -2
  118. package/dist/esm/actions/resolveEthereumAddress.d.ts.map +1 -1
  119. package/dist/esm/actions/resolveTransactionHash.d.ts +1 -2
  120. package/dist/esm/actions/resolveTransactionHash.d.ts.map +1 -1
  121. package/dist/esm/actions/resolveUNSAddress.d.ts +1 -2
  122. package/dist/esm/actions/resolveUNSAddress.d.ts.map +1 -1
  123. package/dist/esm/actions/setAllowance.d.ts +3 -4
  124. package/dist/esm/actions/setAllowance.d.ts.map +1 -1
  125. package/dist/esm/actions/waitForBatchTransactionReceipt.d.ts +1 -2
  126. package/dist/esm/actions/waitForBatchTransactionReceipt.d.ts.map +1 -1
  127. package/dist/esm/actions/waitForRelayedTransactionReceipt.d.ts +1 -2
  128. package/dist/esm/actions/waitForRelayedTransactionReceipt.d.ts.map +1 -1
  129. package/dist/esm/actions/waitForSafeTransactionExecution.d.ts +2 -3
  130. package/dist/esm/actions/waitForSafeTransactionExecution.d.ts.map +1 -1
  131. package/dist/esm/actions/waitForTransactionReceipt.d.ts +1 -2
  132. package/dist/esm/actions/waitForTransactionReceipt.d.ts.map +1 -1
  133. package/dist/esm/client/publicClient.d.ts +1 -2
  134. package/dist/esm/client/publicClient.d.ts.map +1 -1
  135. package/dist/esm/client/safeClient.d.ts +3 -4
  136. package/dist/esm/client/safeClient.d.ts.map +1 -1
  137. package/dist/esm/client/types.d.ts +3 -4
  138. package/dist/esm/client/types.d.ts.map +1 -1
  139. package/dist/esm/core/EthereumStepExecutor.d.ts +1 -2
  140. package/dist/esm/core/EthereumStepExecutor.d.ts.map +1 -1
  141. package/dist/esm/core/tasks/EthereumBatchedSignAndExecuteTask.d.ts +1 -2
  142. package/dist/esm/core/tasks/EthereumBatchedSignAndExecuteTask.d.ts.map +1 -1
  143. package/dist/esm/core/tasks/EthereumBatchedWaitForTransactionTask.d.ts +1 -2
  144. package/dist/esm/core/tasks/EthereumBatchedWaitForTransactionTask.d.ts.map +1 -1
  145. package/dist/esm/core/tasks/EthereumCheckAllowanceTask.d.ts +1 -2
  146. package/dist/esm/core/tasks/EthereumCheckAllowanceTask.d.ts.map +1 -1
  147. package/dist/esm/core/tasks/EthereumCheckBalanceTask.d.ts +1 -2
  148. package/dist/esm/core/tasks/EthereumCheckBalanceTask.d.ts.map +1 -1
  149. package/dist/esm/core/tasks/EthereumCheckPermitsTask.d.ts +1 -2
  150. package/dist/esm/core/tasks/EthereumCheckPermitsTask.d.ts.map +1 -1
  151. package/dist/esm/core/tasks/EthereumNativePermitTask.d.ts +1 -2
  152. package/dist/esm/core/tasks/EthereumNativePermitTask.d.ts.map +1 -1
  153. package/dist/esm/core/tasks/EthereumPrepareTransactionTask.d.ts +1 -2
  154. package/dist/esm/core/tasks/EthereumPrepareTransactionTask.d.ts.map +1 -1
  155. package/dist/esm/core/tasks/EthereumRelayedSignAndExecuteTask.d.ts +1 -2
  156. package/dist/esm/core/tasks/EthereumRelayedSignAndExecuteTask.d.ts.map +1 -1
  157. package/dist/esm/core/tasks/EthereumRelayedWaitForTransactionTask.d.ts +1 -2
  158. package/dist/esm/core/tasks/EthereumRelayedWaitForTransactionTask.d.ts.map +1 -1
  159. package/dist/esm/core/tasks/EthereumResetAllowanceTask.d.ts +1 -2
  160. package/dist/esm/core/tasks/EthereumResetAllowanceTask.d.ts.map +1 -1
  161. package/dist/esm/core/tasks/EthereumSetAllowanceTask.d.ts +1 -2
  162. package/dist/esm/core/tasks/EthereumSetAllowanceTask.d.ts.map +1 -1
  163. package/dist/esm/core/tasks/EthereumSignAndExecuteTask.d.ts +1 -2
  164. package/dist/esm/core/tasks/EthereumSignAndExecuteTask.d.ts.map +1 -1
  165. package/dist/esm/core/tasks/EthereumStandardSignAndExecuteTask.d.ts +1 -2
  166. package/dist/esm/core/tasks/EthereumStandardSignAndExecuteTask.d.ts.map +1 -1
  167. package/dist/esm/core/tasks/EthereumStandardWaitForTransactionTask.d.ts +1 -2
  168. package/dist/esm/core/tasks/EthereumStandardWaitForTransactionTask.d.ts.map +1 -1
  169. package/dist/esm/core/tasks/EthereumWaitForTransactionStatusTask.d.ts +1 -2
  170. package/dist/esm/core/tasks/EthereumWaitForTransactionStatusTask.d.ts.map +1 -1
  171. package/dist/esm/core/tasks/EthereumWaitForTransactionTask.d.ts +1 -2
  172. package/dist/esm/core/tasks/EthereumWaitForTransactionTask.d.ts.map +1 -1
  173. package/dist/esm/core/tasks/helpers/estimateTransactionRequest.d.ts +1 -2
  174. package/dist/esm/core/tasks/helpers/estimateTransactionRequest.d.ts.map +1 -1
  175. package/dist/esm/core/tasks/helpers/getEthereumExecutionStrategy.d.ts +1 -2
  176. package/dist/esm/core/tasks/helpers/getEthereumExecutionStrategy.d.ts.map +1 -1
  177. package/dist/esm/core/tasks/helpers/getTxLink.d.ts +1 -2
  178. package/dist/esm/core/tasks/helpers/getTxLink.d.ts.map +1 -1
  179. package/dist/esm/core/tasks/helpers/getUpdatedStep.d.ts +1 -2
  180. package/dist/esm/core/tasks/helpers/getUpdatedStep.d.ts.map +1 -1
  181. package/dist/esm/core/tasks/helpers/resolvePermit2Support.d.ts +1 -2
  182. package/dist/esm/core/tasks/helpers/resolvePermit2Support.d.ts.map +1 -1
  183. package/dist/esm/core/tasks/helpers/shouldCheckForAllowance.d.ts +1 -2
  184. package/dist/esm/core/tasks/helpers/shouldCheckForAllowance.d.ts.map +1 -1
  185. package/dist/esm/core/tasks/helpers/signHyperliquidTypedData.d.ts +1 -2
  186. package/dist/esm/core/tasks/helpers/signHyperliquidTypedData.d.ts.map +1 -1
  187. package/dist/esm/core/tasks/helpers/switchChain.d.ts +1 -2
  188. package/dist/esm/core/tasks/helpers/switchChain.d.ts.map +1 -1
  189. package/dist/esm/core/tasks/helpers/updateActionWithReceipt.d.ts +1 -2
  190. package/dist/esm/core/tasks/helpers/updateActionWithReceipt.d.ts.map +1 -1
  191. package/dist/esm/errors/parseEthereumErrors.d.ts +2 -3
  192. package/dist/esm/errors/parseEthereumErrors.d.ts.map +1 -1
  193. package/dist/esm/hyperliquid/agentWallet.d.ts +2 -3
  194. package/dist/esm/hyperliquid/agentWallet.d.ts.map +1 -1
  195. package/dist/esm/hyperliquid/isHyperliquidAgentStep.d.ts +4 -5
  196. package/dist/esm/hyperliquid/isHyperliquidAgentStep.d.ts.map +1 -1
  197. package/dist/esm/permits/acceptsRawEcdsaSignature.d.ts +1 -2
  198. package/dist/esm/permits/acceptsRawEcdsaSignature.d.ts.map +1 -1
  199. package/dist/esm/permits/allowanceTransfer.d.ts +12 -13
  200. package/dist/esm/permits/allowanceTransfer.d.ts.map +1 -1
  201. package/dist/esm/permits/canAccountUseNativePermits.d.ts +1 -2
  202. package/dist/esm/permits/canAccountUseNativePermits.d.ts.map +1 -1
  203. package/dist/esm/permits/canAccountUsePermit2.d.ts +1 -2
  204. package/dist/esm/permits/canAccountUsePermit2.d.ts.map +1 -1
  205. package/dist/esm/permits/constants.d.ts +20 -21
  206. package/dist/esm/permits/constants.d.ts.map +1 -1
  207. package/dist/esm/permits/domain.d.ts +1 -2
  208. package/dist/esm/permits/domain.d.ts.map +1 -1
  209. package/dist/esm/permits/encodeNativePermitData.d.ts +1 -2
  210. package/dist/esm/permits/encodeNativePermitData.d.ts.map +1 -1
  211. package/dist/esm/permits/encodePermit2Data.d.ts +1 -2
  212. package/dist/esm/permits/encodePermit2Data.d.ts.map +1 -1
  213. package/dist/esm/permits/getNativePermit.d.ts +1 -2
  214. package/dist/esm/permits/getNativePermit.d.ts.map +1 -1
  215. package/dist/esm/permits/getPermitTransferFromValues.d.ts +1 -2
  216. package/dist/esm/permits/getPermitTransferFromValues.d.ts.map +1 -1
  217. package/dist/esm/permits/invariant.d.ts +1 -2
  218. package/dist/esm/permits/invariant.d.ts.map +1 -1
  219. package/dist/esm/permits/isDelegationDesignatorCode.d.ts +1 -2
  220. package/dist/esm/permits/isDelegationDesignatorCode.d.ts.map +1 -1
  221. package/dist/esm/permits/isNativePermitValid.d.ts +1 -2
  222. package/dist/esm/permits/isNativePermitValid.d.ts.map +1 -1
  223. package/dist/esm/permits/signPermit2Message.d.ts +1 -2
  224. package/dist/esm/permits/signPermit2Message.d.ts.map +1 -1
  225. package/dist/esm/permits/signatureTransfer.d.ts +11 -12
  226. package/dist/esm/permits/signatureTransfer.d.ts.map +1 -1
  227. package/dist/esm/permits/types.d.ts +3 -4
  228. package/dist/esm/permits/types.d.ts.map +1 -1
  229. package/dist/esm/types.d.ts +13 -14
  230. package/dist/esm/types.d.ts.map +1 -1
  231. package/dist/esm/utils/abi.d.ts +6 -7
  232. package/dist/esm/utils/abi.d.ts.map +1 -1
  233. package/dist/esm/utils/convertExtendedChain.d.ts +1 -2
  234. package/dist/esm/utils/convertExtendedChain.d.ts.map +1 -1
  235. package/dist/esm/utils/getActionWithFallback.d.ts +1 -2
  236. package/dist/esm/utils/getActionWithFallback.d.ts.map +1 -1
  237. package/dist/esm/utils/getDomainChainId.d.ts +1 -2
  238. package/dist/esm/utils/getDomainChainId.d.ts.map +1 -1
  239. package/dist/esm/utils/getSafeApiKey.d.ts +1 -2
  240. package/dist/esm/utils/getSafeApiKey.d.ts.map +1 -1
  241. package/dist/esm/utils/isContractCallStep.d.ts +1 -2
  242. package/dist/esm/utils/isContractCallStep.d.ts.map +1 -1
  243. package/dist/esm/utils/isExtendedChain.d.ts +1 -2
  244. package/dist/esm/utils/isExtendedChain.d.ts.map +1 -1
  245. package/dist/esm/utils/isGaslessStep.d.ts +1 -2
  246. package/dist/esm/utils/isGaslessStep.d.ts.map +1 -1
  247. package/dist/esm/utils/isRelayerStep.d.ts +1 -2
  248. package/dist/esm/utils/isRelayerStep.d.ts.map +1 -1
  249. package/dist/esm/utils/isValidSignature.d.ts +2 -3
  250. package/dist/esm/utils/isValidSignature.d.ts.map +1 -1
  251. package/dist/esm/utils/isZeroAddress.d.ts +3 -4
  252. package/dist/esm/utils/isZeroAddress.d.ts.map +1 -1
  253. package/dist/esm/utils/median.d.ts +1 -2
  254. package/dist/esm/utils/median.d.ts.map +1 -1
  255. package/dist/esm/version.d.ts +2 -3
  256. package/dist/esm/version.d.ts.map +1 -1
  257. package/dist/esm/version.js +1 -1
  258. package/dist/esm/version.js.map +1 -1
  259. package/package.json +2 -2
  260. package/src/EthereumProvider.ts +6 -0
  261. package/src/version.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @lifi/sdk-provider-ethereum
2
2
 
3
+ ## 4.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#471](https://github.com/lifinance/sdk/pull/471) [`a57b439`](https://github.com/lifinance/sdk/commit/a57b4391b52d9bc535577dcbfad1523ab4d2e32f) Thanks [@chybisov](https://github.com/chybisov)! - Add optional `SDKProvider.isTokenAddress`, so callers can validate a token identifier without knowing how each ecosystem shapes one: `C…` contract ids on Stellar, `0x…::module::TYPE` coin types on Sui, an address in any letter case on Ethereum, and the wallet format on Solana and Tron. `BitcoinProvider` omits the method, because the token list names its native coin `bitcoin` rather than giving it an address. A missing method means the ecosystem has no token address format, so a caller must not fall back to `isAddress`.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`d7d8abb`](https://github.com/lifinance/sdk/commit/d7d8abb776aa943aafda62d17926b8575f770478), [`a57b439`](https://github.com/lifinance/sdk/commit/a57b4391b52d9bc535577dcbfad1523ab4d2e32f)]:
12
+ - @lifi/sdk@4.7.0
13
+
3
14
  ## 4.0.14
4
15
 
5
16
  ### Patch Changes
@@ -1,6 +1,5 @@
1
1
  import { EthereumProviderOptions, EthereumSDKProvider } from "./types.js";
2
2
  //#region src/EthereumProvider.d.ts
3
- declare function EthereumProvider(options?: EthereumProviderOptions): EthereumSDKProvider;
3
+ export declare function EthereumProvider(options?: EthereumProviderOptions): EthereumSDKProvider;
4
4
  //#endregion
5
- export { EthereumProvider };
6
5
  //# sourceMappingURL=EthereumProvider.d.ts.map
@@ -5,6 +5,10 @@ const require_core_EthereumStepExecutor = require("./core/EthereumStepExecutor.j
5
5
  let _lifi_sdk = require("@lifi/sdk");
6
6
  let viem = require("viem");
7
7
  //#region src/EthereumProvider.ts
8
+ /** The wallet format without the checksum: a pasted address keeps its case. */
9
+ function isEthereumTokenAddress(address) {
10
+ return (0, viem.isAddress)(address, { strict: false });
11
+ }
8
12
  function EthereumProvider(options) {
9
13
  const _options = options ?? {};
10
14
  return {
@@ -15,6 +19,7 @@ function EthereumProvider(options) {
15
19
  return _options;
16
20
  },
17
21
  isAddress: viem.isAddress,
22
+ isTokenAddress: isEthereumTokenAddress,
18
23
  resolveAddress: require_actions_resolveEthereumAddress.resolveEthereumAddress,
19
24
  getBalance: require_actions_getEthereumBalance.getEthereumBalance,
20
25
  getWalletClient: _options.getWalletClient,
@@ -1 +1 @@
1
- {"version":3,"file":"EthereumProvider.js","names":["ChainType","resolveEthereumAddress","getEthereumBalance","EthereumStepExecutor"],"sources":["../../src/EthereumProvider.ts"],"sourcesContent":["import { ChainType, type StepExecutorOptions } from '@lifi/sdk'\nimport { isAddress } from 'viem'\nimport { getEthereumBalance } from './actions/getEthereumBalance.js'\nimport { resolveEthereumAddress } from './actions/resolveEthereumAddress.js'\nimport { EthereumStepExecutor } from './core/EthereumStepExecutor.js'\nimport type { EthereumProviderOptions, EthereumSDKProvider } from './types.js'\n\nexport function EthereumProvider(\n options?: EthereumProviderOptions\n): EthereumSDKProvider {\n const _options: EthereumProviderOptions = options ?? {}\n return {\n get type() {\n return ChainType.EVM\n },\n get options() {\n return _options\n },\n isAddress,\n resolveAddress: resolveEthereumAddress,\n getBalance: getEthereumBalance,\n getWalletClient: _options.getWalletClient,\n async getStepExecutor(\n options: StepExecutorOptions\n ): Promise<EthereumStepExecutor> {\n if (!_options.getWalletClient) {\n throw new Error('Client is not provided.')\n }\n\n const walletClient = await _options.getWalletClient()\n\n const executor = new EthereumStepExecutor({\n client: walletClient,\n switchChain: _options.switchChain,\n disableMessageSigning: _options.disableMessageSigning,\n routeId: options.routeId,\n executionOptions: {\n ...options.executionOptions,\n },\n })\n\n return executor\n },\n setOptions(options: EthereumProviderOptions) {\n Object.assign(_options, options)\n },\n }\n}\n"],"mappings":";;;;;;;AAOA,SAAgB,iBACd,SACqB;CACrB,MAAM,WAAoC,WAAW,CAAC;CACtD,OAAO;EACL,IAAI,OAAO;GACT,OAAOA,UAAAA,UAAU;EACnB;EACA,IAAI,UAAU;GACZ,OAAO;EACT;EACA,WAAA,KAAA;EACA,gBAAgBC,uCAAAA;EAChB,YAAYC,mCAAAA;EACZ,iBAAiB,SAAS;EAC1B,MAAM,gBACJ,SAC+B;GAC/B,IAAI,CAAC,SAAS,iBACZ,MAAM,IAAI,MAAM,yBAAyB;GAG3C,MAAM,eAAe,MAAM,SAAS,gBAAgB;GAYpD,OAAO,IAVcC,kCAAAA,qBAAqB;IACxC,QAAQ;IACR,aAAa,SAAS;IACtB,uBAAuB,SAAS;IAChC,SAAS,QAAQ;IACjB,kBAAkB,EAChB,GAAG,QAAQ,iBACb;GACF,CAEc;EAChB;EACA,WAAW,SAAkC;GAC3C,OAAO,OAAO,UAAU,OAAO;EACjC;CACF;AACF"}
1
+ {"version":3,"file":"EthereumProvider.js","names":["isAddress","ChainType","resolveEthereumAddress","getEthereumBalance","EthereumStepExecutor"],"sources":["../../src/EthereumProvider.ts"],"sourcesContent":["import { ChainType, type StepExecutorOptions } from '@lifi/sdk'\nimport { isAddress } from 'viem'\nimport { getEthereumBalance } from './actions/getEthereumBalance.js'\nimport { resolveEthereumAddress } from './actions/resolveEthereumAddress.js'\nimport { EthereumStepExecutor } from './core/EthereumStepExecutor.js'\nimport type { EthereumProviderOptions, EthereumSDKProvider } from './types.js'\n\n/** The wallet format without the checksum: a pasted address keeps its case. */\nfunction isEthereumTokenAddress(address: string): boolean {\n return isAddress(address, { strict: false })\n}\n\nexport function EthereumProvider(\n options?: EthereumProviderOptions\n): EthereumSDKProvider {\n const _options: EthereumProviderOptions = options ?? {}\n return {\n get type() {\n return ChainType.EVM\n },\n get options() {\n return _options\n },\n isAddress,\n isTokenAddress: isEthereumTokenAddress,\n resolveAddress: resolveEthereumAddress,\n getBalance: getEthereumBalance,\n getWalletClient: _options.getWalletClient,\n async getStepExecutor(\n options: StepExecutorOptions\n ): Promise<EthereumStepExecutor> {\n if (!_options.getWalletClient) {\n throw new Error('Client is not provided.')\n }\n\n const walletClient = await _options.getWalletClient()\n\n const executor = new EthereumStepExecutor({\n client: walletClient,\n switchChain: _options.switchChain,\n disableMessageSigning: _options.disableMessageSigning,\n routeId: options.routeId,\n executionOptions: {\n ...options.executionOptions,\n },\n })\n\n return executor\n },\n setOptions(options: EthereumProviderOptions) {\n Object.assign(_options, options)\n },\n }\n}\n"],"mappings":";;;;;;;;AAQA,SAAS,uBAAuB,SAA0B;CACxD,QAAA,GAAOA,KAAAA,UAAAA,CAAU,SAAS,EAAE,QAAQ,MAAM,CAAC;AAC7C;AAEA,SAAgB,iBACd,SACqB;CACrB,MAAM,WAAoC,WAAW,CAAC;CACtD,OAAO;EACL,IAAI,OAAO;GACT,OAAOC,UAAAA,UAAU;EACnB;EACA,IAAI,UAAU;GACZ,OAAO;EACT;EACA,WAAA,KAAA;EACA,gBAAgB;EAChB,gBAAgBC,uCAAAA;EAChB,YAAYC,mCAAAA;EACZ,iBAAiB,SAAS;EAC1B,MAAM,gBACJ,SAC+B;GAC/B,IAAI,CAAC,SAAS,iBACZ,MAAM,IAAI,MAAM,yBAAyB;GAG3C,MAAM,eAAe,MAAM,SAAS,gBAAgB;GAYpD,OAAO,IAVcC,kCAAAA,qBAAqB;IACxC,QAAQ;IACR,aAAa,SAAS;IACtB,uBAAuB,SAAS;IAChC,SAAS,QAAQ;IACjB,kBAAkB,EAChB,GAAG,QAAQ,iBACb;GACF,CAEc;EAChB;EACA,WAAW,SAAkC;GAC3C,OAAO,OAAO,UAAU,OAAO;EACjC;CACF;AACF"}
@@ -21,12 +21,11 @@ type PermitSupport = {
21
21
  * @param amount - The amount to check allowance against for Permit2
22
22
  * @returns Object indicating which permit types are supported
23
23
  */
24
- declare const checkPermitSupport: (client: SDKClient, { chain, tokenAddress, ownerAddress, amount }: {
24
+ export declare const checkPermitSupport: (client: SDKClient, { chain, tokenAddress, ownerAddress, amount }: {
25
25
  chain: ExtendedChain;
26
26
  tokenAddress: Address;
27
27
  ownerAddress: Address;
28
28
  amount: bigint;
29
29
  }) => Promise<PermitSupport>;
30
30
  //#endregion
31
- export { checkPermitSupport };
32
31
  //# sourceMappingURL=checkPermitSupport.d.ts.map
@@ -1,9 +1,9 @@
1
1
  import { ChainId, ChainType } from "@lifi/sdk";
2
2
  import { Address } from "viem";
3
3
  //#region src/actions/constants.d.ts
4
- declare const UNS_PROXY_READER_ADDRESSES: Record<number, Address>;
5
- declare const getUNSProxyAddress: (chainId: number) => Address | undefined;
6
- declare const UNSProxyReaderABI: readonly [{
4
+ export declare const UNS_PROXY_READER_ADDRESSES: Record<number, Address>;
5
+ export declare const getUNSProxyAddress: (chainId: number) => Address | undefined;
6
+ export declare const UNSProxyReaderABI: readonly [{
7
7
  readonly constant: true;
8
8
  readonly inputs: readonly [{
9
9
  readonly internalType: "string[]";
@@ -46,9 +46,8 @@ declare const UNSProxyReaderABI: readonly [{
46
46
  readonly stateMutability: "view";
47
47
  readonly type: "function";
48
48
  }];
49
- declare const CHAIN_TYPE_UNS_CHAIN_MAP: Record<ChainType, string>;
50
- declare const CHAIN_ID_UNS_CHAIN_MAP: Partial<Record<ChainId, string>>;
51
- declare const CHAIN_TYPE_FAMILY_MAP: Record<ChainType, string>;
49
+ export declare const CHAIN_TYPE_UNS_CHAIN_MAP: Record<ChainType, string>;
50
+ export declare const CHAIN_ID_UNS_CHAIN_MAP: Partial<Record<ChainId, string>>;
51
+ export declare const CHAIN_TYPE_FAMILY_MAP: Record<ChainType, string>;
52
52
  //#endregion
53
- export { CHAIN_ID_UNS_CHAIN_MAP, CHAIN_TYPE_FAMILY_MAP, CHAIN_TYPE_UNS_CHAIN_MAP, UNSProxyReaderABI, UNS_PROXY_READER_ADDRESSES, getUNSProxyAddress };
54
53
  //# sourceMappingURL=constants.d.ts.map
@@ -24,7 +24,6 @@ type GetAccountCodeParams = {
24
24
  * `undefined`, which would otherwise make a plain EOA indistinguishable from
25
25
  * a failed RPC and silently push every EOA down the failure path.
26
26
  */
27
- declare const getAccountCode: ({ client, chainId, address }: GetAccountCodeParams) => Promise<Hex | undefined>;
27
+ export declare const getAccountCode: ({ client, chainId, address }: GetAccountCodeParams) => Promise<Hex | undefined>;
28
28
  //#endregion
29
- export { getAccountCode };
30
29
  //# sourceMappingURL=getAccountCode.d.ts.map
@@ -2,8 +2,8 @@ import { TokenAllowance, TokenSpender, TokenSpenderAllowance } from "../types.js
2
2
  import { BaseToken, ChainId, SDKClient } from "@lifi/sdk";
3
3
  import { Address, Client } from "viem";
4
4
  //#region src/actions/getAllowance.d.ts
5
- declare const getAllowance: (client: SDKClient, viemClient: Client, tokenAddress: Address, ownerAddress: Address, spenderAddress: Address) => Promise<bigint>;
6
- declare const getAllowanceMulticall: (client: SDKClient, viemClient: Client, chainId: ChainId, tokens: TokenSpender[], ownerAddress: Address) => Promise<TokenSpenderAllowance[]>;
5
+ export declare const getAllowance: (client: SDKClient, viemClient: Client, tokenAddress: Address, ownerAddress: Address, spenderAddress: Address) => Promise<bigint>;
6
+ export declare const getAllowanceMulticall: (client: SDKClient, viemClient: Client, chainId: ChainId, tokens: TokenSpender[], ownerAddress: Address) => Promise<TokenSpenderAllowance[]>;
7
7
  /**
8
8
  * Get the current allowance for a certain token.
9
9
  * @param client - The SDK client
@@ -12,7 +12,7 @@ declare const getAllowanceMulticall: (client: SDKClient, viemClient: Client, cha
12
12
  * @param spenderAddress - The spender address that has to be approved
13
13
  * @returns Returns allowance
14
14
  */
15
- declare const getTokenAllowance: (client: SDKClient, token: BaseToken, ownerAddress: Address, spenderAddress: Address) => Promise<bigint | undefined>;
15
+ export declare const getTokenAllowance: (client: SDKClient, token: BaseToken, ownerAddress: Address, spenderAddress: Address) => Promise<bigint | undefined>;
16
16
  /**
17
17
  * Get the current allowance for a list of token/spender address pairs.
18
18
  * @param client - The SDK client
@@ -20,7 +20,6 @@ declare const getTokenAllowance: (client: SDKClient, token: BaseToken, ownerAddr
20
20
  * @param tokens - A list of token and spender address pairs
21
21
  * @returns Returns array of tokens and their allowance
22
22
  */
23
- declare const getTokenAllowanceMulticall: (client: SDKClient, ownerAddress: Address, tokens: TokenSpender[]) => Promise<TokenAllowance[]>;
23
+ export declare const getTokenAllowanceMulticall: (client: SDKClient, ownerAddress: Address, tokens: TokenSpender[]) => Promise<TokenAllowance[]>;
24
24
  //#endregion
25
- export { getAllowance, getAllowanceMulticall, getTokenAllowance, getTokenAllowanceMulticall };
26
25
  //# sourceMappingURL=getAllowance.d.ts.map
@@ -1,7 +1,6 @@
1
1
  import { SDKClient, Token, TokenAmount } from "@lifi/sdk";
2
2
  import { Address } from "viem";
3
3
  //#region src/actions/getEthereumBalance.d.ts
4
- declare const getEthereumBalance: (client: SDKClient, walletAddress: Address, tokens: Token[]) => Promise<TokenAmount[]>;
4
+ export declare const getEthereumBalance: (client: SDKClient, walletAddress: Address, tokens: Token[]) => Promise<TokenAmount[]>;
5
5
  //#endregion
6
- export { getEthereumBalance };
7
6
  //# sourceMappingURL=getEthereumBalance.d.ts.map
@@ -1,7 +1,6 @@
1
1
  import { SDKClient } from "@lifi/sdk";
2
2
  import { Client } from "viem";
3
3
  //#region src/actions/getMaxPriorityFeePerGas.d.ts
4
- declare const getMaxPriorityFeePerGas: (client: SDKClient, viemClient: Client) => Promise<bigint | undefined>;
4
+ export declare const getMaxPriorityFeePerGas: (client: SDKClient, viemClient: Client) => Promise<bigint | undefined>;
5
5
  //#endregion
6
- export { getMaxPriorityFeePerGas };
7
6
  //# sourceMappingURL=getMaxPriorityFeePerGas.d.ts.map
@@ -1,7 +1,6 @@
1
1
  import { ChainId, SDKClient } from "@lifi/sdk";
2
2
  import { Address } from "viem";
3
3
  //#region src/actions/getMulticallAddress.d.ts
4
- declare const getMulticallAddress: (client: SDKClient, chainId: ChainId) => Promise<Address | undefined>;
4
+ export declare const getMulticallAddress: (client: SDKClient, chainId: ChainId) => Promise<Address | undefined>;
5
5
  //#endregion
6
- export { getMulticallAddress };
7
6
  //# sourceMappingURL=getMulticallAddress.d.ts.map
@@ -1,11 +1,10 @@
1
1
  import { SDKClient } from "@lifi/sdk";
2
2
  import { Client } from "viem";
3
3
  //#region src/actions/isBatchingSupported.d.ts
4
- declare function isBatchingSupported(client: SDKClient, { client: viemClient, chainId, skipReady }: {
4
+ export declare function isBatchingSupported(client: SDKClient, { client: viemClient, chainId, skipReady }: {
5
5
  client?: Client;
6
6
  chainId: number;
7
7
  skipReady?: boolean;
8
8
  }): Promise<boolean>;
9
9
  //#endregion
10
- export { isBatchingSupported };
11
10
  //# sourceMappingURL=isBatchingSupported.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { SDKClient } from "@lifi/sdk";
2
2
  import { Address } from "viem";
3
3
  //#region src/actions/isSafeSignature.d.ts
4
- interface IsSafeSignatureProps {
4
+ export interface IsSafeSignatureProps {
5
5
  hash: string;
6
6
  chainId: number;
7
7
  address?: Address;
@@ -12,7 +12,6 @@ interface IsSafeSignatureProps {
12
12
  * Safe wallets via Rabby return a signature (65 bytes = 132 chars) instead of
13
13
  * a transaction hash (32 bytes = 66 chars) for queued transactions.
14
14
  */
15
- declare function isSafeSignature(client: SDKClient, { hash, chainId, address }: IsSafeSignatureProps): Promise<boolean>;
15
+ export declare function isSafeSignature(client: SDKClient, { hash, chainId, address }: IsSafeSignatureProps): Promise<boolean>;
16
16
  //#endregion
17
- export { IsSafeSignatureProps, isSafeSignature };
18
17
  //# sourceMappingURL=isSafeSignature.d.ts.map
@@ -11,7 +11,6 @@ type IsSafeWalletParams = {
11
11
  * Check if an address is a Safe wallet via the Safe Transaction Service,
12
12
  * short-circuiting on `eth_getCode` for EOAs (incl. EIP-7702 delegated).
13
13
  */
14
- declare function isSafeWallet({ client, chainId, address, safeApiKey }: IsSafeWalletParams): Promise<boolean>;
14
+ export declare function isSafeWallet({ client, chainId, address, safeApiKey }: IsSafeWalletParams): Promise<boolean>;
15
15
  //#endregion
16
- export { isSafeWallet };
17
16
  //# sourceMappingURL=isSafeWallet.d.ts.map
@@ -4,7 +4,6 @@
4
4
  * custom). Plain EOAs and EIP-7702 delegated EOAs (which still pay their
5
5
  * own gas / can sign ECDSA) return false.
6
6
  */
7
- declare const isSmartContractWalletCode: (code?: string) => boolean;
7
+ export declare const isSmartContractWalletCode: (code?: string) => boolean;
8
8
  //#endregion
9
- export { isSmartContractWalletCode };
10
9
  //# sourceMappingURL=isSmartContractWallet.d.ts.map
@@ -1,6 +1,5 @@
1
1
  import { SDKClient } from "@lifi/sdk";
2
2
  //#region src/actions/resolveENSAddress.d.ts
3
- declare const resolveENSAddress: (client: SDKClient, name: string) => Promise<string | undefined>;
3
+ export declare const resolveENSAddress: (client: SDKClient, name: string) => Promise<string | undefined>;
4
4
  //#endregion
5
- export { resolveENSAddress };
6
5
  //# sourceMappingURL=resolveENSAddress.d.ts.map
@@ -1,6 +1,5 @@
1
1
  import { ChainId, CoinKey, SDKClient } from "@lifi/sdk";
2
2
  //#region src/actions/resolveEthereumAddress.d.ts
3
- declare function resolveEthereumAddress(name: string, client: SDKClient, chainId?: ChainId, token?: CoinKey): Promise<string | undefined>;
3
+ export declare function resolveEthereumAddress(name: string, client: SDKClient, chainId?: ChainId, token?: CoinKey): Promise<string | undefined>;
4
4
  //#endregion
5
- export { resolveEthereumAddress };
6
5
  //# sourceMappingURL=resolveEthereumAddress.d.ts.map
@@ -1,7 +1,6 @@
1
1
  import { SDKClient } from "@lifi/sdk";
2
2
  import { Client, Hash } from "viem";
3
3
  //#region src/actions/resolveTransactionHash.d.ts
4
- declare const resolveTransactionHash: (client: SDKClient, viemClient: Client, txHashOrSignature: Hash, chainId: number) => Promise<Hash>;
4
+ export declare const resolveTransactionHash: (client: SDKClient, viemClient: Client, txHashOrSignature: Hash, chainId: number) => Promise<Hash>;
5
5
  //#endregion
6
- export { resolveTransactionHash };
7
6
  //# sourceMappingURL=resolveTransactionHash.d.ts.map
@@ -1,6 +1,5 @@
1
1
  import { ChainId, ChainType, CoinKey, SDKClient } from "@lifi/sdk";
2
2
  //#region src/actions/resolveUNSAddress.d.ts
3
- declare const resolveUNSAddress: (client: SDKClient, name: string, chainType: ChainType, chain?: ChainId, token?: CoinKey) => Promise<string | undefined>;
3
+ export declare const resolveUNSAddress: (client: SDKClient, name: string, chainType: ChainType, chain?: ChainId, token?: CoinKey) => Promise<string | undefined>;
4
4
  //#endregion
5
- export { resolveUNSAddress };
6
5
  //# sourceMappingURL=resolveUNSAddress.d.ts.map
@@ -2,7 +2,7 @@ import { ApproveTokenRequest, RevokeApprovalRequest } from "../types.js";
2
2
  import { ExecutionOptions, SDKClient } from "@lifi/sdk";
3
3
  import { Address, Client, Hash, Hex } from "viem";
4
4
  //#region src/actions/setAllowance.d.ts
5
- declare const setAllowance: (client: SDKClient, viemClient: Client, tokenAddress: Address, contractAddress: Address, amount: bigint, executionOptions?: ExecutionOptions, returnPopulatedTransaction?: boolean) => Promise<Hash | Hex>;
5
+ export declare const setAllowance: (client: SDKClient, viemClient: Client, tokenAddress: Address, contractAddress: Address, amount: bigint, executionOptions?: ExecutionOptions, returnPopulatedTransaction?: boolean) => Promise<Hash | Hex>;
6
6
  /**
7
7
  * Set approval for a certain token and amount.
8
8
  * @param client - The SDK client
@@ -13,7 +13,7 @@ declare const setAllowance: (client: SDKClient, viemClient: Client, tokenAddress
13
13
  * @param request.amount - The amount of tokens to approve
14
14
  * @returns Returns Hash or nothing
15
15
  */
16
- declare const setTokenAllowance: (client: SDKClient, { walletClient, token, spenderAddress, amount }: ApproveTokenRequest) => Promise<Hash | void>;
16
+ export declare const setTokenAllowance: (client: SDKClient, { walletClient, token, spenderAddress, amount }: ApproveTokenRequest) => Promise<Hash | void>;
17
17
  /**
18
18
  * Revoke approval for a certain token.
19
19
  * @param client - The SDK client
@@ -23,7 +23,6 @@ declare const setTokenAllowance: (client: SDKClient, { walletClient, token, spen
23
23
  * @param request.spenderAddress - The address of the spender
24
24
  * @returns Returns Hash or nothing
25
25
  */
26
- declare const revokeTokenApproval: (client: SDKClient, { walletClient, token, spenderAddress }: RevokeApprovalRequest) => Promise<Hash | void>;
26
+ export declare const revokeTokenApproval: (client: SDKClient, { walletClient, token, spenderAddress }: RevokeApprovalRequest) => Promise<Hash | void>;
27
27
  //#endregion
28
- export { revokeTokenApproval, setAllowance, setTokenAllowance };
29
28
  //# sourceMappingURL=setAllowance.d.ts.map
@@ -2,7 +2,6 @@ import { WalletCallReceipt as WalletCallReceipt$1 } from "../types.js";
2
2
  import { Client, Hash } from "viem";
3
3
  import { GetCallsStatusReturnType } from "viem/actions";
4
4
  //#region src/actions/waitForBatchTransactionReceipt.d.ts
5
- declare const waitForBatchTransactionReceipt: (client: Client, batchHash: Hash, onFailed?: (result: GetCallsStatusReturnType) => void) => Promise<WalletCallReceipt$1>;
5
+ export declare const waitForBatchTransactionReceipt: (client: Client, batchHash: Hash, onFailed?: (result: GetCallsStatusReturnType) => void) => Promise<WalletCallReceipt$1>;
6
6
  //#endregion
7
- export { waitForBatchTransactionReceipt };
8
7
  //# sourceMappingURL=waitForBatchTransactionReceipt.d.ts.map
@@ -2,7 +2,6 @@ import { WalletCallReceipt as WalletCallReceipt$1 } from "../types.js";
2
2
  import { LiFiStep, SDKClient } from "@lifi/sdk";
3
3
  import { Hash } from "viem";
4
4
  //#region src/actions/waitForRelayedTransactionReceipt.d.ts
5
- declare const waitForRelayedTransactionReceipt: (client: SDKClient, taskId: Hash, step: LiFiStep) => Promise<WalletCallReceipt$1>;
5
+ export declare const waitForRelayedTransactionReceipt: (client: SDKClient, taskId: Hash, step: LiFiStep) => Promise<WalletCallReceipt$1>;
6
6
  //#endregion
7
- export { waitForRelayedTransactionReceipt };
8
7
  //# sourceMappingURL=waitForRelayedTransactionReceipt.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { SDKClient } from "@lifi/sdk";
2
2
  import { Address, Hash } from "viem";
3
3
  //#region src/actions/waitForSafeTransactionExecution.d.ts
4
- interface WaitForSafeTransactionExecutionProps {
4
+ export interface WaitForSafeTransactionExecutionProps {
5
5
  chainId: number;
6
6
  safeAddress: Address;
7
7
  signature: string;
@@ -17,7 +17,6 @@ interface WaitForSafeTransactionExecutionProps {
17
17
  * @returns The on-chain transaction hash once the Safe transaction is executed.
18
18
  * @throws {TransactionError} If the transaction fails, is replaced, or polling times out.
19
19
  */
20
- declare function waitForSafeTransactionExecution(client: SDKClient, { chainId, safeAddress, signature, pollingInterval, timeout: timeoutMs }: WaitForSafeTransactionExecutionProps): Promise<Hash>;
20
+ export declare function waitForSafeTransactionExecution(client: SDKClient, { chainId, safeAddress, signature, pollingInterval, timeout: timeoutMs }: WaitForSafeTransactionExecutionProps): Promise<Hash>;
21
21
  //#endregion
22
- export { WaitForSafeTransactionExecutionProps, waitForSafeTransactionExecution };
23
22
  //# sourceMappingURL=waitForSafeTransactionExecution.d.ts.map
@@ -7,7 +7,6 @@ interface WaitForTransactionReceiptProps {
7
7
  txHash: Hash;
8
8
  onReplaced?: (response: ReplacementReturnType<Chain | undefined>) => void;
9
9
  }
10
- declare function waitForTransactionReceipt(client: SDKClient, { client: viemClient, chainId, txHash, onReplaced }: WaitForTransactionReceiptProps): Promise<TransactionReceipt | undefined>;
10
+ export declare function waitForTransactionReceipt(client: SDKClient, { client: viemClient, chainId, txHash, onReplaced }: WaitForTransactionReceiptProps): Promise<TransactionReceipt | undefined>;
11
11
  //#endregion
12
- export { waitForTransactionReceipt };
13
12
  //# sourceMappingURL=waitForTransactionReceipt.d.ts.map
@@ -7,7 +7,6 @@ import { Client } from "viem";
7
7
  * @param chainId - Id of the chain the provider is for
8
8
  * @returns The public client for the given chain
9
9
  */
10
- declare const getPublicClient: (client: SDKClient, chainId: number) => Promise<Client>;
10
+ export declare const getPublicClient: (client: SDKClient, chainId: number) => Promise<Client>;
11
11
  //#endregion
12
- export { getPublicClient };
13
12
  //# sourceMappingURL=publicClient.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { SafeInfo, SafeMultisigTransaction, SafeMultisigTransactionList } from "./types.js";
2
2
  import { Address, Hash } from "viem";
3
3
  //#region src/client/safeClient.d.ts
4
- interface SafeClientInterface {
4
+ export interface SafeClientInterface {
5
5
  getInfo: (address: Address) => Promise<SafeInfo>;
6
6
  getTransaction: (safeTxHash: Hash) => Promise<SafeMultisigTransaction>;
7
7
  getTransactions: (safeAddress: Address, options?: {
@@ -9,8 +9,7 @@ interface SafeClientInterface {
9
9
  limit?: number;
10
10
  }) => Promise<SafeMultisigTransactionList>;
11
11
  }
12
- declare const getSafeClient: (chainId: number, apiKey?: string) => SafeClientInterface;
13
- type SafeClient = ReturnType<typeof getSafeClient>;
12
+ export declare const getSafeClient: (chainId: number, apiKey?: string) => SafeClientInterface;
13
+ export type SafeClient = ReturnType<typeof getSafeClient>;
14
14
  //#endregion
15
- export { SafeClient, SafeClientInterface, getSafeClient };
16
15
  //# sourceMappingURL=safeClient.d.ts.map
@@ -1,9 +1,9 @@
1
1
  //#region src/client/types.d.ts
2
- interface SafeInfo {
2
+ export interface SafeInfo {
3
3
  threshold: number;
4
4
  owners: string[];
5
5
  }
6
- interface SafeMultisigTransaction {
6
+ export interface SafeMultisigTransaction {
7
7
  safeTxHash: string;
8
8
  nonce: number;
9
9
  isExecuted: boolean;
@@ -13,10 +13,9 @@ interface SafeMultisigTransaction {
13
13
  signature?: string;
14
14
  }>;
15
15
  }
16
- interface SafeMultisigTransactionList {
16
+ export interface SafeMultisigTransactionList {
17
17
  count: number;
18
18
  results: SafeMultisigTransaction[];
19
19
  }
20
20
  //#endregion
21
- export { SafeInfo, SafeMultisigTransaction, SafeMultisigTransactionList };
22
21
  //# sourceMappingURL=types.d.ts.map
@@ -7,7 +7,7 @@ interface EthereumStepExecutorOptions extends StepExecutorOptions {
7
7
  switchChain?: (chainId: number) => Promise<Client | undefined>;
8
8
  disableMessageSigning?: boolean;
9
9
  }
10
- declare class EthereumStepExecutor extends BaseStepExecutor {
10
+ export declare class EthereumStepExecutor extends BaseStepExecutor {
11
11
  private client;
12
12
  private switchChain?;
13
13
  private storage?;
@@ -20,5 +20,4 @@ declare class EthereumStepExecutor extends BaseStepExecutor {
20
20
  override createPipeline: (context: EthereumStepExecutorContext) => TaskPipeline;
21
21
  }
22
22
  //#endregion
23
- export { EthereumStepExecutor };
24
23
  //# sourceMappingURL=EthereumStepExecutor.d.ts.map
@@ -1,9 +1,8 @@
1
1
  import { EthereumStepExecutorContext } from "../../types.js";
2
2
  import { BaseStepExecutionTask, TaskResult } from "@lifi/sdk";
3
3
  //#region src/core/tasks/EthereumBatchedSignAndExecuteTask.d.ts
4
- declare class EthereumBatchedSignAndExecuteTask extends BaseStepExecutionTask {
4
+ export declare class EthereumBatchedSignAndExecuteTask extends BaseStepExecutionTask {
5
5
  run(context: EthereumStepExecutorContext): Promise<TaskResult>;
6
6
  }
7
7
  //#endregion
8
- export { EthereumBatchedSignAndExecuteTask };
9
8
  //# sourceMappingURL=EthereumBatchedSignAndExecuteTask.d.ts.map
@@ -1,9 +1,8 @@
1
1
  import { EthereumStepExecutorContext } from "../../types.js";
2
2
  import { BaseStepExecutionTask, TaskResult } from "@lifi/sdk";
3
3
  //#region src/core/tasks/EthereumBatchedWaitForTransactionTask.d.ts
4
- declare class EthereumBatchedWaitForTransactionTask extends BaseStepExecutionTask {
4
+ export declare class EthereumBatchedWaitForTransactionTask extends BaseStepExecutionTask {
5
5
  run(context: EthereumStepExecutorContext): Promise<TaskResult>;
6
6
  }
7
7
  //#endregion
8
- export { EthereumBatchedWaitForTransactionTask };
9
8
  //# sourceMappingURL=EthereumBatchedWaitForTransactionTask.d.ts.map
@@ -1,10 +1,9 @@
1
1
  import { EthereumStepExecutorContext } from "../../types.js";
2
2
  import { BaseStepExecutionTask, TaskResult } from "@lifi/sdk";
3
3
  //#region src/core/tasks/EthereumCheckAllowanceTask.d.ts
4
- declare class EthereumCheckAllowanceTask extends BaseStepExecutionTask {
4
+ export declare class EthereumCheckAllowanceTask extends BaseStepExecutionTask {
5
5
  override shouldRun(context: EthereumStepExecutorContext): Promise<boolean>;
6
6
  run(context: EthereumStepExecutorContext): Promise<TaskResult>;
7
7
  }
8
8
  //#endregion
9
- export { EthereumCheckAllowanceTask };
10
9
  //# sourceMappingURL=EthereumCheckAllowanceTask.d.ts.map
@@ -10,9 +10,8 @@ import { CheckBalanceOptions, CheckBalanceTask } from "@lifi/sdk";
10
10
  * Skip-bias is intentional: a wrong skip is caught by the wallet rejecting
11
11
  * the tx; a wrong enforce blocks a tx that would have succeeded.
12
12
  */
13
- declare class EthereumCheckBalanceTask extends CheckBalanceTask {
13
+ export declare class EthereumCheckBalanceTask extends CheckBalanceTask {
14
14
  protected override getCheckBalanceOptions(context: EthereumStepExecutorContext): Promise<CheckBalanceOptions>;
15
15
  }
16
16
  //#endregion
17
- export { EthereumCheckBalanceTask };
18
17
  //# sourceMappingURL=EthereumCheckBalanceTask.d.ts.map
@@ -1,10 +1,9 @@
1
1
  import { EthereumStepExecutorContext } from "../../types.js";
2
2
  import { BaseStepExecutionTask, TaskResult } from "@lifi/sdk";
3
3
  //#region src/core/tasks/EthereumCheckPermitsTask.d.ts
4
- declare class EthereumCheckPermitsTask extends BaseStepExecutionTask {
4
+ export declare class EthereumCheckPermitsTask extends BaseStepExecutionTask {
5
5
  override shouldRun(context: EthereumStepExecutorContext): Promise<boolean>;
6
6
  run(context: EthereumStepExecutorContext): Promise<TaskResult>;
7
7
  }
8
8
  //#endregion
9
- export { EthereumCheckPermitsTask };
10
9
  //# sourceMappingURL=EthereumCheckPermitsTask.d.ts.map
@@ -1,10 +1,9 @@
1
1
  import { EthereumStepExecutorContext } from "../../types.js";
2
2
  import { BaseStepExecutionTask, TaskResult } from "@lifi/sdk";
3
3
  //#region src/core/tasks/EthereumNativePermitTask.d.ts
4
- declare class EthereumNativePermitTask extends BaseStepExecutionTask {
4
+ export declare class EthereumNativePermitTask extends BaseStepExecutionTask {
5
5
  override shouldRun(context: EthereumStepExecutorContext): Promise<boolean>;
6
6
  run(context: EthereumStepExecutorContext): Promise<TaskResult>;
7
7
  }
8
8
  //#endregion
9
- export { EthereumNativePermitTask };
10
9
  //# sourceMappingURL=EthereumNativePermitTask.d.ts.map
@@ -1,9 +1,8 @@
1
1
  import { EthereumStepExecutorContext } from "../../types.js";
2
2
  import { BaseStepExecutionTask, TaskResult } from "@lifi/sdk";
3
3
  //#region src/core/tasks/EthereumPrepareTransactionTask.d.ts
4
- declare class EthereumPrepareTransactionTask extends BaseStepExecutionTask {
4
+ export declare class EthereumPrepareTransactionTask extends BaseStepExecutionTask {
5
5
  run(context: EthereumStepExecutorContext): Promise<TaskResult>;
6
6
  }
7
7
  //#endregion
8
- export { EthereumPrepareTransactionTask };
9
8
  //# sourceMappingURL=EthereumPrepareTransactionTask.d.ts.map
@@ -1,9 +1,8 @@
1
1
  import { EthereumStepExecutorContext } from "../../types.js";
2
2
  import { BaseStepExecutionTask, TaskResult } from "@lifi/sdk";
3
3
  //#region src/core/tasks/EthereumRelayedSignAndExecuteTask.d.ts
4
- declare class EthereumRelayedSignAndExecuteTask extends BaseStepExecutionTask {
4
+ export declare class EthereumRelayedSignAndExecuteTask extends BaseStepExecutionTask {
5
5
  run(context: EthereumStepExecutorContext): Promise<TaskResult>;
6
6
  }
7
7
  //#endregion
8
- export { EthereumRelayedSignAndExecuteTask };
9
8
  //# sourceMappingURL=EthereumRelayedSignAndExecuteTask.d.ts.map
@@ -1,9 +1,8 @@
1
1
  import { EthereumStepExecutorContext } from "../../types.js";
2
2
  import { BaseStepExecutionTask, TaskResult } from "@lifi/sdk";
3
3
  //#region src/core/tasks/EthereumRelayedWaitForTransactionTask.d.ts
4
- declare class EthereumRelayedWaitForTransactionTask extends BaseStepExecutionTask {
4
+ export declare class EthereumRelayedWaitForTransactionTask extends BaseStepExecutionTask {
5
5
  run(context: EthereumStepExecutorContext): Promise<TaskResult>;
6
6
  }
7
7
  //#endregion
8
- export { EthereumRelayedWaitForTransactionTask };
9
8
  //# sourceMappingURL=EthereumRelayedWaitForTransactionTask.d.ts.map
@@ -1,10 +1,9 @@
1
1
  import { EthereumStepExecutorContext } from "../../types.js";
2
2
  import { BaseStepExecutionTask, TaskResult } from "@lifi/sdk";
3
3
  //#region src/core/tasks/EthereumResetAllowanceTask.d.ts
4
- declare class EthereumResetAllowanceTask extends BaseStepExecutionTask {
4
+ export declare class EthereumResetAllowanceTask extends BaseStepExecutionTask {
5
5
  override shouldRun(context: EthereumStepExecutorContext): Promise<boolean>;
6
6
  run(context: EthereumStepExecutorContext): Promise<TaskResult>;
7
7
  }
8
8
  //#endregion
9
- export { EthereumResetAllowanceTask };
10
9
  //# sourceMappingURL=EthereumResetAllowanceTask.d.ts.map
@@ -1,10 +1,9 @@
1
1
  import { EthereumStepExecutorContext } from "../../types.js";
2
2
  import { BaseStepExecutionTask, TaskResult } from "@lifi/sdk";
3
3
  //#region src/core/tasks/EthereumSetAllowanceTask.d.ts
4
- declare class EthereumSetAllowanceTask extends BaseStepExecutionTask {
4
+ export declare class EthereumSetAllowanceTask extends BaseStepExecutionTask {
5
5
  override shouldRun(context: EthereumStepExecutorContext): Promise<boolean>;
6
6
  run(context: EthereumStepExecutorContext): Promise<TaskResult>;
7
7
  }
8
8
  //#endregion
9
- export { EthereumSetAllowanceTask };
10
9
  //# sourceMappingURL=EthereumSetAllowanceTask.d.ts.map
@@ -1,9 +1,8 @@
1
1
  import { EthereumStepExecutorContext } from "../../types.js";
2
2
  import { BaseStepExecutionTask, TaskResult } from "@lifi/sdk";
3
3
  //#region src/core/tasks/EthereumSignAndExecuteTask.d.ts
4
- declare class EthereumSignAndExecuteTask extends BaseStepExecutionTask {
4
+ export declare class EthereumSignAndExecuteTask extends BaseStepExecutionTask {
5
5
  run(context: EthereumStepExecutorContext): Promise<TaskResult>;
6
6
  }
7
7
  //#endregion
8
- export { EthereumSignAndExecuteTask };
9
8
  //# sourceMappingURL=EthereumSignAndExecuteTask.d.ts.map
@@ -1,9 +1,8 @@
1
1
  import { EthereumStepExecutorContext } from "../../types.js";
2
2
  import { BaseStepExecutionTask, TaskResult } from "@lifi/sdk";
3
3
  //#region src/core/tasks/EthereumStandardSignAndExecuteTask.d.ts
4
- declare class EthereumStandardSignAndExecuteTask extends BaseStepExecutionTask {
4
+ export declare class EthereumStandardSignAndExecuteTask extends BaseStepExecutionTask {
5
5
  run(context: EthereumStepExecutorContext): Promise<TaskResult>;
6
6
  }
7
7
  //#endregion
8
- export { EthereumStandardSignAndExecuteTask };
9
8
  //# sourceMappingURL=EthereumStandardSignAndExecuteTask.d.ts.map
@@ -1,9 +1,8 @@
1
1
  import { EthereumStepExecutorContext } from "../../types.js";
2
2
  import { BaseStepExecutionTask, TaskResult } from "@lifi/sdk";
3
3
  //#region src/core/tasks/EthereumStandardWaitForTransactionTask.d.ts
4
- declare class EthereumStandardWaitForTransactionTask extends BaseStepExecutionTask {
4
+ export declare class EthereumStandardWaitForTransactionTask extends BaseStepExecutionTask {
5
5
  run(context: EthereumStepExecutorContext): Promise<TaskResult>;
6
6
  }
7
7
  //#endregion
8
- export { EthereumStandardWaitForTransactionTask };
9
8
  //# sourceMappingURL=EthereumStandardWaitForTransactionTask.d.ts.map
@@ -1,9 +1,8 @@
1
1
  import { EthereumStepExecutorContext } from "../../types.js";
2
2
  import { BaseStepExecutionTask, TaskResult } from "@lifi/sdk";
3
3
  //#region src/core/tasks/EthereumWaitForTransactionStatusTask.d.ts
4
- declare class EthereumWaitForTransactionStatusTask extends BaseStepExecutionTask {
4
+ export declare class EthereumWaitForTransactionStatusTask extends BaseStepExecutionTask {
5
5
  run(context: EthereumStepExecutorContext): Promise<TaskResult>;
6
6
  }
7
7
  //#endregion
8
- export { EthereumWaitForTransactionStatusTask };
9
8
  //# sourceMappingURL=EthereumWaitForTransactionStatusTask.d.ts.map
@@ -1,9 +1,8 @@
1
1
  import { EthereumStepExecutorContext } from "../../types.js";
2
2
  import { BaseStepExecutionTask, TaskResult } from "@lifi/sdk";
3
3
  //#region src/core/tasks/EthereumWaitForTransactionTask.d.ts
4
- declare class EthereumWaitForTransactionTask extends BaseStepExecutionTask {
4
+ export declare class EthereumWaitForTransactionTask extends BaseStepExecutionTask {
5
5
  run(context: EthereumStepExecutorContext): Promise<TaskResult>;
6
6
  }
7
7
  //#endregion
8
- export { EthereumWaitForTransactionTask };
9
8
  //# sourceMappingURL=EthereumWaitForTransactionTask.d.ts.map