@lifi/sdk-provider-ethereum 4.0.4 → 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 (284) hide show
  1. package/CHANGELOG.md +12 -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/EthereumCheckPermitsTask.js +2 -0
  32. package/dist/cjs/core/tasks/EthereumCheckPermitsTask.js.map +1 -1
  33. package/dist/cjs/core/tasks/EthereumNativePermitTask.d.ts +0 -1
  34. package/dist/cjs/core/tasks/EthereumNativePermitTask.js +5 -0
  35. package/dist/cjs/core/tasks/EthereumNativePermitTask.js.map +1 -1
  36. package/dist/cjs/core/tasks/EthereumPrepareTransactionTask.d.ts +0 -1
  37. package/dist/cjs/core/tasks/EthereumRelayedSignAndExecuteTask.d.ts +0 -1
  38. package/dist/cjs/core/tasks/EthereumRelayedSignAndExecuteTask.js +2 -0
  39. package/dist/cjs/core/tasks/EthereumRelayedSignAndExecuteTask.js.map +1 -1
  40. package/dist/cjs/core/tasks/EthereumRelayedWaitForTransactionTask.d.ts +0 -1
  41. package/dist/cjs/core/tasks/EthereumResetAllowanceTask.d.ts +0 -1
  42. package/dist/cjs/core/tasks/EthereumSetAllowanceTask.d.ts +0 -1
  43. package/dist/cjs/core/tasks/EthereumSignAndExecuteTask.d.ts +0 -1
  44. package/dist/cjs/core/tasks/EthereumStandardSignAndExecuteTask.d.ts +0 -1
  45. package/dist/cjs/core/tasks/EthereumStandardSignAndExecuteTask.js +2 -1
  46. package/dist/cjs/core/tasks/EthereumStandardSignAndExecuteTask.js.map +1 -1
  47. package/dist/cjs/core/tasks/EthereumStandardWaitForTransactionTask.d.ts +0 -1
  48. package/dist/cjs/core/tasks/EthereumWaitForTransactionStatusTask.d.ts +0 -1
  49. package/dist/cjs/core/tasks/EthereumWaitForTransactionTask.d.ts +0 -1
  50. package/dist/cjs/core/tasks/helpers/estimateTransactionRequest.d.ts +0 -1
  51. package/dist/cjs/core/tasks/helpers/getEthereumExecutionStrategy.d.ts +4 -5
  52. package/dist/cjs/core/tasks/helpers/getTxLink.d.ts +0 -1
  53. package/dist/cjs/core/tasks/helpers/getUpdatedStep.d.ts +0 -1
  54. package/dist/cjs/core/tasks/helpers/isPermit2Supported.d.ts +0 -1
  55. package/dist/cjs/core/tasks/helpers/shouldCheckForAllowance.d.ts +0 -1
  56. package/dist/cjs/core/tasks/helpers/signHyperliquidTypedData.d.ts +0 -1
  57. package/dist/cjs/core/tasks/helpers/signHyperliquidTypedData.js +3 -0
  58. package/dist/cjs/core/tasks/helpers/signHyperliquidTypedData.js.map +1 -1
  59. package/dist/cjs/core/tasks/helpers/switchChain.d.ts +15 -16
  60. package/dist/cjs/core/tasks/helpers/updateActionWithReceipt.d.ts +3 -4
  61. package/dist/cjs/errors/parseEthereumErrors.d.ts +0 -1
  62. package/dist/cjs/hyperliquid/agentWallet.d.ts +0 -1
  63. package/dist/cjs/hyperliquid/isHyperliquidAgentStep.d.ts +0 -1
  64. package/dist/cjs/permits/allowanceTransfer.d.ts +0 -1
  65. package/dist/cjs/permits/canAccountUseNativePermits.d.ts +5 -6
  66. package/dist/cjs/permits/constants.d.ts +19 -20
  67. package/dist/cjs/permits/domain.d.ts +0 -1
  68. package/dist/cjs/permits/encodeNativePermitData.d.ts +0 -1
  69. package/dist/cjs/permits/encodePermit2Data.d.ts +0 -1
  70. package/dist/cjs/permits/getNativePermit.d.ts +1 -8
  71. package/dist/cjs/permits/getPermitTransferFromValues.d.ts +0 -1
  72. package/dist/cjs/permits/invariant.d.ts +14 -14
  73. package/dist/cjs/permits/isDelegationDesignatorCode.d.ts +20 -20
  74. package/dist/cjs/permits/isNativePermitValid.d.ts +2 -3
  75. package/dist/cjs/permits/isNativePermitValid.js +2 -0
  76. package/dist/cjs/permits/isNativePermitValid.js.map +1 -1
  77. package/dist/cjs/permits/signPermit2Message.d.ts +0 -1
  78. package/dist/cjs/permits/signPermit2Message.js +2 -0
  79. package/dist/cjs/permits/signPermit2Message.js.map +1 -1
  80. package/dist/cjs/permits/signatureTransfer.d.ts +0 -1
  81. package/dist/cjs/permits/types.d.ts +0 -1
  82. package/dist/cjs/types.d.ts +0 -1
  83. package/dist/cjs/utils/abi.d.ts +0 -1
  84. package/dist/cjs/utils/convertExtendedChain.d.ts +0 -1
  85. package/dist/cjs/utils/getActionWithFallback.d.ts +13 -14
  86. package/dist/cjs/utils/getDomainChainId.d.ts +4 -5
  87. package/dist/cjs/utils/getSafeApiKey.d.ts +0 -1
  88. package/dist/cjs/utils/isContractCallStep.d.ts +0 -1
  89. package/dist/cjs/utils/isExtendedChain.d.ts +0 -1
  90. package/dist/cjs/utils/isGaslessStep.d.ts +0 -1
  91. package/dist/cjs/utils/isRelayerStep.d.ts +0 -1
  92. package/dist/cjs/utils/isValidSignature.d.ts +14 -0
  93. package/dist/cjs/utils/isValidSignature.js +22 -0
  94. package/dist/cjs/utils/isValidSignature.js.map +1 -0
  95. package/dist/cjs/version.d.ts +1 -1
  96. package/dist/cjs/version.js +1 -1
  97. package/dist/cjs/version.js.map +1 -1
  98. package/dist/esm/EthereumProvider.d.ts +0 -1
  99. package/dist/esm/EthereumProvider.d.ts.map +1 -1
  100. package/dist/esm/actions/checkPermitSupport.d.ts +16 -20
  101. package/dist/esm/actions/checkPermitSupport.d.ts.map +1 -1
  102. package/dist/esm/actions/constants.d.ts +0 -1
  103. package/dist/esm/actions/constants.d.ts.map +1 -1
  104. package/dist/esm/actions/getAccountCode.d.ts +13 -18
  105. package/dist/esm/actions/getAccountCode.d.ts.map +1 -1
  106. package/dist/esm/actions/getAllowance.d.ts +13 -14
  107. package/dist/esm/actions/getAllowance.d.ts.map +1 -1
  108. package/dist/esm/actions/getEthereumBalance.d.ts +0 -1
  109. package/dist/esm/actions/getEthereumBalance.d.ts.map +1 -1
  110. package/dist/esm/actions/getMaxPriorityFeePerGas.d.ts +0 -1
  111. package/dist/esm/actions/getMaxPriorityFeePerGas.d.ts.map +1 -1
  112. package/dist/esm/actions/getMulticallAddress.d.ts +0 -1
  113. package/dist/esm/actions/getMulticallAddress.d.ts.map +1 -1
  114. package/dist/esm/actions/isBatchingSupported.d.ts +1 -6
  115. package/dist/esm/actions/isBatchingSupported.d.ts.map +1 -1
  116. package/dist/esm/actions/isSafeSignature.d.ts +6 -11
  117. package/dist/esm/actions/isSafeSignature.d.ts.map +1 -1
  118. package/dist/esm/actions/isSafeWallet.d.ts +4 -10
  119. package/dist/esm/actions/isSafeWallet.d.ts.map +1 -1
  120. package/dist/esm/actions/isSmartContractWallet.d.ts +4 -4
  121. package/dist/esm/actions/isSmartContractWallet.d.ts.map +1 -1
  122. package/dist/esm/actions/resolveENSAddress.d.ts +0 -1
  123. package/dist/esm/actions/resolveENSAddress.d.ts.map +1 -1
  124. package/dist/esm/actions/resolveEthereumAddress.d.ts +0 -1
  125. package/dist/esm/actions/resolveEthereumAddress.d.ts.map +1 -1
  126. package/dist/esm/actions/resolveTransactionHash.d.ts +0 -1
  127. package/dist/esm/actions/resolveTransactionHash.d.ts.map +1 -1
  128. package/dist/esm/actions/resolveUNSAddress.d.ts +0 -1
  129. package/dist/esm/actions/resolveUNSAddress.d.ts.map +1 -1
  130. package/dist/esm/actions/setAllowance.d.ts +19 -29
  131. package/dist/esm/actions/setAllowance.d.ts.map +1 -1
  132. package/dist/esm/actions/waitForBatchTransactionReceipt.d.ts +0 -1
  133. package/dist/esm/actions/waitForBatchTransactionReceipt.d.ts.map +1 -1
  134. package/dist/esm/actions/waitForRelayedTransactionReceipt.d.ts +0 -1
  135. package/dist/esm/actions/waitForRelayedTransactionReceipt.d.ts.map +1 -1
  136. package/dist/esm/actions/waitForSafeTransactionExecution.d.ts +9 -16
  137. package/dist/esm/actions/waitForSafeTransactionExecution.d.ts.map +1 -1
  138. package/dist/esm/actions/waitForTransactionReceipt.d.ts +1 -7
  139. package/dist/esm/actions/waitForTransactionReceipt.d.ts.map +1 -1
  140. package/dist/esm/client/publicClient.d.ts +5 -6
  141. package/dist/esm/client/publicClient.d.ts.map +1 -1
  142. package/dist/esm/client/safeClient.d.ts +0 -1
  143. package/dist/esm/client/safeClient.d.ts.map +1 -1
  144. package/dist/esm/client/types.d.ts.map +1 -1
  145. package/dist/esm/core/EthereumStepExecutor.d.ts +0 -1
  146. package/dist/esm/core/EthereumStepExecutor.d.ts.map +1 -1
  147. package/dist/esm/core/tasks/EthereumBatchedSignAndExecuteTask.d.ts +0 -1
  148. package/dist/esm/core/tasks/EthereumBatchedSignAndExecuteTask.d.ts.map +1 -1
  149. package/dist/esm/core/tasks/EthereumBatchedWaitForTransactionTask.d.ts +0 -1
  150. package/dist/esm/core/tasks/EthereumBatchedWaitForTransactionTask.d.ts.map +1 -1
  151. package/dist/esm/core/tasks/EthereumCheckAllowanceTask.d.ts +0 -1
  152. package/dist/esm/core/tasks/EthereumCheckAllowanceTask.d.ts.map +1 -1
  153. package/dist/esm/core/tasks/EthereumCheckBalanceTask.d.ts +8 -9
  154. package/dist/esm/core/tasks/EthereumCheckBalanceTask.d.ts.map +1 -1
  155. package/dist/esm/core/tasks/EthereumCheckPermitsTask.d.ts +0 -1
  156. package/dist/esm/core/tasks/EthereumCheckPermitsTask.d.ts.map +1 -1
  157. package/dist/esm/core/tasks/EthereumCheckPermitsTask.js +2 -0
  158. package/dist/esm/core/tasks/EthereumCheckPermitsTask.js.map +1 -1
  159. package/dist/esm/core/tasks/EthereumNativePermitTask.d.ts +0 -1
  160. package/dist/esm/core/tasks/EthereumNativePermitTask.d.ts.map +1 -1
  161. package/dist/esm/core/tasks/EthereumNativePermitTask.js +5 -0
  162. package/dist/esm/core/tasks/EthereumNativePermitTask.js.map +1 -1
  163. package/dist/esm/core/tasks/EthereumPrepareTransactionTask.d.ts +0 -1
  164. package/dist/esm/core/tasks/EthereumPrepareTransactionTask.d.ts.map +1 -1
  165. package/dist/esm/core/tasks/EthereumRelayedSignAndExecuteTask.d.ts +0 -1
  166. package/dist/esm/core/tasks/EthereumRelayedSignAndExecuteTask.d.ts.map +1 -1
  167. package/dist/esm/core/tasks/EthereumRelayedSignAndExecuteTask.js +2 -0
  168. package/dist/esm/core/tasks/EthereumRelayedSignAndExecuteTask.js.map +1 -1
  169. package/dist/esm/core/tasks/EthereumRelayedWaitForTransactionTask.d.ts +0 -1
  170. package/dist/esm/core/tasks/EthereumRelayedWaitForTransactionTask.d.ts.map +1 -1
  171. package/dist/esm/core/tasks/EthereumResetAllowanceTask.d.ts +0 -1
  172. package/dist/esm/core/tasks/EthereumResetAllowanceTask.d.ts.map +1 -1
  173. package/dist/esm/core/tasks/EthereumSetAllowanceTask.d.ts +0 -1
  174. package/dist/esm/core/tasks/EthereumSetAllowanceTask.d.ts.map +1 -1
  175. package/dist/esm/core/tasks/EthereumSignAndExecuteTask.d.ts +0 -1
  176. package/dist/esm/core/tasks/EthereumSignAndExecuteTask.d.ts.map +1 -1
  177. package/dist/esm/core/tasks/EthereumStandardSignAndExecuteTask.d.ts +0 -1
  178. package/dist/esm/core/tasks/EthereumStandardSignAndExecuteTask.d.ts.map +1 -1
  179. package/dist/esm/core/tasks/EthereumStandardSignAndExecuteTask.js +2 -1
  180. package/dist/esm/core/tasks/EthereumStandardSignAndExecuteTask.js.map +1 -1
  181. package/dist/esm/core/tasks/EthereumStandardWaitForTransactionTask.d.ts +0 -1
  182. package/dist/esm/core/tasks/EthereumStandardWaitForTransactionTask.d.ts.map +1 -1
  183. package/dist/esm/core/tasks/EthereumWaitForTransactionStatusTask.d.ts +0 -1
  184. package/dist/esm/core/tasks/EthereumWaitForTransactionStatusTask.d.ts.map +1 -1
  185. package/dist/esm/core/tasks/EthereumWaitForTransactionTask.d.ts +0 -1
  186. package/dist/esm/core/tasks/EthereumWaitForTransactionTask.d.ts.map +1 -1
  187. package/dist/esm/core/tasks/helpers/estimateTransactionRequest.d.ts +0 -1
  188. package/dist/esm/core/tasks/helpers/estimateTransactionRequest.d.ts.map +1 -1
  189. package/dist/esm/core/tasks/helpers/getEthereumExecutionStrategy.d.ts +4 -5
  190. package/dist/esm/core/tasks/helpers/getEthereumExecutionStrategy.d.ts.map +1 -1
  191. package/dist/esm/core/tasks/helpers/getTxLink.d.ts +0 -1
  192. package/dist/esm/core/tasks/helpers/getTxLink.d.ts.map +1 -1
  193. package/dist/esm/core/tasks/helpers/getUpdatedStep.d.ts +0 -1
  194. package/dist/esm/core/tasks/helpers/getUpdatedStep.d.ts.map +1 -1
  195. package/dist/esm/core/tasks/helpers/isPermit2Supported.d.ts +0 -1
  196. package/dist/esm/core/tasks/helpers/isPermit2Supported.d.ts.map +1 -1
  197. package/dist/esm/core/tasks/helpers/shouldCheckForAllowance.d.ts +0 -1
  198. package/dist/esm/core/tasks/helpers/shouldCheckForAllowance.d.ts.map +1 -1
  199. package/dist/esm/core/tasks/helpers/signHyperliquidTypedData.d.ts +0 -1
  200. package/dist/esm/core/tasks/helpers/signHyperliquidTypedData.d.ts.map +1 -1
  201. package/dist/esm/core/tasks/helpers/signHyperliquidTypedData.js +3 -0
  202. package/dist/esm/core/tasks/helpers/signHyperliquidTypedData.js.map +1 -1
  203. package/dist/esm/core/tasks/helpers/switchChain.d.ts +15 -16
  204. package/dist/esm/core/tasks/helpers/switchChain.d.ts.map +1 -1
  205. package/dist/esm/core/tasks/helpers/updateActionWithReceipt.d.ts +3 -4
  206. package/dist/esm/core/tasks/helpers/updateActionWithReceipt.d.ts.map +1 -1
  207. package/dist/esm/errors/parseEthereumErrors.d.ts +0 -1
  208. package/dist/esm/errors/parseEthereumErrors.d.ts.map +1 -1
  209. package/dist/esm/hyperliquid/agentWallet.d.ts +0 -1
  210. package/dist/esm/hyperliquid/agentWallet.d.ts.map +1 -1
  211. package/dist/esm/hyperliquid/isHyperliquidAgentStep.d.ts +0 -1
  212. package/dist/esm/hyperliquid/isHyperliquidAgentStep.d.ts.map +1 -1
  213. package/dist/esm/permits/allowanceTransfer.d.ts +0 -1
  214. package/dist/esm/permits/allowanceTransfer.d.ts.map +1 -1
  215. package/dist/esm/permits/canAccountUseNativePermits.d.ts +5 -6
  216. package/dist/esm/permits/canAccountUseNativePermits.d.ts.map +1 -1
  217. package/dist/esm/permits/constants.d.ts +19 -20
  218. package/dist/esm/permits/constants.d.ts.map +1 -1
  219. package/dist/esm/permits/domain.d.ts +0 -1
  220. package/dist/esm/permits/domain.d.ts.map +1 -1
  221. package/dist/esm/permits/encodeNativePermitData.d.ts +0 -1
  222. package/dist/esm/permits/encodeNativePermitData.d.ts.map +1 -1
  223. package/dist/esm/permits/encodePermit2Data.d.ts +0 -1
  224. package/dist/esm/permits/encodePermit2Data.d.ts.map +1 -1
  225. package/dist/esm/permits/getNativePermit.d.ts +1 -8
  226. package/dist/esm/permits/getNativePermit.d.ts.map +1 -1
  227. package/dist/esm/permits/getPermitTransferFromValues.d.ts +0 -1
  228. package/dist/esm/permits/getPermitTransferFromValues.d.ts.map +1 -1
  229. package/dist/esm/permits/invariant.d.ts +14 -14
  230. package/dist/esm/permits/invariant.d.ts.map +1 -1
  231. package/dist/esm/permits/isDelegationDesignatorCode.d.ts +20 -20
  232. package/dist/esm/permits/isDelegationDesignatorCode.d.ts.map +1 -1
  233. package/dist/esm/permits/isNativePermitValid.d.ts +2 -3
  234. package/dist/esm/permits/isNativePermitValid.d.ts.map +1 -1
  235. package/dist/esm/permits/isNativePermitValid.js +2 -0
  236. package/dist/esm/permits/isNativePermitValid.js.map +1 -1
  237. package/dist/esm/permits/signPermit2Message.d.ts +0 -1
  238. package/dist/esm/permits/signPermit2Message.d.ts.map +1 -1
  239. package/dist/esm/permits/signPermit2Message.js +2 -0
  240. package/dist/esm/permits/signPermit2Message.js.map +1 -1
  241. package/dist/esm/permits/signatureTransfer.d.ts +0 -1
  242. package/dist/esm/permits/signatureTransfer.d.ts.map +1 -1
  243. package/dist/esm/permits/types.d.ts +0 -1
  244. package/dist/esm/permits/types.d.ts.map +1 -1
  245. package/dist/esm/types.d.ts +0 -1
  246. package/dist/esm/types.d.ts.map +1 -1
  247. package/dist/esm/utils/abi.d.ts +0 -1
  248. package/dist/esm/utils/abi.d.ts.map +1 -1
  249. package/dist/esm/utils/convertExtendedChain.d.ts +0 -1
  250. package/dist/esm/utils/convertExtendedChain.d.ts.map +1 -1
  251. package/dist/esm/utils/getActionWithFallback.d.ts +13 -14
  252. package/dist/esm/utils/getActionWithFallback.d.ts.map +1 -1
  253. package/dist/esm/utils/getDomainChainId.d.ts +4 -5
  254. package/dist/esm/utils/getDomainChainId.d.ts.map +1 -1
  255. package/dist/esm/utils/getSafeApiKey.d.ts +0 -1
  256. package/dist/esm/utils/getSafeApiKey.d.ts.map +1 -1
  257. package/dist/esm/utils/isContractCallStep.d.ts +0 -1
  258. package/dist/esm/utils/isContractCallStep.d.ts.map +1 -1
  259. package/dist/esm/utils/isExtendedChain.d.ts +0 -1
  260. package/dist/esm/utils/isExtendedChain.d.ts.map +1 -1
  261. package/dist/esm/utils/isGaslessStep.d.ts +0 -1
  262. package/dist/esm/utils/isGaslessStep.d.ts.map +1 -1
  263. package/dist/esm/utils/isRelayerStep.d.ts +0 -1
  264. package/dist/esm/utils/isRelayerStep.d.ts.map +1 -1
  265. package/dist/esm/utils/isValidSignature.d.ts +14 -0
  266. package/dist/esm/utils/isValidSignature.d.ts.map +1 -0
  267. package/dist/esm/utils/isValidSignature.js +20 -0
  268. package/dist/esm/utils/isValidSignature.js.map +1 -0
  269. package/dist/esm/utils/isZeroAddress.d.ts.map +1 -1
  270. package/dist/esm/utils/median.d.ts.map +1 -1
  271. package/dist/esm/version.d.ts +1 -1
  272. package/dist/esm/version.d.ts.map +1 -1
  273. package/dist/esm/version.js +1 -1
  274. package/dist/esm/version.js.map +1 -1
  275. package/package.json +2 -2
  276. package/src/core/tasks/EthereumCheckPermitsTask.ts +2 -0
  277. package/src/core/tasks/EthereumNativePermitTask.ts +9 -0
  278. package/src/core/tasks/EthereumRelayedSignAndExecuteTask.ts +3 -0
  279. package/src/core/tasks/EthereumStandardSignAndExecuteTask.ts +3 -1
  280. package/src/core/tasks/helpers/signHyperliquidTypedData.ts +3 -0
  281. package/src/permits/isNativePermitValid.ts +6 -0
  282. package/src/permits/signPermit2Message.ts +3 -0
  283. package/src/utils/isValidSignature.ts +26 -0
  284. package/src/version.ts +1 -1
@@ -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,9 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_utils_isValidSignature = require("../utils/isValidSignature.js");
2
3
  //#region src/permits/isNativePermitValid.ts
3
4
  /**
4
5
  * Checks if an existing native permit is valid for the given requirements
5
6
  */
6
7
  const isNativePermitValid = (permit, typedData) => {
8
+ if (!require_utils_isValidSignature.isValidSignature(permit.signature)) return false;
7
9
  if (permit.primaryType !== "Permit") return false;
8
10
  if (Number(permit.domain.chainId) !== Number(typedData.domain.chainId) || permit.domain.salt && permit.domain.salt !== typedData.domain.salt) return false;
9
11
  const message = permit.message;
@@ -1 +1 @@
1
- {"version":3,"file":"isNativePermitValid.js","names":[],"sources":["../../../src/permits/isNativePermitValid.ts"],"sourcesContent":["import type { SignedTypedData, TypedData } from '@lifi/sdk'\n\n/**\n * Checks if an existing native permit is valid for the given requirements\n */\nexport const isNativePermitValid = (\n permit: SignedTypedData,\n typedData: TypedData\n): boolean => {\n // Only check native permits (EIP-2612)\n if (permit.primaryType !== 'Permit') {\n return false\n }\n\n // Check if the permit is for the correct chain\n if (\n Number(permit.domain.chainId) !== Number(typedData.domain.chainId) ||\n (permit.domain.salt && permit.domain.salt !== typedData.domain.salt)\n ) {\n return false\n }\n\n // Check if the permit message has the required fields\n const message = permit.message as any\n if (!message) {\n return false\n }\n\n // Check spender\n if (\n message.spender?.toLowerCase() !== typedData.message.spender?.toLowerCase()\n ) {\n return false\n }\n\n // Check owner\n if (message.owner?.toLowerCase() !== typedData.message.owner?.toLowerCase()) {\n return false\n }\n\n // Check amount (value field in native permits)\n const permitAmount = BigInt(message.value || 0)\n if (permitAmount < BigInt(typedData.message.value || 0)) {\n return false\n }\n\n // Check deadline (must have at least 5 minutes remaining)\n const deadlineTimestamp = parseInt(message.deadline || 0, 10)\n // Add 5 minutes bufferto the current timestamp\n const allowedTimestamp = Math.floor(Date.now() / 1000) + 5 * 60\n\n if (deadlineTimestamp <= allowedTimestamp) {\n return false\n }\n\n return true\n}\n"],"mappings":";;;;;AAKA,MAAa,uBACX,QACA,cACY;CAEZ,IAAI,OAAO,gBAAgB,UACzB,OAAO;CAIT,IACE,OAAO,OAAO,OAAO,OAAO,MAAM,OAAO,UAAU,OAAO,OAAO,KAChE,OAAO,OAAO,QAAQ,OAAO,OAAO,SAAS,UAAU,OAAO,MAE/D,OAAO;CAIT,MAAM,UAAU,OAAO;CACvB,IAAI,CAAC,SACH,OAAO;CAIT,IACE,QAAQ,SAAS,YAAY,MAAM,UAAU,QAAQ,SAAS,YAAY,GAE1E,OAAO;CAIT,IAAI,QAAQ,OAAO,YAAY,MAAM,UAAU,QAAQ,OAAO,YAAY,GACxE,OAAO;CAKT,IADqB,OAAO,QAAQ,SAAS,CAC9B,IAAI,OAAO,UAAU,QAAQ,SAAS,CAAC,GACpD,OAAO;CAQT,IAJ0B,SAAS,QAAQ,YAAY,GAAG,EAItC,KAFK,KAAK,MAAM,KAAK,IAAI,IAAI,GAAI,IAAI,KAGvD,OAAO;CAGT,OAAO;AACT"}
1
+ {"version":3,"file":"isNativePermitValid.js","names":["isValidSignature"],"sources":["../../../src/permits/isNativePermitValid.ts"],"sourcesContent":["import type { SignedTypedData, TypedData } from '@lifi/sdk'\nimport { isValidSignature } from '../utils/isValidSignature.js'\n\n/**\n * Checks if an existing native permit is valid for the given requirements\n */\nexport const isNativePermitValid = (\n permit: SignedTypedData,\n typedData: TypedData\n): boolean => {\n // Check if the permit has a usable signature\n if (!isValidSignature(permit.signature)) {\n return false\n }\n\n // Only check native permits (EIP-2612)\n if (permit.primaryType !== 'Permit') {\n return false\n }\n\n // Check if the permit is for the correct chain\n if (\n Number(permit.domain.chainId) !== Number(typedData.domain.chainId) ||\n (permit.domain.salt && permit.domain.salt !== typedData.domain.salt)\n ) {\n return false\n }\n\n // Check if the permit message has the required fields\n const message = permit.message as any\n if (!message) {\n return false\n }\n\n // Check spender\n if (\n message.spender?.toLowerCase() !== typedData.message.spender?.toLowerCase()\n ) {\n return false\n }\n\n // Check owner\n if (message.owner?.toLowerCase() !== typedData.message.owner?.toLowerCase()) {\n return false\n }\n\n // Check amount (value field in native permits)\n const permitAmount = BigInt(message.value || 0)\n if (permitAmount < BigInt(typedData.message.value || 0)) {\n return false\n }\n\n // Check deadline (must have at least 5 minutes remaining)\n const deadlineTimestamp = parseInt(message.deadline || 0, 10)\n // Add 5 minutes bufferto the current timestamp\n const allowedTimestamp = Math.floor(Date.now() / 1000) + 5 * 60\n\n if (deadlineTimestamp <= allowedTimestamp) {\n return false\n }\n\n return true\n}\n"],"mappings":";;;;;;AAMA,MAAa,uBACX,QACA,cACY;CAEZ,IAAI,CAACA,+BAAAA,iBAAiB,OAAO,SAAS,GACpC,OAAO;CAIT,IAAI,OAAO,gBAAgB,UACzB,OAAO;CAIT,IACE,OAAO,OAAO,OAAO,OAAO,MAAM,OAAO,UAAU,OAAO,OAAO,KAChE,OAAO,OAAO,QAAQ,OAAO,OAAO,SAAS,UAAU,OAAO,MAE/D,OAAO;CAIT,MAAM,UAAU,OAAO;CACvB,IAAI,CAAC,SACH,OAAO;CAIT,IACE,QAAQ,SAAS,YAAY,MAAM,UAAU,QAAQ,SAAS,YAAY,GAE1E,OAAO;CAIT,IAAI,QAAQ,OAAO,YAAY,MAAM,UAAU,QAAQ,OAAO,YAAY,GACxE,OAAO;CAKT,IADqB,OAAO,QAAQ,SAAS,CAC9B,IAAI,OAAO,UAAU,QAAQ,SAAS,CAAC,GACpD,OAAO;CAQT,IAJ0B,SAAS,QAAQ,YAAY,GAAG,EAItC,KAFK,KAAK,MAAM,KAAK,IAAI,IAAI,GAAI,IAAI,KAGvD,OAAO;CAGT,OAAO;AACT"}
@@ -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,4 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_utils_isValidSignature = require("../utils/isValidSignature.js");
2
3
  const require_permits_getPermitTransferFromValues = require("./getPermitTransferFromValues.js");
3
4
  const require_permits_signatureTransfer = require("./signatureTransfer.js");
4
5
  let viem = require("viem");
@@ -31,6 +32,7 @@ async function signPermit2Message(client, params) {
31
32
  types: permitData.types,
32
33
  message: permitData.message
33
34
  });
35
+ require_utils_isValidSignature.assertValidSignature(signature);
34
36
  return {
35
37
  ...permitData,
36
38
  primaryType,
@@ -1 +1 @@
1
- {"version":3,"file":"signPermit2Message.js","names":["getPermitTransferFromValues","getPermitData","signTypedData"],"sources":["../../../src/permits/signPermit2Message.ts"],"sourcesContent":["import type { ExtendedChain, SDKClient, SignedTypedData } from '@lifi/sdk'\nimport type { Address, Client, Hex } from 'viem'\nimport { keccak256 } from 'viem'\nimport { signTypedData } from 'viem/actions'\nimport { getAction } from 'viem/utils'\nimport { getPermitTransferFromValues } from './getPermitTransferFromValues.js'\nimport { getPermitData } from './signatureTransfer.js'\n\ninterface SignPermit2MessageParams {\n client: Client\n chain: ExtendedChain\n tokenAddress: Address\n amount: bigint\n data: Hex\n witness?: boolean\n}\n\nexport async function signPermit2Message(\n client: SDKClient,\n params: SignPermit2MessageParams\n): Promise<SignedTypedData> {\n const {\n client: viemClient,\n chain,\n tokenAddress,\n amount,\n data,\n witness,\n } = params\n\n const permitTransferFrom = await getPermitTransferFromValues(\n client,\n viemClient,\n chain,\n tokenAddress,\n amount\n )\n\n // Create witness data for the LI.FI call\n const _witness = witness\n ? {\n witness: {\n diamondAddress: chain.diamondAddress as Address,\n diamondCalldataHash: keccak256(data),\n },\n witnessTypeName: 'LiFiCall',\n witnessType: {\n LiFiCall: [\n { name: 'diamondAddress', type: 'address' },\n { name: 'diamondCalldataHash', type: 'bytes32' },\n ],\n },\n }\n : undefined\n\n const permitData = getPermitData(\n permitTransferFrom,\n chain.permit2 as Address,\n chain.id,\n _witness\n )\n\n const primaryType = witness\n ? 'PermitWitnessTransferFrom'\n : 'PermitTransferFrom'\n\n const signature = await getAction(\n viemClient,\n signTypedData,\n 'signTypedData'\n )({\n account: viemClient.account!,\n primaryType,\n domain: permitData.domain,\n types: permitData.types,\n message: permitData.message,\n })\n\n return {\n ...permitData,\n primaryType,\n signature,\n }\n}\n"],"mappings":";;;;;;;AAiBA,eAAsB,mBACpB,QACA,QAC0B;CAC1B,MAAM,EACJ,QAAQ,YACR,OACA,cACA,QACA,MACA,YACE;CAEJ,MAAM,qBAAqB,MAAMA,4CAAAA,4BAC/B,QACA,YACA,OACA,cACA,MACF;CAGA,MAAM,WAAW,UACb;EACE,SAAS;GACP,gBAAgB,MAAM;GACtB,sBAAA,GAAA,KAAA,UAAA,CAA+B,IAAI;EACrC;EACA,iBAAiB;EACjB,aAAa,EACX,UAAU,CACR;GAAE,MAAM;GAAkB,MAAM;EAAU,GAC1C;GAAE,MAAM;GAAuB,MAAM;EAAU,CACjD,EACF;CACF,IACA,KAAA;CAEJ,MAAM,aAAaC,kCAAAA,cACjB,oBACA,MAAM,SACN,MAAM,IACN,QACF;CAEA,MAAM,cAAc,UAChB,8BACA;CAEJ,MAAM,YAAY,OAAA,GAAA,WAAA,UAAA,CAChB,YACAC,aAAAA,eACA,eACF,CAAC,CAAC;EACA,SAAS,WAAW;EACpB;EACA,QAAQ,WAAW;EACnB,OAAO,WAAW;EAClB,SAAS,WAAW;CACtB,CAAC;CAED,OAAO;EACL,GAAG;EACH;EACA;CACF;AACF"}
1
+ {"version":3,"file":"signPermit2Message.js","names":["getPermitTransferFromValues","getPermitData","signTypedData"],"sources":["../../../src/permits/signPermit2Message.ts"],"sourcesContent":["import type { ExtendedChain, SDKClient, SignedTypedData } from '@lifi/sdk'\nimport type { Address, Client, Hex } from 'viem'\nimport { keccak256 } from 'viem'\nimport { signTypedData } from 'viem/actions'\nimport { getAction } from 'viem/utils'\nimport { assertValidSignature } from '../utils/isValidSignature.js'\nimport { getPermitTransferFromValues } from './getPermitTransferFromValues.js'\nimport { getPermitData } from './signatureTransfer.js'\n\ninterface SignPermit2MessageParams {\n client: Client\n chain: ExtendedChain\n tokenAddress: Address\n amount: bigint\n data: Hex\n witness?: boolean\n}\n\nexport async function signPermit2Message(\n client: SDKClient,\n params: SignPermit2MessageParams\n): Promise<SignedTypedData> {\n const {\n client: viemClient,\n chain,\n tokenAddress,\n amount,\n data,\n witness,\n } = params\n\n const permitTransferFrom = await getPermitTransferFromValues(\n client,\n viemClient,\n chain,\n tokenAddress,\n amount\n )\n\n // Create witness data for the LI.FI call\n const _witness = witness\n ? {\n witness: {\n diamondAddress: chain.diamondAddress as Address,\n diamondCalldataHash: keccak256(data),\n },\n witnessTypeName: 'LiFiCall',\n witnessType: {\n LiFiCall: [\n { name: 'diamondAddress', type: 'address' },\n { name: 'diamondCalldataHash', type: 'bytes32' },\n ],\n },\n }\n : undefined\n\n const permitData = getPermitData(\n permitTransferFrom,\n chain.permit2 as Address,\n chain.id,\n _witness\n )\n\n const primaryType = witness\n ? 'PermitWitnessTransferFrom'\n : 'PermitTransferFrom'\n\n const signature = await getAction(\n viemClient,\n signTypedData,\n 'signTypedData'\n )({\n account: viemClient.account!,\n primaryType,\n domain: permitData.domain,\n types: permitData.types,\n message: permitData.message,\n })\n\n assertValidSignature(signature)\n\n return {\n ...permitData,\n primaryType,\n signature,\n }\n}\n"],"mappings":";;;;;;;;AAkBA,eAAsB,mBACpB,QACA,QAC0B;CAC1B,MAAM,EACJ,QAAQ,YACR,OACA,cACA,QACA,MACA,YACE;CAEJ,MAAM,qBAAqB,MAAMA,4CAAAA,4BAC/B,QACA,YACA,OACA,cACA,MACF;CAGA,MAAM,WAAW,UACb;EACE,SAAS;GACP,gBAAgB,MAAM;GACtB,sBAAA,GAAA,KAAA,UAAA,CAA+B,IAAI;EACrC;EACA,iBAAiB;EACjB,aAAa,EACX,UAAU,CACR;GAAE,MAAM;GAAkB,MAAM;EAAU,GAC1C;GAAE,MAAM;GAAuB,MAAM;EAAU,CACjD,EACF;CACF,IACA,KAAA;CAEJ,MAAM,aAAaC,kCAAAA,cACjB,oBACA,MAAM,SACN,MAAM,IACN,QACF;CAEA,MAAM,cAAc,UAChB,8BACA;CAEJ,MAAM,YAAY,OAAA,GAAA,WAAA,UAAA,CAChB,YACAC,aAAAA,eACA,eACF,CAAC,CAAC;EACA,SAAS,WAAW;EACpB;EACA,QAAQ,WAAW;EACnB,OAAO,WAAW;EAClB,SAAS,WAAW;CACtB,CAAC;CAED,+BAAA,qBAAqB,SAAS;CAE9B,OAAO;EACL,GAAG;EACH;EACA;CACF;AACF"}
@@ -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
@@ -0,0 +1,14 @@
1
+ import { Hex } from "viem";
2
+ //#region src/utils/isValidSignature.d.ts
3
+ /**
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
+ */
10
+ declare function isValidSignature(signature: Hex | null | undefined): signature is Hex;
11
+ declare function assertValidSignature(signature: Hex | null | undefined): asserts signature is Hex;
12
+ //#endregion
13
+ export { assertValidSignature, isValidSignature };
14
+ //# sourceMappingURL=isValidSignature.d.ts.map
@@ -0,0 +1,22 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ let _lifi_sdk = require("@lifi/sdk");
3
+ let viem = require("viem");
4
+ //#region src/utils/isValidSignature.ts
5
+ /**
6
+ * Checks that a wallet-returned signature is a usable hex string.
7
+ * Some wallets can resolve `signTypedData` with a nullish or empty ('0x')
8
+ * value instead of rejecting.
9
+ * Signature length is intentionally not validated: 65-byte, EIP-2098 compact
10
+ * and arbitrary-length smart account (ERC-1271) signatures are all valid.
11
+ */
12
+ function isValidSignature(signature) {
13
+ return (0, viem.isHex)(signature) && signature !== "0x";
14
+ }
15
+ function assertValidSignature(signature) {
16
+ if (!isValidSignature(signature)) throw new _lifi_sdk.TransactionError(_lifi_sdk.LiFiErrorCode.SignatureRejected, "Wallet did not return a valid signature.");
17
+ }
18
+ //#endregion
19
+ exports.assertValidSignature = assertValidSignature;
20
+ exports.isValidSignature = isValidSignature;
21
+
22
+ //# sourceMappingURL=isValidSignature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isValidSignature.js","names":["TransactionError","LiFiErrorCode"],"sources":["../../../src/utils/isValidSignature.ts"],"sourcesContent":["import { LiFiErrorCode, TransactionError } from '@lifi/sdk'\nimport { type Hex, isHex } from 'viem'\n\n/**\n * Checks that a wallet-returned signature is a usable hex string.\n * Some wallets can resolve `signTypedData` with a nullish or empty ('0x')\n * value instead of rejecting.\n * Signature length is intentionally not validated: 65-byte, EIP-2098 compact\n * and arbitrary-length smart account (ERC-1271) signatures are all valid.\n */\nexport function isValidSignature(\n signature: Hex | null | undefined\n): signature is Hex {\n return isHex(signature) && signature !== '0x'\n}\n\nexport function assertValidSignature(\n signature: Hex | null | undefined\n): asserts signature is Hex {\n if (!isValidSignature(signature)) {\n throw new TransactionError(\n LiFiErrorCode.SignatureRejected,\n 'Wallet did not return a valid signature.'\n )\n }\n}\n"],"mappings":";;;;;;;;;;;AAUA,SAAgB,iBACd,WACkB;CAClB,QAAA,GAAA,KAAA,MAAA,CAAa,SAAS,KAAK,cAAc;AAC3C;AAEA,SAAgB,qBACd,WAC0B;CAC1B,IAAI,CAAC,iBAAiB,SAAS,GAC7B,MAAM,IAAIA,UAAAA,iBACRC,UAAAA,cAAc,mBACd,0CACF;AAEJ"}
@@ -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.4";
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.4";
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.4'\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;
@@ -1 +1 @@
1
- {"version":3,"file":"checkPermitSupport.d.ts","names":[],"sources":["../../../src/actions/checkPermitSupport.ts"],"mappings":";;;;KAQK,aAAA;2DAEH,qBAAA,WAFG;EAIH,0BAAA;AAAA;AAAA;AAgBF;;;;;;;;;;;;AAhBE,cAgBW,kBAAA,GACX,MAAA,EAAQ,SAAA;EAEN,KAAA;EACA,YAAA;EACA,YAAA;EACA;AAAA;EAEA,KAAA,EAAO,aAAA;EACP,YAAA,EAAc,OAAA;EACd,YAAA,EAAc,OAAA;EACd,MAAA;AAAA,MAED,OAAA,CAAQ,aAAA"}
1
+ {"version":3,"file":"checkPermitSupport.d.ts","names":[],"sources":["../../../src/actions/checkPermitSupport.ts"],"mappings":";;;KAQK;;EAEH;;EAEA;;;;;;;;;;;;;;;cAgBW,qBACX,QAAQ,aAEN,OACA,cACA,cACA;EAEA,OAAO;EACP,cAAc;EACd,cAAc;EACd;MAED,QAAQ"}
@@ -1,6 +1,5 @@
1
1
  import { ChainId, ChainType } from "@lifi/sdk";
2
2
  import { Address } from "viem";
3
-
4
3
  //#region src/actions/constants.d.ts
5
4
  declare const UNS_PROXY_READER_ADDRESSES: Record<number, Address>;
6
5
  declare const getUNSProxyAddress: (chainId: number) => Address | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","names":[],"sources":["../../../src/actions/constants.ts"],"mappings":";;;;cAGa,0BAAA,EAA4B,MAAA,SAAe,OAAA;AAAA,cAK3C,kBAAA,GAAsB,OAAA,aAAkB,OAAA;AAAA,cAGxC,iBAAA;EAAA,SAET,QAAA;EAAA,SACA,MAAA;IAAA,SAEI,YAAA;IAAA,SACA,IAAA;IAAA,SACA,IAAA;EAAA;IAAA,SAGA,YAAA;IAAA,SACA,IAAA;IAAA,SACA,IAAA;EAAA;EAAA,SAGJ,IAAA;EAAA,SACA,OAAA;IAAA,SAEI,YAAA;IAAA,SACA,IAAA;IAAA,SACA,IAAA;EAAA;IAAA,SAGA,YAAA;IAAA,SACA,IAAA;IAAA,SACA,IAAA;EAAA;IAAA,SAGA,YAAA;IAAA,SACA,IAAA;IAAA,SACA,IAAA;EAAA;EAAA,SAGJ,OAAA;EAAA,SACA,eAAA;EAAA,SACA,IAAA;AAAA;EAAA,SAGA,MAAA;IAAA,SAAW,YAAA;IAAA,SAAyB,IAAA;IAAA,SAAiB,IAAA;EAAA;EAAA,SACrD,IAAA;EAAA,SACA,OAAA;IAAA,SAAY,YAAA;IAAA,SAAsB,IAAA;IAAA,SAAU,IAAA;EAAA;EAAA,SAC5C,eAAA;EAAA,SACA,IAAA;AAAA;AAAA,cAIS,wBAAA,EAA0B,MAAA,CAAO,SAAA;AAAA,cASjC,sBAAA,EAAwB,OAAA,CAAQ,MAAA,CAAO,OAAA;AAAA,cAWvC,qBAAA,EAAuB,MAAA,CAAO,SAAA"}
1
+ {"version":3,"file":"constants.d.ts","names":[],"sources":["../../../src/actions/constants.ts"],"mappings":";;;cAGa,4BAA4B,eAAe;cAK3C,qBAAsB,oBAAkB;cAGxC;WAET;WACA;aAEI;aACA;aACA;;aAGA;aACA;aACA;;WAGJ;WACA;aAEI;aACA;aACA;;aAGA;aACA;aACA;;aAGA;aACA;aACA;;WAGJ;WACA;WACA;;WAGA;aAAW;aAAyB;aAAiB;;WACrD;WACA;aAAY;aAAsB;aAAU;;WAC5C;WACA;;cAIS,0BAA0B,OAAO;cASjC,wBAAwB,QAAQ,OAAO;cAWvC,uBAAuB,OAAO"}
@@ -1,6 +1,5 @@
1
1
  import { SDKClient } from "@lifi/sdk";
2
2
  import { Address, Hex } from "viem";
3
-
4
3
  //#region src/actions/getAccountCode.d.ts
5
4
  type GetAccountCodeParams = {
6
5
  client: SDKClient;
@@ -8,23 +7,19 @@ type GetAccountCodeParams = {
8
7
  address: Address;
9
8
  };
10
9
  /**
11
- * Shared `eth_getCode` fetcher. Deliberately uncached across executions so
12
- * a wallet re-delegate / upgrade / un-delegate in another tab is never
13
- * served stale; `withDedupe` only collapses concurrent in-flight callers.
14
- *
15
- * Always queries the SDK's per-chain public client (never the wallet
16
- * client) so cross-chain steps and post-chain-switch flows read from the
17
- * chain the step actually executes on.
18
- *
19
- * Returns `undefined` on RPC failure. Each caller MUST classify that
20
- * explicitly (e.g. "treat as EOA" vs. "treat as not-permittable") — there
21
- * is no single safe default.
22
- */
23
- declare const getAccountCode: ({
24
- client,
25
- chainId,
26
- address
27
- }: GetAccountCodeParams) => Promise<Hex | undefined>;
10
+ * Shared `eth_getCode` fetcher. Deliberately uncached across executions so
11
+ * a wallet re-delegate / upgrade / un-delegate in another tab is never
12
+ * served stale; `withDedupe` only collapses concurrent in-flight callers.
13
+ *
14
+ * Always queries the SDK's per-chain public client (never the wallet
15
+ * client) so cross-chain steps and post-chain-switch flows read from the
16
+ * chain the step actually executes on.
17
+ *
18
+ * Returns `undefined` on RPC failure. Each caller MUST classify that
19
+ * explicitly (e.g. "treat as EOA" vs. "treat as not-permittable") — there
20
+ * is no single safe default.
21
+ */
22
+ declare const getAccountCode: ({ client, chainId, address }: GetAccountCodeParams) => Promise<Hex | undefined>;
28
23
  //#endregion
29
24
  export { getAccountCode };
30
25
  //# sourceMappingURL=getAccountCode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getAccountCode.d.ts","names":[],"sources":["../../../src/actions/getAccountCode.ts"],"mappings":";;;;KAMK,oBAAA;EACH,MAAA,EAAQ,SAAA;EACR,OAAA;EACA,OAAA,EAAS,OAAA;AAAA;;;;;;;;AAAA;AAgBX;;;;;cAAa,cAAA;EACX,MAAA;EACA,OAAA;EACA;AAAA,GACC,oBAAA,KAAuB,OAAA,CAAQ,GAAA"}
1
+ {"version":3,"file":"getAccountCode.d.ts","names":[],"sources":["../../../src/actions/getAccountCode.ts"],"mappings":";;;KAMK;EACH,QAAQ;EACR;EACA,SAAS;;;;;;;;;;;;;;;cAgBE,mBACX,QACA,SACA,WACC,yBAAuB,QAAQ"}
@@ -1,26 +1,25 @@
1
1
  import { TokenAllowance, TokenSpender, TokenSpenderAllowance } from "../types.js";
2
2
  import { BaseToken, ChainId, SDKClient } from "@lifi/sdk";
3
3
  import { Address, Client } from "viem";
4
-
5
4
  //#region src/actions/getAllowance.d.ts
6
5
  declare const getAllowance: (client: SDKClient, viemClient: Client, tokenAddress: Address, ownerAddress: Address, spenderAddress: Address) => Promise<bigint>;
7
6
  declare const getAllowanceMulticall: (client: SDKClient, viemClient: Client, chainId: ChainId, tokens: TokenSpender[], ownerAddress: Address) => Promise<TokenSpenderAllowance[]>;
8
7
  /**
9
- * Get the current allowance for a certain token.
10
- * @param client - The SDK client
11
- * @param token - The token that should be checked
12
- * @param ownerAddress - The owner of the token
13
- * @param spenderAddress - The spender address that has to be approved
14
- * @returns Returns allowance
15
- */
8
+ * Get the current allowance for a certain token.
9
+ * @param client - The SDK client
10
+ * @param token - The token that should be checked
11
+ * @param ownerAddress - The owner of the token
12
+ * @param spenderAddress - The spender address that has to be approved
13
+ * @returns Returns allowance
14
+ */
16
15
  declare const getTokenAllowance: (client: SDKClient, token: BaseToken, ownerAddress: Address, spenderAddress: Address) => Promise<bigint | undefined>;
17
16
  /**
18
- * Get the current allowance for a list of token/spender address pairs.
19
- * @param client - The SDK client
20
- * @param ownerAddress - The owner of the tokens
21
- * @param tokens - A list of token and spender address pairs
22
- * @returns Returns array of tokens and their allowance
23
- */
17
+ * Get the current allowance for a list of token/spender address pairs.
18
+ * @param client - The SDK client
19
+ * @param ownerAddress - The owner of the tokens
20
+ * @param tokens - A list of token and spender address pairs
21
+ * @returns Returns array of tokens and their allowance
22
+ */
24
23
  declare const getTokenAllowanceMulticall: (client: SDKClient, ownerAddress: Address, tokens: TokenSpender[]) => Promise<TokenAllowance[]>;
25
24
  //#endregion
26
25
  export { getAllowance, getAllowanceMulticall, getTokenAllowance, getTokenAllowanceMulticall };
@@ -1 +1 @@
1
- {"version":3,"file":"getAllowance.d.ts","names":[],"sources":["../../../src/actions/getAllowance.ts"],"mappings":";;;;;cAca,YAAA,GACX,MAAA,EAAQ,SAAA,EACR,UAAA,EAAY,MAAA,EACZ,YAAA,EAAc,OAAA,EACd,YAAA,EAAc,OAAA,EACd,cAAA,EAAgB,OAAA,KACf,OAAA;AAAA,cAoBU,qBAAA,GACX,MAAA,EAAQ,SAAA,EACR,UAAA,EAAY,MAAA,EACZ,OAAA,EAAS,OAAA,EACT,MAAA,EAAQ,YAAA,IACR,YAAA,EAAc,OAAA,KACb,OAAA,CAAQ,qBAAA;AAhCX;;;;;;;;AAAA,cA+Ea,iBAAA,GACX,MAAA,EAAQ,SAAA,EACR,KAAA,EAAO,SAAA,EACP,YAAA,EAAc,OAAA,EACd,cAAA,EAAgB,OAAA,KACf,OAAA;;;;;;;;cAyBU,0BAAA,GACX,MAAA,EAAQ,SAAA,EACR,YAAA,EAAc,OAAA,EACd,MAAA,EAAQ,YAAA,OACP,OAAA,CAAQ,cAAA"}
1
+ {"version":3,"file":"getAllowance.d.ts","names":[],"sources":["../../../src/actions/getAllowance.ts"],"mappings":";;;;cAca,eACX,QAAQ,WACR,YAAY,QACZ,cAAc,SACd,cAAc,SACd,gBAAgB,YACf;cAoBU,wBACX,QAAQ,WACR,YAAY,QACZ,SAAS,SACT,QAAQ,gBACR,cAAc,YACb,QAAQ;;;;;;;;;cA+CE,oBACX,QAAQ,WACR,OAAO,WACP,cAAc,SACd,gBAAgB,YACf;;;;;;;;cAyBU,6BACX,QAAQ,WACR,cAAc,SACd,QAAQ,mBACP,QAAQ"}
@@ -1,6 +1,5 @@
1
1
  import { SDKClient, Token, TokenAmount } from "@lifi/sdk";
2
2
  import { Address } from "viem";
3
-
4
3
  //#region src/actions/getEthereumBalance.d.ts
5
4
  declare const getEthereumBalance: (client: SDKClient, walletAddress: Address, tokens: Token[]) => Promise<TokenAmount[]>;
6
5
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"getEthereumBalance.d.ts","names":[],"sources":["../../../src/actions/getEthereumBalance.ts"],"mappings":";;;;cAaa,kBAAA,GACX,MAAA,EAAQ,SAAA,EACR,aAAA,EAAe,OAAA,EACf,MAAA,EAAQ,KAAA,OACP,OAAA,CAAQ,WAAA"}
1
+ {"version":3,"file":"getEthereumBalance.d.ts","names":[],"sources":["../../../src/actions/getEthereumBalance.ts"],"mappings":";;;cAaa,qBACX,QAAQ,WACR,eAAe,SACf,QAAQ,YACP,QAAQ"}
@@ -1,6 +1,5 @@
1
1
  import { SDKClient } from "@lifi/sdk";
2
2
  import { Client } from "viem";
3
-
4
3
  //#region src/actions/getMaxPriorityFeePerGas.d.ts
5
4
  declare const getMaxPriorityFeePerGas: (client: SDKClient, viemClient: Client) => Promise<bigint | undefined>;
6
5
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"getMaxPriorityFeePerGas.d.ts","names":[],"sources":["../../../src/actions/getMaxPriorityFeePerGas.ts"],"mappings":";;;;cAMa,uBAAA,GACX,MAAA,EAAQ,SAAA,EACR,UAAA,EAAY,MAAA,KACX,OAAA"}
1
+ {"version":3,"file":"getMaxPriorityFeePerGas.d.ts","names":[],"sources":["../../../src/actions/getMaxPriorityFeePerGas.ts"],"mappings":";;;cAMa,0BACX,QAAQ,WACR,YAAY,WACX"}
@@ -1,6 +1,5 @@
1
1
  import { ChainId, SDKClient } from "@lifi/sdk";
2
2
  import { Address } from "viem";
3
-
4
3
  //#region src/actions/getMulticallAddress.d.ts
5
4
  declare const getMulticallAddress: (client: SDKClient, chainId: ChainId) => Promise<Address | undefined>;
6
5
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"getMulticallAddress.d.ts","names":[],"sources":["../../../src/actions/getMulticallAddress.ts"],"mappings":";;;;cAGa,mBAAA,GACX,MAAA,EAAQ,SAAA,EACR,OAAA,EAAS,OAAA,KACR,OAAA,CAAQ,OAAA"}
1
+ {"version":3,"file":"getMulticallAddress.d.ts","names":[],"sources":["../../../src/actions/getMulticallAddress.ts"],"mappings":";;;cAGa,sBACX,QAAQ,WACR,SAAS,YACR,QAAQ"}
@@ -1,12 +1,7 @@
1
1
  import { SDKClient } from "@lifi/sdk";
2
2
  import { Client } from "viem";
3
-
4
3
  //#region src/actions/isBatchingSupported.d.ts
5
- declare function isBatchingSupported(client: SDKClient, {
6
- client: viemClient,
7
- chainId,
8
- skipReady
9
- }: {
4
+ declare function isBatchingSupported(client: SDKClient, { client: viemClient, chainId, skipReady }: {
10
5
  client?: Client;
11
6
  chainId: number;
12
7
  skipReady?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"isBatchingSupported.d.ts","names":[],"sources":["../../../src/actions/isBatchingSupported.ts"],"mappings":";;;;iBAMsB,mBAAA,CACpB,MAAA,EAAQ,SAAA;EAEN,MAAA,EAAQ,UAAA;EACR,OAAA;EACA;AAAA;EAEA,MAAA,GAAS,MAAA;EACT,OAAA;EACA,SAAA;AAAA,IAED,OAAA"}
1
+ {"version":3,"file":"isBatchingSupported.d.ts","names":[],"sources":["../../../src/actions/isBatchingSupported.ts"],"mappings":";;;iBAMsB,oBACpB,QAAQ,aAEN,QAAQ,YACR,SACA;EAEA,SAAS;EACT;EACA;IAED"}
@@ -1,6 +1,5 @@
1
1
  import { SDKClient } from "@lifi/sdk";
2
2
  import { Address } from "viem";
3
-
4
3
  //#region src/actions/isSafeSignature.d.ts
5
4
  interface IsSafeSignatureProps {
6
5
  hash: string;
@@ -8,16 +7,12 @@ interface IsSafeSignatureProps {
8
7
  address?: Address;
9
8
  }
10
9
  /**
11
- * Check if a transaction response is a Safe wallet signature (queued transaction)
12
- *
13
- * Safe wallets via Rabby return a signature (65 bytes = 132 chars) instead of
14
- * a transaction hash (32 bytes = 66 chars) for queued transactions.
15
- */
16
- declare function isSafeSignature(client: SDKClient, {
17
- hash,
18
- chainId,
19
- address
20
- }: IsSafeSignatureProps): Promise<boolean>;
10
+ * Check if a transaction response is a Safe wallet signature (queued transaction)
11
+ *
12
+ * Safe wallets via Rabby return a signature (65 bytes = 132 chars) instead of
13
+ * a transaction hash (32 bytes = 66 chars) for queued transactions.
14
+ */
15
+ declare function isSafeSignature(client: SDKClient, { hash, chainId, address }: IsSafeSignatureProps): Promise<boolean>;
21
16
  //#endregion
22
17
  export { IsSafeSignatureProps, isSafeSignature };
23
18
  //# sourceMappingURL=isSafeSignature.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isSafeSignature.d.ts","names":[],"sources":["../../../src/actions/isSafeSignature.ts"],"mappings":";;;;UAKiB,oBAAA;EACf,IAAA;EACA,OAAA;EACA,OAAA,GAAU,OAAA;AAAA;;;;;;;iBASU,eAAA,CACpB,MAAA,EAAQ,SAAA;EACN,IAAA;EAAM,OAAA;EAAS;AAAA,GAAW,oBAAA,GAC3B,OAAA"}
1
+ {"version":3,"file":"isSafeSignature.d.ts","names":[],"sources":["../../../src/actions/isSafeSignature.ts"],"mappings":";;;UAKiB;EACf;EACA;EACA,UAAU;;;;;;;;iBASU,gBACpB,QAAQ,aACN,MAAM,SAAS,WAAW,uBAC3B"}