@recoillink/sdk 0.0.0-stage → 45.0.1

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 (1823) hide show
  1. package/LICENSE.md +193 -0
  2. package/README.md +30 -2
  3. package/dist/app/HyperlaneApp.d.ts +13 -0
  4. package/dist/app/HyperlaneApp.d.ts.map +1 -0
  5. package/dist/app/HyperlaneApp.js +22 -0
  6. package/dist/app/HyperlaneApp.js.map +1 -0
  7. package/dist/app/MultiProtocolApp.d.ts +93 -0
  8. package/dist/app/MultiProtocolApp.d.ts.map +1 -0
  9. package/dist/app/MultiProtocolApp.js +144 -0
  10. package/dist/app/MultiProtocolApp.js.map +1 -0
  11. package/dist/app/MultiProtocolApp.test.d.ts +2 -0
  12. package/dist/app/MultiProtocolApp.test.d.ts.map +1 -0
  13. package/dist/app/MultiProtocolApp.test.js +28 -0
  14. package/dist/app/MultiProtocolApp.test.js.map +1 -0
  15. package/dist/aws/s3.d.ts +22 -0
  16. package/dist/aws/s3.d.ts.map +1 -0
  17. package/dist/aws/s3.js +69 -0
  18. package/dist/aws/s3.js.map +1 -0
  19. package/dist/aws/validator.d.ts +22 -0
  20. package/dist/aws/validator.d.ts.map +1 -0
  21. package/dist/aws/validator.js +99 -0
  22. package/dist/aws/validator.js.map +1 -0
  23. package/dist/block-explorer/etherscan.d.ts +142 -0
  24. package/dist/block-explorer/etherscan.d.ts.map +1 -0
  25. package/dist/block-explorer/etherscan.js +307 -0
  26. package/dist/block-explorer/etherscan.js.map +1 -0
  27. package/dist/block-explorer/etherscan.test.d.ts +2 -0
  28. package/dist/block-explorer/etherscan.test.d.ts.map +1 -0
  29. package/dist/block-explorer/etherscan.test.js +359 -0
  30. package/dist/block-explorer/etherscan.test.js.map +1 -0
  31. package/dist/block-explorer/testFixtures.d.ts +8 -0
  32. package/dist/block-explorer/testFixtures.d.ts.map +1 -0
  33. package/dist/block-explorer/testFixtures.js +18 -0
  34. package/dist/block-explorer/testFixtures.js.map +1 -0
  35. package/dist/block-explorer/utils.d.ts +11 -0
  36. package/dist/block-explorer/utils.d.ts.map +1 -0
  37. package/dist/block-explorer/utils.js +32 -0
  38. package/dist/block-explorer/utils.js.map +1 -0
  39. package/dist/ccip/HyperlaneCCIPDeployer.d.ts +18 -0
  40. package/dist/ccip/HyperlaneCCIPDeployer.d.ts.map +1 -0
  41. package/dist/ccip/HyperlaneCCIPDeployer.js +122 -0
  42. package/dist/ccip/HyperlaneCCIPDeployer.js.map +1 -0
  43. package/dist/ccip/consts.d.ts +24 -0
  44. package/dist/ccip/consts.d.ts.map +1 -0
  45. package/dist/ccip/consts.js +491 -0
  46. package/dist/ccip/consts.js.map +1 -0
  47. package/dist/ccip/utils.d.ts +46 -0
  48. package/dist/ccip/utils.d.ts.map +1 -0
  49. package/dist/ccip/utils.js +95 -0
  50. package/dist/ccip/utils.js.map +1 -0
  51. package/dist/consts/bytecode.d.ts +14 -0
  52. package/dist/consts/bytecode.d.ts.map +1 -0
  53. package/dist/consts/bytecode.js +15 -0
  54. package/dist/consts/bytecode.js.map +1 -0
  55. package/dist/consts/concurrency.d.ts +2 -0
  56. package/dist/consts/concurrency.d.ts.map +1 -0
  57. package/dist/consts/concurrency.js +2 -0
  58. package/dist/consts/concurrency.js.map +1 -0
  59. package/dist/consts/igp.d.ts +12 -0
  60. package/dist/consts/igp.d.ts.map +1 -0
  61. package/dist/consts/igp.js +40 -0
  62. package/dist/consts/igp.js.map +1 -0
  63. package/dist/consts/mailbox.d.ts +2 -0
  64. package/dist/consts/mailbox.d.ts.map +1 -0
  65. package/dist/consts/mailbox.js +3 -0
  66. package/dist/consts/mailbox.js.map +1 -0
  67. package/dist/consts/multisigIsm.d.ts +5 -0
  68. package/dist/consts/multisigIsm.d.ts.map +1 -0
  69. package/dist/consts/multisigIsm.js +847 -0
  70. package/dist/consts/multisigIsm.js.map +1 -0
  71. package/dist/consts/multisigIsm.test.d.ts +2 -0
  72. package/dist/consts/multisigIsm.test.d.ts.map +1 -0
  73. package/dist/consts/multisigIsm.test.js +40 -0
  74. package/dist/consts/multisigIsm.test.js.map +1 -0
  75. package/dist/consts/multisigIsmVerifyCosts.d.ts +210 -0
  76. package/dist/consts/multisigIsmVerifyCosts.d.ts.map +1 -0
  77. package/dist/consts/multisigIsmVerifyCosts.js +210 -0
  78. package/dist/consts/multisigIsmVerifyCosts.js.map +1 -0
  79. package/dist/consts/numbers.d.ts +2 -0
  80. package/dist/consts/numbers.d.ts.map +1 -0
  81. package/dist/consts/numbers.js +3 -0
  82. package/dist/consts/numbers.js.map +1 -0
  83. package/dist/consts/recoilLinkFees.d.ts +6 -0
  84. package/dist/consts/recoilLinkFees.d.ts.map +1 -0
  85. package/dist/consts/recoilLinkFees.js +17 -0
  86. package/dist/consts/recoilLinkFees.js.map +1 -0
  87. package/dist/consts/registry.d.ts +2 -0
  88. package/dist/consts/registry.d.ts.map +1 -0
  89. package/dist/consts/registry.js +5 -0
  90. package/dist/consts/registry.js.map +1 -0
  91. package/dist/consts/sealevel.d.ts +7 -0
  92. package/dist/consts/sealevel.d.ts.map +1 -0
  93. package/dist/consts/sealevel.js +8 -0
  94. package/dist/consts/sealevel.js.map +1 -0
  95. package/dist/consts/testChains.d.ts +30 -0
  96. package/dist/consts/testChains.d.ts.map +1 -0
  97. package/dist/consts/testChains.js +244 -0
  98. package/dist/consts/testChains.js.map +1 -0
  99. package/dist/contracts/contracts.d.ts +40 -0
  100. package/dist/contracts/contracts.d.ts.map +1 -0
  101. package/dist/contracts/contracts.hardhat-test.d.ts +2 -0
  102. package/dist/contracts/contracts.hardhat-test.d.ts.map +1 -0
  103. package/dist/contracts/contracts.hardhat-test.js +34 -0
  104. package/dist/contracts/contracts.hardhat-test.js.map +1 -0
  105. package/dist/contracts/contracts.js +201 -0
  106. package/dist/contracts/contracts.js.map +1 -0
  107. package/dist/contracts/contracts.test.d.ts +2 -0
  108. package/dist/contracts/contracts.test.d.ts.map +1 -0
  109. package/dist/contracts/contracts.test.js +88 -0
  110. package/dist/contracts/contracts.test.js.map +1 -0
  111. package/dist/contracts/types.d.ts +18 -0
  112. package/dist/contracts/types.d.ts.map +1 -0
  113. package/dist/contracts/types.js +2 -0
  114. package/dist/contracts/types.js.map +1 -0
  115. package/dist/core/AbstractHyperlaneModule.d.ts +18 -0
  116. package/dist/core/AbstractHyperlaneModule.d.ts.map +1 -0
  117. package/dist/core/AbstractHyperlaneModule.js +10 -0
  118. package/dist/core/AbstractHyperlaneModule.js.map +1 -0
  119. package/dist/core/CoreDeployer.hardhat-test.d.ts +2 -0
  120. package/dist/core/CoreDeployer.hardhat-test.d.ts.map +1 -0
  121. package/dist/core/CoreDeployer.hardhat-test.js +234 -0
  122. package/dist/core/CoreDeployer.hardhat-test.js.map +1 -0
  123. package/dist/core/EvmCoreModule.d.ts +119 -0
  124. package/dist/core/EvmCoreModule.d.ts.map +1 -0
  125. package/dist/core/EvmCoreModule.hardhat-test.d.ts +2 -0
  126. package/dist/core/EvmCoreModule.hardhat-test.d.ts.map +1 -0
  127. package/dist/core/EvmCoreModule.hardhat-test.js +364 -0
  128. package/dist/core/EvmCoreModule.hardhat-test.js.map +1 -0
  129. package/dist/core/EvmCoreModule.js +339 -0
  130. package/dist/core/EvmCoreModule.js.map +1 -0
  131. package/dist/core/EvmCoreReader.d.ts +38 -0
  132. package/dist/core/EvmCoreReader.d.ts.map +1 -0
  133. package/dist/core/EvmCoreReader.js +92 -0
  134. package/dist/core/EvmCoreReader.js.map +1 -0
  135. package/dist/core/EvmIcaModule.d.ts +43 -0
  136. package/dist/core/EvmIcaModule.d.ts.map +1 -0
  137. package/dist/core/EvmIcaModule.hardhat-test.d.ts +2 -0
  138. package/dist/core/EvmIcaModule.hardhat-test.d.ts.map +1 -0
  139. package/dist/core/EvmIcaModule.hardhat-test.js +211 -0
  140. package/dist/core/EvmIcaModule.hardhat-test.js.map +1 -0
  141. package/dist/core/EvmIcaModule.js +143 -0
  142. package/dist/core/EvmIcaModule.js.map +1 -0
  143. package/dist/core/HyperlaneCore.d.ts +78 -0
  144. package/dist/core/HyperlaneCore.d.ts.map +1 -0
  145. package/dist/core/HyperlaneCore.js +296 -0
  146. package/dist/core/HyperlaneCore.js.map +1 -0
  147. package/dist/core/HyperlaneCore.test.d.ts +2 -0
  148. package/dist/core/HyperlaneCore.test.d.ts.map +1 -0
  149. package/dist/core/HyperlaneCore.test.js +12 -0
  150. package/dist/core/HyperlaneCore.test.js.map +1 -0
  151. package/dist/core/HyperlaneCoreChecker.d.ts +18 -0
  152. package/dist/core/HyperlaneCoreChecker.d.ts.map +1 -0
  153. package/dist/core/HyperlaneCoreChecker.js +171 -0
  154. package/dist/core/HyperlaneCoreChecker.js.map +1 -0
  155. package/dist/core/HyperlaneCoreDeployer.d.ts +36 -0
  156. package/dist/core/HyperlaneCoreDeployer.d.ts.map +1 -0
  157. package/dist/core/HyperlaneCoreDeployer.js +162 -0
  158. package/dist/core/HyperlaneCoreDeployer.js.map +1 -0
  159. package/dist/core/MultiProtocolCore.d.ts +21 -0
  160. package/dist/core/MultiProtocolCore.d.ts.map +1 -0
  161. package/dist/core/MultiProtocolCore.js +49 -0
  162. package/dist/core/MultiProtocolCore.js.map +1 -0
  163. package/dist/core/MultiProtocolCore.test.d.ts +2 -0
  164. package/dist/core/MultiProtocolCore.test.d.ts.map +1 -0
  165. package/dist/core/MultiProtocolCore.test.js +27 -0
  166. package/dist/core/MultiProtocolCore.test.js.map +1 -0
  167. package/dist/core/TestCoreApp.d.ts +17 -0
  168. package/dist/core/TestCoreApp.d.ts.map +1 -0
  169. package/dist/core/TestCoreApp.js +49 -0
  170. package/dist/core/TestCoreApp.js.map +1 -0
  171. package/dist/core/TestCoreDeployer.d.ts +10 -0
  172. package/dist/core/TestCoreDeployer.d.ts.map +1 -0
  173. package/dist/core/TestCoreDeployer.js +13 -0
  174. package/dist/core/TestCoreDeployer.js.map +1 -0
  175. package/dist/core/TestRecipientDeployer.d.ts +22 -0
  176. package/dist/core/TestRecipientDeployer.d.ts.map +1 -0
  177. package/dist/core/TestRecipientDeployer.js +30 -0
  178. package/dist/core/TestRecipientDeployer.js.map +1 -0
  179. package/dist/core/adapters/AleoCoreAdapter.d.ts +23 -0
  180. package/dist/core/adapters/AleoCoreAdapter.d.ts.map +1 -0
  181. package/dist/core/adapters/AleoCoreAdapter.js +72 -0
  182. package/dist/core/adapters/AleoCoreAdapter.js.map +1 -0
  183. package/dist/core/adapters/CosmNativeCoreAdapter.d.ts +23 -0
  184. package/dist/core/adapters/CosmNativeCoreAdapter.d.ts.map +1 -0
  185. package/dist/core/adapters/CosmNativeCoreAdapter.js +65 -0
  186. package/dist/core/adapters/CosmNativeCoreAdapter.js.map +1 -0
  187. package/dist/core/adapters/CosmWasmCoreAdapter.d.ts +40 -0
  188. package/dist/core/adapters/CosmWasmCoreAdapter.d.ts.map +1 -0
  189. package/dist/core/adapters/CosmWasmCoreAdapter.js +145 -0
  190. package/dist/core/adapters/CosmWasmCoreAdapter.js.map +1 -0
  191. package/dist/core/adapters/CosmWasmCoreAdapter.test.d.ts +2 -0
  192. package/dist/core/adapters/CosmWasmCoreAdapter.test.d.ts.map +1 -0
  193. package/dist/core/adapters/CosmWasmCoreAdapter.test.js +31 -0
  194. package/dist/core/adapters/CosmWasmCoreAdapter.test.js.map +1 -0
  195. package/dist/core/adapters/CosmWasmIgpAdapter.d.ts +27 -0
  196. package/dist/core/adapters/CosmWasmIgpAdapter.d.ts.map +1 -0
  197. package/dist/core/adapters/CosmWasmIgpAdapter.js +92 -0
  198. package/dist/core/adapters/CosmWasmIgpAdapter.js.map +1 -0
  199. package/dist/core/adapters/EvmCoreAdapter.d.ts +25 -0
  200. package/dist/core/adapters/EvmCoreAdapter.d.ts.map +1 -0
  201. package/dist/core/adapters/EvmCoreAdapter.js +44 -0
  202. package/dist/core/adapters/EvmCoreAdapter.js.map +1 -0
  203. package/dist/core/adapters/RadixCoreAdapter.d.ts +23 -0
  204. package/dist/core/adapters/RadixCoreAdapter.d.ts.map +1 -0
  205. package/dist/core/adapters/RadixCoreAdapter.js +58 -0
  206. package/dist/core/adapters/RadixCoreAdapter.js.map +1 -0
  207. package/dist/core/adapters/SealevelCoreAdapter.d.ts +56 -0
  208. package/dist/core/adapters/SealevelCoreAdapter.d.ts.map +1 -0
  209. package/dist/core/adapters/SealevelCoreAdapter.js +191 -0
  210. package/dist/core/adapters/SealevelCoreAdapter.js.map +1 -0
  211. package/dist/core/adapters/SealevelCoreAdapter.test.d.ts +2 -0
  212. package/dist/core/adapters/SealevelCoreAdapter.test.d.ts.map +1 -0
  213. package/dist/core/adapters/SealevelCoreAdapter.test.js +33 -0
  214. package/dist/core/adapters/SealevelCoreAdapter.test.js.map +1 -0
  215. package/dist/core/adapters/StarknetCoreAdapter.d.ts +23 -0
  216. package/dist/core/adapters/StarknetCoreAdapter.d.ts.map +1 -0
  217. package/dist/core/adapters/StarknetCoreAdapter.js +70 -0
  218. package/dist/core/adapters/StarknetCoreAdapter.js.map +1 -0
  219. package/dist/core/adapters/types.d.ts +19 -0
  220. package/dist/core/adapters/types.d.ts.map +1 -0
  221. package/dist/core/adapters/types.js +2 -0
  222. package/dist/core/adapters/types.js.map +1 -0
  223. package/dist/core/contracts.d.ts +15 -0
  224. package/dist/core/contracts.d.ts.map +1 -0
  225. package/dist/core/contracts.js +13 -0
  226. package/dist/core/contracts.js.map +1 -0
  227. package/dist/core/events.d.ts +4 -0
  228. package/dist/core/events.d.ts.map +1 -0
  229. package/dist/core/events.js +2 -0
  230. package/dist/core/events.js.map +1 -0
  231. package/dist/core/testHyperlaneDeploy.hardhat-test.d.ts +3 -0
  232. package/dist/core/testHyperlaneDeploy.hardhat-test.d.ts.map +1 -0
  233. package/dist/core/testHyperlaneDeploy.hardhat-test.js +56 -0
  234. package/dist/core/testHyperlaneDeploy.hardhat-test.js.map +1 -0
  235. package/dist/core/types.d.ts +173 -0
  236. package/dist/core/types.d.ts.map +1 -0
  237. package/dist/core/types.js +118 -0
  238. package/dist/core/types.js.map +1 -0
  239. package/dist/core/types.test.d.ts +2 -0
  240. package/dist/core/types.test.d.ts.map +1 -0
  241. package/dist/core/types.test.js +205 -0
  242. package/dist/core/types.test.js.map +1 -0
  243. package/dist/cw-types/Cw20Base.types.d.ts +198 -0
  244. package/dist/cw-types/Cw20Base.types.d.ts.map +1 -0
  245. package/dist/cw-types/Cw20Base.types.js +7 -0
  246. package/dist/cw-types/Cw20Base.types.js.map +1 -0
  247. package/dist/cw-types/HookAggregate.types.d.ts +79 -0
  248. package/dist/cw-types/HookAggregate.types.d.ts.map +1 -0
  249. package/dist/cw-types/HookAggregate.types.js +7 -0
  250. package/dist/cw-types/HookAggregate.types.js.map +1 -0
  251. package/dist/cw-types/HookMerkle.types.d.ts +163 -0
  252. package/dist/cw-types/HookMerkle.types.d.ts.map +1 -0
  253. package/dist/cw-types/HookMerkle.types.js +7 -0
  254. package/dist/cw-types/HookMerkle.types.js.map +1 -0
  255. package/dist/cw-types/HookPausable.types.d.ts +82 -0
  256. package/dist/cw-types/HookPausable.types.d.ts.map +1 -0
  257. package/dist/cw-types/HookPausable.types.js +7 -0
  258. package/dist/cw-types/HookPausable.types.js.map +1 -0
  259. package/dist/cw-types/HookRouting.types.d.ts +109 -0
  260. package/dist/cw-types/HookRouting.types.d.ts.map +1 -0
  261. package/dist/cw-types/HookRouting.types.js +7 -0
  262. package/dist/cw-types/HookRouting.types.js.map +1 -0
  263. package/dist/cw-types/HookRoutingCustom.types.d.ts +149 -0
  264. package/dist/cw-types/HookRoutingCustom.types.d.ts.map +1 -0
  265. package/dist/cw-types/HookRoutingCustom.types.js +7 -0
  266. package/dist/cw-types/HookRoutingCustom.types.js.map +1 -0
  267. package/dist/cw-types/HookRoutingFallback.types.d.ts +113 -0
  268. package/dist/cw-types/HookRoutingFallback.types.d.ts.map +1 -0
  269. package/dist/cw-types/HookRoutingFallback.types.js +7 -0
  270. package/dist/cw-types/HookRoutingFallback.types.js.map +1 -0
  271. package/dist/cw-types/Igp.types.d.ts +184 -0
  272. package/dist/cw-types/Igp.types.d.ts.map +1 -0
  273. package/dist/cw-types/Igp.types.js +7 -0
  274. package/dist/cw-types/Igp.types.js.map +1 -0
  275. package/dist/cw-types/IgpOracle.types.d.ts +61 -0
  276. package/dist/cw-types/IgpOracle.types.d.ts.map +1 -0
  277. package/dist/cw-types/IgpOracle.types.js +7 -0
  278. package/dist/cw-types/IgpOracle.types.js.map +1 -0
  279. package/dist/cw-types/IsmAggregate.types.d.ts +76 -0
  280. package/dist/cw-types/IsmAggregate.types.d.ts.map +1 -0
  281. package/dist/cw-types/IsmAggregate.types.js +7 -0
  282. package/dist/cw-types/IsmAggregate.types.js.map +1 -0
  283. package/dist/cw-types/IsmMultisig.types.d.ts +102 -0
  284. package/dist/cw-types/IsmMultisig.types.d.ts.map +1 -0
  285. package/dist/cw-types/IsmMultisig.types.js +7 -0
  286. package/dist/cw-types/IsmMultisig.types.js.map +1 -0
  287. package/dist/cw-types/IsmRouting.types.d.ts +81 -0
  288. package/dist/cw-types/IsmRouting.types.d.ts.map +1 -0
  289. package/dist/cw-types/IsmRouting.types.js +7 -0
  290. package/dist/cw-types/IsmRouting.types.js.map +1 -0
  291. package/dist/cw-types/Mailbox.types.d.ts +131 -0
  292. package/dist/cw-types/Mailbox.types.d.ts.map +1 -0
  293. package/dist/cw-types/Mailbox.types.js +7 -0
  294. package/dist/cw-types/Mailbox.types.js.map +1 -0
  295. package/dist/cw-types/ValidatorAnnounce.types.d.ts +31 -0
  296. package/dist/cw-types/ValidatorAnnounce.types.d.ts.map +1 -0
  297. package/dist/cw-types/ValidatorAnnounce.types.js +7 -0
  298. package/dist/cw-types/ValidatorAnnounce.types.js.map +1 -0
  299. package/dist/cw-types/WarpCw20.types.d.ts +217 -0
  300. package/dist/cw-types/WarpCw20.types.d.ts.map +1 -0
  301. package/dist/cw-types/WarpCw20.types.js +7 -0
  302. package/dist/cw-types/WarpCw20.types.js.map +1 -0
  303. package/dist/cw-types/WarpNative.types.d.ts +197 -0
  304. package/dist/cw-types/WarpNative.types.d.ts.map +1 -0
  305. package/dist/cw-types/WarpNative.types.js +7 -0
  306. package/dist/cw-types/WarpNative.types.js.map +1 -0
  307. package/dist/deploy/HyperlaneAppChecker.d.ts +32 -0
  308. package/dist/deploy/HyperlaneAppChecker.d.ts.map +1 -0
  309. package/dist/deploy/HyperlaneAppChecker.js +220 -0
  310. package/dist/deploy/HyperlaneAppChecker.js.map +1 -0
  311. package/dist/deploy/HyperlaneDeployer.d.ts +83 -0
  312. package/dist/deploy/HyperlaneDeployer.d.ts.map +1 -0
  313. package/dist/deploy/HyperlaneDeployer.js +434 -0
  314. package/dist/deploy/HyperlaneDeployer.js.map +1 -0
  315. package/dist/deploy/HyperlaneProxyFactoryDeployer.d.ts +11 -0
  316. package/dist/deploy/HyperlaneProxyFactoryDeployer.d.ts.map +1 -0
  317. package/dist/deploy/HyperlaneProxyFactoryDeployer.js +48 -0
  318. package/dist/deploy/HyperlaneProxyFactoryDeployer.js.map +1 -0
  319. package/dist/deploy/contracts.d.ts +16 -0
  320. package/dist/deploy/contracts.d.ts.map +1 -0
  321. package/dist/deploy/contracts.js +25 -0
  322. package/dist/deploy/contracts.js.map +1 -0
  323. package/dist/deploy/proxy.d.ts +52 -0
  324. package/dist/deploy/proxy.d.ts.map +1 -0
  325. package/dist/deploy/proxy.js +153 -0
  326. package/dist/deploy/proxy.js.map +1 -0
  327. package/dist/deploy/proxy.test.d.ts +2 -0
  328. package/dist/deploy/proxy.test.d.ts.map +1 -0
  329. package/dist/deploy/proxy.test.js +168 -0
  330. package/dist/deploy/proxy.test.js.map +1 -0
  331. package/dist/deploy/proxyFactoryUtils.d.ts +7 -0
  332. package/dist/deploy/proxyFactoryUtils.d.ts.map +1 -0
  333. package/dist/deploy/proxyFactoryUtils.js +12 -0
  334. package/dist/deploy/proxyFactoryUtils.js.map +1 -0
  335. package/dist/deploy/types.d.ts +69 -0
  336. package/dist/deploy/types.d.ts.map +1 -0
  337. package/dist/deploy/types.js +22 -0
  338. package/dist/deploy/types.js.map +1 -0
  339. package/dist/deploy/utils.d.ts +15 -0
  340. package/dist/deploy/utils.d.ts.map +1 -0
  341. package/dist/deploy/utils.js +28 -0
  342. package/dist/deploy/utils.js.map +1 -0
  343. package/dist/deploy/verify/BaseContractVerifier.d.ts +23 -0
  344. package/dist/deploy/verify/BaseContractVerifier.d.ts.map +1 -0
  345. package/dist/deploy/verify/BaseContractVerifier.js +128 -0
  346. package/dist/deploy/verify/BaseContractVerifier.js.map +1 -0
  347. package/dist/deploy/verify/ContractVerifier.d.ts +30 -0
  348. package/dist/deploy/verify/ContractVerifier.d.ts.map +1 -0
  349. package/dist/deploy/verify/ContractVerifier.js +125 -0
  350. package/dist/deploy/verify/ContractVerifier.js.map +1 -0
  351. package/dist/deploy/verify/PostDeploymentContractVerifier.d.ts +15 -0
  352. package/dist/deploy/verify/PostDeploymentContractVerifier.d.ts.map +1 -0
  353. package/dist/deploy/verify/PostDeploymentContractVerifier.js +45 -0
  354. package/dist/deploy/verify/PostDeploymentContractVerifier.js.map +1 -0
  355. package/dist/deploy/verify/ZKSyncContractVerifier.d.ts +50 -0
  356. package/dist/deploy/verify/ZKSyncContractVerifier.d.ts.map +1 -0
  357. package/dist/deploy/verify/ZKSyncContractVerifier.js +99 -0
  358. package/dist/deploy/verify/ZKSyncContractVerifier.js.map +1 -0
  359. package/dist/deploy/verify/types.d.ts +47 -0
  360. package/dist/deploy/verify/types.d.ts.map +1 -0
  361. package/dist/deploy/verify/types.js +7 -0
  362. package/dist/deploy/verify/types.js.map +1 -0
  363. package/dist/deploy/verify/utils.d.ts +81 -0
  364. package/dist/deploy/verify/utils.d.ts.map +1 -0
  365. package/dist/deploy/verify/utils.js +208 -0
  366. package/dist/deploy/verify/utils.js.map +1 -0
  367. package/dist/deploy/verify/utils.test.d.ts +2 -0
  368. package/dist/deploy/verify/utils.test.d.ts.map +1 -0
  369. package/dist/deploy/verify/utils.test.js +49 -0
  370. package/dist/deploy/verify/utils.test.js.map +1 -0
  371. package/dist/deploy/warp.d.ts +150 -0
  372. package/dist/deploy/warp.d.ts.map +1 -0
  373. package/dist/deploy/warp.js +1280 -0
  374. package/dist/deploy/warp.js.map +1 -0
  375. package/dist/deploy/warp.test.d.ts +2 -0
  376. package/dist/deploy/warp.test.d.ts.map +1 -0
  377. package/dist/deploy/warp.test.js +419 -0
  378. package/dist/deploy/warp.test.js.map +1 -0
  379. package/dist/deploy/warpHybridPlan.d.ts +104 -0
  380. package/dist/deploy/warpHybridPlan.d.ts.map +1 -0
  381. package/dist/deploy/warpHybridPlan.js +178 -0
  382. package/dist/deploy/warpHybridPlan.js.map +1 -0
  383. package/dist/deploy/warpHybridPlan.test.d.ts +2 -0
  384. package/dist/deploy/warpHybridPlan.test.d.ts.map +1 -0
  385. package/dist/deploy/warpHybridPlan.test.js +141 -0
  386. package/dist/deploy/warpHybridPlan.test.js.map +1 -0
  387. package/dist/fee/EvmTokenFeeDeployer.d.ts +20 -0
  388. package/dist/fee/EvmTokenFeeDeployer.d.ts.map +1 -0
  389. package/dist/fee/EvmTokenFeeDeployer.hardhat-test.d.ts +2 -0
  390. package/dist/fee/EvmTokenFeeDeployer.hardhat-test.d.ts.map +1 -0
  391. package/dist/fee/EvmTokenFeeDeployer.hardhat-test.js +353 -0
  392. package/dist/fee/EvmTokenFeeDeployer.hardhat-test.js.map +1 -0
  393. package/dist/fee/EvmTokenFeeDeployer.js +143 -0
  394. package/dist/fee/EvmTokenFeeDeployer.js.map +1 -0
  395. package/dist/fee/EvmTokenFeeModule.d.ts +63 -0
  396. package/dist/fee/EvmTokenFeeModule.d.ts.map +1 -0
  397. package/dist/fee/EvmTokenFeeModule.hardhat-test.d.ts +2 -0
  398. package/dist/fee/EvmTokenFeeModule.hardhat-test.d.ts.map +1 -0
  399. package/dist/fee/EvmTokenFeeModule.hardhat-test.js +942 -0
  400. package/dist/fee/EvmTokenFeeModule.hardhat-test.js.map +1 -0
  401. package/dist/fee/EvmTokenFeeModule.js +583 -0
  402. package/dist/fee/EvmTokenFeeModule.js.map +1 -0
  403. package/dist/fee/EvmTokenFeeReader.d.ts +38 -0
  404. package/dist/fee/EvmTokenFeeReader.d.ts.map +1 -0
  405. package/dist/fee/EvmTokenFeeReader.hardhat-test.d.ts +4 -0
  406. package/dist/fee/EvmTokenFeeReader.hardhat-test.d.ts.map +1 -0
  407. package/dist/fee/EvmTokenFeeReader.hardhat-test.js +371 -0
  408. package/dist/fee/EvmTokenFeeReader.hardhat-test.js.map +1 -0
  409. package/dist/fee/EvmTokenFeeReader.js +200 -0
  410. package/dist/fee/EvmTokenFeeReader.js.map +1 -0
  411. package/dist/fee/contracts.d.ts +11 -0
  412. package/dist/fee/contracts.d.ts.map +1 -0
  413. package/dist/fee/contracts.js +11 -0
  414. package/dist/fee/contracts.js.map +1 -0
  415. package/dist/fee/crossCollateralUtils.d.ts +8 -0
  416. package/dist/fee/crossCollateralUtils.d.ts.map +1 -0
  417. package/dist/fee/crossCollateralUtils.js +49 -0
  418. package/dist/fee/crossCollateralUtils.js.map +1 -0
  419. package/dist/fee/feeConfigMapping.d.ts +9 -0
  420. package/dist/fee/feeConfigMapping.d.ts.map +1 -0
  421. package/dist/fee/feeConfigMapping.js +87 -0
  422. package/dist/fee/feeConfigMapping.js.map +1 -0
  423. package/dist/fee/feeConfigMapping.test.d.ts +2 -0
  424. package/dist/fee/feeConfigMapping.test.d.ts.map +1 -0
  425. package/dist/fee/feeConfigMapping.test.js +204 -0
  426. package/dist/fee/feeConfigMapping.test.js.map +1 -0
  427. package/dist/fee/types.d.ts +295 -0
  428. package/dist/fee/types.d.ts.map +1 -0
  429. package/dist/fee/types.js +238 -0
  430. package/dist/fee/types.js.map +1 -0
  431. package/dist/fee/types.test.d.ts +2 -0
  432. package/dist/fee/types.test.d.ts.map +1 -0
  433. package/dist/fee/types.test.js +204 -0
  434. package/dist/fee/types.test.js.map +1 -0
  435. package/dist/fee/utils.d.ts +9 -0
  436. package/dist/fee/utils.d.ts.map +1 -0
  437. package/dist/fee/utils.js +9 -0
  438. package/dist/fee/utils.js.map +1 -0
  439. package/dist/fee/utils.test.d.ts +2 -0
  440. package/dist/fee/utils.test.d.ts.map +1 -0
  441. package/dist/fee/utils.test.js +54 -0
  442. package/dist/fee/utils.test.js.map +1 -0
  443. package/dist/fork/types.d.ts +354 -0
  444. package/dist/fork/types.d.ts.map +1 -0
  445. package/dist/fork/types.js +142 -0
  446. package/dist/fork/types.js.map +1 -0
  447. package/dist/gas/HyperlaneIgp.d.ts +53 -0
  448. package/dist/gas/HyperlaneIgp.d.ts.map +1 -0
  449. package/dist/gas/HyperlaneIgp.js +64 -0
  450. package/dist/gas/HyperlaneIgp.js.map +1 -0
  451. package/dist/gas/HyperlaneIgpChecker.d.ts +13 -0
  452. package/dist/gas/HyperlaneIgpChecker.d.ts.map +1 -0
  453. package/dist/gas/HyperlaneIgpChecker.js +162 -0
  454. package/dist/gas/HyperlaneIgpChecker.js.map +1 -0
  455. package/dist/gas/HyperlaneIgpDeployer.d.ts +32 -0
  456. package/dist/gas/HyperlaneIgpDeployer.d.ts.map +1 -0
  457. package/dist/gas/HyperlaneIgpDeployer.js +248 -0
  458. package/dist/gas/HyperlaneIgpDeployer.js.map +1 -0
  459. package/dist/gas/adapters/SealevelIgpAdapter.d.ts +93 -0
  460. package/dist/gas/adapters/SealevelIgpAdapter.d.ts.map +1 -0
  461. package/dist/gas/adapters/SealevelIgpAdapter.js +294 -0
  462. package/dist/gas/adapters/SealevelIgpAdapter.js.map +1 -0
  463. package/dist/gas/adapters/SealevelIgpAdapter.test.d.ts +2 -0
  464. package/dist/gas/adapters/SealevelIgpAdapter.test.d.ts.map +1 -0
  465. package/dist/gas/adapters/SealevelIgpAdapter.test.js +189 -0
  466. package/dist/gas/adapters/SealevelIgpAdapter.test.js.map +1 -0
  467. package/dist/gas/adapters/serialization.d.ts +180 -0
  468. package/dist/gas/adapters/serialization.d.ts.map +1 -0
  469. package/dist/gas/adapters/serialization.js +409 -0
  470. package/dist/gas/adapters/serialization.js.map +1 -0
  471. package/dist/gas/adapters/serialization.test.d.ts +2 -0
  472. package/dist/gas/adapters/serialization.test.d.ts.map +1 -0
  473. package/dist/gas/adapters/serialization.test.js +87 -0
  474. package/dist/gas/adapters/serialization.test.js.map +1 -0
  475. package/dist/gas/contracts.d.ts +8 -0
  476. package/dist/gas/contracts.d.ts.map +1 -0
  477. package/dist/gas/contracts.js +7 -0
  478. package/dist/gas/contracts.js.map +1 -0
  479. package/dist/gas/oracle/configure-gas-oracles.hardhat-test.d.ts +2 -0
  480. package/dist/gas/oracle/configure-gas-oracles.hardhat-test.d.ts.map +1 -0
  481. package/dist/gas/oracle/configure-gas-oracles.hardhat-test.js +82 -0
  482. package/dist/gas/oracle/configure-gas-oracles.hardhat-test.js.map +1 -0
  483. package/dist/gas/oracle/types.d.ts +42 -0
  484. package/dist/gas/oracle/types.d.ts.map +1 -0
  485. package/dist/gas/oracle/types.js +45 -0
  486. package/dist/gas/oracle/types.js.map +1 -0
  487. package/dist/gas/token-prices.d.ts +58 -0
  488. package/dist/gas/token-prices.d.ts.map +1 -0
  489. package/dist/gas/token-prices.js +199 -0
  490. package/dist/gas/token-prices.js.map +1 -0
  491. package/dist/gas/token-prices.test.d.ts +2 -0
  492. package/dist/gas/token-prices.test.d.ts.map +1 -0
  493. package/dist/gas/token-prices.test.js +96 -0
  494. package/dist/gas/token-prices.test.js.map +1 -0
  495. package/dist/gas/types.d.ts +50 -0
  496. package/dist/gas/types.d.ts.map +1 -0
  497. package/dist/gas/types.js +26 -0
  498. package/dist/gas/types.js.map +1 -0
  499. package/dist/gas/utils.d.ts +34 -0
  500. package/dist/gas/utils.d.ts.map +1 -0
  501. package/dist/gas/utils.js +246 -0
  502. package/dist/gas/utils.js.map +1 -0
  503. package/dist/gas/utils.test.d.ts +2 -0
  504. package/dist/gas/utils.test.d.ts.map +1 -0
  505. package/dist/gas/utils.test.js +132 -0
  506. package/dist/gas/utils.test.js.map +1 -0
  507. package/dist/gcp/storage.d.ts +28 -0
  508. package/dist/gcp/storage.d.ts.map +1 -0
  509. package/dist/gcp/storage.js +88 -0
  510. package/dist/gcp/storage.js.map +1 -0
  511. package/dist/gcp/validator.d.ts +22 -0
  512. package/dist/gcp/validator.d.ts.map +1 -0
  513. package/dist/gcp/validator.js +107 -0
  514. package/dist/gcp/validator.js.map +1 -0
  515. package/dist/hook/EvmHookModule.d.ts +161 -0
  516. package/dist/hook/EvmHookModule.d.ts.map +1 -0
  517. package/dist/hook/EvmHookModule.hardhat-test.d.ts +2 -0
  518. package/dist/hook/EvmHookModule.hardhat-test.d.ts.map +1 -0
  519. package/dist/hook/EvmHookModule.hardhat-test.js +1004 -0
  520. package/dist/hook/EvmHookModule.hardhat-test.js.map +1 -0
  521. package/dist/hook/EvmHookModule.js +932 -0
  522. package/dist/hook/EvmHookModule.js.map +1 -0
  523. package/dist/hook/EvmHookReader.d.ts +81 -0
  524. package/dist/hook/EvmHookReader.d.ts.map +1 -0
  525. package/dist/hook/EvmHookReader.js +630 -0
  526. package/dist/hook/EvmHookReader.js.map +1 -0
  527. package/dist/hook/EvmHookReader.test.d.ts +2 -0
  528. package/dist/hook/EvmHookReader.test.d.ts.map +1 -0
  529. package/dist/hook/EvmHookReader.test.js +647 -0
  530. package/dist/hook/EvmHookReader.test.js.map +1 -0
  531. package/dist/hook/HyperlaneHookDeployer.d.ts +70 -0
  532. package/dist/hook/HyperlaneHookDeployer.d.ts.map +1 -0
  533. package/dist/hook/HyperlaneHookDeployer.hardhat-test.d.ts +2 -0
  534. package/dist/hook/HyperlaneHookDeployer.hardhat-test.d.ts.map +1 -0
  535. package/dist/hook/HyperlaneHookDeployer.hardhat-test.js +322 -0
  536. package/dist/hook/HyperlaneHookDeployer.hardhat-test.js.map +1 -0
  537. package/dist/hook/HyperlaneHookDeployer.js +538 -0
  538. package/dist/hook/HyperlaneHookDeployer.js.map +1 -0
  539. package/dist/hook/contracts.d.ts +20 -0
  540. package/dist/hook/contracts.d.ts.map +1 -0
  541. package/dist/hook/contracts.js +18 -0
  542. package/dist/hook/contracts.js.map +1 -0
  543. package/dist/hook/types.d.ts +262 -0
  544. package/dist/hook/types.d.ts.map +1 -0
  545. package/dist/hook/types.js +341 -0
  546. package/dist/hook/types.js.map +1 -0
  547. package/dist/hook/types.test.d.ts +2 -0
  548. package/dist/hook/types.test.d.ts.map +1 -0
  549. package/dist/hook/types.test.js +227 -0
  550. package/dist/hook/types.test.js.map +1 -0
  551. package/dist/hook/updates.d.ts +33 -0
  552. package/dist/hook/updates.d.ts.map +1 -0
  553. package/dist/hook/updates.js +35 -0
  554. package/dist/hook/updates.js.map +1 -0
  555. package/dist/hook/utils.d.ts +58 -0
  556. package/dist/hook/utils.d.ts.map +1 -0
  557. package/dist/hook/utils.hardhat-test.d.ts +2 -0
  558. package/dist/hook/utils.hardhat-test.d.ts.map +1 -0
  559. package/dist/hook/utils.hardhat-test.js +119 -0
  560. package/dist/hook/utils.hardhat-test.js.map +1 -0
  561. package/dist/hook/utils.js +157 -0
  562. package/dist/hook/utils.js.map +1 -0
  563. package/dist/ica/EvmIcaReader.d.ts +7 -0
  564. package/dist/ica/EvmIcaReader.d.ts.map +1 -0
  565. package/dist/ica/EvmIcaReader.hardhat-test.d.ts +2 -0
  566. package/dist/ica/EvmIcaReader.hardhat-test.d.ts.map +1 -0
  567. package/dist/ica/EvmIcaReader.hardhat-test.js +39 -0
  568. package/dist/ica/EvmIcaReader.hardhat-test.js.map +1 -0
  569. package/dist/ica/EvmIcaReader.js +32 -0
  570. package/dist/ica/EvmIcaReader.js.map +1 -0
  571. package/dist/ica/types.d.ts +88 -0
  572. package/dist/ica/types.d.ts.map +1 -0
  573. package/dist/ica/types.js +36 -0
  574. package/dist/ica/types.js.map +1 -0
  575. package/dist/index.d.ts +215 -0
  576. package/dist/index.d.ts.map +1 -0
  577. package/dist/index.js +199 -0
  578. package/dist/index.js.map +1 -0
  579. package/dist/ism/EvmIsmModule.d.ts +106 -0
  580. package/dist/ism/EvmIsmModule.d.ts.map +1 -0
  581. package/dist/ism/EvmIsmModule.hardhat-test.d.ts +2 -0
  582. package/dist/ism/EvmIsmModule.hardhat-test.d.ts.map +1 -0
  583. package/dist/ism/EvmIsmModule.hardhat-test.js +1279 -0
  584. package/dist/ism/EvmIsmModule.hardhat-test.js.map +1 -0
  585. package/dist/ism/EvmIsmModule.js +709 -0
  586. package/dist/ism/EvmIsmModule.js.map +1 -0
  587. package/dist/ism/EvmIsmModule.test.d.ts +2 -0
  588. package/dist/ism/EvmIsmModule.test.d.ts.map +1 -0
  589. package/dist/ism/EvmIsmModule.test.js +309 -0
  590. package/dist/ism/EvmIsmModule.test.js.map +1 -0
  591. package/dist/ism/EvmIsmReader.d.ts +55 -0
  592. package/dist/ism/EvmIsmReader.d.ts.map +1 -0
  593. package/dist/ism/EvmIsmReader.js +555 -0
  594. package/dist/ism/EvmIsmReader.js.map +1 -0
  595. package/dist/ism/EvmIsmReader.test.d.ts +2 -0
  596. package/dist/ism/EvmIsmReader.test.d.ts.map +1 -0
  597. package/dist/ism/EvmIsmReader.test.js +931 -0
  598. package/dist/ism/EvmIsmReader.test.js.map +1 -0
  599. package/dist/ism/HyperlaneIsmFactory.d.ts +129 -0
  600. package/dist/ism/HyperlaneIsmFactory.d.ts.map +1 -0
  601. package/dist/ism/HyperlaneIsmFactory.hardhat-test.d.ts +2 -0
  602. package/dist/ism/HyperlaneIsmFactory.hardhat-test.d.ts.map +1 -0
  603. package/dist/ism/HyperlaneIsmFactory.hardhat-test.js +1228 -0
  604. package/dist/ism/HyperlaneIsmFactory.hardhat-test.js.map +1 -0
  605. package/dist/ism/HyperlaneIsmFactory.js +867 -0
  606. package/dist/ism/HyperlaneIsmFactory.js.map +1 -0
  607. package/dist/ism/HyperlaneIsmFactory.test.d.ts +2 -0
  608. package/dist/ism/HyperlaneIsmFactory.test.d.ts.map +1 -0
  609. package/dist/ism/HyperlaneIsmFactory.test.js +98 -0
  610. package/dist/ism/HyperlaneIsmFactory.test.js.map +1 -0
  611. package/dist/ism/adapters/CosmWasmMultisigAdapter.d.ts +24 -0
  612. package/dist/ism/adapters/CosmWasmMultisigAdapter.d.ts.map +1 -0
  613. package/dist/ism/adapters/CosmWasmMultisigAdapter.js +74 -0
  614. package/dist/ism/adapters/CosmWasmMultisigAdapter.js.map +1 -0
  615. package/dist/ism/adapters/SealevelMultisigAdapter.d.ts +59 -0
  616. package/dist/ism/adapters/SealevelMultisigAdapter.d.ts.map +1 -0
  617. package/dist/ism/adapters/SealevelMultisigAdapter.js +133 -0
  618. package/dist/ism/adapters/SealevelMultisigAdapter.js.map +1 -0
  619. package/dist/ism/blacklist.d.ts +62 -0
  620. package/dist/ism/blacklist.d.ts.map +1 -0
  621. package/dist/ism/blacklist.js +98 -0
  622. package/dist/ism/blacklist.js.map +1 -0
  623. package/dist/ism/delayedFlow.d.ts +31 -0
  624. package/dist/ism/delayedFlow.d.ts.map +1 -0
  625. package/dist/ism/delayedFlow.js +33 -0
  626. package/dist/ism/delayedFlow.js.map +1 -0
  627. package/dist/ism/multisig.d.ts +6 -0
  628. package/dist/ism/multisig.d.ts.map +1 -0
  629. package/dist/ism/multisig.js +25 -0
  630. package/dist/ism/multisig.js.map +1 -0
  631. package/dist/ism/serialization.d.ts +74 -0
  632. package/dist/ism/serialization.d.ts.map +1 -0
  633. package/dist/ism/serialization.js +177 -0
  634. package/dist/ism/serialization.js.map +1 -0
  635. package/dist/ism/types.d.ts +384 -0
  636. package/dist/ism/types.d.ts.map +1 -0
  637. package/dist/ism/types.js +876 -0
  638. package/dist/ism/types.js.map +1 -0
  639. package/dist/ism/types.test.d.ts +2 -0
  640. package/dist/ism/types.test.d.ts.map +1 -0
  641. package/dist/ism/types.test.js +1269 -0
  642. package/dist/ism/types.test.js.map +1 -0
  643. package/dist/ism/utils.d.ts +44 -0
  644. package/dist/ism/utils.d.ts.map +1 -0
  645. package/dist/ism/utils.js +603 -0
  646. package/dist/ism/utils.js.map +1 -0
  647. package/dist/ism/utils.test.d.ts +2 -0
  648. package/dist/ism/utils.test.d.ts.map +1 -0
  649. package/dist/ism/utils.test.js +144 -0
  650. package/dist/ism/utils.test.js.map +1 -0
  651. package/dist/mailbox/serialization.d.ts +41 -0
  652. package/dist/mailbox/serialization.d.ts.map +1 -0
  653. package/dist/mailbox/serialization.js +104 -0
  654. package/dist/mailbox/serialization.js.map +1 -0
  655. package/dist/metadata/ChainMetadataManager.d.ts +233 -0
  656. package/dist/metadata/ChainMetadataManager.d.ts.map +1 -0
  657. package/dist/metadata/ChainMetadataManager.js +424 -0
  658. package/dist/metadata/ChainMetadataManager.js.map +1 -0
  659. package/dist/metadata/ChainMetadataManager.test.d.ts +2 -0
  660. package/dist/metadata/ChainMetadataManager.test.d.ts.map +1 -0
  661. package/dist/metadata/ChainMetadataManager.test.js +233 -0
  662. package/dist/metadata/ChainMetadataManager.test.js.map +1 -0
  663. package/dist/metadata/ChainMetadataResolver.d.ts +14 -0
  664. package/dist/metadata/ChainMetadataResolver.d.ts.map +1 -0
  665. package/dist/metadata/ChainMetadataResolver.js +57 -0
  666. package/dist/metadata/ChainMetadataResolver.js.map +1 -0
  667. package/dist/metadata/ChainMetadataResolver.test.d.ts +2 -0
  668. package/dist/metadata/ChainMetadataResolver.test.d.ts.map +1 -0
  669. package/dist/metadata/ChainMetadataResolver.test.js +87 -0
  670. package/dist/metadata/ChainMetadataResolver.test.js.map +1 -0
  671. package/dist/metadata/agentConfig.d.ts +1529 -0
  672. package/dist/metadata/agentConfig.d.ts.map +1 -0
  673. package/dist/metadata/agentConfig.js +750 -0
  674. package/dist/metadata/agentConfig.js.map +1 -0
  675. package/dist/metadata/agentConfig.test.d.ts +2 -0
  676. package/dist/metadata/agentConfig.test.d.ts.map +1 -0
  677. package/dist/metadata/agentConfig.test.js +457 -0
  678. package/dist/metadata/agentConfig.test.js.map +1 -0
  679. package/dist/metadata/blockExplorer.d.ts +11 -0
  680. package/dist/metadata/blockExplorer.d.ts.map +1 -0
  681. package/dist/metadata/blockExplorer.js +123 -0
  682. package/dist/metadata/blockExplorer.js.map +1 -0
  683. package/dist/metadata/blockExplorer.test.d.ts +2 -0
  684. package/dist/metadata/blockExplorer.test.d.ts.map +1 -0
  685. package/dist/metadata/blockExplorer.test.js +326 -0
  686. package/dist/metadata/blockExplorer.test.js.map +1 -0
  687. package/dist/metadata/chainIdUtils.d.ts +8 -0
  688. package/dist/metadata/chainIdUtils.d.ts.map +1 -0
  689. package/dist/metadata/chainIdUtils.js +33 -0
  690. package/dist/metadata/chainIdUtils.js.map +1 -0
  691. package/dist/metadata/chainIdUtils.test.d.ts +2 -0
  692. package/dist/metadata/chainIdUtils.test.d.ts.map +1 -0
  693. package/dist/metadata/chainIdUtils.test.js +45 -0
  694. package/dist/metadata/chainIdUtils.test.js.map +1 -0
  695. package/dist/metadata/chainMetadata.test.d.ts +2 -0
  696. package/dist/metadata/chainMetadata.test.d.ts.map +1 -0
  697. package/dist/metadata/chainMetadata.test.js +130 -0
  698. package/dist/metadata/chainMetadata.test.js.map +1 -0
  699. package/dist/metadata/chainMetadataConversion.d.ts +11 -0
  700. package/dist/metadata/chainMetadataConversion.d.ts.map +1 -0
  701. package/dist/metadata/chainMetadataConversion.js +119 -0
  702. package/dist/metadata/chainMetadataConversion.js.map +1 -0
  703. package/dist/metadata/chainMetadataTypes.d.ts +338 -0
  704. package/dist/metadata/chainMetadataTypes.d.ts.map +1 -0
  705. package/dist/metadata/chainMetadataTypes.js +373 -0
  706. package/dist/metadata/chainMetadataTypes.js.map +1 -0
  707. package/dist/metadata/customZodTypes.d.ts +44 -0
  708. package/dist/metadata/customZodTypes.d.ts.map +1 -0
  709. package/dist/metadata/customZodTypes.js +65 -0
  710. package/dist/metadata/customZodTypes.js.map +1 -0
  711. package/dist/metadata/deploymentArtifacts.d.ts +10 -0
  712. package/dist/metadata/deploymentArtifacts.d.ts.map +1 -0
  713. package/dist/metadata/deploymentArtifacts.js +10 -0
  714. package/dist/metadata/deploymentArtifacts.js.map +1 -0
  715. package/dist/metadata/forwardCompatibleEnum.test.d.ts +2 -0
  716. package/dist/metadata/forwardCompatibleEnum.test.d.ts.map +1 -0
  717. package/dist/metadata/forwardCompatibleEnum.test.js +299 -0
  718. package/dist/metadata/forwardCompatibleEnum.test.js.map +1 -0
  719. package/dist/metadata/matchingList.d.ts +25 -0
  720. package/dist/metadata/matchingList.d.ts.map +1 -0
  721. package/dist/metadata/matchingList.js +22 -0
  722. package/dist/metadata/matchingList.js.map +1 -0
  723. package/dist/metadata/warpRouteConfig.d.ts +83 -0
  724. package/dist/metadata/warpRouteConfig.d.ts.map +1 -0
  725. package/dist/metadata/warpRouteConfig.js +22 -0
  726. package/dist/metadata/warpRouteConfig.js.map +1 -0
  727. package/dist/middleware/account/InterchainAccount.d.ts +47 -0
  728. package/dist/middleware/account/InterchainAccount.d.ts.map +1 -0
  729. package/dist/middleware/account/InterchainAccount.js +324 -0
  730. package/dist/middleware/account/InterchainAccount.js.map +1 -0
  731. package/dist/middleware/account/InterchainAccount.test.d.ts +2 -0
  732. package/dist/middleware/account/InterchainAccount.test.d.ts.map +1 -0
  733. package/dist/middleware/account/InterchainAccount.test.js +733 -0
  734. package/dist/middleware/account/InterchainAccount.test.js.map +1 -0
  735. package/dist/middleware/account/InterchainAccountChecker.d.ts +7 -0
  736. package/dist/middleware/account/InterchainAccountChecker.d.ts.map +1 -0
  737. package/dist/middleware/account/InterchainAccountChecker.js +4 -0
  738. package/dist/middleware/account/InterchainAccountChecker.js.map +1 -0
  739. package/dist/middleware/account/InterchainAccountDeployer.d.ts +14 -0
  740. package/dist/middleware/account/InterchainAccountDeployer.d.ts.map +1 -0
  741. package/dist/middleware/account/InterchainAccountDeployer.js +68 -0
  742. package/dist/middleware/account/InterchainAccountDeployer.js.map +1 -0
  743. package/dist/middleware/account/accounts.hardhat-test.d.ts +2 -0
  744. package/dist/middleware/account/accounts.hardhat-test.d.ts.map +1 -0
  745. package/dist/middleware/account/accounts.hardhat-test.js +240 -0
  746. package/dist/middleware/account/accounts.hardhat-test.js.map +1 -0
  747. package/dist/middleware/account/contracts.d.ts +6 -0
  748. package/dist/middleware/account/contracts.d.ts.map +1 -0
  749. package/dist/middleware/account/contracts.js +5 -0
  750. package/dist/middleware/account/contracts.js.map +1 -0
  751. package/dist/middleware/account/icaCalls.d.ts +78 -0
  752. package/dist/middleware/account/icaCalls.d.ts.map +1 -0
  753. package/dist/middleware/account/icaCalls.js +75 -0
  754. package/dist/middleware/account/icaCalls.js.map +1 -0
  755. package/dist/middleware/account/types.d.ts +40 -0
  756. package/dist/middleware/account/types.d.ts.map +1 -0
  757. package/dist/middleware/account/types.js +25 -0
  758. package/dist/middleware/account/types.js.map +1 -0
  759. package/dist/middleware/query/InterchainQuery.d.ts +10 -0
  760. package/dist/middleware/query/InterchainQuery.d.ts.map +1 -0
  761. package/dist/middleware/query/InterchainQuery.js +13 -0
  762. package/dist/middleware/query/InterchainQuery.js.map +1 -0
  763. package/dist/middleware/query/InterchainQueryChecker.d.ts +7 -0
  764. package/dist/middleware/query/InterchainQueryChecker.d.ts.map +1 -0
  765. package/dist/middleware/query/InterchainQueryChecker.js +4 -0
  766. package/dist/middleware/query/InterchainQueryChecker.js.map +1 -0
  767. package/dist/middleware/query/InterchainQueryDeployer.d.ts +17 -0
  768. package/dist/middleware/query/InterchainQueryDeployer.d.ts.map +1 -0
  769. package/dist/middleware/query/InterchainQueryDeployer.js +35 -0
  770. package/dist/middleware/query/InterchainQueryDeployer.js.map +1 -0
  771. package/dist/middleware/query/contracts.d.ts +8 -0
  772. package/dist/middleware/query/contracts.d.ts.map +1 -0
  773. package/dist/middleware/query/contracts.js +7 -0
  774. package/dist/middleware/query/contracts.js.map +1 -0
  775. package/dist/middleware/query/queries.hardhat-test.d.ts +2 -0
  776. package/dist/middleware/query/queries.hardhat-test.d.ts.map +1 -0
  777. package/dist/middleware/query/queries.hardhat-test.js +70 -0
  778. package/dist/middleware/query/queries.hardhat-test.js.map +1 -0
  779. package/dist/predicate/PredicateApiClient.d.ts +35 -0
  780. package/dist/predicate/PredicateApiClient.d.ts.map +1 -0
  781. package/dist/predicate/PredicateApiClient.js +66 -0
  782. package/dist/predicate/PredicateApiClient.js.map +1 -0
  783. package/dist/predicate/PredicateApiClient.test.d.ts +2 -0
  784. package/dist/predicate/PredicateApiClient.test.d.ts.map +1 -0
  785. package/dist/predicate/PredicateApiClient.test.js +108 -0
  786. package/dist/predicate/PredicateApiClient.test.js.map +1 -0
  787. package/dist/predicate/PredicateDeployer.d.ts +56 -0
  788. package/dist/predicate/PredicateDeployer.d.ts.map +1 -0
  789. package/dist/predicate/PredicateDeployer.hardhat-test.d.ts +2 -0
  790. package/dist/predicate/PredicateDeployer.hardhat-test.d.ts.map +1 -0
  791. package/dist/predicate/PredicateDeployer.hardhat-test.js +209 -0
  792. package/dist/predicate/PredicateDeployer.hardhat-test.js.map +1 -0
  793. package/dist/predicate/PredicateDeployer.js +218 -0
  794. package/dist/predicate/PredicateDeployer.js.map +1 -0
  795. package/dist/providers/MinimalProviderRegistry.d.ts +41 -0
  796. package/dist/providers/MinimalProviderRegistry.d.ts.map +1 -0
  797. package/dist/providers/MinimalProviderRegistry.js +122 -0
  798. package/dist/providers/MinimalProviderRegistry.js.map +1 -0
  799. package/dist/providers/MultiProtocolProvider.d.ts +23 -0
  800. package/dist/providers/MultiProtocolProvider.d.ts.map +1 -0
  801. package/dist/providers/MultiProtocolProvider.js +64 -0
  802. package/dist/providers/MultiProtocolProvider.js.map +1 -0
  803. package/dist/providers/MultiProtocolProvider.test.d.ts +2 -0
  804. package/dist/providers/MultiProtocolProvider.test.d.ts.map +1 -0
  805. package/dist/providers/MultiProtocolProvider.test.js +126 -0
  806. package/dist/providers/MultiProtocolProvider.test.js.map +1 -0
  807. package/dist/providers/MultiProvider.d.ts +196 -0
  808. package/dist/providers/MultiProvider.d.ts.map +1 -0
  809. package/dist/providers/MultiProvider.js +553 -0
  810. package/dist/providers/MultiProvider.js.map +1 -0
  811. package/dist/providers/MultiProvider.test.d.ts +2 -0
  812. package/dist/providers/MultiProvider.test.d.ts.map +1 -0
  813. package/dist/providers/MultiProvider.test.js +357 -0
  814. package/dist/providers/MultiProvider.test.js.map +1 -0
  815. package/dist/providers/MultiProviderAdapter.d.ts +61 -0
  816. package/dist/providers/MultiProviderAdapter.d.ts.map +1 -0
  817. package/dist/providers/MultiProviderAdapter.js +164 -0
  818. package/dist/providers/MultiProviderAdapter.js.map +1 -0
  819. package/dist/providers/ProviderType.d.ts +319 -0
  820. package/dist/providers/ProviderType.d.ts.map +1 -0
  821. package/dist/providers/ProviderType.js +27 -0
  822. package/dist/providers/ProviderType.js.map +1 -0
  823. package/dist/providers/SeismicSigner.d.ts +78 -0
  824. package/dist/providers/SeismicSigner.d.ts.map +1 -0
  825. package/dist/providers/SeismicSigner.js +265 -0
  826. package/dist/providers/SeismicSigner.js.map +1 -0
  827. package/dist/providers/SeismicSigner.test.d.ts +2 -0
  828. package/dist/providers/SeismicSigner.test.d.ts.map +1 -0
  829. package/dist/providers/SeismicSigner.test.js +561 -0
  830. package/dist/providers/SeismicSigner.test.js.map +1 -0
  831. package/dist/providers/SmartProvider/HyperlaneEtherscanProvider.d.ts +25 -0
  832. package/dist/providers/SmartProvider/HyperlaneEtherscanProvider.d.ts.map +1 -0
  833. package/dist/providers/SmartProvider/HyperlaneEtherscanProvider.js +139 -0
  834. package/dist/providers/SmartProvider/HyperlaneEtherscanProvider.js.map +1 -0
  835. package/dist/providers/SmartProvider/HyperlaneJsonRpcProvider.d.ts +61 -0
  836. package/dist/providers/SmartProvider/HyperlaneJsonRpcProvider.d.ts.map +1 -0
  837. package/dist/providers/SmartProvider/HyperlaneJsonRpcProvider.js +248 -0
  838. package/dist/providers/SmartProvider/HyperlaneJsonRpcProvider.js.map +1 -0
  839. package/dist/providers/SmartProvider/HyperlaneJsonRpcProvider.test.d.ts +2 -0
  840. package/dist/providers/SmartProvider/HyperlaneJsonRpcProvider.test.d.ts.map +1 -0
  841. package/dist/providers/SmartProvider/HyperlaneJsonRpcProvider.test.js +516 -0
  842. package/dist/providers/SmartProvider/HyperlaneJsonRpcProvider.test.js.map +1 -0
  843. package/dist/providers/SmartProvider/ProviderMethods.d.ts +24 -0
  844. package/dist/providers/SmartProvider/ProviderMethods.d.ts.map +1 -0
  845. package/dist/providers/SmartProvider/ProviderMethods.js +32 -0
  846. package/dist/providers/SmartProvider/ProviderMethods.js.map +1 -0
  847. package/dist/providers/SmartProvider/SmartProvider.d.ts +58 -0
  848. package/dist/providers/SmartProvider/SmartProvider.d.ts.map +1 -0
  849. package/dist/providers/SmartProvider/SmartProvider.emptyResponse.test.d.ts +2 -0
  850. package/dist/providers/SmartProvider/SmartProvider.emptyResponse.test.d.ts.map +1 -0
  851. package/dist/providers/SmartProvider/SmartProvider.emptyResponse.test.js +164 -0
  852. package/dist/providers/SmartProvider/SmartProvider.emptyResponse.test.js.map +1 -0
  853. package/dist/providers/SmartProvider/SmartProvider.foundry-test.d.ts +2 -0
  854. package/dist/providers/SmartProvider/SmartProvider.foundry-test.d.ts.map +1 -0
  855. package/dist/providers/SmartProvider/SmartProvider.foundry-test.js +173 -0
  856. package/dist/providers/SmartProvider/SmartProvider.foundry-test.js.map +1 -0
  857. package/dist/providers/SmartProvider/SmartProvider.js +560 -0
  858. package/dist/providers/SmartProvider/SmartProvider.js.map +1 -0
  859. package/dist/providers/SmartProvider/SmartProvider.rawRead.test.d.ts +2 -0
  860. package/dist/providers/SmartProvider/SmartProvider.rawRead.test.d.ts.map +1 -0
  861. package/dist/providers/SmartProvider/SmartProvider.rawRead.test.js +90 -0
  862. package/dist/providers/SmartProvider/SmartProvider.rawRead.test.js.map +1 -0
  863. package/dist/providers/SmartProvider/SmartProvider.test.d.ts +2 -0
  864. package/dist/providers/SmartProvider/SmartProvider.test.d.ts.map +1 -0
  865. package/dist/providers/SmartProvider/SmartProvider.test.js +1119 -0
  866. package/dist/providers/SmartProvider/SmartProvider.test.js.map +1 -0
  867. package/dist/providers/SmartProvider/jsonRpcError.d.ts +13 -0
  868. package/dist/providers/SmartProvider/jsonRpcError.d.ts.map +1 -0
  869. package/dist/providers/SmartProvider/jsonRpcError.js +86 -0
  870. package/dist/providers/SmartProvider/jsonRpcError.js.map +1 -0
  871. package/dist/providers/SmartProvider/jsonRpcError.test.d.ts +2 -0
  872. package/dist/providers/SmartProvider/jsonRpcError.test.d.ts.map +1 -0
  873. package/dist/providers/SmartProvider/jsonRpcError.test.js +46 -0
  874. package/dist/providers/SmartProvider/jsonRpcError.test.js.map +1 -0
  875. package/dist/providers/SmartProvider/logFilters.d.ts +10 -0
  876. package/dist/providers/SmartProvider/logFilters.d.ts.map +1 -0
  877. package/dist/providers/SmartProvider/logFilters.js +31 -0
  878. package/dist/providers/SmartProvider/logFilters.js.map +1 -0
  879. package/dist/providers/SmartProvider/types.d.ts +50 -0
  880. package/dist/providers/SmartProvider/types.d.ts.map +1 -0
  881. package/dist/providers/SmartProvider/types.js +7 -0
  882. package/dist/providers/SmartProvider/types.js.map +1 -0
  883. package/dist/providers/builders/aleo.browser.d.ts +13 -0
  884. package/dist/providers/builders/aleo.browser.d.ts.map +1 -0
  885. package/dist/providers/builders/aleo.browser.js +54 -0
  886. package/dist/providers/builders/aleo.browser.js.map +1 -0
  887. package/dist/providers/builders/aleo.d.ts +4 -0
  888. package/dist/providers/builders/aleo.d.ts.map +1 -0
  889. package/dist/providers/builders/aleo.js +7 -0
  890. package/dist/providers/builders/aleo.js.map +1 -0
  891. package/dist/providers/builders/aleo.test.d.ts +2 -0
  892. package/dist/providers/builders/aleo.test.d.ts.map +1 -0
  893. package/dist/providers/builders/aleo.test.js +99 -0
  894. package/dist/providers/builders/aleo.test.js.map +1 -0
  895. package/dist/providers/builders/cosmos.d.ts +6 -0
  896. package/dist/providers/builders/cosmos.d.ts.map +1 -0
  897. package/dist/providers/builders/cosmos.js +30 -0
  898. package/dist/providers/builders/cosmos.js.map +1 -0
  899. package/dist/providers/builders/ethersV5.d.ts +7 -0
  900. package/dist/providers/builders/ethersV5.d.ts.map +1 -0
  901. package/dist/providers/builders/ethersV5.js +38 -0
  902. package/dist/providers/builders/ethersV5.js.map +1 -0
  903. package/dist/providers/builders/ethersV5.test.d.ts +2 -0
  904. package/dist/providers/builders/ethersV5.test.d.ts.map +1 -0
  905. package/dist/providers/builders/ethersV5.test.js +77 -0
  906. package/dist/providers/builders/ethersV5.test.js.map +1 -0
  907. package/dist/providers/builders/radix.browser.d.ts +19 -0
  908. package/dist/providers/builders/radix.browser.d.ts.map +1 -0
  909. package/dist/providers/builders/radix.browser.js +47 -0
  910. package/dist/providers/builders/radix.browser.js.map +1 -0
  911. package/dist/providers/builders/radix.d.ts +4 -0
  912. package/dist/providers/builders/radix.d.ts.map +1 -0
  913. package/dist/providers/builders/radix.gateway.test.d.ts +2 -0
  914. package/dist/providers/builders/radix.gateway.test.d.ts.map +1 -0
  915. package/dist/providers/builders/radix.gateway.test.js +39 -0
  916. package/dist/providers/builders/radix.gateway.test.js.map +1 -0
  917. package/dist/providers/builders/radix.js +17 -0
  918. package/dist/providers/builders/radix.js.map +1 -0
  919. package/dist/providers/builders/radix.test.d.ts +2 -0
  920. package/dist/providers/builders/radix.test.d.ts.map +1 -0
  921. package/dist/providers/builders/radix.test.js +82 -0
  922. package/dist/providers/builders/radix.test.js.map +1 -0
  923. package/dist/providers/builders/solana.d.ts +4 -0
  924. package/dist/providers/builders/solana.d.ts.map +1 -0
  925. package/dist/providers/builders/solana.js +12 -0
  926. package/dist/providers/builders/solana.js.map +1 -0
  927. package/dist/providers/builders/starknet.d.ts +4 -0
  928. package/dist/providers/builders/starknet.d.ts.map +1 -0
  929. package/dist/providers/builders/starknet.js +20 -0
  930. package/dist/providers/builders/starknet.js.map +1 -0
  931. package/dist/providers/builders/tron.d.ts +10 -0
  932. package/dist/providers/builders/tron.d.ts.map +1 -0
  933. package/dist/providers/builders/tron.js +21 -0
  934. package/dist/providers/builders/tron.js.map +1 -0
  935. package/dist/providers/builders/types.d.ts +6 -0
  936. package/dist/providers/builders/types.d.ts.map +1 -0
  937. package/dist/providers/builders/types.js +2 -0
  938. package/dist/providers/builders/types.js.map +1 -0
  939. package/dist/providers/builders/viem.d.ts +4 -0
  940. package/dist/providers/builders/viem.d.ts.map +1 -0
  941. package/dist/providers/builders/viem.js +25 -0
  942. package/dist/providers/builders/viem.js.map +1 -0
  943. package/dist/providers/builders/zksync.d.ts +7 -0
  944. package/dist/providers/builders/zksync.d.ts.map +1 -0
  945. package/dist/providers/builders/zksync.js +14 -0
  946. package/dist/providers/builders/zksync.js.map +1 -0
  947. package/dist/providers/defaultProviderBuilderMaps.d.ts +7 -0
  948. package/dist/providers/defaultProviderBuilderMaps.d.ts.map +1 -0
  949. package/dist/providers/defaultProviderBuilderMaps.js +36 -0
  950. package/dist/providers/defaultProviderBuilderMaps.js.map +1 -0
  951. package/dist/providers/explorerHealthTest.d.ts +4 -0
  952. package/dist/providers/explorerHealthTest.d.ts.map +1 -0
  953. package/dist/providers/explorerHealthTest.js +53 -0
  954. package/dist/providers/explorerHealthTest.js.map +1 -0
  955. package/dist/providers/providerBuilders.d.ts +12 -0
  956. package/dist/providers/providerBuilders.d.ts.map +1 -0
  957. package/dist/providers/providerBuilders.js +11 -0
  958. package/dist/providers/providerBuilders.js.map +1 -0
  959. package/dist/providers/rpcHealthTest.d.ts +11 -0
  960. package/dist/providers/rpcHealthTest.d.ts.map +1 -0
  961. package/dist/providers/rpcHealthTest.js +104 -0
  962. package/dist/providers/rpcHealthTest.js.map +1 -0
  963. package/dist/providers/runtime/evm.d.ts +3 -0
  964. package/dist/providers/runtime/evm.d.ts.map +1 -0
  965. package/dist/providers/runtime/evm.js +11 -0
  966. package/dist/providers/runtime/evm.js.map +1 -0
  967. package/dist/providers/runtime/evmLike.d.ts +3 -0
  968. package/dist/providers/runtime/evmLike.d.ts.map +1 -0
  969. package/dist/providers/runtime/evmLike.js +7 -0
  970. package/dist/providers/runtime/evmLike.js.map +1 -0
  971. package/dist/providers/runtime/evmLike.test.d.ts +2 -0
  972. package/dist/providers/runtime/evmLike.test.d.ts.map +1 -0
  973. package/dist/providers/runtime/evmLike.test.js +22 -0
  974. package/dist/providers/runtime/evmLike.test.js.map +1 -0
  975. package/dist/providers/runtime/tron.d.ts +3 -0
  976. package/dist/providers/runtime/tron.d.ts.map +1 -0
  977. package/dist/providers/runtime/tron.js +6 -0
  978. package/dist/providers/runtime/tron.js.map +1 -0
  979. package/dist/providers/transactionFeeEstimators.d.ts +79 -0
  980. package/dist/providers/transactionFeeEstimators.d.ts.map +1 -0
  981. package/dist/providers/transactionFeeEstimators.js +317 -0
  982. package/dist/providers/transactionFeeEstimators.js.map +1 -0
  983. package/dist/providers/transactionFeeEstimators.test.d.ts +2 -0
  984. package/dist/providers/transactionFeeEstimators.test.d.ts.map +1 -0
  985. package/dist/providers/transactionFeeEstimators.test.js +394 -0
  986. package/dist/providers/transactionFeeEstimators.test.js.map +1 -0
  987. package/dist/providers/transactions/submitter/IcaTxSubmitter.d.ts +25 -0
  988. package/dist/providers/transactions/submitter/IcaTxSubmitter.d.ts.map +1 -0
  989. package/dist/providers/transactions/submitter/IcaTxSubmitter.js +113 -0
  990. package/dist/providers/transactions/submitter/IcaTxSubmitter.js.map +1 -0
  991. package/dist/providers/transactions/submitter/IcaTxSubmitter.test.d.ts +2 -0
  992. package/dist/providers/transactions/submitter/IcaTxSubmitter.test.d.ts.map +1 -0
  993. package/dist/providers/transactions/submitter/IcaTxSubmitter.test.js +122 -0
  994. package/dist/providers/transactions/submitter/IcaTxSubmitter.test.js.map +1 -0
  995. package/dist/providers/transactions/submitter/TxSubmitterInterface.d.ts +19 -0
  996. package/dist/providers/transactions/submitter/TxSubmitterInterface.d.ts.map +1 -0
  997. package/dist/providers/transactions/submitter/TxSubmitterInterface.js +2 -0
  998. package/dist/providers/transactions/submitter/TxSubmitterInterface.js.map +1 -0
  999. package/dist/providers/transactions/submitter/TxSubmitterTypes.d.ts +9 -0
  1000. package/dist/providers/transactions/submitter/TxSubmitterTypes.d.ts.map +1 -0
  1001. package/dist/providers/transactions/submitter/TxSubmitterTypes.js +10 -0
  1002. package/dist/providers/transactions/submitter/TxSubmitterTypes.js.map +1 -0
  1003. package/dist/providers/transactions/submitter/builder/TxSubmitterBuilder.d.ts +39 -0
  1004. package/dist/providers/transactions/submitter/builder/TxSubmitterBuilder.d.ts.map +1 -0
  1005. package/dist/providers/transactions/submitter/builder/TxSubmitterBuilder.js +48 -0
  1006. package/dist/providers/transactions/submitter/builder/TxSubmitterBuilder.js.map +1 -0
  1007. package/dist/providers/transactions/submitter/builder/types.d.ts +69 -0
  1008. package/dist/providers/transactions/submitter/builder/types.d.ts.map +1 -0
  1009. package/dist/providers/transactions/submitter/builder/types.js +94 -0
  1010. package/dist/providers/transactions/submitter/builder/types.js.map +1 -0
  1011. package/dist/providers/transactions/submitter/builder/types.test.d.ts +2 -0
  1012. package/dist/providers/transactions/submitter/builder/types.test.d.ts.map +1 -0
  1013. package/dist/providers/transactions/submitter/builder/types.test.js +314 -0
  1014. package/dist/providers/transactions/submitter/builder/types.test.js.map +1 -0
  1015. package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxBuilder.d.ts +33 -0
  1016. package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxBuilder.d.ts.map +1 -0
  1017. package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxBuilder.js +43 -0
  1018. package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxBuilder.js.map +1 -0
  1019. package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxSubmitter.d.ts +31 -0
  1020. package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxSubmitter.d.ts.map +1 -0
  1021. package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxSubmitter.js +90 -0
  1022. package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxSubmitter.js.map +1 -0
  1023. package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxSubmitter.test.d.ts +2 -0
  1024. package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxSubmitter.test.d.ts.map +1 -0
  1025. package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxSubmitter.test.js +145 -0
  1026. package/dist/providers/transactions/submitter/ethersV5/EV5GnosisSafeTxSubmitter.test.js.map +1 -0
  1027. package/dist/providers/transactions/submitter/ethersV5/EV5ImpersonatedAccountTxSubmitter.d.ts +15 -0
  1028. package/dist/providers/transactions/submitter/ethersV5/EV5ImpersonatedAccountTxSubmitter.d.ts.map +1 -0
  1029. package/dist/providers/transactions/submitter/ethersV5/EV5ImpersonatedAccountTxSubmitter.js +26 -0
  1030. package/dist/providers/transactions/submitter/ethersV5/EV5ImpersonatedAccountTxSubmitter.js.map +1 -0
  1031. package/dist/providers/transactions/submitter/ethersV5/EV5JsonRpcTxSubmitter.d.ts +29 -0
  1032. package/dist/providers/transactions/submitter/ethersV5/EV5JsonRpcTxSubmitter.d.ts.map +1 -0
  1033. package/dist/providers/transactions/submitter/ethersV5/EV5JsonRpcTxSubmitter.js +68 -0
  1034. package/dist/providers/transactions/submitter/ethersV5/EV5JsonRpcTxSubmitter.js.map +1 -0
  1035. package/dist/providers/transactions/submitter/ethersV5/EV5JsonRpcTxSubmitter.test.d.ts +2 -0
  1036. package/dist/providers/transactions/submitter/ethersV5/EV5JsonRpcTxSubmitter.test.d.ts.map +1 -0
  1037. package/dist/providers/transactions/submitter/ethersV5/EV5JsonRpcTxSubmitter.test.js +125 -0
  1038. package/dist/providers/transactions/submitter/ethersV5/EV5JsonRpcTxSubmitter.test.js.map +1 -0
  1039. package/dist/providers/transactions/submitter/ethersV5/EV5TimelockSubmitter.d.ts +22 -0
  1040. package/dist/providers/transactions/submitter/ethersV5/EV5TimelockSubmitter.d.ts.map +1 -0
  1041. package/dist/providers/transactions/submitter/ethersV5/EV5TimelockSubmitter.js +85 -0
  1042. package/dist/providers/transactions/submitter/ethersV5/EV5TimelockSubmitter.js.map +1 -0
  1043. package/dist/providers/transactions/submitter/ethersV5/EV5TxSubmitterInterface.d.ts +10 -0
  1044. package/dist/providers/transactions/submitter/ethersV5/EV5TxSubmitterInterface.d.ts.map +1 -0
  1045. package/dist/providers/transactions/submitter/ethersV5/EV5TxSubmitterInterface.js +2 -0
  1046. package/dist/providers/transactions/submitter/ethersV5/EV5TxSubmitterInterface.js.map +1 -0
  1047. package/dist/providers/transactions/submitter/ethersV5/types.d.ts +104 -0
  1048. package/dist/providers/transactions/submitter/ethersV5/types.d.ts.map +1 -0
  1049. package/dist/providers/transactions/submitter/ethersV5/types.js +72 -0
  1050. package/dist/providers/transactions/submitter/ethersV5/types.js.map +1 -0
  1051. package/dist/providers/transactions/submitter/ethersV5/types.test.d.ts +2 -0
  1052. package/dist/providers/transactions/submitter/ethersV5/types.test.d.ts.map +1 -0
  1053. package/dist/providers/transactions/submitter/ethersV5/types.test.js +57 -0
  1054. package/dist/providers/transactions/submitter/ethersV5/types.test.js.map +1 -0
  1055. package/dist/providers/transactions/submitter/submitterBuilderGetter.d.ts +31 -0
  1056. package/dist/providers/transactions/submitter/submitterBuilderGetter.d.ts.map +1 -0
  1057. package/dist/providers/transactions/submitter/submitterBuilderGetter.js +97 -0
  1058. package/dist/providers/transactions/submitter/submitterBuilderGetter.js.map +1 -0
  1059. package/dist/providers/transactions/submitter/submitterBuilderGetter.test.d.ts +2 -0
  1060. package/dist/providers/transactions/submitter/submitterBuilderGetter.test.d.ts.map +1 -0
  1061. package/dist/providers/transactions/submitter/submitterBuilderGetter.test.js +38 -0
  1062. package/dist/providers/transactions/submitter/submitterBuilderGetter.test.js.map +1 -0
  1063. package/dist/providers/transactions/submitter/types.d.ts +37 -0
  1064. package/dist/providers/transactions/submitter/types.d.ts.map +1 -0
  1065. package/dist/providers/transactions/submitter/types.js +3 -0
  1066. package/dist/providers/transactions/submitter/types.js.map +1 -0
  1067. package/dist/providers/transactions/types.d.ts +9 -0
  1068. package/dist/providers/transactions/types.d.ts.map +1 -0
  1069. package/dist/providers/transactions/types.js +9 -0
  1070. package/dist/providers/transactions/types.js.map +1 -0
  1071. package/dist/providers/transactions/types.test.d.ts +2 -0
  1072. package/dist/providers/transactions/types.test.d.ts.map +1 -0
  1073. package/dist/providers/transactions/types.test.js +37 -0
  1074. package/dist/providers/transactions/types.test.js.map +1 -0
  1075. package/dist/quote/Eip712Signable.d.ts +25 -0
  1076. package/dist/quote/Eip712Signable.d.ts.map +1 -0
  1077. package/dist/quote/Eip712Signable.js +27 -0
  1078. package/dist/quote/Eip712Signable.js.map +1 -0
  1079. package/dist/quote/EvmPrivateKeyQuoteSigner.d.ts +15 -0
  1080. package/dist/quote/EvmPrivateKeyQuoteSigner.d.ts.map +1 -0
  1081. package/dist/quote/EvmPrivateKeyQuoteSigner.js +24 -0
  1082. package/dist/quote/EvmPrivateKeyQuoteSigner.js.map +1 -0
  1083. package/dist/quote/EvmPrivateKeyQuoteSigner.test.d.ts +2 -0
  1084. package/dist/quote/EvmPrivateKeyQuoteSigner.test.d.ts.map +1 -0
  1085. package/dist/quote/EvmPrivateKeyQuoteSigner.test.js +23 -0
  1086. package/dist/quote/EvmPrivateKeyQuoteSigner.test.js.map +1 -0
  1087. package/dist/quote/EvmQuoteArtifactManager.d.ts +20 -0
  1088. package/dist/quote/EvmQuoteArtifactManager.d.ts.map +1 -0
  1089. package/dist/quote/EvmQuoteArtifactManager.js +32 -0
  1090. package/dist/quote/EvmQuoteArtifactManager.js.map +1 -0
  1091. package/dist/quote/EvmQuoteReader.d.ts +24 -0
  1092. package/dist/quote/EvmQuoteReader.d.ts.map +1 -0
  1093. package/dist/quote/EvmQuoteReader.hardhat-test.d.ts +2 -0
  1094. package/dist/quote/EvmQuoteReader.hardhat-test.d.ts.map +1 -0
  1095. package/dist/quote/EvmQuoteReader.hardhat-test.js +157 -0
  1096. package/dist/quote/EvmQuoteReader.hardhat-test.js.map +1 -0
  1097. package/dist/quote/EvmQuoteReader.js +91 -0
  1098. package/dist/quote/EvmQuoteReader.js.map +1 -0
  1099. package/dist/quote/EvmQuoteWriter.d.ts +16 -0
  1100. package/dist/quote/EvmQuoteWriter.d.ts.map +1 -0
  1101. package/dist/quote/EvmQuoteWriter.hardhat-test.d.ts +2 -0
  1102. package/dist/quote/EvmQuoteWriter.hardhat-test.d.ts.map +1 -0
  1103. package/dist/quote/EvmQuoteWriter.hardhat-test.js +238 -0
  1104. package/dist/quote/EvmQuoteWriter.hardhat-test.js.map +1 -0
  1105. package/dist/quote/EvmQuoteWriter.js +55 -0
  1106. package/dist/quote/EvmQuoteWriter.js.map +1 -0
  1107. package/dist/quote/WarpSignedQuoteEip712.d.ts +22 -0
  1108. package/dist/quote/WarpSignedQuoteEip712.d.ts.map +1 -0
  1109. package/dist/quote/WarpSignedQuoteEip712.js +48 -0
  1110. package/dist/quote/WarpSignedQuoteEip712.js.map +1 -0
  1111. package/dist/quoted-calls/EvmQuotedTransferProvider.d.ts +63 -0
  1112. package/dist/quoted-calls/EvmQuotedTransferProvider.d.ts.map +1 -0
  1113. package/dist/quoted-calls/EvmQuotedTransferProvider.js +207 -0
  1114. package/dist/quoted-calls/EvmQuotedTransferProvider.js.map +1 -0
  1115. package/dist/quoted-calls/QuotedTransferProvider.d.ts +50 -0
  1116. package/dist/quoted-calls/QuotedTransferProvider.d.ts.map +1 -0
  1117. package/dist/quoted-calls/QuotedTransferProvider.js +2 -0
  1118. package/dist/quoted-calls/QuotedTransferProvider.js.map +1 -0
  1119. package/dist/quoted-calls/SealevelQuotedTransferProvider.d.ts +89 -0
  1120. package/dist/quoted-calls/SealevelQuotedTransferProvider.d.ts.map +1 -0
  1121. package/dist/quoted-calls/SealevelQuotedTransferProvider.js +472 -0
  1122. package/dist/quoted-calls/SealevelQuotedTransferProvider.js.map +1 -0
  1123. package/dist/quoted-calls/SealevelQuotedTransferProvider.test.d.ts +2 -0
  1124. package/dist/quoted-calls/SealevelQuotedTransferProvider.test.d.ts.map +1 -0
  1125. package/dist/quoted-calls/SealevelQuotedTransferProvider.test.js +502 -0
  1126. package/dist/quoted-calls/SealevelQuotedTransferProvider.test.js.map +1 -0
  1127. package/dist/quoted-calls/assertHex.d.ts +6 -0
  1128. package/dist/quoted-calls/assertHex.d.ts.map +1 -0
  1129. package/dist/quoted-calls/assertHex.js +13 -0
  1130. package/dist/quoted-calls/assertHex.js.map +1 -0
  1131. package/dist/quoted-calls/builder.d.ts +52 -0
  1132. package/dist/quoted-calls/builder.d.ts.map +1 -0
  1133. package/dist/quoted-calls/builder.js +161 -0
  1134. package/dist/quoted-calls/builder.js.map +1 -0
  1135. package/dist/quoted-calls/builder.test.d.ts +2 -0
  1136. package/dist/quoted-calls/builder.test.d.ts.map +1 -0
  1137. package/dist/quoted-calls/builder.test.js +193 -0
  1138. package/dist/quoted-calls/builder.test.js.map +1 -0
  1139. package/dist/quoted-calls/client.d.ts +69 -0
  1140. package/dist/quoted-calls/client.d.ts.map +1 -0
  1141. package/dist/quoted-calls/client.js +205 -0
  1142. package/dist/quoted-calls/client.js.map +1 -0
  1143. package/dist/quoted-calls/client.v2.test.d.ts +2 -0
  1144. package/dist/quoted-calls/client.v2.test.d.ts.map +1 -0
  1145. package/dist/quoted-calls/client.v2.test.js +346 -0
  1146. package/dist/quoted-calls/client.v2.test.js.map +1 -0
  1147. package/dist/quoted-calls/codec.d.ts +94 -0
  1148. package/dist/quoted-calls/codec.d.ts.map +1 -0
  1149. package/dist/quoted-calls/codec.js +223 -0
  1150. package/dist/quoted-calls/codec.js.map +1 -0
  1151. package/dist/quoted-calls/codec.test.d.ts +2 -0
  1152. package/dist/quoted-calls/codec.test.d.ts.map +1 -0
  1153. package/dist/quoted-calls/codec.test.js +307 -0
  1154. package/dist/quoted-calls/codec.test.js.map +1 -0
  1155. package/dist/quoted-calls/composeSealevelTx.d.ts +26 -0
  1156. package/dist/quoted-calls/composeSealevelTx.d.ts.map +1 -0
  1157. package/dist/quoted-calls/composeSealevelTx.js +45 -0
  1158. package/dist/quoted-calls/composeSealevelTx.js.map +1 -0
  1159. package/dist/quoted-calls/svmDecoder.d.ts +51 -0
  1160. package/dist/quoted-calls/svmDecoder.d.ts.map +1 -0
  1161. package/dist/quoted-calls/svmDecoder.js +26 -0
  1162. package/dist/quoted-calls/svmDecoder.js.map +1 -0
  1163. package/dist/quoted-calls/svmDecoder.test.d.ts +2 -0
  1164. package/dist/quoted-calls/svmDecoder.test.d.ts.map +1 -0
  1165. package/dist/quoted-calls/svmDecoder.test.js +56 -0
  1166. package/dist/quoted-calls/svmDecoder.test.js.map +1 -0
  1167. package/dist/quoted-calls/types.d.ts +176 -0
  1168. package/dist/quoted-calls/types.d.ts.map +1 -0
  1169. package/dist/quoted-calls/types.js +56 -0
  1170. package/dist/quoted-calls/types.js.map +1 -0
  1171. package/dist/router/EvmRouterReader.d.ts +18 -0
  1172. package/dist/router/EvmRouterReader.d.ts.map +1 -0
  1173. package/dist/router/EvmRouterReader.js +60 -0
  1174. package/dist/router/EvmRouterReader.js.map +1 -0
  1175. package/dist/router/GasRouterDeployer.d.ts +11 -0
  1176. package/dist/router/GasRouterDeployer.d.ts.map +1 -0
  1177. package/dist/router/GasRouterDeployer.js +25 -0
  1178. package/dist/router/GasRouterDeployer.js.map +1 -0
  1179. package/dist/router/HyperlaneRouterChecker.d.ts +19 -0
  1180. package/dist/router/HyperlaneRouterChecker.d.ts.map +1 -0
  1181. package/dist/router/HyperlaneRouterChecker.js +157 -0
  1182. package/dist/router/HyperlaneRouterChecker.js.map +1 -0
  1183. package/dist/router/HyperlaneRouterDeployer.d.ts +18 -0
  1184. package/dist/router/HyperlaneRouterDeployer.d.ts.map +1 -0
  1185. package/dist/router/HyperlaneRouterDeployer.js +88 -0
  1186. package/dist/router/HyperlaneRouterDeployer.js.map +1 -0
  1187. package/dist/router/MultiProtocolRouterApps.d.ts +20 -0
  1188. package/dist/router/MultiProtocolRouterApps.d.ts.map +1 -0
  1189. package/dist/router/MultiProtocolRouterApps.js +43 -0
  1190. package/dist/router/MultiProtocolRouterApps.js.map +1 -0
  1191. package/dist/router/MultiProtocolRouterApps.test.d.ts +2 -0
  1192. package/dist/router/MultiProtocolRouterApps.test.d.ts.map +1 -0
  1193. package/dist/router/MultiProtocolRouterApps.test.js +22 -0
  1194. package/dist/router/MultiProtocolRouterApps.test.js.map +1 -0
  1195. package/dist/router/ProxiedRouterChecker.d.ts +12 -0
  1196. package/dist/router/ProxiedRouterChecker.d.ts.map +1 -0
  1197. package/dist/router/ProxiedRouterChecker.js +34 -0
  1198. package/dist/router/ProxiedRouterChecker.js.map +1 -0
  1199. package/dist/router/ProxiedRouterDeployer.d.ts +35 -0
  1200. package/dist/router/ProxiedRouterDeployer.d.ts.map +1 -0
  1201. package/dist/router/ProxiedRouterDeployer.js +58 -0
  1202. package/dist/router/ProxiedRouterDeployer.js.map +1 -0
  1203. package/dist/router/RouterApps.d.ts +22 -0
  1204. package/dist/router/RouterApps.d.ts.map +1 -0
  1205. package/dist/router/RouterApps.js +39 -0
  1206. package/dist/router/RouterApps.js.map +1 -0
  1207. package/dist/router/adapters/EvmRouterAdapter.d.ts +30 -0
  1208. package/dist/router/adapters/EvmRouterAdapter.d.ts.map +1 -0
  1209. package/dist/router/adapters/EvmRouterAdapter.js +46 -0
  1210. package/dist/router/adapters/EvmRouterAdapter.js.map +1 -0
  1211. package/dist/router/adapters/SealevelRouterAdapter.d.ts +35 -0
  1212. package/dist/router/adapters/SealevelRouterAdapter.d.ts.map +1 -0
  1213. package/dist/router/adapters/SealevelRouterAdapter.js +56 -0
  1214. package/dist/router/adapters/SealevelRouterAdapter.js.map +1 -0
  1215. package/dist/router/adapters/types.d.ts +17 -0
  1216. package/dist/router/adapters/types.d.ts.map +1 -0
  1217. package/dist/router/adapters/types.js +2 -0
  1218. package/dist/router/adapters/types.js.map +1 -0
  1219. package/dist/router/types.d.ts +139 -0
  1220. package/dist/router/types.d.ts.map +1 -0
  1221. package/dist/router/types.js +62 -0
  1222. package/dist/router/types.js.map +1 -0
  1223. package/dist/router/types.test.d.ts +2 -0
  1224. package/dist/router/types.test.d.ts.map +1 -0
  1225. package/dist/router/types.test.js +108 -0
  1226. package/dist/router/types.test.js.map +1 -0
  1227. package/dist/rpc/evm/EvmEventLogsReader.d.ts +91 -0
  1228. package/dist/rpc/evm/EvmEventLogsReader.d.ts.map +1 -0
  1229. package/dist/rpc/evm/EvmEventLogsReader.hardhat-test.d.ts +2 -0
  1230. package/dist/rpc/evm/EvmEventLogsReader.hardhat-test.d.ts.map +1 -0
  1231. package/dist/rpc/evm/EvmEventLogsReader.hardhat-test.js +640 -0
  1232. package/dist/rpc/evm/EvmEventLogsReader.hardhat-test.js.map +1 -0
  1233. package/dist/rpc/evm/EvmEventLogsReader.js +246 -0
  1234. package/dist/rpc/evm/EvmEventLogsReader.js.map +1 -0
  1235. package/dist/rpc/evm/EvmEventLogsReader.test.d.ts +2 -0
  1236. package/dist/rpc/evm/EvmEventLogsReader.test.d.ts.map +1 -0
  1237. package/dist/rpc/evm/EvmEventLogsReader.test.js +139 -0
  1238. package/dist/rpc/evm/EvmEventLogsReader.test.js.map +1 -0
  1239. package/dist/rpc/evm/types.d.ts +11 -0
  1240. package/dist/rpc/evm/types.d.ts.map +1 -0
  1241. package/dist/rpc/evm/types.js +2 -0
  1242. package/dist/rpc/evm/types.js.map +1 -0
  1243. package/dist/rpc/evm/utils.d.ts +75 -0
  1244. package/dist/rpc/evm/utils.d.ts.map +1 -0
  1245. package/dist/rpc/evm/utils.hardhat-test.d.ts +2 -0
  1246. package/dist/rpc/evm/utils.hardhat-test.d.ts.map +1 -0
  1247. package/dist/rpc/evm/utils.hardhat-test.js +457 -0
  1248. package/dist/rpc/evm/utils.hardhat-test.js.map +1 -0
  1249. package/dist/rpc/evm/utils.js +338 -0
  1250. package/dist/rpc/evm/utils.js.map +1 -0
  1251. package/dist/rpc/evm/utils.test.d.ts +2 -0
  1252. package/dist/rpc/evm/utils.test.d.ts.map +1 -0
  1253. package/dist/rpc/evm/utils.test.js +636 -0
  1254. package/dist/rpc/evm/utils.test.js.map +1 -0
  1255. package/dist/signers/cosmos/cosmjs.d.ts +17 -0
  1256. package/dist/signers/cosmos/cosmjs.d.ts.map +1 -0
  1257. package/dist/signers/cosmos/cosmjs.js +39 -0
  1258. package/dist/signers/cosmos/cosmjs.js.map +1 -0
  1259. package/dist/signers/evm/ethersv5.d.ts +14 -0
  1260. package/dist/signers/evm/ethersv5.d.ts.map +1 -0
  1261. package/dist/signers/evm/ethersv5.js +36 -0
  1262. package/dist/signers/evm/ethersv5.js.map +1 -0
  1263. package/dist/signers/evm/turnkey.d.ts +91 -0
  1264. package/dist/signers/evm/turnkey.d.ts.map +1 -0
  1265. package/dist/signers/evm/turnkey.js +269 -0
  1266. package/dist/signers/evm/turnkey.js.map +1 -0
  1267. package/dist/signers/evm/turnkey.test.d.ts +2 -0
  1268. package/dist/signers/evm/turnkey.test.d.ts.map +1 -0
  1269. package/dist/signers/evm/turnkey.test.js +240 -0
  1270. package/dist/signers/evm/turnkey.test.js.map +1 -0
  1271. package/dist/signers/radix/radix-toolkit.d.ts +16 -0
  1272. package/dist/signers/radix/radix-toolkit.d.ts.map +1 -0
  1273. package/dist/signers/radix/radix-toolkit.js +34 -0
  1274. package/dist/signers/radix/radix-toolkit.js.map +1 -0
  1275. package/dist/signers/signers.d.ts +17 -0
  1276. package/dist/signers/signers.d.ts.map +1 -0
  1277. package/dist/signers/signers.js +26 -0
  1278. package/dist/signers/signers.js.map +1 -0
  1279. package/dist/signers/starknet/starknetjs.d.ts +14 -0
  1280. package/dist/signers/starknet/starknetjs.d.ts.map +1 -0
  1281. package/dist/signers/starknet/starknetjs.js +38 -0
  1282. package/dist/signers/starknet/starknetjs.js.map +1 -0
  1283. package/dist/signers/svm/solana-web3js.d.ts +89 -0
  1284. package/dist/signers/svm/solana-web3js.d.ts.map +1 -0
  1285. package/dist/signers/svm/solana-web3js.js +247 -0
  1286. package/dist/signers/svm/solana-web3js.js.map +1 -0
  1287. package/dist/signers/svm/solana-web3js.test.d.ts +2 -0
  1288. package/dist/signers/svm/solana-web3js.test.d.ts.map +1 -0
  1289. package/dist/signers/svm/solana-web3js.test.js +61 -0
  1290. package/dist/signers/svm/solana-web3js.test.js.map +1 -0
  1291. package/dist/signers/svm/turnkey.d.ts +49 -0
  1292. package/dist/signers/svm/turnkey.d.ts.map +1 -0
  1293. package/dist/signers/svm/turnkey.js +80 -0
  1294. package/dist/signers/svm/turnkey.js.map +1 -0
  1295. package/dist/signers/turnkeyClient.d.ts +72 -0
  1296. package/dist/signers/turnkeyClient.d.ts.map +1 -0
  1297. package/dist/signers/turnkeyClient.js +121 -0
  1298. package/dist/signers/turnkeyClient.js.map +1 -0
  1299. package/dist/signers/types.d.ts +8 -0
  1300. package/dist/signers/types.d.ts.map +1 -0
  1301. package/dist/signers/types.js +2 -0
  1302. package/dist/signers/types.js.map +1 -0
  1303. package/dist/test/contractDouble.d.ts +8 -0
  1304. package/dist/test/contractDouble.d.ts.map +1 -0
  1305. package/dist/test/contractDouble.js +12 -0
  1306. package/dist/test/contractDouble.js.map +1 -0
  1307. package/dist/test/contractStubs.d.ts +8 -0
  1308. package/dist/test/contractStubs.d.ts.map +1 -0
  1309. package/dist/test/contractStubs.js +15 -0
  1310. package/dist/test/contractStubs.js.map +1 -0
  1311. package/dist/test/errors.d.ts +34 -0
  1312. package/dist/test/errors.d.ts.map +1 -0
  1313. package/dist/test/errors.js +46 -0
  1314. package/dist/test/errors.js.map +1 -0
  1315. package/dist/test/fixtures/warp-route-replay/record.d.ts +2 -0
  1316. package/dist/test/fixtures/warp-route-replay/record.d.ts.map +1 -0
  1317. package/dist/test/fixtures/warp-route-replay/record.js +32 -0
  1318. package/dist/test/fixtures/warp-route-replay/record.js.map +1 -0
  1319. package/dist/test/multiProviderStubs.d.ts +9 -0
  1320. package/dist/test/multiProviderStubs.d.ts.map +1 -0
  1321. package/dist/test/multiProviderStubs.js +31 -0
  1322. package/dist/test/multiProviderStubs.js.map +1 -0
  1323. package/dist/test/replayRpc.d.ts +82 -0
  1324. package/dist/test/replayRpc.d.ts.map +1 -0
  1325. package/dist/test/replayRpc.js +331 -0
  1326. package/dist/test/replayRpc.js.map +1 -0
  1327. package/dist/test/replayScenarios.d.ts +19 -0
  1328. package/dist/test/replayScenarios.d.ts.map +1 -0
  1329. package/dist/test/replayScenarios.js +89 -0
  1330. package/dist/test/replayScenarios.js.map +1 -0
  1331. package/dist/test/testUtils.d.ts +32 -0
  1332. package/dist/test/testUtils.d.ts.map +1 -0
  1333. package/dist/test/testUtils.js +408 -0
  1334. package/dist/test/testUtils.js.map +1 -0
  1335. package/dist/test/testUtils.test.d.ts +2 -0
  1336. package/dist/test/testUtils.test.d.ts.map +1 -0
  1337. package/dist/test/testUtils.test.js +28 -0
  1338. package/dist/test/testUtils.test.js.map +1 -0
  1339. package/dist/timelock/evm/EvmTimelockDeployer.d.ts +12 -0
  1340. package/dist/timelock/evm/EvmTimelockDeployer.d.ts.map +1 -0
  1341. package/dist/timelock/evm/EvmTimelockDeployer.hardhat-test.d.ts +2 -0
  1342. package/dist/timelock/evm/EvmTimelockDeployer.hardhat-test.d.ts.map +1 -0
  1343. package/dist/timelock/evm/EvmTimelockDeployer.hardhat-test.js +210 -0
  1344. package/dist/timelock/evm/EvmTimelockDeployer.hardhat-test.js.map +1 -0
  1345. package/dist/timelock/evm/EvmTimelockDeployer.js +68 -0
  1346. package/dist/timelock/evm/EvmTimelockDeployer.js.map +1 -0
  1347. package/dist/timelock/evm/EvmTimelockReader.d.ts +32 -0
  1348. package/dist/timelock/evm/EvmTimelockReader.d.ts.map +1 -0
  1349. package/dist/timelock/evm/EvmTimelockReader.hardhat-test.d.ts +2 -0
  1350. package/dist/timelock/evm/EvmTimelockReader.hardhat-test.d.ts.map +1 -0
  1351. package/dist/timelock/evm/EvmTimelockReader.hardhat-test.js +889 -0
  1352. package/dist/timelock/evm/EvmTimelockReader.hardhat-test.js.map +1 -0
  1353. package/dist/timelock/evm/EvmTimelockReader.js +171 -0
  1354. package/dist/timelock/evm/EvmTimelockReader.js.map +1 -0
  1355. package/dist/timelock/evm/constants.d.ts +6 -0
  1356. package/dist/timelock/evm/constants.d.ts.map +1 -0
  1357. package/dist/timelock/evm/constants.js +7 -0
  1358. package/dist/timelock/evm/constants.js.map +1 -0
  1359. package/dist/timelock/evm/contracts.d.ts +6 -0
  1360. package/dist/timelock/evm/contracts.d.ts.map +1 -0
  1361. package/dist/timelock/evm/contracts.js +5 -0
  1362. package/dist/timelock/evm/contracts.js.map +1 -0
  1363. package/dist/timelock/evm/errors.d.ts +2 -0
  1364. package/dist/timelock/evm/errors.d.ts.map +1 -0
  1365. package/dist/timelock/evm/errors.js +19 -0
  1366. package/dist/timelock/evm/errors.js.map +1 -0
  1367. package/dist/timelock/evm/errors.test.d.ts +2 -0
  1368. package/dist/timelock/evm/errors.test.d.ts.map +1 -0
  1369. package/dist/timelock/evm/errors.test.js +33 -0
  1370. package/dist/timelock/evm/errors.test.js.map +1 -0
  1371. package/dist/timelock/evm/utils.d.ts +4 -0
  1372. package/dist/timelock/evm/utils.d.ts.map +1 -0
  1373. package/dist/timelock/evm/utils.js +11 -0
  1374. package/dist/timelock/evm/utils.js.map +1 -0
  1375. package/dist/timelock/types.d.ts +29 -0
  1376. package/dist/timelock/types.d.ts.map +1 -0
  1377. package/dist/timelock/types.js +11 -0
  1378. package/dist/timelock/types.js.map +1 -0
  1379. package/dist/token/EvmWarpModule.d.ts +301 -0
  1380. package/dist/token/EvmWarpModule.d.ts.map +1 -0
  1381. package/dist/token/EvmWarpModule.hardhat-test.d.ts +2 -0
  1382. package/dist/token/EvmWarpModule.hardhat-test.d.ts.map +1 -0
  1383. package/dist/token/EvmWarpModule.hardhat-test.js +3143 -0
  1384. package/dist/token/EvmWarpModule.hardhat-test.js.map +1 -0
  1385. package/dist/token/EvmWarpModule.js +1800 -0
  1386. package/dist/token/EvmWarpModule.js.map +1 -0
  1387. package/dist/token/EvmWarpModule.test.d.ts +2 -0
  1388. package/dist/token/EvmWarpModule.test.d.ts.map +1 -0
  1389. package/dist/token/EvmWarpModule.test.js +471 -0
  1390. package/dist/token/EvmWarpModule.test.js.map +1 -0
  1391. package/dist/token/EvmWarpRouteReader.d.ts +135 -0
  1392. package/dist/token/EvmWarpRouteReader.d.ts.map +1 -0
  1393. package/dist/token/EvmWarpRouteReader.hardhat-test.d.ts +2 -0
  1394. package/dist/token/EvmWarpRouteReader.hardhat-test.d.ts.map +1 -0
  1395. package/dist/token/EvmWarpRouteReader.hardhat-test.js +1357 -0
  1396. package/dist/token/EvmWarpRouteReader.hardhat-test.js.map +1 -0
  1397. package/dist/token/EvmWarpRouteReader.js +1292 -0
  1398. package/dist/token/EvmWarpRouteReader.js.map +1 -0
  1399. package/dist/token/EvmWarpRouteReader.replay.test.d.ts +2 -0
  1400. package/dist/token/EvmWarpRouteReader.replay.test.d.ts.map +1 -0
  1401. package/dist/token/EvmWarpRouteReader.replay.test.js +392 -0
  1402. package/dist/token/EvmWarpRouteReader.replay.test.js.map +1 -0
  1403. package/dist/token/EvmWarpRouteReader.test.d.ts +2 -0
  1404. package/dist/token/EvmWarpRouteReader.test.d.ts.map +1 -0
  1405. package/dist/token/EvmWarpRouteReader.test.js +783 -0
  1406. package/dist/token/EvmWarpRouteReader.test.js.map +1 -0
  1407. package/dist/token/EvmXERC20Module.d.ts +105 -0
  1408. package/dist/token/EvmXERC20Module.d.ts.map +1 -0
  1409. package/dist/token/EvmXERC20Module.js +277 -0
  1410. package/dist/token/EvmXERC20Module.js.map +1 -0
  1411. package/dist/token/EvmXERC20Module.test.d.ts +2 -0
  1412. package/dist/token/EvmXERC20Module.test.d.ts.map +1 -0
  1413. package/dist/token/EvmXERC20Module.test.js +464 -0
  1414. package/dist/token/EvmXERC20Module.test.js.map +1 -0
  1415. package/dist/token/EvmXERC20Reader.d.ts +58 -0
  1416. package/dist/token/EvmXERC20Reader.d.ts.map +1 -0
  1417. package/dist/token/EvmXERC20Reader.js +122 -0
  1418. package/dist/token/EvmXERC20Reader.js.map +1 -0
  1419. package/dist/token/EvmXERC20Reader.test.d.ts +2 -0
  1420. package/dist/token/EvmXERC20Reader.test.d.ts.map +1 -0
  1421. package/dist/token/EvmXERC20Reader.test.js +333 -0
  1422. package/dist/token/EvmXERC20Reader.test.js.map +1 -0
  1423. package/dist/token/IToken.d.ts +21 -0
  1424. package/dist/token/IToken.d.ts.map +1 -0
  1425. package/dist/token/IToken.js +2 -0
  1426. package/dist/token/IToken.js.map +1 -0
  1427. package/dist/token/ITokenMetadata.d.ts +90 -0
  1428. package/dist/token/ITokenMetadata.d.ts.map +1 -0
  1429. package/dist/token/ITokenMetadata.js +53 -0
  1430. package/dist/token/ITokenMetadata.js.map +1 -0
  1431. package/dist/token/Token.d.ts +47 -0
  1432. package/dist/token/Token.d.ts.map +1 -0
  1433. package/dist/token/Token.js +231 -0
  1434. package/dist/token/Token.js.map +1 -0
  1435. package/dist/token/Token.test.d.ts +2 -0
  1436. package/dist/token/Token.test.d.ts.map +1 -0
  1437. package/dist/token/Token.test.js +579 -0
  1438. package/dist/token/Token.test.js.map +1 -0
  1439. package/dist/token/TokenAmount.d.ts +12 -0
  1440. package/dist/token/TokenAmount.d.ts.map +1 -0
  1441. package/dist/token/TokenAmount.js +22 -0
  1442. package/dist/token/TokenAmount.js.map +1 -0
  1443. package/dist/token/TokenAmount.test.d.ts +2 -0
  1444. package/dist/token/TokenAmount.test.d.ts.map +1 -0
  1445. package/dist/token/TokenAmount.test.js +38 -0
  1446. package/dist/token/TokenAmount.test.js.map +1 -0
  1447. package/dist/token/TokenConnection.d.ts +55 -0
  1448. package/dist/token/TokenConnection.d.ts.map +1 -0
  1449. package/dist/token/TokenConnection.js +44 -0
  1450. package/dist/token/TokenConnection.js.map +1 -0
  1451. package/dist/token/TokenConnection.test.d.ts +2 -0
  1452. package/dist/token/TokenConnection.test.d.ts.map +1 -0
  1453. package/dist/token/TokenConnection.test.js +17 -0
  1454. package/dist/token/TokenConnection.test.js.map +1 -0
  1455. package/dist/token/TokenMetadata.d.ts +43 -0
  1456. package/dist/token/TokenMetadata.d.ts.map +1 -0
  1457. package/dist/token/TokenMetadata.js +121 -0
  1458. package/dist/token/TokenMetadata.js.map +1 -0
  1459. package/dist/token/TokenMetadataMap.d.ts +15 -0
  1460. package/dist/token/TokenMetadataMap.d.ts.map +1 -0
  1461. package/dist/token/TokenMetadataMap.js +56 -0
  1462. package/dist/token/TokenMetadataMap.js.map +1 -0
  1463. package/dist/token/TokenStandard.d.ts +108 -0
  1464. package/dist/token/TokenStandard.d.ts.map +1 -0
  1465. package/dist/token/TokenStandard.js +470 -0
  1466. package/dist/token/TokenStandard.js.map +1 -0
  1467. package/dist/token/adapters/AleoTokenAdapter.d.ts +60 -0
  1468. package/dist/token/adapters/AleoTokenAdapter.d.ts.map +1 -0
  1469. package/dist/token/adapters/AleoTokenAdapter.js +190 -0
  1470. package/dist/token/adapters/AleoTokenAdapter.js.map +1 -0
  1471. package/dist/token/adapters/CosmWasmTokenAdapter.d.ts +114 -0
  1472. package/dist/token/adapters/CosmWasmTokenAdapter.d.ts.map +1 -0
  1473. package/dist/token/adapters/CosmWasmTokenAdapter.js +332 -0
  1474. package/dist/token/adapters/CosmWasmTokenAdapter.js.map +1 -0
  1475. package/dist/token/adapters/CosmWasmTokenAdapter.test.d.ts +14 -0
  1476. package/dist/token/adapters/CosmWasmTokenAdapter.test.d.ts.map +1 -0
  1477. package/dist/token/adapters/CosmWasmTokenAdapter.test.js +283 -0
  1478. package/dist/token/adapters/CosmWasmTokenAdapter.test.js.map +1 -0
  1479. package/dist/token/adapters/CosmosModuleTokenAdapter.d.ts +54 -0
  1480. package/dist/token/adapters/CosmosModuleTokenAdapter.d.ts.map +1 -0
  1481. package/dist/token/adapters/CosmosModuleTokenAdapter.js +189 -0
  1482. package/dist/token/adapters/CosmosModuleTokenAdapter.js.map +1 -0
  1483. package/dist/token/adapters/CosmosTokenAdapter.d.ts +74 -0
  1484. package/dist/token/adapters/CosmosTokenAdapter.d.ts.map +1 -0
  1485. package/dist/token/adapters/CosmosTokenAdapter.js +192 -0
  1486. package/dist/token/adapters/CosmosTokenAdapter.js.map +1 -0
  1487. package/dist/token/adapters/EvmCrossCollateralAdapter.d.ts +39 -0
  1488. package/dist/token/adapters/EvmCrossCollateralAdapter.d.ts.map +1 -0
  1489. package/dist/token/adapters/EvmCrossCollateralAdapter.js +85 -0
  1490. package/dist/token/adapters/EvmCrossCollateralAdapter.js.map +1 -0
  1491. package/dist/token/adapters/EvmCrossCollateralAdapter.test.d.ts +2 -0
  1492. package/dist/token/adapters/EvmCrossCollateralAdapter.test.d.ts.map +1 -0
  1493. package/dist/token/adapters/EvmCrossCollateralAdapter.test.js +155 -0
  1494. package/dist/token/adapters/EvmCrossCollateralAdapter.test.js.map +1 -0
  1495. package/dist/token/adapters/EvmHypSyntheticAdapter.test.d.ts +2 -0
  1496. package/dist/token/adapters/EvmHypSyntheticAdapter.test.d.ts.map +1 -0
  1497. package/dist/token/adapters/EvmHypSyntheticAdapter.test.js +96 -0
  1498. package/dist/token/adapters/EvmHypSyntheticAdapter.test.js.map +1 -0
  1499. package/dist/token/adapters/EvmTokenAdapter.d.ts +303 -0
  1500. package/dist/token/adapters/EvmTokenAdapter.d.ts.map +1 -0
  1501. package/dist/token/adapters/EvmTokenAdapter.js +899 -0
  1502. package/dist/token/adapters/EvmTokenAdapter.js.map +1 -0
  1503. package/dist/token/adapters/EvmTokenAdapter.seismic.test.d.ts +2 -0
  1504. package/dist/token/adapters/EvmTokenAdapter.seismic.test.d.ts.map +1 -0
  1505. package/dist/token/adapters/EvmTokenAdapter.seismic.test.js +125 -0
  1506. package/dist/token/adapters/EvmTokenAdapter.seismic.test.js.map +1 -0
  1507. package/dist/token/adapters/EvmTokenAdapter.test.d.ts +2 -0
  1508. package/dist/token/adapters/EvmTokenAdapter.test.d.ts.map +1 -0
  1509. package/dist/token/adapters/EvmTokenAdapter.test.js +73 -0
  1510. package/dist/token/adapters/EvmTokenAdapter.test.js.map +1 -0
  1511. package/dist/token/adapters/ITokenAdapter.d.ts +129 -0
  1512. package/dist/token/adapters/ITokenAdapter.d.ts.map +1 -0
  1513. package/dist/token/adapters/ITokenAdapter.js +15 -0
  1514. package/dist/token/adapters/ITokenAdapter.js.map +1 -0
  1515. package/dist/token/adapters/M0PortalLiteTokenAdapter.d.ts +22 -0
  1516. package/dist/token/adapters/M0PortalLiteTokenAdapter.d.ts.map +1 -0
  1517. package/dist/token/adapters/M0PortalLiteTokenAdapter.js +90 -0
  1518. package/dist/token/adapters/M0PortalLiteTokenAdapter.js.map +1 -0
  1519. package/dist/token/adapters/M0PortalTokenAdapter.d.ts +22 -0
  1520. package/dist/token/adapters/M0PortalTokenAdapter.d.ts.map +1 -0
  1521. package/dist/token/adapters/M0PortalTokenAdapter.js +95 -0
  1522. package/dist/token/adapters/M0PortalTokenAdapter.js.map +1 -0
  1523. package/dist/token/adapters/M0PortalTokenAdapter.test.d.ts +2 -0
  1524. package/dist/token/adapters/M0PortalTokenAdapter.test.d.ts.map +1 -0
  1525. package/dist/token/adapters/M0PortalTokenAdapter.test.js +94 -0
  1526. package/dist/token/adapters/M0PortalTokenAdapter.test.js.map +1 -0
  1527. package/dist/token/adapters/RadixTokenAdapter.d.ts +55 -0
  1528. package/dist/token/adapters/RadixTokenAdapter.d.ts.map +1 -0
  1529. package/dist/token/adapters/RadixTokenAdapter.js +190 -0
  1530. package/dist/token/adapters/RadixTokenAdapter.js.map +1 -0
  1531. package/dist/token/adapters/SealevelCrossCollateralAdapter.d.ts +64 -0
  1532. package/dist/token/adapters/SealevelCrossCollateralAdapter.d.ts.map +1 -0
  1533. package/dist/token/adapters/SealevelCrossCollateralAdapter.js +474 -0
  1534. package/dist/token/adapters/SealevelCrossCollateralAdapter.js.map +1 -0
  1535. package/dist/token/adapters/SealevelCrossCollateralAdapter.test.d.ts +2 -0
  1536. package/dist/token/adapters/SealevelCrossCollateralAdapter.test.d.ts.map +1 -0
  1537. package/dist/token/adapters/SealevelCrossCollateralAdapter.test.js +138 -0
  1538. package/dist/token/adapters/SealevelCrossCollateralAdapter.test.js.map +1 -0
  1539. package/dist/token/adapters/SealevelHypTokenAdapter.test.d.ts +2 -0
  1540. package/dist/token/adapters/SealevelHypTokenAdapter.test.d.ts.map +1 -0
  1541. package/dist/token/adapters/SealevelHypTokenAdapter.test.js +136 -0
  1542. package/dist/token/adapters/SealevelHypTokenAdapter.test.js.map +1 -0
  1543. package/dist/token/adapters/SealevelTokenAdapter.d.ts +288 -0
  1544. package/dist/token/adapters/SealevelTokenAdapter.d.ts.map +1 -0
  1545. package/dist/token/adapters/SealevelTokenAdapter.js +1019 -0
  1546. package/dist/token/adapters/SealevelTokenAdapter.js.map +1 -0
  1547. package/dist/token/adapters/StarknetTokenAdapter.d.ts +107 -0
  1548. package/dist/token/adapters/StarknetTokenAdapter.d.ts.map +1 -0
  1549. package/dist/token/adapters/StarknetTokenAdapter.js +273 -0
  1550. package/dist/token/adapters/StarknetTokenAdapter.js.map +1 -0
  1551. package/dist/token/adapters/aleoHyp.d.ts +7 -0
  1552. package/dist/token/adapters/aleoHyp.d.ts.map +1 -0
  1553. package/dist/token/adapters/aleoHyp.js +26 -0
  1554. package/dist/token/adapters/aleoHyp.js.map +1 -0
  1555. package/dist/token/adapters/cosmosHyp.d.ts +7 -0
  1556. package/dist/token/adapters/cosmosHyp.d.ts.map +1 -0
  1557. package/dist/token/adapters/cosmosHyp.js +40 -0
  1558. package/dist/token/adapters/cosmosHyp.js.map +1 -0
  1559. package/dist/token/adapters/evmHyp.d.ts +7 -0
  1560. package/dist/token/adapters/evmHyp.d.ts.map +1 -0
  1561. package/dist/token/adapters/evmHyp.js +21 -0
  1562. package/dist/token/adapters/evmHyp.js.map +1 -0
  1563. package/dist/token/adapters/evmLikeHyp.d.ts +20 -0
  1564. package/dist/token/adapters/evmLikeHyp.d.ts.map +1 -0
  1565. package/dist/token/adapters/evmLikeHyp.js +67 -0
  1566. package/dist/token/adapters/evmLikeHyp.js.map +1 -0
  1567. package/dist/token/adapters/hypTokenAdapterUtils.d.ts +15 -0
  1568. package/dist/token/adapters/hypTokenAdapterUtils.d.ts.map +1 -0
  1569. package/dist/token/adapters/hypTokenAdapterUtils.js +9 -0
  1570. package/dist/token/adapters/hypTokenAdapterUtils.js.map +1 -0
  1571. package/dist/token/adapters/radixHyp.d.ts +7 -0
  1572. package/dist/token/adapters/radixHyp.d.ts.map +1 -0
  1573. package/dist/token/adapters/radixHyp.js +22 -0
  1574. package/dist/token/adapters/radixHyp.js.map +1 -0
  1575. package/dist/token/adapters/sealevelFee.d.ts +206 -0
  1576. package/dist/token/adapters/sealevelFee.d.ts.map +1 -0
  1577. package/dist/token/adapters/sealevelFee.js +515 -0
  1578. package/dist/token/adapters/sealevelFee.js.map +1 -0
  1579. package/dist/token/adapters/sealevelFee.test.d.ts +2 -0
  1580. package/dist/token/adapters/sealevelFee.test.d.ts.map +1 -0
  1581. package/dist/token/adapters/sealevelFee.test.js +246 -0
  1582. package/dist/token/adapters/sealevelFee.test.js.map +1 -0
  1583. package/dist/token/adapters/sealevelHyp.d.ts +8 -0
  1584. package/dist/token/adapters/sealevelHyp.d.ts.map +1 -0
  1585. package/dist/token/adapters/sealevelHyp.js +52 -0
  1586. package/dist/token/adapters/sealevelHyp.js.map +1 -0
  1587. package/dist/token/adapters/serialization.d.ts +234 -0
  1588. package/dist/token/adapters/serialization.d.ts.map +1 -0
  1589. package/dist/token/adapters/serialization.js +580 -0
  1590. package/dist/token/adapters/serialization.js.map +1 -0
  1591. package/dist/token/adapters/serialization.test.d.ts +2 -0
  1592. package/dist/token/adapters/serialization.test.d.ts.map +1 -0
  1593. package/dist/token/adapters/serialization.test.js +55 -0
  1594. package/dist/token/adapters/serialization.test.js.map +1 -0
  1595. package/dist/token/adapters/starknetHyp.d.ts +7 -0
  1596. package/dist/token/adapters/starknetHyp.d.ts.map +1 -0
  1597. package/dist/token/adapters/starknetHyp.js +35 -0
  1598. package/dist/token/adapters/starknetHyp.js.map +1 -0
  1599. package/dist/token/adapters/tronHyp.d.ts +7 -0
  1600. package/dist/token/adapters/tronHyp.d.ts.map +1 -0
  1601. package/dist/token/adapters/tronHyp.js +21 -0
  1602. package/dist/token/adapters/tronHyp.js.map +1 -0
  1603. package/dist/token/adapters/utils.d.ts +7 -0
  1604. package/dist/token/adapters/utils.d.ts.map +1 -0
  1605. package/dist/token/adapters/utils.js +4 -0
  1606. package/dist/token/adapters/utils.js.map +1 -0
  1607. package/dist/token/cctp.d.ts +10 -0
  1608. package/dist/token/cctp.d.ts.map +1 -0
  1609. package/dist/token/cctp.js +13 -0
  1610. package/dist/token/cctp.js.map +1 -0
  1611. package/dist/token/cctp.test.d.ts +2 -0
  1612. package/dist/token/cctp.test.d.ts.map +1 -0
  1613. package/dist/token/cctp.test.js +48 -0
  1614. package/dist/token/cctp.test.js.map +1 -0
  1615. package/dist/token/config.d.ts +61 -0
  1616. package/dist/token/config.d.ts.map +1 -0
  1617. package/dist/token/config.js +79 -0
  1618. package/dist/token/config.js.map +1 -0
  1619. package/dist/token/configUtils.d.ts +106 -0
  1620. package/dist/token/configUtils.d.ts.map +1 -0
  1621. package/dist/token/configUtils.js +735 -0
  1622. package/dist/token/configUtils.js.map +1 -0
  1623. package/dist/token/configUtils.test.d.ts +2 -0
  1624. package/dist/token/configUtils.test.d.ts.map +1 -0
  1625. package/dist/token/configUtils.test.js +1313 -0
  1626. package/dist/token/configUtils.test.js.map +1 -0
  1627. package/dist/token/contracts.d.ts +64 -0
  1628. package/dist/token/contracts.d.ts.map +1 -0
  1629. package/dist/token/contracts.js +68 -0
  1630. package/dist/token/contracts.js.map +1 -0
  1631. package/dist/token/deploy.d.ts +56 -0
  1632. package/dist/token/deploy.d.ts.map +1 -0
  1633. package/dist/token/deploy.hardhat-test.d.ts +2 -0
  1634. package/dist/token/deploy.hardhat-test.d.ts.map +1 -0
  1635. package/dist/token/deploy.hardhat-test.js +1397 -0
  1636. package/dist/token/deploy.hardhat-test.js.map +1 -0
  1637. package/dist/token/deploy.js +698 -0
  1638. package/dist/token/deploy.js.map +1 -0
  1639. package/dist/token/nativeTokenMetadata.d.ts +4 -0
  1640. package/dist/token/nativeTokenMetadata.d.ts.map +1 -0
  1641. package/dist/token/nativeTokenMetadata.js +50 -0
  1642. package/dist/token/nativeTokenMetadata.js.map +1 -0
  1643. package/dist/token/sealevel/metadata.d.ts +33 -0
  1644. package/dist/token/sealevel/metadata.d.ts.map +1 -0
  1645. package/dist/token/sealevel/metadata.js +90 -0
  1646. package/dist/token/sealevel/metadata.js.map +1 -0
  1647. package/dist/token/tokenMetadataUtils.d.ts +7 -0
  1648. package/dist/token/tokenMetadataUtils.d.ts.map +1 -0
  1649. package/dist/token/tokenMetadataUtils.js +109 -0
  1650. package/dist/token/tokenMetadataUtils.js.map +1 -0
  1651. package/dist/token/types.d.ts +9384 -0
  1652. package/dist/token/types.d.ts.map +1 -0
  1653. package/dist/token/types.js +613 -0
  1654. package/dist/token/types.js.map +1 -0
  1655. package/dist/token/types.test.d.ts +2 -0
  1656. package/dist/token/types.test.d.ts.map +1 -0
  1657. package/dist/token/types.test.js +529 -0
  1658. package/dist/token/types.test.js.map +1 -0
  1659. package/dist/token/warpCheck.d.ts +75 -0
  1660. package/dist/token/warpCheck.d.ts.map +1 -0
  1661. package/dist/token/warpCheck.js +1003 -0
  1662. package/dist/token/warpCheck.js.map +1 -0
  1663. package/dist/token/warpCheck.test.d.ts +2 -0
  1664. package/dist/token/warpCheck.test.d.ts.map +1 -0
  1665. package/dist/token/warpCheck.test.js +947 -0
  1666. package/dist/token/warpCheck.test.js.map +1 -0
  1667. package/dist/token/xerc20-abi.d.ts +58 -0
  1668. package/dist/token/xerc20-abi.d.ts.map +1 -0
  1669. package/dist/token/xerc20-abi.js +77 -0
  1670. package/dist/token/xerc20-abi.js.map +1 -0
  1671. package/dist/token/xerc20-limits.d.ts +63 -0
  1672. package/dist/token/xerc20-limits.d.ts.map +1 -0
  1673. package/dist/token/xerc20-limits.js +80 -0
  1674. package/dist/token/xerc20-limits.js.map +1 -0
  1675. package/dist/token/xerc20.d.ts +93 -0
  1676. package/dist/token/xerc20.d.ts.map +1 -0
  1677. package/dist/token/xerc20.js +355 -0
  1678. package/dist/token/xerc20.js.map +1 -0
  1679. package/dist/token/xerc20.test.d.ts +2 -0
  1680. package/dist/token/xerc20.test.d.ts.map +1 -0
  1681. package/dist/token/xerc20.test.js +728 -0
  1682. package/dist/token/xerc20.test.js.map +1 -0
  1683. package/dist/types.d.ts +47 -0
  1684. package/dist/types.d.ts.map +1 -0
  1685. package/dist/types.js +18 -0
  1686. package/dist/types.js.map +1 -0
  1687. package/dist/utils/HyperlaneReader.d.ts +17 -0
  1688. package/dist/utils/HyperlaneReader.d.ts.map +1 -0
  1689. package/dist/utils/HyperlaneReader.js +22 -0
  1690. package/dist/utils/HyperlaneReader.js.map +1 -0
  1691. package/dist/utils/MultiGeneric.d.ts +26 -0
  1692. package/dist/utils/MultiGeneric.d.ts.map +1 -0
  1693. package/dist/utils/MultiGeneric.js +55 -0
  1694. package/dist/utils/MultiGeneric.js.map +1 -0
  1695. package/dist/utils/contract.d.ts +60 -0
  1696. package/dist/utils/contract.d.ts.map +1 -0
  1697. package/dist/utils/contract.js +231 -0
  1698. package/dist/utils/contract.js.map +1 -0
  1699. package/dist/utils/contract.test.d.ts +2 -0
  1700. package/dist/utils/contract.test.d.ts.map +1 -0
  1701. package/dist/utils/contract.test.js +551 -0
  1702. package/dist/utils/contract.test.js.map +1 -0
  1703. package/dist/utils/contract.transport.test.d.ts +2 -0
  1704. package/dist/utils/contract.transport.test.d.ts.map +1 -0
  1705. package/dist/utils/contract.transport.test.js +145 -0
  1706. package/dist/utils/contract.transport.test.js.map +1 -0
  1707. package/dist/utils/cosmos.d.ts +391 -0
  1708. package/dist/utils/cosmos.d.ts.map +1 -0
  1709. package/dist/utils/cosmos.js +424 -0
  1710. package/dist/utils/cosmos.js.map +1 -0
  1711. package/dist/utils/decimals.d.ts +53 -0
  1712. package/dist/utils/decimals.d.ts.map +1 -0
  1713. package/dist/utils/decimals.js +131 -0
  1714. package/dist/utils/decimals.js.map +1 -0
  1715. package/dist/utils/decimals.test.d.ts +2 -0
  1716. package/dist/utils/decimals.test.d.ts.map +1 -0
  1717. package/dist/utils/decimals.test.js +526 -0
  1718. package/dist/utils/decimals.test.js.map +1 -0
  1719. package/dist/utils/filter.d.ts +3 -0
  1720. package/dist/utils/filter.d.ts.map +1 -0
  1721. package/dist/utils/filter.js +9 -0
  1722. package/dist/utils/filter.js.map +1 -0
  1723. package/dist/utils/fork.d.ts +55 -0
  1724. package/dist/utils/fork.d.ts.map +1 -0
  1725. package/dist/utils/fork.js +119 -0
  1726. package/dist/utils/fork.js.map +1 -0
  1727. package/dist/utils/gas.d.ts +30 -0
  1728. package/dist/utils/gas.d.ts.map +1 -0
  1729. package/dist/utils/gas.js +35 -0
  1730. package/dist/utils/gas.js.map +1 -0
  1731. package/dist/utils/gnosisSafe.d.ts +21 -0
  1732. package/dist/utils/gnosisSafe.d.ts.map +1 -0
  1733. package/dist/utils/gnosisSafe.js +193 -0
  1734. package/dist/utils/gnosisSafe.js.map +1 -0
  1735. package/dist/utils/gnosisSafe.test.d.ts +2 -0
  1736. package/dist/utils/gnosisSafe.test.d.ts.map +1 -0
  1737. package/dist/utils/gnosisSafe.test.js +78 -0
  1738. package/dist/utils/gnosisSafe.test.js.map +1 -0
  1739. package/dist/utils/ism.d.ts +193 -0
  1740. package/dist/utils/ism.d.ts.map +1 -0
  1741. package/dist/utils/ism.js +611 -0
  1742. package/dist/utils/ism.js.map +1 -0
  1743. package/dist/utils/ism.test.d.ts +2 -0
  1744. package/dist/utils/ism.test.d.ts.map +1 -0
  1745. package/dist/utils/ism.test.js +445 -0
  1746. package/dist/utils/ism.test.js.map +1 -0
  1747. package/dist/utils/logUtils.d.ts +4 -0
  1748. package/dist/utils/logUtils.d.ts.map +1 -0
  1749. package/dist/utils/logUtils.js +13 -0
  1750. package/dist/utils/logUtils.js.map +1 -0
  1751. package/dist/utils/numbers.d.ts +11 -0
  1752. package/dist/utils/numbers.d.ts.map +1 -0
  1753. package/dist/utils/numbers.js +36 -0
  1754. package/dist/utils/numbers.js.map +1 -0
  1755. package/dist/utils/numbers.test.d.ts +2 -0
  1756. package/dist/utils/numbers.test.d.ts.map +1 -0
  1757. package/dist/utils/numbers.test.js +80 -0
  1758. package/dist/utils/numbers.test.js.map +1 -0
  1759. package/dist/utils/provider.d.ts +6 -0
  1760. package/dist/utils/provider.d.ts.map +1 -0
  1761. package/dist/utils/provider.js +36 -0
  1762. package/dist/utils/provider.js.map +1 -0
  1763. package/dist/utils/schemas.d.ts +4 -0
  1764. package/dist/utils/schemas.d.ts.map +1 -0
  1765. package/dist/utils/schemas.js +15 -0
  1766. package/dist/utils/schemas.js.map +1 -0
  1767. package/dist/utils/schemas.test.d.ts +2 -0
  1768. package/dist/utils/schemas.test.d.ts.map +1 -0
  1769. package/dist/utils/schemas.test.js +33 -0
  1770. package/dist/utils/schemas.test.js.map +1 -0
  1771. package/dist/utils/sealevelSerialization.d.ts +50 -0
  1772. package/dist/utils/sealevelSerialization.d.ts.map +1 -0
  1773. package/dist/utils/sealevelSerialization.js +85 -0
  1774. package/dist/utils/sealevelSerialization.js.map +1 -0
  1775. package/dist/utils/starknet.d.ts +35 -0
  1776. package/dist/utils/starknet.d.ts.map +1 -0
  1777. package/dist/utils/starknet.js +89 -0
  1778. package/dist/utils/starknet.js.map +1 -0
  1779. package/dist/utils/transactions.d.ts +12 -0
  1780. package/dist/utils/transactions.d.ts.map +1 -0
  1781. package/dist/utils/transactions.js +17 -0
  1782. package/dist/utils/transactions.js.map +1 -0
  1783. package/dist/utils/validator.d.ts +5 -0
  1784. package/dist/utils/validator.d.ts.map +1 -0
  1785. package/dist/utils/validator.js +18 -0
  1786. package/dist/utils/validator.js.map +1 -0
  1787. package/dist/utils/zksync.d.ts +8 -0
  1788. package/dist/utils/zksync.d.ts.map +1 -0
  1789. package/dist/utils/zksync.js +24 -0
  1790. package/dist/utils/zksync.js.map +1 -0
  1791. package/dist/warp/WarpCore.d.ts +286 -0
  1792. package/dist/warp/WarpCore.d.ts.map +1 -0
  1793. package/dist/warp/WarpCore.js +1144 -0
  1794. package/dist/warp/WarpCore.js.map +1 -0
  1795. package/dist/warp/WarpCore.test.d.ts +2 -0
  1796. package/dist/warp/WarpCore.test.d.ts.map +1 -0
  1797. package/dist/warp/WarpCore.test.js +1823 -0
  1798. package/dist/warp/WarpCore.test.js.map +1 -0
  1799. package/dist/warp/read.d.ts +19 -0
  1800. package/dist/warp/read.d.ts.map +1 -0
  1801. package/dist/warp/read.js +34 -0
  1802. package/dist/warp/read.js.map +1 -0
  1803. package/dist/warp/read.test.d.ts +2 -0
  1804. package/dist/warp/read.test.d.ts.map +1 -0
  1805. package/dist/warp/read.test.js +56 -0
  1806. package/dist/warp/read.test.js.map +1 -0
  1807. package/dist/warp/resolveDestinationToken.d.ts +23 -0
  1808. package/dist/warp/resolveDestinationToken.d.ts.map +1 -0
  1809. package/dist/warp/resolveDestinationToken.js +31 -0
  1810. package/dist/warp/resolveDestinationToken.js.map +1 -0
  1811. package/dist/warp/types.d.ts +122 -0
  1812. package/dist/warp/types.d.ts.map +1 -0
  1813. package/dist/warp/types.js +52 -0
  1814. package/dist/warp/types.js.map +1 -0
  1815. package/dist/warp/types.test.d.ts +2 -0
  1816. package/dist/warp/types.test.d.ts.map +1 -0
  1817. package/dist/warp/types.test.js +81 -0
  1818. package/dist/warp/types.test.js.map +1 -0
  1819. package/dist/zksync/ZKSyncDeployer.d.ts +59 -0
  1820. package/dist/zksync/ZKSyncDeployer.d.ts.map +1 -0
  1821. package/dist/zksync/ZKSyncDeployer.js +132 -0
  1822. package/dist/zksync/ZKSyncDeployer.js.map +1 -0
  1823. package/package.json +259 -3
@@ -0,0 +1,1823 @@
1
+ import { expect } from 'chai';
2
+ import fs from 'fs';
3
+ import sinon from 'sinon';
4
+ import { parse as yamlParse } from 'yaml';
5
+ import { test1, test2, testCosmosChain, testScale1, testScale2, testSealevelChain, testVSXERC20, testXERC20, testXERC20Lockbox, } from '../consts/testChains.js';
6
+ import { MultiProtocolProvider } from '../providers/MultiProtocolProvider.js';
7
+ import { ProviderType } from '../providers/ProviderType.js';
8
+ import { Token } from '../token/Token.js';
9
+ import { TokenAmount } from '../token/TokenAmount.js';
10
+ import { TokenStandard } from '../token/TokenStandard.js';
11
+ import { TokenType } from '../token/config.js';
12
+ import { encodeAbiParameters, zeroAddress } from 'viem';
13
+ import { EvmQuotedTransferProvider } from '../quoted-calls/EvmQuotedTransferProvider.js';
14
+ import { TokenPullMode } from '../quoted-calls/types.js';
15
+ import { WarpCore } from './WarpCore.js';
16
+ import { WarpTxCategory } from './types.js';
17
+ const MOCK_LOCAL_QUOTE = { gasUnits: 2000n, gasPrice: 100, fee: 200000n };
18
+ const MOCK_INTERCHAIN_QUOTE = { amount: 20000n };
19
+ const TRANSFER_AMOUNT = BigInt('1000000000000000000'); // 1 units @ 18 decimals
20
+ const MEDIUM_TRANSFER_AMOUNT = BigInt('15000000000000000000'); // 15 units @ 18 deicmals
21
+ const BIG_TRANSFER_AMOUNT = BigInt('100000000000000000000'); // 100 units @ 18 decimals
22
+ const MOCK_BALANCE = BigInt('10000000000000000000'); // 10 units @ 18 decimals
23
+ const MEDIUM_MOCK_BALANCE = BigInt('50000000000000000000'); // 50 units at @ 18 decimals
24
+ const MOCK_ADDRESS = '0x0000000000000000000000000000000000000001';
25
+ const MOCK_ADDRESS_2 = '0x0000000000000000000000000000000000000002';
26
+ // Exposes the protected validation methods so tests can drive them directly.
27
+ class TestWarpCore extends WarpCore {
28
+ runValidateDestinationRateLimit(originTokenAmount, destination, destinationToken) {
29
+ return this.validateDestinationRateLimit(originTokenAmount, destination, destinationToken);
30
+ }
31
+ runValidateOriginCollateral(originTokenAmount, destination, recipient, sender, destinationToken) {
32
+ return this.validateOriginCollateral(originTokenAmount, destination, recipient, sender, destinationToken);
33
+ }
34
+ }
35
+ // The sinon stubs below expose only the adapter methods each test exercises;
36
+ // these helpers localize the unavoidable cast from a partial double to the full
37
+ // adapter interface.
38
+ function asHypAdapter(stub) {
39
+ // CAST: partial test double stands in for the full adapter interface.
40
+ return stub;
41
+ }
42
+ function asTokenAdapter(stub) {
43
+ // CAST: partial test double stands in for the full adapter interface.
44
+ return stub;
45
+ }
46
+ describe('WarpCore', () => {
47
+ const multiProvider = MultiProtocolProvider.createTestMultiProtocolProvider();
48
+ let warpCore;
49
+ let evmHypNative;
50
+ let evmHypNativeScale1;
51
+ let evmHypNativeScale2;
52
+ let evmHypSynthetic;
53
+ let evmHypXERC20;
54
+ let evmHypVSXERC20;
55
+ let evmHypXERC20Lockbox;
56
+ let evmHypCollateralFiat;
57
+ let sealevelHypSynthetic;
58
+ let cwHypCollateral;
59
+ let cw20;
60
+ let cosmosIbc;
61
+ before(() => {
62
+ const exampleConfig = yamlParse(fs.readFileSync('./src/warp/test-warp-core-config.yaml', 'utf-8'));
63
+ warpCore = WarpCore.FromConfig(multiProvider, exampleConfig);
64
+ [
65
+ evmHypNative,
66
+ evmHypSynthetic,
67
+ evmHypXERC20,
68
+ evmHypVSXERC20,
69
+ evmHypXERC20Lockbox,
70
+ evmHypNativeScale1,
71
+ evmHypNativeScale2,
72
+ evmHypCollateralFiat,
73
+ sealevelHypSynthetic,
74
+ cwHypCollateral,
75
+ cw20,
76
+ cosmosIbc,
77
+ ] = warpCore.tokens;
78
+ });
79
+ beforeEach(() => {
80
+ sinon
81
+ .stub(multiProvider, 'estimateTransactionFee')
82
+ .returns(Promise.resolve(MOCK_LOCAL_QUOTE));
83
+ });
84
+ afterEach(() => {
85
+ sinon.restore();
86
+ });
87
+ it('Constructs', () => {
88
+ const fromArgs = new WarpCore(multiProvider, [
89
+ Token.FromChainMetadataNativeToken(test1),
90
+ ]);
91
+ const exampleConfig = yamlParse(fs.readFileSync('./src/warp/test-warp-core-config.yaml', 'utf-8'));
92
+ const fromConfig = WarpCore.FromConfig(multiProvider, exampleConfig);
93
+ expect(fromArgs).to.be.instanceOf(WarpCore);
94
+ expect(fromConfig).to.be.instanceOf(WarpCore);
95
+ expect(fromConfig.tokens.length).to.equal(exampleConfig.tokens.length);
96
+ });
97
+ it('Preserves warp route deploy token type in token metadata', () => {
98
+ const fromConfig = WarpCore.FromConfig(multiProvider, {
99
+ tokens: [
100
+ {
101
+ chainName: test1.name,
102
+ standard: TokenStandard.EvmHypCollateral,
103
+ tokenType: TokenType.collateralOft,
104
+ decimals: 6,
105
+ symbol: 'USDT',
106
+ name: 'Tether USD',
107
+ addressOrDenom: MOCK_ADDRESS,
108
+ collateralAddressOrDenom: MOCK_ADDRESS,
109
+ connections: [
110
+ {
111
+ token: `ethereum|${test2.name}|${MOCK_ADDRESS_2}`,
112
+ },
113
+ ],
114
+ },
115
+ {
116
+ chainName: test2.name,
117
+ standard: TokenStandard.EvmHypCollateral,
118
+ tokenType: TokenType.collateralOft,
119
+ decimals: 6,
120
+ symbol: 'USDT',
121
+ name: 'Tether USD',
122
+ addressOrDenom: MOCK_ADDRESS_2,
123
+ collateralAddressOrDenom: MOCK_ADDRESS_2,
124
+ },
125
+ ],
126
+ });
127
+ expect(fromConfig.tokens[0].tokenType).to.equal(TokenType.collateralOft);
128
+ expect(fromConfig.tokens[1].tokenType).to.equal(TokenType.collateralOft);
129
+ });
130
+ it('Finds tokens', () => {
131
+ expect(warpCore.findToken(test1.name, evmHypNative.addressOrDenom)).to.be.instanceOf(Token);
132
+ expect(warpCore.findToken(testSealevelChain.name, sealevelHypSynthetic.addressOrDenom)).to.be.instanceOf(Token);
133
+ expect(warpCore.findToken(testCosmosChain.name, cw20.addressOrDenom)).to.be.instanceOf(Token);
134
+ expect(warpCore.findToken(test1.name, sealevelHypSynthetic.addressOrDenom))
135
+ .to.be.null;
136
+ });
137
+ it('Gets transfer gas quote', async () => {
138
+ const stubs = warpCore.tokens.map((t) => sinon.stub(t, 'getHypAdapter').returns({
139
+ quoteTransferRemoteGas: () => Promise.resolve({
140
+ igpQuote: MOCK_INTERCHAIN_QUOTE,
141
+ tokenFeeQuote: MOCK_INTERCHAIN_QUOTE,
142
+ }),
143
+ isApproveRequired: () => Promise.resolve(false),
144
+ populateTransferRemoteTx: () => Promise.resolve({}),
145
+ isRevokeApprovalRequired: () => Promise.resolve(false),
146
+ }));
147
+ const testQuote = async (token, destination, standard, interchainQuote = {
148
+ igpQuote: MOCK_INTERCHAIN_QUOTE,
149
+ tokenFeeQuote: MOCK_INTERCHAIN_QUOTE,
150
+ }) => {
151
+ const tokenAmount = new TokenAmount(0, token);
152
+ const result = await warpCore.estimateTransferRemoteFees({
153
+ originTokenAmount: tokenAmount,
154
+ destination,
155
+ sender: MOCK_ADDRESS,
156
+ recipient: MOCK_ADDRESS,
157
+ });
158
+ expect(result.localQuote.token.standard, `token local standard check for ${token.chainName} to ${destination}`).equals(standard);
159
+ expect(result.localQuote.amount, `token local amount check for ${token.chainName} to ${destination}`).to.equal(MOCK_LOCAL_QUOTE.fee);
160
+ expect(result.interchainQuote.token.standard, `token interchain standard check for ${token.chainName} to ${destination}`).equals(standard);
161
+ expect(result.interchainQuote.amount, `token interchain amount check for ${token.chainName} to ${destination}`).to.equal(interchainQuote.igpQuote.amount);
162
+ expect(result.tokenFeeQuote?.amount, `token fee amount check for ${token.chainName} to ${destination}`).to.equal(interchainQuote.tokenFeeQuote?.amount);
163
+ };
164
+ await testQuote(evmHypNative, test1.name, TokenStandard.EvmNative);
165
+ await testQuote(evmHypNative, testCosmosChain.name, TokenStandard.EvmNative);
166
+ await testQuote(evmHypNative, testSealevelChain.name, TokenStandard.EvmNative);
167
+ await testQuote(evmHypSynthetic, test2.name, TokenStandard.EvmNative);
168
+ await testQuote(sealevelHypSynthetic, test2.name, TokenStandard.SealevelNative);
169
+ await testQuote(cosmosIbc, test1.name, TokenStandard.CosmosNative);
170
+ // Note, this route uses an igp quote const config
171
+ await testQuote(cwHypCollateral, test2.name, TokenStandard.CosmosNative, {
172
+ igpQuote: { amount: 1n, addressOrDenom: 'atom' },
173
+ });
174
+ stubs.forEach((s) => s.restore());
175
+ });
176
+ it('Checks for destination collateral', async () => {
177
+ const stubs = warpCore.tokens.map((t) => sinon.stub(t, 'getHypAdapter').returns({
178
+ getBalance: () => Promise.resolve(MOCK_BALANCE),
179
+ getBridgedSupply: () => Promise.resolve(MOCK_BALANCE),
180
+ isRevokeApprovalRequired: () => Promise.resolve(false),
181
+ }));
182
+ const testCollateral = async (token, destination, expectedBigResult) => {
183
+ const smallResult = await warpCore.isDestinationCollateralSufficient({
184
+ originTokenAmount: token.amount(TRANSFER_AMOUNT),
185
+ destination,
186
+ });
187
+ expect(smallResult, `small collateral check for ${token.chainName} to ${destination}`).to.be.true;
188
+ const bigResult = await warpCore.isDestinationCollateralSufficient({
189
+ originTokenAmount: token.amount(BIG_TRANSFER_AMOUNT),
190
+ destination,
191
+ });
192
+ expect(bigResult, `big collateral check for ${token.chainName} to ${destination}`).to.equal(expectedBigResult);
193
+ };
194
+ await testCollateral(evmHypNative, test2.name, true);
195
+ await testCollateral(evmHypNative, testCosmosChain.name, false);
196
+ await testCollateral(evmHypNative, testSealevelChain.name, true);
197
+ await testCollateral(cwHypCollateral, test1.name, false);
198
+ await testCollateral(evmHypXERC20, testVSXERC20.name, true);
199
+ await testCollateral(evmHypVSXERC20, testXERC20.name, true);
200
+ await testCollateral(evmHypXERC20Lockbox, testXERC20.name, true);
201
+ await testCollateral(evmHypNative, testXERC20Lockbox.name, false);
202
+ stubs.forEach((s) => s.restore());
203
+ });
204
+ [TokenType.collateralCctp, TokenType.collateralOft].forEach((tokenType) => {
205
+ it(`Skips destination collateral checks for ${tokenType}`, async () => {
206
+ const originToken = new Token({
207
+ chainName: test1.name,
208
+ standard: TokenStandard.EvmHypCollateral,
209
+ tokenType,
210
+ decimals: 6,
211
+ symbol: 'USDC',
212
+ name: 'USD Coin',
213
+ addressOrDenom: MOCK_ADDRESS,
214
+ collateralAddressOrDenom: MOCK_ADDRESS,
215
+ connections: [],
216
+ });
217
+ const destinationToken = new Token({
218
+ chainName: test2.name,
219
+ standard: TokenStandard.EvmHypCollateral,
220
+ tokenType,
221
+ decimals: 6,
222
+ symbol: 'USDC',
223
+ name: 'USD Coin',
224
+ addressOrDenom: MOCK_ADDRESS_2,
225
+ collateralAddressOrDenom: MOCK_ADDRESS_2,
226
+ connections: [],
227
+ });
228
+ originToken.addConnection({ token: destinationToken });
229
+ const protocolBackedWarpCore = new WarpCore(multiProvider, [
230
+ originToken,
231
+ destinationToken,
232
+ ]);
233
+ const destinationAdapterStub = sinon
234
+ .stub(destinationToken, 'getAdapter')
235
+ .throws(new Error('destination collateral should not be read'));
236
+ const destinationHypAdapterStub = sinon
237
+ .stub(destinationToken, 'getHypAdapter')
238
+ .throws(new Error('destination collateral should not be read'));
239
+ const result = await protocolBackedWarpCore.isDestinationCollateralSufficient({
240
+ originTokenAmount: originToken.amount(BIG_TRANSFER_AMOUNT),
241
+ destination: test2.name,
242
+ });
243
+ expect(result).to.be.true;
244
+ sinon.assert.notCalled(destinationAdapterStub);
245
+ sinon.assert.notCalled(destinationHypAdapterStub);
246
+ });
247
+ });
248
+ it('Checks destination collateral for non-exempt collateral token types', async () => {
249
+ const originToken = new Token({
250
+ chainName: test1.name,
251
+ standard: TokenStandard.EvmHypCollateral,
252
+ tokenType: TokenType.collateral,
253
+ decimals: 6,
254
+ symbol: 'USDC',
255
+ name: 'USD Coin',
256
+ addressOrDenom: MOCK_ADDRESS,
257
+ collateralAddressOrDenom: MOCK_ADDRESS,
258
+ connections: [],
259
+ });
260
+ const destinationToken = new Token({
261
+ chainName: test2.name,
262
+ standard: TokenStandard.EvmHypCollateral,
263
+ tokenType: TokenType.collateral,
264
+ decimals: 6,
265
+ symbol: 'USDC',
266
+ name: 'USD Coin',
267
+ addressOrDenom: MOCK_ADDRESS_2,
268
+ collateralAddressOrDenom: MOCK_ADDRESS_2,
269
+ connections: [],
270
+ });
271
+ originToken.addConnection({ token: destinationToken });
272
+ const collateralWarpCore = new WarpCore(multiProvider, [
273
+ originToken,
274
+ destinationToken,
275
+ ]);
276
+ const getBalanceStub = sinon.stub().resolves(MOCK_BALANCE);
277
+ const destinationAdapterStub = sinon
278
+ .stub(destinationToken, 'getAdapter')
279
+ .returns({
280
+ getBalance: getBalanceStub,
281
+ });
282
+ const destinationHypAdapterStub = sinon
283
+ .stub(destinationToken, 'getHypAdapter')
284
+ .throws(new Error('destination hyp adapter should not be read'));
285
+ const result = await collateralWarpCore.isDestinationCollateralSufficient({
286
+ originTokenAmount: originToken.amount(BIG_TRANSFER_AMOUNT),
287
+ destination: test2.name,
288
+ });
289
+ expect(result).to.be.false;
290
+ sinon.assert.calledOnce(destinationAdapterStub);
291
+ sinon.assert.calledOnceWithExactly(getBalanceStub, MOCK_ADDRESS_2);
292
+ sinon.assert.notCalled(destinationHypAdapterStub);
293
+ });
294
+ it('Checks for destination collateral with scaling factors', async () => {
295
+ const stubs = warpCore.tokens.map((t) => sinon.stub(t, 'getHypAdapter').returns({
296
+ getBalance: () => Promise.resolve(10n),
297
+ getBridgedSupply: () => Promise.resolve(10n),
298
+ isRevokeApprovalRequired: () => Promise.resolve(false),
299
+ }));
300
+ const testCollateral = async (token, destination, amount, expectedResult) => {
301
+ const result = await warpCore.isDestinationCollateralSufficient({
302
+ originTokenAmount: token.amount(amount),
303
+ destination,
304
+ });
305
+ expect(result, `collateral check for ${token.chainName} to ${destination}`).to.equal(expectedResult);
306
+ };
307
+ const originalScale1 = evmHypNativeScale1.scale;
308
+ const originalScale2 = evmHypNativeScale2.scale;
309
+ try {
310
+ await testCollateral(evmHypNativeScale1, testScale2.name, 10n, false);
311
+ await testCollateral(evmHypNativeScale1, testScale2.name, 1n, true);
312
+ await testCollateral(evmHypNativeScale2, testScale1.name, 10n, true);
313
+ await testCollateral(evmHypNativeScale2, testScale1.name, 100n, true);
314
+ await testCollateral(evmHypNativeScale2, testScale1.name, 101n, false);
315
+ evmHypNativeScale1.scale = { numerator: 100n, denominator: 10n };
316
+ evmHypNativeScale2.scale = { numerator: 10n, denominator: 10n };
317
+ await testCollateral(evmHypNativeScale1, testScale2.name, 10n, false);
318
+ await testCollateral(evmHypNativeScale1, testScale2.name, 1n, true);
319
+ await testCollateral(evmHypNativeScale2, testScale1.name, 10n, true);
320
+ await testCollateral(evmHypNativeScale2, testScale1.name, 100n, true);
321
+ await testCollateral(evmHypNativeScale2, testScale1.name, 101n, false);
322
+ }
323
+ finally {
324
+ evmHypNativeScale1.scale = originalScale1;
325
+ evmHypNativeScale2.scale = originalScale2;
326
+ stubs.forEach((s) => s.restore());
327
+ }
328
+ });
329
+ it('Preserves decimals fallback for mixed-decimal routes missing scale', async () => {
330
+ const originToken = new Token({
331
+ chainName: test1.name,
332
+ standard: TokenStandard.EvmHypCollateral,
333
+ addressOrDenom: zeroAddress,
334
+ decimals: 18,
335
+ symbol: 'TEST',
336
+ name: 'Test Token',
337
+ connections: [],
338
+ });
339
+ const destinationToken = new Token({
340
+ chainName: test2.name,
341
+ standard: TokenStandard.EvmHypCollateral,
342
+ addressOrDenom: zeroAddress,
343
+ decimals: 6,
344
+ symbol: 'TEST',
345
+ name: 'Test Token',
346
+ connections: [],
347
+ });
348
+ originToken.connections.push({ token: destinationToken });
349
+ const mixedDecimalWarpCore = new WarpCore(multiProvider, [
350
+ originToken,
351
+ destinationToken,
352
+ ]);
353
+ const originStub = sinon.stub(originToken, 'getHypAdapter').returns({
354
+ getBalance: () => Promise.resolve(1000000n),
355
+ getBridgedSupply: () => Promise.resolve(1000000n),
356
+ });
357
+ const destinationStub = sinon
358
+ .stub(destinationToken, 'getHypAdapter')
359
+ .returns({
360
+ getBalance: () => Promise.resolve(1000000n),
361
+ getBridgedSupply: () => Promise.resolve(1000000n),
362
+ });
363
+ try {
364
+ expect(await mixedDecimalWarpCore.isDestinationCollateralSufficient({
365
+ originTokenAmount: originToken.amount(1000000000000000000n),
366
+ destination: test2.name,
367
+ })).to.be.true;
368
+ expect(await mixedDecimalWarpCore.isDestinationCollateralSufficient({
369
+ originTokenAmount: originToken.amount(1000000000000000001n),
370
+ destination: test2.name,
371
+ })).to.be.false;
372
+ }
373
+ finally {
374
+ originStub.restore();
375
+ destinationStub.restore();
376
+ }
377
+ });
378
+ it('Uses message-space collateral checks when one side has rational scale and the other uses implicit identity', async () => {
379
+ const originToken = new Token({
380
+ chainName: test1.name,
381
+ standard: TokenStandard.EvmHypCollateral,
382
+ addressOrDenom: zeroAddress,
383
+ decimals: 18,
384
+ scale: { numerator: 2, denominator: 1_000_000_000_000 },
385
+ symbol: 'TEST',
386
+ name: 'Test Token',
387
+ connections: [],
388
+ });
389
+ const destinationToken = new Token({
390
+ chainName: test2.name,
391
+ standard: TokenStandard.EvmHypCollateral,
392
+ addressOrDenom: zeroAddress,
393
+ decimals: 6,
394
+ symbol: 'TEST',
395
+ name: 'Test Token',
396
+ connections: [],
397
+ });
398
+ originToken.connections.push({ token: destinationToken });
399
+ const scaledWarpCore = new WarpCore(multiProvider, [
400
+ originToken,
401
+ destinationToken,
402
+ ]);
403
+ const originStub = sinon.stub(originToken, 'getHypAdapter').returns({
404
+ getBalance: () => Promise.resolve(1000000n),
405
+ getBridgedSupply: () => Promise.resolve(1000000n),
406
+ });
407
+ const destinationStub = sinon
408
+ .stub(destinationToken, 'getHypAdapter')
409
+ .returns({
410
+ getBalance: () => Promise.resolve(1000000n),
411
+ getBridgedSupply: () => Promise.resolve(1000000n),
412
+ });
413
+ try {
414
+ expect(await scaledWarpCore.isDestinationCollateralSufficient({
415
+ originTokenAmount: originToken.amount(500000000000000000n),
416
+ destination: test2.name,
417
+ })).to.be.true;
418
+ expect(await scaledWarpCore.isDestinationCollateralSufficient({
419
+ originTokenAmount: originToken.amount(750000000000000000n),
420
+ destination: test2.name,
421
+ })).to.be.false;
422
+ }
423
+ finally {
424
+ originStub.restore();
425
+ destinationStub.restore();
426
+ }
427
+ });
428
+ it('Uses message-space collateral checks when destination has scale and origin uses implicit identity', async () => {
429
+ // Reverse of the previous test: origin is the "simple" 6-dec side,
430
+ // destination is 18-dec with a rational scale.
431
+ const originToken = new Token({
432
+ chainName: test1.name,
433
+ standard: TokenStandard.EvmHypCollateral,
434
+ addressOrDenom: zeroAddress,
435
+ decimals: 6,
436
+ symbol: 'TEST',
437
+ name: 'Test Token',
438
+ connections: [],
439
+ });
440
+ const destinationToken = new Token({
441
+ chainName: test2.name,
442
+ standard: TokenStandard.EvmHypCollateral,
443
+ addressOrDenom: zeroAddress,
444
+ decimals: 18,
445
+ scale: { numerator: 2, denominator: 1_000_000_000_000 },
446
+ symbol: 'TEST',
447
+ name: 'Test Token',
448
+ connections: [],
449
+ });
450
+ originToken.connections.push({ token: destinationToken });
451
+ const scaledWarpCore = new WarpCore(multiProvider, [
452
+ originToken,
453
+ destinationToken,
454
+ ]);
455
+ // dest has 1_000_000 local units; scale {2, 1e12} → message = 1_000_000 * 2 / 1e12 = 0
456
+ // So even a small origin amount should be insufficient.
457
+ const originStub = sinon.stub(originToken, 'getHypAdapter').returns({
458
+ getBalance: () => Promise.resolve(1000000n),
459
+ getBridgedSupply: () => Promise.resolve(1000000n),
460
+ });
461
+ const destinationStub = sinon
462
+ .stub(destinationToken, 'getHypAdapter')
463
+ .returns({
464
+ getBalance: () => Promise.resolve(1000000n),
465
+ getBridgedSupply: () => Promise.resolve(1000000n),
466
+ });
467
+ try {
468
+ // origin 1_000_000 (6-dec, identity scale) → message = 1_000_000
469
+ // dest 1_000_000 (18-dec, scale 2/1e12) → message = 0 (floor)
470
+ expect(await scaledWarpCore.isDestinationCollateralSufficient({
471
+ originTokenAmount: originToken.amount(1n),
472
+ destination: test2.name,
473
+ })).to.be.false;
474
+ // Give dest enough balance: 500_000_000_000_000_000 * 2 / 1e12 = 1_000_000
475
+ destinationStub.restore();
476
+ const destinationStub2 = sinon
477
+ .stub(destinationToken, 'getHypAdapter')
478
+ .returns({
479
+ getBalance: () => Promise.resolve(500000000000000000n),
480
+ getBridgedSupply: () => Promise.resolve(500000000000000000n),
481
+ });
482
+ expect(await scaledWarpCore.isDestinationCollateralSufficient({
483
+ originTokenAmount: originToken.amount(1000000n),
484
+ destination: test2.name,
485
+ })).to.be.true;
486
+ destinationStub2.restore();
487
+ }
488
+ finally {
489
+ originStub.restore();
490
+ }
491
+ });
492
+ it('Uses message-space collateral checks when both tokens have non-trivial scale and different decimals', async () => {
493
+ // Production-realistic: origin 18-dec with scale-down {1, 1e12},
494
+ // dest 6-dec with scale-up {2, 1}.
495
+ // origin message amount = localAmount * 1 / 1e12
496
+ // dest message amount = localAmount * 2 / 1
497
+ const originToken = new Token({
498
+ chainName: test1.name,
499
+ standard: TokenStandard.EvmHypCollateral,
500
+ addressOrDenom: zeroAddress,
501
+ decimals: 18,
502
+ scale: { numerator: 1, denominator: 1_000_000_000_000 },
503
+ symbol: 'TEST',
504
+ name: 'Test Token',
505
+ connections: [],
506
+ });
507
+ const destinationToken = new Token({
508
+ chainName: test2.name,
509
+ standard: TokenStandard.EvmHypCollateral,
510
+ addressOrDenom: zeroAddress,
511
+ decimals: 6,
512
+ scale: { numerator: 2, denominator: 1 },
513
+ symbol: 'TEST',
514
+ name: 'Test Token',
515
+ connections: [],
516
+ });
517
+ originToken.connections.push({ token: destinationToken });
518
+ const scaledWarpCore = new WarpCore(multiProvider, [
519
+ originToken,
520
+ destinationToken,
521
+ ]);
522
+ const originStub = sinon.stub(originToken, 'getHypAdapter').returns({
523
+ getBalance: () => Promise.resolve(1000000n),
524
+ getBridgedSupply: () => Promise.resolve(1000000n),
525
+ });
526
+ // dest balance 500_000: message = 500_000 * 2 = 1_000_000
527
+ const destinationStub = sinon
528
+ .stub(destinationToken, 'getHypAdapter')
529
+ .returns({
530
+ getBalance: () => Promise.resolve(500000n),
531
+ getBridgedSupply: () => Promise.resolve(500000n),
532
+ });
533
+ try {
534
+ // origin 1_000_000_000_000_000_000 (1 token in 18-dec)
535
+ // → message = 1e18 * 1 / 1e12 = 1_000_000
536
+ // dest message = 500_000 * 2 = 1_000_000 → sufficient
537
+ expect(await scaledWarpCore.isDestinationCollateralSufficient({
538
+ originTokenAmount: originToken.amount(1000000000000000000n),
539
+ destination: test2.name,
540
+ })).to.be.true;
541
+ // origin 2e18 → message = 2_000_000
542
+ // dest message = 1_000_000 → insufficient
543
+ expect(await scaledWarpCore.isDestinationCollateralSufficient({
544
+ originTokenAmount: originToken.amount(2000000000000000000n),
545
+ destination: test2.name,
546
+ })).to.be.false;
547
+ }
548
+ finally {
549
+ originStub.restore();
550
+ destinationStub.restore();
551
+ }
552
+ });
553
+ it('Validates transfers', async () => {
554
+ const balanceStubs = warpCore.tokens.map((t) => sinon.stub(t, 'getBalance').resolves({ amount: MOCK_BALANCE }));
555
+ const minimumTransferAmount = 10n;
556
+ const quoteStubs = warpCore.tokens.map((t) => sinon.stub(t, 'getHypAdapter').returns({
557
+ quoteTransferRemoteGas: () => Promise.resolve({ igpQuote: MOCK_INTERCHAIN_QUOTE }),
558
+ isApproveRequired: () => Promise.resolve(false),
559
+ populateTransferRemoteTx: () => Promise.resolve({}),
560
+ getMinimumTransferAmount: () => Promise.resolve(minimumTransferAmount),
561
+ getBalance: () => Promise.resolve(MOCK_BALANCE),
562
+ getBridgedSupply: () => Promise.resolve(MOCK_BALANCE),
563
+ getMintLimit: () => Promise.resolve(MEDIUM_MOCK_BALANCE),
564
+ getMintMaxLimit: () => Promise.resolve(MEDIUM_MOCK_BALANCE),
565
+ isRevokeApprovalRequired: () => Promise.resolve(false),
566
+ }));
567
+ // Recipient differs from sender so a dropped `recipient` in
568
+ // validateTokenBalances -> getLocalTransferFeeAmount is observable.
569
+ const localFeeSpy = sinon.spy(warpCore, 'getLocalTransferFeeAmount');
570
+ try {
571
+ const validResult = await warpCore.validateTransfer({
572
+ originTokenAmount: evmHypNative.amount(TRANSFER_AMOUNT),
573
+ destination: test2.name,
574
+ recipient: MOCK_ADDRESS_2,
575
+ sender: MOCK_ADDRESS,
576
+ });
577
+ expect(validResult).to.be.null;
578
+ sinon.assert.calledOnce(localFeeSpy);
579
+ expect(localFeeSpy.firstCall.args[0].recipient).to.equal(MOCK_ADDRESS_2);
580
+ }
581
+ finally {
582
+ localFeeSpy.restore();
583
+ }
584
+ const invalidChain = await warpCore.validateTransfer({
585
+ originTokenAmount: evmHypNative.amount(TRANSFER_AMOUNT),
586
+ destination: 'fakechain',
587
+ recipient: MOCK_ADDRESS,
588
+ sender: MOCK_ADDRESS,
589
+ });
590
+ expect(Object.keys(invalidChain || {})[0]).to.equal('destination');
591
+ const invalidRecipient = await warpCore.validateTransfer({
592
+ originTokenAmount: evmHypNative.amount(TRANSFER_AMOUNT),
593
+ destination: testCosmosChain.name,
594
+ recipient: MOCK_ADDRESS,
595
+ sender: MOCK_ADDRESS,
596
+ });
597
+ expect(Object.keys(invalidRecipient || {})[0]).to.equal('recipient');
598
+ const invalidAmount = await warpCore.validateTransfer({
599
+ originTokenAmount: evmHypNative.amount(-10),
600
+ destination: test2.name,
601
+ recipient: MOCK_ADDRESS,
602
+ sender: MOCK_ADDRESS,
603
+ });
604
+ expect(Object.keys(invalidAmount || {})[0]).to.equal('amount');
605
+ const insufficientAmount = await warpCore.validateTransfer({
606
+ originTokenAmount: evmHypNative.amount(minimumTransferAmount - 1n),
607
+ destination: test2.name,
608
+ recipient: MOCK_ADDRESS,
609
+ sender: MOCK_ADDRESS,
610
+ });
611
+ expect(Object.keys(insufficientAmount || {})[0]).to.equal('amount');
612
+ const insufficientBalance = await warpCore.validateTransfer({
613
+ originTokenAmount: evmHypNative.amount(BIG_TRANSFER_AMOUNT),
614
+ destination: test2.name,
615
+ recipient: MOCK_ADDRESS,
616
+ sender: MOCK_ADDRESS,
617
+ });
618
+ expect(Object.keys(insufficientBalance || {})[0]).to.equal('amount');
619
+ const validXERC20TokenResult = await warpCore.validateTransfer({
620
+ originTokenAmount: evmHypNative.amount(TRANSFER_AMOUNT),
621
+ destination: testXERC20.name,
622
+ recipient: MOCK_ADDRESS,
623
+ sender: MOCK_ADDRESS,
624
+ });
625
+ expect(validXERC20TokenResult).to.be.null;
626
+ const invalidRateLimit = await warpCore.validateTransfer({
627
+ originTokenAmount: evmHypNative.amount(BIG_TRANSFER_AMOUNT),
628
+ destination: testXERC20.name,
629
+ recipient: MOCK_ADDRESS,
630
+ sender: MOCK_ADDRESS,
631
+ });
632
+ expect(Object.values(invalidRateLimit || {})[0]).to.equal('Rate limit exceeded on destination');
633
+ const invalidXERC20LockboxTokenRateLimit = await warpCore.validateTransfer({
634
+ originTokenAmount: evmHypXERC20.amount(BIG_TRANSFER_AMOUNT),
635
+ destination: testXERC20Lockbox.name,
636
+ recipient: MOCK_ADDRESS,
637
+ sender: MOCK_ADDRESS,
638
+ });
639
+ expect(Object.values(invalidXERC20LockboxTokenRateLimit || {})[0]).to.equal('Rate limit exceeded on destination');
640
+ const invalidCollateralFiatTokenRateLimit = await warpCore.validateTransfer({
641
+ originTokenAmount: evmHypNative.amount(BIG_TRANSFER_AMOUNT),
642
+ destination: evmHypCollateralFiat.chainName,
643
+ recipient: MOCK_ADDRESS,
644
+ sender: MOCK_ADDRESS,
645
+ });
646
+ expect(Object.values(invalidCollateralFiatTokenRateLimit || {})[0]).to.equal('Rate limit exceeded on destination');
647
+ const invalidCollateralXERC20LockboxToken = await warpCore.validateTransfer({
648
+ originTokenAmount: evmHypXERC20.amount(MEDIUM_TRANSFER_AMOUNT),
649
+ destination: testXERC20Lockbox.name,
650
+ recipient: MOCK_ADDRESS,
651
+ sender: MOCK_ADDRESS,
652
+ });
653
+ expect(Object.values(invalidCollateralXERC20LockboxToken || {})[0]).to.equal('Insufficient collateral on destination');
654
+ balanceStubs.forEach((s) => {
655
+ s.restore();
656
+ });
657
+ quoteStubs.forEach((s) => {
658
+ s.restore();
659
+ });
660
+ });
661
+ it('Quotes the interchain transfer fee once during an xERC20 validateTransfer', async () => {
662
+ // A single shared quote stub across every token adapter. Asserting it fires
663
+ // exactly once proves validateTransfer hoists the interchain fee quote and
664
+ // reuses it across the origin burn-limit and token-balance checks instead
665
+ // of quoting twice.
666
+ // Quote the IGP fee in the origin xERC20 asset (via its addressOrDenom) so
667
+ // the interchain-fee balance check reuses the sender balance rather than
668
+ // looking up a native token that isn't part of the stubbed token set.
669
+ const quoteTransferRemoteGas = sinon.stub().resolves({
670
+ igpQuote: {
671
+ amount: MOCK_INTERCHAIN_QUOTE.amount,
672
+ addressOrDenom: evmHypXERC20.addressOrDenom,
673
+ },
674
+ });
675
+ const minimumTransferAmount = 10n;
676
+ warpCore.tokens.forEach((t) => {
677
+ sinon.stub(t, 'getBalance').resolves(t.amount(MOCK_BALANCE));
678
+ sinon.stub(t, 'getHypAdapter').returns(asHypAdapter({
679
+ quoteTransferRemoteGas,
680
+ isApproveRequired: () => Promise.resolve(false),
681
+ populateTransferRemoteTx: () => Promise.resolve({}),
682
+ getMinimumTransferAmount: () => Promise.resolve(minimumTransferAmount),
683
+ getBalance: () => Promise.resolve(MOCK_BALANCE),
684
+ getBridgedSupply: () => Promise.resolve(MOCK_BALANCE),
685
+ getMintLimit: () => Promise.resolve(MEDIUM_MOCK_BALANCE),
686
+ getMintMaxLimit: () => Promise.resolve(MEDIUM_MOCK_BALANCE),
687
+ isRevokeApprovalRequired: () => Promise.resolve(false),
688
+ }));
689
+ // validateOriginCollateral reads the burn limit via getAdapter (not the
690
+ // Hyp adapter). Keep it well above the transfer so the xERC20 origin path
691
+ // passes and execution reaches validateTokenBalances.
692
+ sinon.stub(t, 'getAdapter').returns(asTokenAdapter({
693
+ getBurnLimit: () => Promise.resolve(BIG_TRANSFER_AMOUNT),
694
+ getMinimumTransferAmount: () => Promise.resolve(minimumTransferAmount),
695
+ getBalance: () => Promise.resolve(MOCK_BALANCE),
696
+ isApproveRequired: () => Promise.resolve(false),
697
+ }));
698
+ });
699
+ const result = await warpCore.validateTransfer({
700
+ originTokenAmount: evmHypXERC20.amount(TRANSFER_AMOUNT),
701
+ destination: test1.name,
702
+ recipient: MOCK_ADDRESS,
703
+ sender: MOCK_ADDRESS,
704
+ });
705
+ expect(result).to.be.null;
706
+ sinon.assert.calledOnce(quoteTransferRemoteGas);
707
+ });
708
+ it('Validates Tron destination rate limits', async () => {
709
+ const standards = [
710
+ TokenStandard.TronHypXERC20,
711
+ TokenStandard.TronHypXERC20Lockbox,
712
+ TokenStandard.TronHypVSXERC20,
713
+ TokenStandard.TronHypVSXERC20Lockbox,
714
+ TokenStandard.TronHypCollateralFiat,
715
+ ];
716
+ for (const standard of standards) {
717
+ const originToken = new Token({
718
+ chainName: test1.name,
719
+ standard: TokenStandard.EvmHypNative,
720
+ addressOrDenom: MOCK_ADDRESS,
721
+ decimals: 18,
722
+ symbol: 'TEST',
723
+ name: 'Test Token',
724
+ connections: [],
725
+ });
726
+ const destinationToken = new Token({
727
+ chainName: test2.name,
728
+ standard,
729
+ addressOrDenom: MOCK_ADDRESS_2,
730
+ collateralAddressOrDenom: MOCK_ADDRESS_2,
731
+ decimals: 18,
732
+ symbol: 'TEST',
733
+ name: 'Test Token',
734
+ connections: [],
735
+ });
736
+ originToken.addConnection({ token: destinationToken });
737
+ const getMintLimit = sinon.stub().resolves(80n);
738
+ const getMintMaxLimit = sinon.stub().resolves(100n);
739
+ sinon.stub(destinationToken, 'getAdapter').returns(asTokenAdapter({
740
+ getMintLimit,
741
+ getMintMaxLimit,
742
+ }));
743
+ const tronWarpCore = new TestWarpCore(multiProvider, [
744
+ originToken,
745
+ destinationToken,
746
+ ]);
747
+ const isVSXERC20 = standard === TokenStandard.TronHypVSXERC20 ||
748
+ standard === TokenStandard.TronHypVSXERC20Lockbox;
749
+ const expectedLimit = isVSXERC20 ? 50n : 80n;
750
+ expect(await tronWarpCore.runValidateDestinationRateLimit(originToken.amount(expectedLimit), test2.name)).to.be.null;
751
+ expect(await tronWarpCore.runValidateDestinationRateLimit(originToken.amount(expectedLimit + 1n), test2.name)).to.deep.equal({ amount: 'Rate limit exceeded on destination' });
752
+ sinon.assert.calledTwice(getMintLimit);
753
+ if (isVSXERC20)
754
+ sinon.assert.calledTwice(getMintMaxLimit);
755
+ else
756
+ sinon.assert.notCalled(getMintMaxLimit);
757
+ }
758
+ });
759
+ it('Validates scaled destination rate limits in message space', async () => {
760
+ const cases = [
761
+ // xERC20 origin→dest: effective limit 80, origin scale 4 → dest scale 1.
762
+ // decimal-only would compare 80 >= 30 and wrongly approve; message space
763
+ // compares 30*4=120 vs 80*1=80 and correctly rejects.
764
+ {
765
+ name: 'xERC20 origin→dest rejects amount decimal-only would approve',
766
+ originStandard: TokenStandard.TronHypXERC20,
767
+ destStandard: TokenStandard.TronHypXERC20,
768
+ originScale: 4,
769
+ destScale: 1,
770
+ mintLimit: 80n,
771
+ amount: 30n,
772
+ expectSufficient: false,
773
+ },
774
+ {
775
+ name: 'xERC20 origin→dest allows scaled within-limit amount',
776
+ originStandard: TokenStandard.TronHypXERC20,
777
+ destStandard: TokenStandard.TronHypXERC20,
778
+ originScale: 4,
779
+ destScale: 1,
780
+ mintLimit: 80n,
781
+ amount: 20n,
782
+ expectSufficient: true,
783
+ },
784
+ // Reverse direction: origin scale 1 → dest scale 4, available in message
785
+ // space is 80*4=320. decimal-only would compare 80 >= 200 and wrongly
786
+ // reject; message space allows 200*1=200 <= 320.
787
+ {
788
+ name: 'xERC20 dest→origin allows amount decimal-only would reject',
789
+ originStandard: TokenStandard.TronHypXERC20,
790
+ destStandard: TokenStandard.TronHypXERC20,
791
+ originScale: 1,
792
+ destScale: 4,
793
+ mintLimit: 80n,
794
+ amount: 200n,
795
+ expectSufficient: true,
796
+ },
797
+ {
798
+ name: 'xERC20 dest→origin rejects true over-limit amount',
799
+ originStandard: TokenStandard.TronHypXERC20,
800
+ destStandard: TokenStandard.TronHypXERC20,
801
+ originScale: 1,
802
+ destScale: 4,
803
+ mintLimit: 80n,
804
+ amount: 400n,
805
+ expectSufficient: false,
806
+ },
807
+ // VS routes clamp the mint limit to bufferCap / 2 (=80) before comparing.
808
+ {
809
+ name: 'VS xERC20 origin→dest rejects amount decimal-only would approve',
810
+ originStandard: TokenStandard.TronHypVSXERC20,
811
+ destStandard: TokenStandard.TronHypVSXERC20,
812
+ originScale: 4,
813
+ destScale: 1,
814
+ mintLimit: 200n,
815
+ bufferCap: 160n,
816
+ amount: 30n,
817
+ expectSufficient: false,
818
+ },
819
+ {
820
+ name: 'VS xERC20 origin→dest allows scaled within-limit amount',
821
+ originStandard: TokenStandard.TronHypVSXERC20,
822
+ destStandard: TokenStandard.TronHypVSXERC20,
823
+ originScale: 4,
824
+ destScale: 1,
825
+ mintLimit: 200n,
826
+ bufferCap: 160n,
827
+ amount: 20n,
828
+ expectSufficient: true,
829
+ },
830
+ {
831
+ name: 'VS xERC20 dest→origin allows amount decimal-only would reject',
832
+ originStandard: TokenStandard.TronHypVSXERC20,
833
+ destStandard: TokenStandard.TronHypVSXERC20,
834
+ originScale: 1,
835
+ destScale: 4,
836
+ mintLimit: 200n,
837
+ bufferCap: 160n,
838
+ amount: 200n,
839
+ expectSufficient: true,
840
+ },
841
+ {
842
+ name: 'VS xERC20 dest→origin rejects true over-limit amount',
843
+ originStandard: TokenStandard.TronHypVSXERC20,
844
+ destStandard: TokenStandard.TronHypVSXERC20,
845
+ originScale: 1,
846
+ destScale: 4,
847
+ mintLimit: 200n,
848
+ bufferCap: 160n,
849
+ amount: 400n,
850
+ expectSufficient: false,
851
+ },
852
+ ];
853
+ for (const c of cases) {
854
+ const originToken = new Token({
855
+ chainName: test1.name,
856
+ standard: c.originStandard,
857
+ addressOrDenom: MOCK_ADDRESS,
858
+ collateralAddressOrDenom: MOCK_ADDRESS,
859
+ decimals: 18,
860
+ scale: c.originScale,
861
+ symbol: 'TEST',
862
+ name: 'Test Token',
863
+ connections: [],
864
+ });
865
+ const destinationToken = new Token({
866
+ chainName: test2.name,
867
+ standard: c.destStandard,
868
+ addressOrDenom: MOCK_ADDRESS_2,
869
+ collateralAddressOrDenom: MOCK_ADDRESS_2,
870
+ decimals: 18,
871
+ scale: c.destScale,
872
+ symbol: 'TEST',
873
+ name: 'Test Token',
874
+ connections: [],
875
+ });
876
+ originToken.addConnection({ token: destinationToken });
877
+ const getMintLimit = sinon.stub().resolves(c.mintLimit);
878
+ const getMintMaxLimit = sinon.stub().resolves(c.bufferCap ?? 0n);
879
+ sinon.stub(destinationToken, 'getAdapter').returns(asTokenAdapter({
880
+ getMintLimit,
881
+ getMintMaxLimit,
882
+ }));
883
+ const tronWarpCore = new TestWarpCore(multiProvider, [
884
+ originToken,
885
+ destinationToken,
886
+ ]);
887
+ const result = await tronWarpCore.runValidateDestinationRateLimit(originToken.amount(c.amount), test2.name);
888
+ if (c.expectSufficient) {
889
+ expect(result, c.name).to.be.null;
890
+ }
891
+ else {
892
+ expect(result, c.name).to.deep.equal({
893
+ amount: 'Rate limit exceeded on destination',
894
+ });
895
+ }
896
+ }
897
+ });
898
+ it('Validates Tron xERC20 origin burn limits including token fee', async () => {
899
+ const standards = [
900
+ TokenStandard.TronHypXERC20,
901
+ TokenStandard.TronHypXERC20Lockbox,
902
+ TokenStandard.TronHypVSXERC20,
903
+ TokenStandard.TronHypVSXERC20Lockbox,
904
+ ];
905
+ const burnLimit = 40n;
906
+ const tokenFee = 5n;
907
+ for (const standard of standards) {
908
+ const originToken = new Token({
909
+ chainName: test1.name,
910
+ standard,
911
+ addressOrDenom: MOCK_ADDRESS,
912
+ collateralAddressOrDenom: MOCK_ADDRESS,
913
+ decimals: 18,
914
+ symbol: 'TEST',
915
+ name: 'Test Token',
916
+ connections: [],
917
+ });
918
+ const getBurnLimit = sinon.stub().resolves(burnLimit);
919
+ sinon.stub(originToken, 'getAdapter').returns(asTokenAdapter({
920
+ getBurnLimit,
921
+ }));
922
+ // Token fee is charged in the origin token (same asset being burned), so it
923
+ // must count toward the burn debit.
924
+ const quoteTransferRemoteGas = sinon.stub().resolves({
925
+ igpQuote: { amount: 0n },
926
+ tokenFeeQuote: { amount: tokenFee, addressOrDenom: MOCK_ADDRESS },
927
+ });
928
+ sinon.stub(originToken, 'getHypAdapter').returns(asHypAdapter({
929
+ quoteTransferRemoteGas,
930
+ }));
931
+ const tronWarpCore = new TestWarpCore(multiProvider, [originToken]);
932
+ // amount + tokenFee == burnLimit → within limit.
933
+ expect(await tronWarpCore.runValidateOriginCollateral(originToken.amount(burnLimit - tokenFee), test2.name, MOCK_ADDRESS), standard).to.be.null;
934
+ // amount alone is within the burn limit, but amount + tokenFee exceeds it.
935
+ // Without fee-inclusive accounting this would wrongly pass.
936
+ expect(await tronWarpCore.runValidateOriginCollateral(originToken.amount(burnLimit - tokenFee + 1n), test2.name, MOCK_ADDRESS), standard).to.deep.equal({ amount: 'Insufficient burn limit on origin' });
937
+ sinon.assert.calledTwice(getBurnLimit);
938
+ sinon.assert.calledTwice(quoteTransferRemoteGas);
939
+ }
940
+ });
941
+ it('Validates destination token routing', async () => {
942
+ const balanceStubs = warpCore.tokens.map((t) => sinon.stub(t, 'getBalance').resolves({ amount: MOCK_BALANCE }));
943
+ const minimumTransferAmount = 10n;
944
+ const quoteStubs = warpCore.tokens.map((t) => sinon.stub(t, 'getHypAdapter').returns({
945
+ quoteTransferRemoteGas: () => Promise.resolve({ igpQuote: MOCK_INTERCHAIN_QUOTE }),
946
+ isApproveRequired: () => Promise.resolve(false),
947
+ populateTransferRemoteTx: () => Promise.resolve({}),
948
+ getMinimumTransferAmount: () => Promise.resolve(minimumTransferAmount),
949
+ getBalance: () => Promise.resolve(MOCK_BALANCE),
950
+ getBridgedSupply: () => Promise.resolve(MOCK_BALANCE),
951
+ getMintLimit: () => Promise.resolve(MEDIUM_MOCK_BALANCE),
952
+ getMintMaxLimit: () => Promise.resolve(MEDIUM_MOCK_BALANCE),
953
+ isRevokeApprovalRequired: () => Promise.resolve(false),
954
+ }));
955
+ const invalidDestinationToken = await warpCore.validateTransfer({
956
+ originTokenAmount: evmHypNative.amount(TRANSFER_AMOUNT),
957
+ destination: test2.name,
958
+ recipient: MOCK_ADDRESS,
959
+ sender: MOCK_ADDRESS,
960
+ destinationToken: evmHypCollateralFiat,
961
+ });
962
+ expect(Object.values(invalidDestinationToken || {})[0]).to.equal(`Destination token chain mismatch for ${test2.name}`);
963
+ const validDestinationToken = await warpCore.validateTransfer({
964
+ originTokenAmount: evmHypNative.amount(TRANSFER_AMOUNT),
965
+ destination: test2.name,
966
+ recipient: MOCK_ADDRESS,
967
+ sender: MOCK_ADDRESS,
968
+ destinationToken: evmHypSynthetic,
969
+ });
970
+ expect(validDestinationToken).to.be.null;
971
+ balanceStubs.forEach((s) => {
972
+ s.restore();
973
+ });
974
+ quoteStubs.forEach((s) => {
975
+ s.restore();
976
+ });
977
+ });
978
+ it('Requires explicit destination token for ambiguous routes', async () => {
979
+ const ambiguousConfig = yamlParse(fs.readFileSync('./src/warp/test-warp-core-config.yaml', 'utf-8'));
980
+ const extraTest2Address = '0x9876543210987654321098765432109876543219';
981
+ const test1Token = ambiguousConfig.tokens.find((token) => token.chainName === test1.name &&
982
+ token.addressOrDenom === evmHypNative.addressOrDenom);
983
+ test1Token.connections.push({
984
+ token: `ethereum|${test2.name}|${extraTest2Address}`,
985
+ });
986
+ ambiguousConfig.tokens.push({
987
+ chainName: test2.name,
988
+ standard: TokenStandard.EvmHypSynthetic,
989
+ decimals: 18,
990
+ symbol: 'ETH2',
991
+ name: 'Ether 2',
992
+ addressOrDenom: extraTest2Address,
993
+ connections: [
994
+ {
995
+ token: `ethereum|${test1.name}|${evmHypNative.addressOrDenom}`,
996
+ },
997
+ ],
998
+ });
999
+ const ambiguousWarpCore = WarpCore.FromConfig(multiProvider, ambiguousConfig);
1000
+ const ambiguousOrigin = ambiguousWarpCore.findToken(test1.name, evmHypNative.addressOrDenom);
1001
+ const extraDestination = ambiguousWarpCore.findToken(test2.name, extraTest2Address);
1002
+ expect(ambiguousOrigin).to.not.be.null;
1003
+ expect(extraDestination).to.not.be.null;
1004
+ const balanceStubs = ambiguousWarpCore.tokens.map((t) => sinon.stub(t, 'getBalance').resolves({ amount: MOCK_BALANCE }));
1005
+ const minimumTransferAmount = 10n;
1006
+ const quoteStubs = ambiguousWarpCore.tokens.map((t) => sinon.stub(t, 'getHypAdapter').returns({
1007
+ quoteTransferRemoteGas: () => Promise.resolve({ igpQuote: MOCK_INTERCHAIN_QUOTE }),
1008
+ isApproveRequired: () => Promise.resolve(false),
1009
+ populateTransferRemoteTx: () => Promise.resolve({}),
1010
+ getMinimumTransferAmount: () => Promise.resolve(minimumTransferAmount),
1011
+ getBalance: () => Promise.resolve(MOCK_BALANCE),
1012
+ getBridgedSupply: () => Promise.resolve(MOCK_BALANCE),
1013
+ getMintLimit: () => Promise.resolve(MEDIUM_MOCK_BALANCE),
1014
+ getMintMaxLimit: () => Promise.resolve(MEDIUM_MOCK_BALANCE),
1015
+ isRevokeApprovalRequired: () => Promise.resolve(false),
1016
+ }));
1017
+ const ambiguousValidation = await ambiguousWarpCore.validateTransfer({
1018
+ originTokenAmount: ambiguousOrigin.amount(TRANSFER_AMOUNT),
1019
+ destination: test2.name,
1020
+ recipient: MOCK_ADDRESS,
1021
+ sender: MOCK_ADDRESS,
1022
+ });
1023
+ expect(Object.values(ambiguousValidation || {})[0]).to.equal(`Ambiguous route to ${test2.name}; specify destination token`);
1024
+ const explicitValidation = await ambiguousWarpCore.validateTransfer({
1025
+ originTokenAmount: ambiguousOrigin.amount(TRANSFER_AMOUNT),
1026
+ destination: test2.name,
1027
+ recipient: MOCK_ADDRESS,
1028
+ sender: MOCK_ADDRESS,
1029
+ destinationToken: extraDestination,
1030
+ });
1031
+ expect(explicitValidation).to.be.null;
1032
+ balanceStubs.forEach((s) => s.restore());
1033
+ quoteStubs.forEach((s) => s.restore());
1034
+ });
1035
+ it('Includes token fee in CrossCollateralRouter approval debit', async () => {
1036
+ const tokenFeeAmount = 123n;
1037
+ const originalCollateralAddress = evmHypNative.collateralAddressOrDenom;
1038
+ evmHypNative.collateralAddressOrDenom =
1039
+ evmHypNative.addressOrDenom;
1040
+ const originMultiStub = sinon
1041
+ .stub(evmHypNative, 'isCrossCollateralToken')
1042
+ .returns(true);
1043
+ const destinationMultiStub = sinon
1044
+ .stub(evmHypSynthetic, 'isCrossCollateralToken')
1045
+ .returns(true);
1046
+ const quoteTransferRemoteToGas = sinon.stub().resolves({
1047
+ igpQuote: { amount: 1n },
1048
+ tokenFeeQuote: {
1049
+ addressOrDenom: evmHypNative.addressOrDenom,
1050
+ amount: tokenFeeAmount,
1051
+ },
1052
+ });
1053
+ const isApproveRequired = sinon.stub().resolves(true);
1054
+ const populateApproveTx = sinon.stub().resolves({});
1055
+ const populateTransferRemoteToTx = sinon.stub().resolves({});
1056
+ const adapterStub = sinon.stub(evmHypNative, 'getHypAdapter').returns({
1057
+ quoteTransferRemoteToGas,
1058
+ isApproveRequired,
1059
+ populateApproveTx,
1060
+ populateTransferRemoteToTx,
1061
+ isRevokeApprovalRequired: () => Promise.resolve(false),
1062
+ });
1063
+ try {
1064
+ const result = await warpCore.getTransferRemoteTxs({
1065
+ originTokenAmount: evmHypNative.amount(TRANSFER_AMOUNT),
1066
+ destination: test2.name,
1067
+ sender: MOCK_ADDRESS,
1068
+ recipient: MOCK_ADDRESS,
1069
+ destinationToken: evmHypSynthetic,
1070
+ });
1071
+ expect(result.length).to.equal(2);
1072
+ sinon.assert.calledWithExactly(isApproveRequired, MOCK_ADDRESS, evmHypNative.addressOrDenom, TRANSFER_AMOUNT + tokenFeeAmount);
1073
+ sinon.assert.calledWithMatch(populateApproveTx, {
1074
+ weiAmountOrId: TRANSFER_AMOUNT + tokenFeeAmount,
1075
+ recipient: evmHypNative.addressOrDenom,
1076
+ });
1077
+ }
1078
+ finally {
1079
+ adapterStub.restore();
1080
+ originMultiStub.restore();
1081
+ destinationMultiStub.restore();
1082
+ evmHypNative.collateralAddressOrDenom =
1083
+ originalCollateralAddress;
1084
+ }
1085
+ });
1086
+ it('Rejects CrossCollateralRouter transfer tx generation when IGP fee denom is non-native', async () => {
1087
+ const originalCollateralAddress = evmHypNative.collateralAddressOrDenom;
1088
+ evmHypNative.collateralAddressOrDenom =
1089
+ evmHypNative.addressOrDenom;
1090
+ const originMultiStub = sinon
1091
+ .stub(evmHypNative, 'isCrossCollateralToken')
1092
+ .returns(true);
1093
+ const destinationMultiStub = sinon
1094
+ .stub(evmHypSynthetic, 'isCrossCollateralToken')
1095
+ .returns(true);
1096
+ const adapterStub = sinon.stub(evmHypNative, 'getHypAdapter').returns({
1097
+ quoteTransferRemoteToGas: sinon.stub().resolves({
1098
+ igpQuote: {
1099
+ amount: 1n,
1100
+ addressOrDenom: evmHypNative.addressOrDenom,
1101
+ },
1102
+ tokenFeeQuote: {
1103
+ addressOrDenom: evmHypNative.addressOrDenom,
1104
+ amount: 0n,
1105
+ },
1106
+ }),
1107
+ isApproveRequired: sinon.stub().resolves(false),
1108
+ isRevokeApprovalRequired: sinon.stub().resolves(false),
1109
+ populateTransferRemoteToTx: sinon.stub().resolves({}),
1110
+ });
1111
+ try {
1112
+ let thrown;
1113
+ try {
1114
+ await warpCore.getTransferRemoteTxs({
1115
+ originTokenAmount: evmHypNative.amount(TRANSFER_AMOUNT),
1116
+ destination: test2.name,
1117
+ sender: MOCK_ADDRESS,
1118
+ recipient: MOCK_ADDRESS,
1119
+ destinationToken: evmHypSynthetic,
1120
+ });
1121
+ }
1122
+ catch (error) {
1123
+ thrown = error;
1124
+ }
1125
+ expect(thrown).to.not.equal(undefined);
1126
+ expect(thrown.message).to.contain('CrossCollateralRouter transferRemoteTo requires native IGP fee');
1127
+ }
1128
+ finally {
1129
+ adapterStub.restore();
1130
+ originMultiStub.restore();
1131
+ destinationMultiStub.restore();
1132
+ evmHypNative.collateralAddressOrDenom =
1133
+ originalCollateralAddress;
1134
+ }
1135
+ });
1136
+ it('Checks destination collateral for CrossCollateralRouter route using explicit destination token', async () => {
1137
+ const originMultiStub = sinon
1138
+ .stub(evmHypNative, 'isCrossCollateralToken')
1139
+ .returns(true);
1140
+ const destinationMultiStub = sinon
1141
+ .stub(cwHypCollateral, 'isCrossCollateralToken')
1142
+ .returns(true);
1143
+ const destinationAdapterStub = sinon
1144
+ .stub(cwHypCollateral, 'getAdapter')
1145
+ .returns({
1146
+ getBalance: sinon.stub().resolves(10n),
1147
+ });
1148
+ try {
1149
+ const smallResult = await warpCore.isDestinationCollateralSufficient({
1150
+ originTokenAmount: evmHypNative.amount(9n),
1151
+ destination: cwHypCollateral.chainName,
1152
+ destinationToken: cwHypCollateral,
1153
+ });
1154
+ expect(smallResult).to.equal(true);
1155
+ const bigResult = await warpCore.isDestinationCollateralSufficient({
1156
+ originTokenAmount: evmHypNative.amount(11n),
1157
+ destination: cwHypCollateral.chainName,
1158
+ destinationToken: cwHypCollateral,
1159
+ });
1160
+ expect(bigResult).to.equal(false);
1161
+ }
1162
+ finally {
1163
+ destinationAdapterStub.restore();
1164
+ originMultiStub.restore();
1165
+ destinationMultiStub.restore();
1166
+ }
1167
+ });
1168
+ it('Adds revoke before approval for CrossCollateralRouter when allowance must be reset', async () => {
1169
+ const tokenFeeAmount = 123n;
1170
+ const originalCollateralAddress = evmHypNative.collateralAddressOrDenom;
1171
+ evmHypNative.collateralAddressOrDenom =
1172
+ evmHypNative.addressOrDenom;
1173
+ const originMultiStub = sinon
1174
+ .stub(evmHypNative, 'isCrossCollateralToken')
1175
+ .returns(true);
1176
+ const destinationMultiStub = sinon
1177
+ .stub(evmHypSynthetic, 'isCrossCollateralToken')
1178
+ .returns(true);
1179
+ const quoteTransferRemoteToGas = sinon.stub().resolves({
1180
+ igpQuote: { amount: 1n },
1181
+ tokenFeeQuote: {
1182
+ addressOrDenom: evmHypNative.addressOrDenom,
1183
+ amount: tokenFeeAmount,
1184
+ },
1185
+ });
1186
+ const isApproveRequired = sinon.stub().resolves(true);
1187
+ const isRevokeApprovalRequired = sinon.stub().resolves(true);
1188
+ const populateApproveTx = sinon.stub().resolves({});
1189
+ const populateTransferRemoteToTx = sinon.stub().resolves({});
1190
+ const adapterStub = sinon.stub(evmHypNative, 'getHypAdapter').returns({
1191
+ quoteTransferRemoteToGas,
1192
+ isApproveRequired,
1193
+ isRevokeApprovalRequired,
1194
+ populateApproveTx,
1195
+ populateTransferRemoteToTx,
1196
+ });
1197
+ try {
1198
+ const result = await warpCore.getTransferRemoteTxs({
1199
+ originTokenAmount: evmHypNative.amount(TRANSFER_AMOUNT),
1200
+ destination: test2.name,
1201
+ sender: MOCK_ADDRESS,
1202
+ recipient: MOCK_ADDRESS,
1203
+ destinationToken: evmHypSynthetic,
1204
+ });
1205
+ expect(result.length).to.equal(3);
1206
+ expect(result[0].category).to.equal(WarpTxCategory.Revoke);
1207
+ expect(result[1].category).to.equal(WarpTxCategory.Approval);
1208
+ expect(result[2].category).to.equal(WarpTxCategory.Transfer);
1209
+ sinon.assert.calledWithMatch(populateApproveTx.firstCall, {
1210
+ weiAmountOrId: 0,
1211
+ });
1212
+ sinon.assert.calledWithMatch(populateApproveTx.secondCall, {
1213
+ weiAmountOrId: TRANSFER_AMOUNT + tokenFeeAmount,
1214
+ });
1215
+ }
1216
+ finally {
1217
+ adapterStub.restore();
1218
+ originMultiStub.restore();
1219
+ destinationMultiStub.restore();
1220
+ evmHypNative.collateralAddressOrDenom =
1221
+ originalCollateralAddress;
1222
+ }
1223
+ });
1224
+ it('Uses destination router-aware quote for CrossCollateralRouter fees', async () => {
1225
+ const originMultiStub = sinon
1226
+ .stub(evmHypNative, 'isCrossCollateralToken')
1227
+ .returns(true);
1228
+ const destinationMultiStub = sinon
1229
+ .stub(evmHypSynthetic, 'isCrossCollateralToken')
1230
+ .returns(true);
1231
+ const quoteTransferRemoteToGas = sinon.stub().resolves({
1232
+ igpQuote: { amount: 42n },
1233
+ tokenFeeQuote: {
1234
+ addressOrDenom: evmHypNative.addressOrDenom,
1235
+ amount: 11n,
1236
+ },
1237
+ });
1238
+ const adapterStub = sinon.stub(evmHypNative, 'getHypAdapter').returns({
1239
+ quoteTransferRemoteToGas,
1240
+ populateTransferRemoteToTx: sinon.stub(),
1241
+ });
1242
+ try {
1243
+ const quote = await warpCore.getInterchainTransferFee({
1244
+ originTokenAmount: evmHypNative.amount(TRANSFER_AMOUNT),
1245
+ destination: test2.name,
1246
+ sender: MOCK_ADDRESS,
1247
+ recipient: MOCK_ADDRESS,
1248
+ destinationToken: evmHypSynthetic,
1249
+ });
1250
+ expect(quote.igpQuote.amount).to.equal(42n);
1251
+ expect(quote.tokenFeeQuote?.amount).to.equal(11n);
1252
+ sinon.assert.calledWithMatch(quoteTransferRemoteToGas, {
1253
+ destination: test2.domainId,
1254
+ recipient: MOCK_ADDRESS,
1255
+ amount: TRANSFER_AMOUNT,
1256
+ targetRouter: evmHypSynthetic.addressOrDenom,
1257
+ });
1258
+ }
1259
+ finally {
1260
+ adapterStub.restore();
1261
+ originMultiStub.restore();
1262
+ destinationMultiStub.restore();
1263
+ }
1264
+ });
1265
+ it('uses quoted interchain fee token for CrossCollateralRouter estimateTransferRemoteFees', async () => {
1266
+ const originMultiStub = sinon
1267
+ .stub(evmHypNative, 'isCrossCollateralToken')
1268
+ .returns(true);
1269
+ const destinationMultiStub = sinon
1270
+ .stub(evmHypSynthetic, 'isCrossCollateralToken')
1271
+ .returns(true);
1272
+ const quoteTransferRemoteToGas = sinon.stub().resolves({
1273
+ igpQuote: {
1274
+ amount: 42n,
1275
+ addressOrDenom: evmHypNative.addressOrDenom,
1276
+ },
1277
+ });
1278
+ const adapterStub = sinon.stub(evmHypNative, 'getHypAdapter').returns({
1279
+ quoteTransferRemoteToGas,
1280
+ populateTransferRemoteToTx: sinon.stub(),
1281
+ });
1282
+ const localFeeAmountStub = sinon
1283
+ .stub(warpCore, 'getLocalTransferFeeAmount')
1284
+ .resolves(evmHypNative.amount(7n));
1285
+ try {
1286
+ const quote = await warpCore.estimateTransferRemoteFees({
1287
+ originTokenAmount: evmHypNative.amount(TRANSFER_AMOUNT),
1288
+ destination: test2.name,
1289
+ sender: MOCK_ADDRESS,
1290
+ recipient: MOCK_ADDRESS_2,
1291
+ destinationToken: evmHypSynthetic,
1292
+ });
1293
+ expect(quote.interchainQuote.amount).to.equal(42n);
1294
+ expect(quote.interchainQuote.token.addressOrDenom).to.equal(evmHypNative.addressOrDenom);
1295
+ expect(quote.localQuote.amount).to.equal(7n);
1296
+ expect(localFeeAmountStub.firstCall.args[0].recipient).to.equal(MOCK_ADDRESS_2);
1297
+ }
1298
+ finally {
1299
+ localFeeAmountStub.restore();
1300
+ adapterStub.restore();
1301
+ destinationMultiStub.restore();
1302
+ originMultiStub.restore();
1303
+ }
1304
+ });
1305
+ it('Rejects non-connected destination token for CrossCollateralRouter fee quote', async () => {
1306
+ const originMultiStub = sinon
1307
+ .stub(evmHypNative, 'isCrossCollateralToken')
1308
+ .returns(true);
1309
+ const quoteTransferRemoteToGas = sinon.stub().resolves({
1310
+ igpQuote: { amount: 42n },
1311
+ });
1312
+ const adapterStub = sinon.stub(evmHypNative, 'getHypAdapter').returns({
1313
+ quoteTransferRemoteToGas,
1314
+ });
1315
+ const invalidDestinationToken = new Token({
1316
+ ...evmHypSynthetic,
1317
+ addressOrDenom: '0x9999999999999999999999999999999999999999',
1318
+ });
1319
+ const invalidDestinationMultiStub = sinon
1320
+ .stub(invalidDestinationToken, 'isCrossCollateralToken')
1321
+ .returns(true);
1322
+ try {
1323
+ let error;
1324
+ try {
1325
+ await warpCore.getInterchainTransferFee({
1326
+ originTokenAmount: evmHypNative.amount(TRANSFER_AMOUNT),
1327
+ destination: test2.name,
1328
+ sender: MOCK_ADDRESS,
1329
+ recipient: MOCK_ADDRESS,
1330
+ destinationToken: invalidDestinationToken,
1331
+ });
1332
+ }
1333
+ catch (e) {
1334
+ error = e;
1335
+ }
1336
+ expect(error).to.exist;
1337
+ expect(error.message).to.contain('is not connected');
1338
+ expect(quoteTransferRemoteToGas.called).to.equal(false);
1339
+ }
1340
+ finally {
1341
+ invalidDestinationMultiStub.restore();
1342
+ adapterStub.restore();
1343
+ originMultiStub.restore();
1344
+ }
1345
+ });
1346
+ it('Treats Sealevel cross-collateral to EVM cross-collateral as transferRemoteTo route', async () => {
1347
+ const sealevelCrossCollateral = new Token({
1348
+ chainName: testSealevelChain.name,
1349
+ standard: TokenStandard.SealevelHypCrossCollateral,
1350
+ addressOrDenom: '4UMNyNWW75zo69hxoJaRX5iXNUa5FdRPZZa9vDVCiESg',
1351
+ collateralAddressOrDenom: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
1352
+ decimals: 6,
1353
+ symbol: 'USDC',
1354
+ name: 'USDC',
1355
+ });
1356
+ const evmCrossCollateral = new Token({
1357
+ chainName: test2.name,
1358
+ standard: TokenStandard.EvmHypCrossCollateralRouter,
1359
+ addressOrDenom: '0x8358D8291e3bEDb04804975eEa0fe9fe0fAfB147',
1360
+ collateralAddressOrDenom: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
1361
+ decimals: 6,
1362
+ symbol: 'USDC',
1363
+ name: 'USDC',
1364
+ });
1365
+ sealevelCrossCollateral.addConnection({ token: evmCrossCollateral });
1366
+ evmCrossCollateral.addConnection({ token: sealevelCrossCollateral });
1367
+ const crossCollateralWarpCore = new WarpCore(multiProvider, [
1368
+ sealevelCrossCollateral,
1369
+ evmCrossCollateral,
1370
+ ]);
1371
+ const quoteTransferRemoteToGas = sinon.stub().resolves({
1372
+ igpQuote: { amount: 1n },
1373
+ tokenFeeQuote: { amount: 0n },
1374
+ });
1375
+ const populateTransferRemoteToTx = sinon.stub().resolves({});
1376
+ const populateTransferRemoteTx = sinon.stub().resolves({});
1377
+ const originAdapterStub = sinon
1378
+ .stub(sealevelCrossCollateral, 'getHypAdapter')
1379
+ .returns({
1380
+ quoteTransferRemoteToGas,
1381
+ populateTransferRemoteToTx,
1382
+ populateTransferRemoteTx,
1383
+ isApproveRequired: sinon.stub().resolves(false),
1384
+ isRevokeApprovalRequired: sinon.stub().resolves(false),
1385
+ });
1386
+ try {
1387
+ expect(crossCollateralWarpCore.isCrossCollateralTransfer(sealevelCrossCollateral, evmCrossCollateral)).to.equal(true);
1388
+ const result = await crossCollateralWarpCore.getTransferRemoteTxs({
1389
+ originTokenAmount: sealevelCrossCollateral.amount(TRANSFER_AMOUNT),
1390
+ destination: test2.name,
1391
+ sender: MOCK_ADDRESS,
1392
+ recipient: MOCK_ADDRESS,
1393
+ destinationToken: evmCrossCollateral,
1394
+ });
1395
+ expect(result).to.have.length(1);
1396
+ expect(result[0].category).to.equal(WarpTxCategory.Transfer);
1397
+ sinon.assert.calledOnce(populateTransferRemoteToTx);
1398
+ sinon.assert.notCalled(populateTransferRemoteTx);
1399
+ }
1400
+ finally {
1401
+ originAdapterStub.restore();
1402
+ }
1403
+ });
1404
+ it('Converts destination minimum transfer amount into origin decimals correctly', async () => {
1405
+ const destinationAdapterStub = sinon
1406
+ .stub(sealevelHypSynthetic, 'getAdapter')
1407
+ .returns({
1408
+ getMinimumTransferAmount: () => Promise.resolve(1000000000n),
1409
+ });
1410
+ try {
1411
+ const belowMinimum = await warpCore.validateAmount(evmHypNative.amount(500000000000000000n), testSealevelChain.name, MOCK_ADDRESS, sealevelHypSynthetic);
1412
+ expect(belowMinimum?.amount).to.contain('Minimum transfer amount');
1413
+ const atMinimum = await warpCore.validateAmount(evmHypNative.amount(1000000000000000000n), testSealevelChain.name, MOCK_ADDRESS, sealevelHypSynthetic);
1414
+ expect(atMinimum).to.be.null;
1415
+ }
1416
+ finally {
1417
+ destinationAdapterStub.restore();
1418
+ }
1419
+ });
1420
+ it('Gets transfer remote txs', async () => {
1421
+ const coreStub = sinon
1422
+ .stub(warpCore, 'isApproveRequired')
1423
+ .returns(Promise.resolve(false));
1424
+ const adapterStubs = warpCore.tokens.map((t) => sinon.stub(t, 'getHypAdapter').returns({
1425
+ quoteTransferRemoteGas: () => Promise.resolve({ igpQuote: MOCK_INTERCHAIN_QUOTE }),
1426
+ populateTransferRemoteTx: () => Promise.resolve({}),
1427
+ isRevokeApprovalRequired: () => Promise.resolve(false),
1428
+ }));
1429
+ const testGetTxs = async (token, destination, providerType = ProviderType.EthersV5, expectExtraSigners = false) => {
1430
+ const result = await warpCore.getTransferRemoteTxs({
1431
+ originTokenAmount: token.amount(TRANSFER_AMOUNT),
1432
+ destination,
1433
+ sender: MOCK_ADDRESS,
1434
+ recipient: MOCK_ADDRESS,
1435
+ });
1436
+ expect(result.length).to.equal(1);
1437
+ if (expectExtraSigners) {
1438
+ const tx = result[0];
1439
+ expect(tx.category).to.equal(WarpTxCategory.Transfer);
1440
+ expect(tx.type).to.equal(providerType);
1441
+ expect(tx.transaction).to.eql({});
1442
+ if (tx.type === ProviderType.SolanaWeb3) {
1443
+ expect(tx.extraSigners).to.be.an('array').with.lengthOf(1);
1444
+ }
1445
+ }
1446
+ else {
1447
+ expect(result[0], `transfer tx for ${token.chainName} to ${destination}`).to.eql({
1448
+ category: WarpTxCategory.Transfer,
1449
+ transaction: {},
1450
+ type: providerType,
1451
+ });
1452
+ }
1453
+ };
1454
+ await testGetTxs(evmHypNative, test1.name);
1455
+ await testGetTxs(evmHypNative, testCosmosChain.name);
1456
+ await testGetTxs(evmHypNative, testSealevelChain.name);
1457
+ await testGetTxs(evmHypSynthetic, test2.name);
1458
+ await testGetTxs(sealevelHypSynthetic, test2.name, ProviderType.SolanaWeb3, true);
1459
+ await testGetTxs(cwHypCollateral, test1.name, ProviderType.CosmJsWasm);
1460
+ await testGetTxs(cosmosIbc, test1.name, ProviderType.CosmJs);
1461
+ coreStub.restore();
1462
+ adapterStubs.forEach((s) => s.restore());
1463
+ });
1464
+ // ============ QuotedCalls tests ============
1465
+ const MOCK_QUOTED_CALLS_ADDRESS = '0x0000000000000000000000000000000000AC0101';
1466
+ const MOCK_CLIENT_SALT = '0x5555555555555555555555555555555555555555555555555555555555555555';
1467
+ const MOCK_SUBMIT_QUOTE = {
1468
+ quoter: '0x000000000000000000000000000000000000aa01',
1469
+ quote: {
1470
+ context: '0xdeadbeef',
1471
+ data: '0xcafebabe',
1472
+ issuedAt: 1000,
1473
+ expiry: 1000,
1474
+ salt: MOCK_CLIENT_SALT,
1475
+ submitter: MOCK_QUOTED_CALLS_ADDRESS,
1476
+ },
1477
+ signature: '0xaabb',
1478
+ };
1479
+ // Encode a mock quoteExecute return value (Quote[][])
1480
+ function encodeMockQuoteResult(results) {
1481
+ return encodeAbiParameters([
1482
+ {
1483
+ type: 'tuple[][]',
1484
+ components: [
1485
+ { name: 'token', type: 'address' },
1486
+ { name: 'amount', type: 'uint256' },
1487
+ ],
1488
+ },
1489
+ ], [results]);
1490
+ }
1491
+ it('Gets quoted transfer fee via quoteExecute', async () => {
1492
+ const syntheticAddr = evmHypSynthetic.addressOrDenom;
1493
+ const mockQuoteResult = encodeMockQuoteResult([
1494
+ [], // SUBMIT_QUOTE
1495
+ [
1496
+ // TRANSFER_REMOTE
1497
+ { token: zeroAddress, amount: 500n },
1498
+ { token: syntheticAddr, amount: TRANSFER_AMOUNT + 100n },
1499
+ { token: syntheticAddr, amount: 50n },
1500
+ ],
1501
+ ]);
1502
+ const providerStub = sinon
1503
+ .stub(multiProvider, 'getEthersV5Provider')
1504
+ .returns({
1505
+ _isProvider: true,
1506
+ call: () => Promise.resolve(mockQuoteResult),
1507
+ });
1508
+ try {
1509
+ const quotedTransfer = new EvmQuotedTransferProvider({
1510
+ address: MOCK_QUOTED_CALLS_ADDRESS,
1511
+ quotes: [MOCK_SUBMIT_QUOTE],
1512
+ clientSalt: MOCK_CLIENT_SALT,
1513
+ tokenPullMode: TokenPullMode.TransferFrom,
1514
+ });
1515
+ const result = await warpCore.getQuotedTransferFee({
1516
+ quotedTransfer,
1517
+ originTokenAmount: evmHypSynthetic.amount(TRANSFER_AMOUNT),
1518
+ destination: test2.name,
1519
+ sender: MOCK_ADDRESS,
1520
+ recipient: MOCK_ADDRESS,
1521
+ });
1522
+ expect(result.igpQuote.amount).to.equal(500n);
1523
+ expect(result.tokenFeeQuote?.amount).to.equal(150n); // (TRANSFER_AMOUNT+100+50) - TRANSFER_AMOUNT
1524
+ }
1525
+ finally {
1526
+ providerStub.restore();
1527
+ }
1528
+ });
1529
+ it('Gets quoted transfer remote txs with approval', async () => {
1530
+ const syntheticAddr = evmHypSynthetic.addressOrDenom;
1531
+ const mockQuoteResult = encodeMockQuoteResult([
1532
+ [], // SUBMIT_QUOTE
1533
+ [
1534
+ // TRANSFER_REMOTE
1535
+ { token: zeroAddress, amount: 500n },
1536
+ { token: syntheticAddr, amount: TRANSFER_AMOUNT + 100n },
1537
+ ],
1538
+ ]);
1539
+ const providerStub = sinon
1540
+ .stub(multiProvider, 'getEthersV5Provider')
1541
+ .returns({
1542
+ call: () => Promise.resolve(mockQuoteResult),
1543
+ });
1544
+ const adapterStubs = warpCore.tokens.map((t) => sinon.stub(t, 'getAdapter').returns({
1545
+ isApproveRequired: () => Promise.resolve(true),
1546
+ populateApproveTx: () => Promise.resolve({
1547
+ to: MOCK_QUOTED_CALLS_ADDRESS,
1548
+ data: '0x',
1549
+ }),
1550
+ isRevokeApprovalRequired: () => Promise.resolve(false),
1551
+ }));
1552
+ try {
1553
+ const quotedCalls = {
1554
+ address: MOCK_QUOTED_CALLS_ADDRESS,
1555
+ quotes: [MOCK_SUBMIT_QUOTE],
1556
+ clientSalt: MOCK_CLIENT_SALT,
1557
+ tokenPullMode: TokenPullMode.TransferFrom,
1558
+ };
1559
+ const result = await warpCore.getTransferRemoteTxs({
1560
+ originTokenAmount: evmHypSynthetic.amount(TRANSFER_AMOUNT),
1561
+ destination: test2.name,
1562
+ sender: MOCK_ADDRESS,
1563
+ recipient: MOCK_ADDRESS,
1564
+ quotedCalls,
1565
+ });
1566
+ // Should have [Approval, Transfer]
1567
+ expect(result.length).to.equal(2);
1568
+ expect(result[0].category).to.equal(WarpTxCategory.Approval);
1569
+ expect(result[1].category).to.equal(WarpTxCategory.Transfer);
1570
+ expect(result[1].type).to.equal(ProviderType.EthersV5);
1571
+ }
1572
+ finally {
1573
+ providerStub.restore();
1574
+ adapterStubs.forEach((s) => s.restore());
1575
+ }
1576
+ });
1577
+ it('Routes ERC4626 collateral tokens through getBridgedSupply in getTokenCollateral', async () => {
1578
+ const ownerCollateralToken = warpCore.tokens.find((t) => t.standard === TokenStandard.EvmHypOwnerCollateral);
1579
+ const rebaseCollateralToken = warpCore.tokens.find((t) => t.standard === TokenStandard.EvmHypRebaseCollateral);
1580
+ const nativeToken = warpCore.tokens.find((t) => t.standard === TokenStandard.EvmHypNative);
1581
+ expect(ownerCollateralToken, 'EvmHypOwnerCollateral token missing').to
1582
+ .exist;
1583
+ expect(rebaseCollateralToken, 'EvmHypRebaseCollateral token missing').to
1584
+ .exist;
1585
+ const ERC4626_COLLATERAL_BALANCE = BigInt('5000000000000000000');
1586
+ const REGULAR_COLLATERAL_BALANCE = BigInt('3000000000000000000');
1587
+ const getBridgedSupplyStub = sinon
1588
+ .stub()
1589
+ .resolves(ERC4626_COLLATERAL_BALANCE);
1590
+ const getBalanceStub = sinon.stub().resolves(REGULAR_COLLATERAL_BALANCE);
1591
+ const stubs = warpCore.tokens.map((t) => sinon.stub(t, 'getHypAdapter').returns({
1592
+ getBridgedSupply: getBridgedSupplyStub,
1593
+ }));
1594
+ const adapterStubs = warpCore.tokens.map((t) => sinon.stub(t, 'getAdapter').returns({
1595
+ getBalance: getBalanceStub,
1596
+ }));
1597
+ const ownerCollateralResult = await warpCore.getTokenCollateral(ownerCollateralToken);
1598
+ expect(ownerCollateralResult).to.equal(ERC4626_COLLATERAL_BALANCE);
1599
+ expect(getBridgedSupplyStub.callCount).to.equal(1);
1600
+ expect(getBalanceStub.callCount).to.equal(0);
1601
+ getBridgedSupplyStub.resetHistory();
1602
+ getBalanceStub.resetHistory();
1603
+ const rebaseCollateralResult = await warpCore.getTokenCollateral(rebaseCollateralToken);
1604
+ expect(rebaseCollateralResult).to.equal(ERC4626_COLLATERAL_BALANCE);
1605
+ expect(getBridgedSupplyStub.callCount).to.equal(1);
1606
+ expect(getBalanceStub.callCount).to.equal(0);
1607
+ getBridgedSupplyStub.resetHistory();
1608
+ getBalanceStub.resetHistory();
1609
+ const nativeResult = await warpCore.getTokenCollateral(nativeToken);
1610
+ expect(nativeResult).to.equal(REGULAR_COLLATERAL_BALANCE);
1611
+ expect(getBridgedSupplyStub.callCount).to.equal(0);
1612
+ expect(getBalanceStub.callCount).to.equal(1);
1613
+ stubs.forEach((s) => s.restore());
1614
+ adapterStubs.forEach((s) => s.restore());
1615
+ });
1616
+ describe('estimateTransferRemoteFees / estimateCrossCollateralFees attestation gating', () => {
1617
+ // Regression: amount must only be forwarded to getLocalTransferFeeAmount when attestation is present.
1618
+ // Without this gate, simulating large balances on native routes causes eth_estimateGas failures.
1619
+ it('does not forward amount to getLocalTransferFeeAmount when no attestation', async () => {
1620
+ const interchainFeeStub = sinon
1621
+ .stub(warpCore, 'getInterchainTransferFee')
1622
+ .resolves({
1623
+ igpQuote: evmHypNative.amount(20000n),
1624
+ tokenFeeQuote: undefined,
1625
+ });
1626
+ const localFeeStub = sinon
1627
+ .stub(warpCore, 'getLocalTransferFeeAmount')
1628
+ .resolves(evmHypNative.amount(200000n));
1629
+ try {
1630
+ await warpCore.estimateTransferRemoteFees({
1631
+ originTokenAmount: evmHypNative.amount(MOCK_BALANCE),
1632
+ destination: test2.name,
1633
+ sender: MOCK_ADDRESS,
1634
+ recipient: MOCK_ADDRESS_2,
1635
+ });
1636
+ sinon.assert.calledOnce(localFeeStub);
1637
+ const localFeeArgs = localFeeStub.firstCall.args[0];
1638
+ expect(localFeeArgs.recipient).to.equal(MOCK_ADDRESS_2);
1639
+ expect(localFeeArgs.amount).to.be.undefined;
1640
+ }
1641
+ finally {
1642
+ interchainFeeStub.restore();
1643
+ localFeeStub.restore();
1644
+ }
1645
+ });
1646
+ it('forwards amount to getLocalTransferFeeAmount when attestation is present', async () => {
1647
+ const mockAttestation = { signature: '0xdeadbeef' };
1648
+ const interchainFeeStub = sinon
1649
+ .stub(warpCore, 'getInterchainTransferFee')
1650
+ .resolves({
1651
+ igpQuote: evmHypNative.amount(20000n),
1652
+ tokenFeeQuote: undefined,
1653
+ });
1654
+ const localFeeStub = sinon
1655
+ .stub(warpCore, 'getLocalTransferFeeAmount')
1656
+ .resolves(evmHypNative.amount(200000n));
1657
+ try {
1658
+ await warpCore.estimateTransferRemoteFees({
1659
+ originTokenAmount: evmHypNative.amount(MOCK_BALANCE),
1660
+ destination: test2.name,
1661
+ sender: MOCK_ADDRESS,
1662
+ recipient: MOCK_ADDRESS_2,
1663
+ attestation: mockAttestation,
1664
+ });
1665
+ sinon.assert.calledOnce(localFeeStub);
1666
+ const localFeeArgs = localFeeStub.firstCall.args[0];
1667
+ expect(localFeeArgs.recipient).to.equal(MOCK_ADDRESS_2);
1668
+ expect(localFeeArgs.amount).to.equal(MOCK_BALANCE);
1669
+ }
1670
+ finally {
1671
+ interchainFeeStub.restore();
1672
+ localFeeStub.restore();
1673
+ }
1674
+ });
1675
+ // Regression: the local-gas simulation must use the real recipient. An
1676
+ // origin-side recipient policy (allowlist hook, fee program) rejects the
1677
+ // sender-as-recipient placeholder and a valid transfer fails pre-flight.
1678
+ it('simulates local gas with the real recipient when one is given', async () => {
1679
+ const txsStub = sinon.stub(warpCore, 'getTransferRemoteTxs').resolves([
1680
+ {
1681
+ category: WarpTxCategory.Transfer,
1682
+ type: ProviderType.EthersV5,
1683
+ transaction: { to: MOCK_ADDRESS, data: '0x' },
1684
+ },
1685
+ ]);
1686
+ try {
1687
+ await warpCore.getLocalTransferFee({
1688
+ originToken: evmHypNative,
1689
+ destination: test2.name,
1690
+ sender: MOCK_ADDRESS,
1691
+ recipient: MOCK_ADDRESS_2,
1692
+ });
1693
+ sinon.assert.calledOnce(txsStub);
1694
+ expect(txsStub.firstCall.args[0].recipient).to.equal(MOCK_ADDRESS_2);
1695
+ expect(txsStub.firstCall.args[0].sender).to.equal(MOCK_ADDRESS);
1696
+ }
1697
+ finally {
1698
+ txsStub.restore();
1699
+ }
1700
+ });
1701
+ it('falls back to the sender as recipient when none is given', async () => {
1702
+ const txsStub = sinon.stub(warpCore, 'getTransferRemoteTxs').resolves([
1703
+ {
1704
+ category: WarpTxCategory.Transfer,
1705
+ type: ProviderType.EthersV5,
1706
+ transaction: { to: MOCK_ADDRESS, data: '0x' },
1707
+ },
1708
+ ]);
1709
+ try {
1710
+ await warpCore.getLocalTransferFee({
1711
+ originToken: evmHypNative,
1712
+ destination: test2.name,
1713
+ sender: MOCK_ADDRESS,
1714
+ });
1715
+ expect(txsStub.firstCall.args[0].recipient).to.equal(MOCK_ADDRESS);
1716
+ }
1717
+ finally {
1718
+ txsStub.restore();
1719
+ }
1720
+ });
1721
+ it('does not forward amount in estimateCrossCollateralFees without attestation', async () => {
1722
+ const originCrossStub = sinon
1723
+ .stub(evmHypNative, 'isCrossCollateralToken')
1724
+ .returns(true);
1725
+ const destCrossStub = sinon
1726
+ .stub(evmHypSynthetic, 'isCrossCollateralToken')
1727
+ .returns(true);
1728
+ const interchainFeeStub = sinon
1729
+ .stub(warpCore, 'getInterchainTransferFee')
1730
+ .resolves({
1731
+ igpQuote: evmHypNative.amount(20000n),
1732
+ tokenFeeQuote: undefined,
1733
+ });
1734
+ const localFeeStub = sinon
1735
+ .stub(warpCore, 'getLocalTransferFeeAmount')
1736
+ .resolves(evmHypNative.amount(200000n));
1737
+ try {
1738
+ await warpCore.estimateTransferRemoteFees({
1739
+ originTokenAmount: evmHypNative.amount(MOCK_BALANCE),
1740
+ destination: test2.name,
1741
+ sender: MOCK_ADDRESS,
1742
+ recipient: MOCK_ADDRESS_2,
1743
+ destinationToken: evmHypSynthetic,
1744
+ });
1745
+ sinon.assert.calledOnce(localFeeStub);
1746
+ const localFeeArgs = localFeeStub.firstCall.args[0];
1747
+ expect(localFeeArgs.recipient).to.equal(MOCK_ADDRESS_2);
1748
+ expect(localFeeArgs.amount).to.be.undefined;
1749
+ }
1750
+ finally {
1751
+ originCrossStub.restore();
1752
+ destCrossStub.restore();
1753
+ interchainFeeStub.restore();
1754
+ localFeeStub.restore();
1755
+ }
1756
+ });
1757
+ });
1758
+ describe('getMaxTransferAmount fee calculation', () => {
1759
+ // Regression: getInterchainTransferFee must receive the full balance (for percentage-based fees),
1760
+ // and getLocalTransferFeeAmount must receive no amount (to avoid eth_estimateGas failures on
1761
+ // native routes where the full balance leaves nothing to cover gas).
1762
+ it('calls getInterchainTransferFee with full balance and getLocalTransferFeeAmount with no amount', async () => {
1763
+ const interchainFeeStub = sinon
1764
+ .stub(warpCore, 'getInterchainTransferFee')
1765
+ .resolves({
1766
+ igpQuote: evmHypNative.amount(20000n),
1767
+ tokenFeeQuote: undefined,
1768
+ });
1769
+ const localFeeStub = sinon
1770
+ .stub(warpCore, 'getLocalTransferFeeAmount')
1771
+ .resolves(evmHypNative.amount(200000n));
1772
+ try {
1773
+ const balance = evmHypNative.amount(MOCK_BALANCE);
1774
+ await warpCore.getMaxTransferAmount({
1775
+ balance,
1776
+ destination: test2.name,
1777
+ sender: MOCK_ADDRESS,
1778
+ recipient: MOCK_ADDRESS_2,
1779
+ });
1780
+ // First call: fee calculation pass with full balance
1781
+ sinon.assert.calledWithMatch(interchainFeeStub.firstCall, {
1782
+ originTokenAmount: sinon.match((v) => v.amount === MOCK_BALANCE),
1783
+ });
1784
+ // getLocalTransferFeeAmount called without amount
1785
+ sinon.assert.calledOnce(localFeeStub);
1786
+ const localFeeArgs = localFeeStub.firstCall.args[0];
1787
+ expect(localFeeArgs.recipient).to.equal(MOCK_ADDRESS_2);
1788
+ expect(localFeeArgs.amount).to.be.undefined;
1789
+ }
1790
+ finally {
1791
+ interchainFeeStub.restore();
1792
+ localFeeStub.restore();
1793
+ }
1794
+ });
1795
+ it('skips fee calculation and uses provided feeEstimate', async () => {
1796
+ const interchainFeeStub = sinon.stub(warpCore, 'getInterchainTransferFee');
1797
+ const localFeeStub = sinon.stub(warpCore, 'getLocalTransferFeeAmount');
1798
+ try {
1799
+ const balance = evmHypNative.amount(MOCK_BALANCE);
1800
+ const feeEstimate = {
1801
+ interchainQuote: evmHypNative.amount(20000n),
1802
+ localQuote: evmHypNative.amount(200000n),
1803
+ tokenFeeQuote: undefined,
1804
+ };
1805
+ const result = await warpCore.getMaxTransferAmount({
1806
+ balance,
1807
+ destination: test2.name,
1808
+ sender: MOCK_ADDRESS,
1809
+ recipient: MOCK_ADDRESS,
1810
+ feeEstimate,
1811
+ });
1812
+ sinon.assert.notCalled(interchainFeeStub);
1813
+ sinon.assert.notCalled(localFeeStub);
1814
+ expect(result.amount).to.equal(MOCK_BALANCE - 20000n - 200000n);
1815
+ }
1816
+ finally {
1817
+ interchainFeeStub.restore();
1818
+ localFeeStub.restore();
1819
+ }
1820
+ });
1821
+ });
1822
+ });
1823
+ //# sourceMappingURL=WarpCore.test.js.map