@hyperlane-xyz/core 1.3.0 → 1.3.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 (306) hide show
  1. package/contracts/igps/InterchainGasPaymaster.sol +0 -6
  2. package/contracts/test/TestInterchainGasPaymaster.sol +3 -1
  3. package/dist/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit.d.ts +75 -0
  4. package/dist/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit.d.ts.map +1 -0
  5. package/dist/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit.js +4 -0
  6. package/dist/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit.js.map +1 -0
  7. package/dist/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.d.ts +2 -0
  8. package/dist/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.d.ts.map +1 -0
  9. package/dist/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.js +3 -0
  10. package/dist/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.js.map +1 -0
  11. package/dist/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts +3 -0
  12. package/dist/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts.map +1 -0
  13. package/dist/@openzeppelin/contracts/token/ERC20/extensions/index.js +4 -0
  14. package/dist/@openzeppelin/contracts/token/ERC20/extensions/index.js.map +1 -0
  15. package/dist/@openzeppelin/contracts/token/ERC20/index.d.ts +2 -0
  16. package/dist/@openzeppelin/contracts/token/ERC20/index.d.ts.map +1 -1
  17. package/dist/@openzeppelin/contracts/token/ERC20/index.js +1 -0
  18. package/dist/@openzeppelin/contracts/token/ERC20/index.js.map +1 -1
  19. package/dist/contracts/ImmutableConnectionClient.sol/HyperlaneConnectionClient.d.ts +202 -0
  20. package/dist/contracts/ImmutableConnectionClient.sol/HyperlaneConnectionClient.d.ts.map +1 -0
  21. package/dist/contracts/ImmutableConnectionClient.sol/HyperlaneConnectionClient.js +4 -0
  22. package/dist/contracts/ImmutableConnectionClient.sol/HyperlaneConnectionClient.js.map +1 -0
  23. package/dist/contracts/ImmutableConnectionClient.sol/index.d.ts +2 -0
  24. package/dist/contracts/ImmutableConnectionClient.sol/index.d.ts.map +1 -0
  25. package/dist/contracts/ImmutableConnectionClient.sol/index.js +3 -0
  26. package/dist/contracts/ImmutableConnectionClient.sol/index.js.map +1 -0
  27. package/dist/contracts/InterchainGasPaymaster.d.ts +162 -0
  28. package/dist/contracts/InterchainGasPaymaster.d.ts.map +1 -0
  29. package/dist/contracts/InterchainGasPaymaster.js +4 -0
  30. package/dist/contracts/InterchainGasPaymaster.js.map +1 -0
  31. package/dist/contracts/index.d.ts +0 -1
  32. package/dist/contracts/index.d.ts.map +1 -1
  33. package/dist/contracts/isms/MultisigIsm.d.ts +290 -0
  34. package/dist/contracts/isms/MultisigIsm.d.ts.map +1 -0
  35. package/dist/contracts/isms/MultisigIsm.js +4 -0
  36. package/dist/contracts/isms/MultisigIsm.js.map +1 -0
  37. package/dist/contracts/libs/ImmutableOwnable.d.ts +43 -0
  38. package/dist/contracts/libs/ImmutableOwnable.d.ts.map +1 -0
  39. package/dist/contracts/libs/ImmutableOwnable.js +4 -0
  40. package/dist/contracts/libs/ImmutableOwnable.js.map +1 -0
  41. package/dist/contracts/middleware/liquidity-layer/interfaces/circle/ICircleBridge.d.ts +78 -0
  42. package/dist/contracts/middleware/liquidity-layer/interfaces/circle/ICircleBridge.d.ts.map +1 -0
  43. package/dist/contracts/middleware/liquidity-layer/interfaces/circle/ICircleBridge.js +4 -0
  44. package/dist/contracts/middleware/liquidity-layer/interfaces/circle/ICircleBridge.js.map +1 -0
  45. package/dist/contracts/mock/MockCircleBridge.d.ts +86 -0
  46. package/dist/contracts/mock/MockCircleBridge.d.ts.map +1 -0
  47. package/dist/contracts/mock/MockCircleBridge.js +4 -0
  48. package/dist/contracts/mock/MockCircleBridge.js.map +1 -0
  49. package/dist/contracts/mock/MockInterchainAccountRouter.d.ts +422 -0
  50. package/dist/contracts/mock/MockInterchainAccountRouter.d.ts.map +1 -0
  51. package/dist/contracts/mock/MockInterchainAccountRouter.js +4 -0
  52. package/dist/contracts/mock/MockInterchainAccountRouter.js.map +1 -0
  53. package/dist/contracts/test/TestMultisigIsm.d.ts +306 -0
  54. package/dist/contracts/test/TestMultisigIsm.d.ts.map +1 -0
  55. package/dist/contracts/test/TestMultisigIsm.js +4 -0
  56. package/dist/contracts/test/TestMultisigIsm.js.map +1 -0
  57. package/dist/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit__factory.d.ts +23 -0
  58. package/dist/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit__factory.d.ts.map +1 -0
  59. package/dist/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit__factory.js +93 -0
  60. package/dist/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit__factory.js.map +1 -0
  61. package/dist/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.d.ts +2 -0
  62. package/dist/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.d.ts.map +1 -0
  63. package/dist/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.js +9 -0
  64. package/dist/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.js.map +1 -0
  65. package/dist/factories/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts +2 -0
  66. package/dist/factories/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts.map +1 -0
  67. package/dist/factories/@openzeppelin/contracts/token/ERC20/extensions/index.js +31 -0
  68. package/dist/factories/@openzeppelin/contracts/token/ERC20/extensions/index.js.map +1 -0
  69. package/dist/factories/@openzeppelin/contracts/token/ERC20/index.d.ts +1 -0
  70. package/dist/factories/@openzeppelin/contracts/token/ERC20/index.d.ts.map +1 -1
  71. package/dist/factories/@openzeppelin/contracts/token/ERC20/index.js +25 -1
  72. package/dist/factories/@openzeppelin/contracts/token/ERC20/index.js.map +1 -1
  73. package/dist/factories/contracts/ImmutableConnectionClient.sol/HyperlaneConnectionClient__factory.d.ts +43 -0
  74. package/dist/factories/contracts/ImmutableConnectionClient.sol/HyperlaneConnectionClient__factory.d.ts.map +1 -0
  75. package/dist/factories/contracts/ImmutableConnectionClient.sol/HyperlaneConnectionClient__factory.js +200 -0
  76. package/dist/factories/contracts/ImmutableConnectionClient.sol/HyperlaneConnectionClient__factory.js.map +1 -0
  77. package/dist/factories/contracts/ImmutableConnectionClient.sol/index.d.ts +2 -0
  78. package/dist/factories/contracts/ImmutableConnectionClient.sol/index.d.ts.map +1 -0
  79. package/dist/factories/contracts/ImmutableConnectionClient.sol/index.js +9 -0
  80. package/dist/factories/contracts/ImmutableConnectionClient.sol/index.js.map +1 -0
  81. package/dist/factories/contracts/InterchainGasPaymaster__factory.d.ts +62 -0
  82. package/dist/factories/contracts/InterchainGasPaymaster__factory.d.ts.map +1 -0
  83. package/dist/factories/contracts/InterchainGasPaymaster__factory.js +178 -0
  84. package/dist/factories/contracts/InterchainGasPaymaster__factory.js.map +1 -0
  85. package/dist/factories/contracts/igps/InterchainGasPaymaster__factory.d.ts +4 -15
  86. package/dist/factories/contracts/igps/InterchainGasPaymaster__factory.d.ts.map +1 -1
  87. package/dist/factories/contracts/igps/InterchainGasPaymaster__factory.js +5 -16
  88. package/dist/factories/contracts/igps/InterchainGasPaymaster__factory.js.map +1 -1
  89. package/dist/factories/contracts/index.d.ts +0 -1
  90. package/dist/factories/contracts/index.d.ts.map +1 -1
  91. package/dist/factories/contracts/index.js +1 -3
  92. package/dist/factories/contracts/index.js.map +1 -1
  93. package/dist/factories/contracts/isms/MultisigIsm__factory.d.ts +55 -0
  94. package/dist/factories/contracts/isms/MultisigIsm__factory.d.ts.map +1 -0
  95. package/dist/factories/contracts/isms/MultisigIsm__factory.js +437 -0
  96. package/dist/factories/contracts/isms/MultisigIsm__factory.js.map +1 -0
  97. package/dist/factories/contracts/libs/ImmutableOwnable__factory.d.ts +19 -0
  98. package/dist/factories/contracts/libs/ImmutableOwnable__factory.d.ts.map +1 -0
  99. package/dist/factories/contracts/libs/ImmutableOwnable__factory.js +31 -0
  100. package/dist/factories/contracts/libs/ImmutableOwnable__factory.js.map +1 -0
  101. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/circle/ICircleBridge__factory.d.ts +36 -0
  102. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/circle/ICircleBridge__factory.d.ts.map +1 -0
  103. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/circle/ICircleBridge__factory.js +104 -0
  104. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/circle/ICircleBridge__factory.js.map +1 -0
  105. package/dist/factories/contracts/mock/MockCircleBridge__factory.d.ts +59 -0
  106. package/dist/factories/contracts/mock/MockCircleBridge__factory.d.ts.map +1 -0
  107. package/dist/factories/contracts/mock/MockCircleBridge__factory.js +151 -0
  108. package/dist/factories/contracts/mock/MockCircleBridge__factory.js.map +1 -0
  109. package/dist/factories/contracts/mock/MockHyperlaneEnvironment__factory.d.ts +1 -1
  110. package/dist/factories/contracts/mock/MockHyperlaneEnvironment__factory.d.ts.map +1 -1
  111. package/dist/factories/contracts/mock/MockHyperlaneEnvironment__factory.js +1 -1
  112. package/dist/factories/contracts/mock/MockHyperlaneEnvironment__factory.js.map +1 -1
  113. package/dist/factories/contracts/mock/MockInterchainAccountRouter__factory.d.ts +69 -0
  114. package/dist/factories/contracts/mock/MockInterchainAccountRouter__factory.d.ts.map +1 -0
  115. package/dist/factories/contracts/mock/MockInterchainAccountRouter__factory.js +556 -0
  116. package/dist/factories/contracts/mock/MockInterchainAccountRouter__factory.js.map +1 -0
  117. package/dist/factories/contracts/test/TestInterchainGasPaymaster__factory.d.ts +1 -1
  118. package/dist/factories/contracts/test/TestInterchainGasPaymaster__factory.d.ts.map +1 -1
  119. package/dist/factories/contracts/test/TestInterchainGasPaymaster__factory.js +1 -1
  120. package/dist/factories/contracts/test/TestInterchainGasPaymaster__factory.js.map +1 -1
  121. package/dist/factories/contracts/test/TestMultisigIsm__factory.d.ts +48 -0
  122. package/dist/factories/contracts/test/TestMultisigIsm__factory.d.ts.map +1 -0
  123. package/dist/factories/contracts/test/TestMultisigIsm__factory.js +480 -0
  124. package/dist/factories/contracts/test/TestMultisigIsm__factory.js.map +1 -0
  125. package/dist/factories/interfaces/IAggregationIsm__factory.d.ts +23 -0
  126. package/dist/factories/interfaces/IAggregationIsm__factory.d.ts.map +1 -0
  127. package/dist/factories/interfaces/IAggregationIsm__factory.js +79 -0
  128. package/dist/factories/interfaces/IAggregationIsm__factory.js.map +1 -0
  129. package/dist/factories/interfaces/IGasOracle__factory.d.ts +23 -0
  130. package/dist/factories/interfaces/IGasOracle__factory.d.ts.map +1 -0
  131. package/dist/factories/interfaces/IGasOracle__factory.js +42 -0
  132. package/dist/factories/interfaces/IGasOracle__factory.js.map +1 -0
  133. package/dist/factories/interfaces/IHyperlaneConnectionClient__factory.d.ts +29 -0
  134. package/dist/factories/interfaces/IHyperlaneConnectionClient__factory.d.ts.map +1 -0
  135. package/dist/factories/interfaces/IHyperlaneConnectionClient__factory.js +96 -0
  136. package/dist/factories/interfaces/IHyperlaneConnectionClient__factory.js.map +1 -0
  137. package/dist/factories/interfaces/IInterchainAccountRouter__factory.d.ts +33 -0
  138. package/dist/factories/interfaces/IInterchainAccountRouter__factory.d.ts.map +1 -0
  139. package/dist/factories/interfaces/IInterchainAccountRouter__factory.js +107 -0
  140. package/dist/factories/interfaces/IInterchainAccountRouter__factory.js.map +1 -0
  141. package/dist/factories/interfaces/IInterchainGasPaymaster__factory.d.ts +19 -0
  142. package/dist/factories/interfaces/IInterchainGasPaymaster__factory.d.ts.map +1 -0
  143. package/dist/factories/interfaces/IInterchainGasPaymaster__factory.js +46 -0
  144. package/dist/factories/interfaces/IInterchainGasPaymaster__factory.js.map +1 -0
  145. package/dist/factories/interfaces/IInterchainQueryRouter__factory.d.ts +33 -0
  146. package/dist/factories/interfaces/IInterchainQueryRouter__factory.d.ts.map +1 -0
  147. package/dist/factories/interfaces/IInterchainQueryRouter__factory.js +134 -0
  148. package/dist/factories/interfaces/IInterchainQueryRouter__factory.js.map +1 -0
  149. package/dist/factories/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule__factory.d.ts +23 -0
  150. package/dist/factories/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule__factory.d.ts.map +1 -0
  151. package/dist/factories/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule__factory.js +55 -0
  152. package/dist/factories/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule__factory.js.map +1 -0
  153. package/dist/factories/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule__factory.d.ts +19 -0
  154. package/dist/factories/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule__factory.d.ts.map +1 -0
  155. package/dist/factories/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule__factory.js +31 -0
  156. package/dist/factories/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule__factory.js.map +1 -0
  157. package/dist/factories/interfaces/IInterchainSecurityModule.sol/index.d.ts +3 -0
  158. package/dist/factories/interfaces/IInterchainSecurityModule.sol/index.d.ts.map +1 -0
  159. package/dist/factories/interfaces/IInterchainSecurityModule.sol/index.js +11 -0
  160. package/dist/factories/interfaces/IInterchainSecurityModule.sol/index.js.map +1 -0
  161. package/dist/factories/interfaces/ILiquidityLayerMessageRecipient__factory.d.ts +19 -0
  162. package/dist/factories/interfaces/ILiquidityLayerMessageRecipient__factory.d.ts.map +1 -0
  163. package/dist/factories/interfaces/ILiquidityLayerMessageRecipient__factory.js +51 -0
  164. package/dist/factories/interfaces/ILiquidityLayerMessageRecipient__factory.js.map +1 -0
  165. package/dist/factories/interfaces/ILiquidityLayerRouter__factory.d.ts +23 -0
  166. package/dist/factories/interfaces/ILiquidityLayerRouter__factory.d.ts.map +1 -0
  167. package/dist/factories/interfaces/ILiquidityLayerRouter__factory.js +62 -0
  168. package/dist/factories/interfaces/ILiquidityLayerRouter__factory.js.map +1 -0
  169. package/dist/factories/interfaces/IMailbox__factory.d.ts +23 -0
  170. package/dist/factories/interfaces/IMailbox__factory.d.ts.map +1 -0
  171. package/dist/factories/interfaces/IMailbox__factory.js +141 -0
  172. package/dist/factories/interfaces/IMailbox__factory.js.map +1 -0
  173. package/dist/factories/interfaces/IMessageRecipient__factory.d.ts +19 -0
  174. package/dist/factories/interfaces/IMessageRecipient__factory.d.ts.map +1 -0
  175. package/dist/factories/interfaces/IMessageRecipient__factory.js +41 -0
  176. package/dist/factories/interfaces/IMessageRecipient__factory.js.map +1 -0
  177. package/dist/factories/interfaces/IMultisigIsm__factory.d.ts +23 -0
  178. package/dist/factories/interfaces/IMultisigIsm__factory.d.ts.map +1 -0
  179. package/dist/factories/interfaces/IMultisigIsm__factory.js +79 -0
  180. package/dist/factories/interfaces/IMultisigIsm__factory.js.map +1 -0
  181. package/dist/factories/interfaces/IRouter__factory.d.ts +23 -0
  182. package/dist/factories/interfaces/IRouter__factory.d.ts.map +1 -0
  183. package/dist/factories/interfaces/IRouter__factory.js +86 -0
  184. package/dist/factories/interfaces/IRouter__factory.js.map +1 -0
  185. package/dist/factories/interfaces/IValidatorAnnounce__factory.d.ts +23 -0
  186. package/dist/factories/interfaces/IValidatorAnnounce__factory.d.ts.map +1 -0
  187. package/dist/factories/interfaces/IValidatorAnnounce__factory.js +105 -0
  188. package/dist/factories/interfaces/IValidatorAnnounce__factory.js.map +1 -0
  189. package/dist/factories/interfaces/index.d.ts +10 -0
  190. package/dist/factories/interfaces/index.d.ts.map +1 -0
  191. package/dist/factories/interfaces/index.js +47 -0
  192. package/dist/factories/interfaces/index.js.map +1 -0
  193. package/dist/factories/interfaces/isms/IMultisigIsm__factory.d.ts +23 -0
  194. package/dist/factories/interfaces/isms/IMultisigIsm__factory.d.ts.map +1 -0
  195. package/dist/factories/interfaces/isms/IMultisigIsm__factory.js +79 -0
  196. package/dist/factories/interfaces/isms/IMultisigIsm__factory.js.map +1 -0
  197. package/dist/factories/interfaces/isms/index.d.ts +2 -0
  198. package/dist/factories/interfaces/isms/index.d.ts.map +1 -0
  199. package/dist/factories/interfaces/isms/index.js +9 -0
  200. package/dist/factories/interfaces/isms/index.js.map +1 -0
  201. package/dist/factories/interfaces/middleware/IInterchainAccountRouter__factory.d.ts +33 -0
  202. package/dist/factories/interfaces/middleware/IInterchainAccountRouter__factory.d.ts.map +1 -0
  203. package/dist/factories/interfaces/middleware/IInterchainAccountRouter__factory.js +265 -0
  204. package/dist/factories/interfaces/middleware/IInterchainAccountRouter__factory.js.map +1 -0
  205. package/dist/factories/interfaces/middleware/IInterchainQueryRouter__factory.d.ts +43 -0
  206. package/dist/factories/interfaces/middleware/IInterchainQueryRouter__factory.d.ts.map +1 -0
  207. package/dist/factories/interfaces/middleware/IInterchainQueryRouter__factory.js +100 -0
  208. package/dist/factories/interfaces/middleware/IInterchainQueryRouter__factory.js.map +1 -0
  209. package/dist/factories/interfaces/middleware/index.d.ts +3 -0
  210. package/dist/factories/interfaces/middleware/index.d.ts.map +1 -0
  211. package/dist/factories/interfaces/middleware/index.js +11 -0
  212. package/dist/factories/interfaces/middleware/index.js.map +1 -0
  213. package/dist/index.d.ts +2 -2
  214. package/dist/index.d.ts.map +1 -1
  215. package/dist/index.js +3 -3
  216. package/dist/index.js.map +1 -1
  217. package/dist/interfaces/IAggregationIsm.d.ts +76 -0
  218. package/dist/interfaces/IAggregationIsm.d.ts.map +1 -0
  219. package/dist/interfaces/IAggregationIsm.js +4 -0
  220. package/dist/interfaces/IAggregationIsm.js.map +1 -0
  221. package/dist/interfaces/IGasOracle.d.ts +61 -0
  222. package/dist/interfaces/IGasOracle.d.ts.map +1 -0
  223. package/dist/interfaces/IGasOracle.js +4 -0
  224. package/dist/interfaces/IGasOracle.js.map +1 -0
  225. package/dist/interfaces/IHyperlaneConnectionClient.d.ts +107 -0
  226. package/dist/interfaces/IHyperlaneConnectionClient.d.ts.map +1 -0
  227. package/dist/interfaces/IHyperlaneConnectionClient.js +4 -0
  228. package/dist/interfaces/IHyperlaneConnectionClient.js.map +1 -0
  229. package/dist/interfaces/IInterchainAccountRouter.d.ts +83 -0
  230. package/dist/interfaces/IInterchainAccountRouter.d.ts.map +1 -0
  231. package/dist/interfaces/IInterchainAccountRouter.js +4 -0
  232. package/dist/interfaces/IInterchainAccountRouter.js.map +1 -0
  233. package/dist/interfaces/IInterchainGasPaymaster.d.ts +51 -0
  234. package/dist/interfaces/IInterchainGasPaymaster.d.ts.map +1 -0
  235. package/dist/interfaces/IInterchainGasPaymaster.js +4 -0
  236. package/dist/interfaces/IInterchainGasPaymaster.js.map +1 -0
  237. package/dist/interfaces/IInterchainQueryRouter.d.ts +91 -0
  238. package/dist/interfaces/IInterchainQueryRouter.d.ts.map +1 -0
  239. package/dist/interfaces/IInterchainQueryRouter.js +4 -0
  240. package/dist/interfaces/IInterchainQueryRouter.js.map +1 -0
  241. package/dist/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule.d.ts +59 -0
  242. package/dist/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule.d.ts.map +1 -0
  243. package/dist/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule.js +4 -0
  244. package/dist/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule.js.map +1 -0
  245. package/dist/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule.d.ts +43 -0
  246. package/dist/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule.d.ts.map +1 -0
  247. package/dist/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule.js +4 -0
  248. package/dist/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule.js.map +1 -0
  249. package/dist/interfaces/IInterchainSecurityModule.sol/index.d.ts +3 -0
  250. package/dist/interfaces/IInterchainSecurityModule.sol/index.d.ts.map +1 -0
  251. package/dist/interfaces/IInterchainSecurityModule.sol/index.js +3 -0
  252. package/dist/interfaces/IInterchainSecurityModule.sol/index.js.map +1 -0
  253. package/dist/interfaces/ILiquidityLayerMessageRecipient.d.ts +51 -0
  254. package/dist/interfaces/ILiquidityLayerMessageRecipient.d.ts.map +1 -0
  255. package/dist/interfaces/ILiquidityLayerMessageRecipient.js +4 -0
  256. package/dist/interfaces/ILiquidityLayerMessageRecipient.js.map +1 -0
  257. package/dist/interfaces/ILiquidityLayerRouter.d.ts +51 -0
  258. package/dist/interfaces/ILiquidityLayerRouter.d.ts.map +1 -0
  259. package/dist/interfaces/ILiquidityLayerRouter.js +4 -0
  260. package/dist/interfaces/ILiquidityLayerRouter.js.map +1 -0
  261. package/dist/interfaces/IMailbox.d.ts +107 -0
  262. package/dist/interfaces/IMailbox.d.ts.map +1 -0
  263. package/dist/interfaces/IMailbox.js +4 -0
  264. package/dist/interfaces/IMailbox.js.map +1 -0
  265. package/dist/interfaces/IMessageRecipient.d.ts +51 -0
  266. package/dist/interfaces/IMessageRecipient.d.ts.map +1 -0
  267. package/dist/interfaces/IMessageRecipient.js +4 -0
  268. package/dist/interfaces/IMessageRecipient.js.map +1 -0
  269. package/dist/interfaces/IMultisigIsm.d.ts +82 -0
  270. package/dist/interfaces/IMultisigIsm.d.ts.map +1 -0
  271. package/dist/interfaces/IMultisigIsm.js +4 -0
  272. package/dist/interfaces/IMultisigIsm.js.map +1 -0
  273. package/dist/interfaces/IRouter.d.ts +83 -0
  274. package/dist/interfaces/IRouter.d.ts.map +1 -0
  275. package/dist/interfaces/IRouter.js +4 -0
  276. package/dist/interfaces/IRouter.js.map +1 -0
  277. package/dist/interfaces/IValidatorAnnounce.d.ts +83 -0
  278. package/dist/interfaces/IValidatorAnnounce.d.ts.map +1 -0
  279. package/dist/interfaces/IValidatorAnnounce.js +4 -0
  280. package/dist/interfaces/IValidatorAnnounce.js.map +1 -0
  281. package/dist/interfaces/index.d.ts +11 -0
  282. package/dist/interfaces/index.d.ts.map +1 -0
  283. package/dist/interfaces/index.js +4 -0
  284. package/dist/interfaces/index.js.map +1 -0
  285. package/dist/interfaces/isms/IMultisigIsm.d.ts +82 -0
  286. package/dist/interfaces/isms/IMultisigIsm.d.ts.map +1 -0
  287. package/dist/interfaces/isms/IMultisigIsm.js +4 -0
  288. package/dist/interfaces/isms/IMultisigIsm.js.map +1 -0
  289. package/dist/interfaces/isms/index.d.ts +2 -0
  290. package/dist/interfaces/isms/index.d.ts.map +1 -0
  291. package/dist/interfaces/isms/index.js +3 -0
  292. package/dist/interfaces/isms/index.js.map +1 -0
  293. package/dist/interfaces/middleware/IInterchainAccountRouter.d.ts +127 -0
  294. package/dist/interfaces/middleware/IInterchainAccountRouter.d.ts.map +1 -0
  295. package/dist/interfaces/middleware/IInterchainAccountRouter.js +4 -0
  296. package/dist/interfaces/middleware/IInterchainAccountRouter.js.map +1 -0
  297. package/dist/interfaces/middleware/IInterchainQueryRouter.d.ts +88 -0
  298. package/dist/interfaces/middleware/IInterchainQueryRouter.d.ts.map +1 -0
  299. package/dist/interfaces/middleware/IInterchainQueryRouter.js +4 -0
  300. package/dist/interfaces/middleware/IInterchainQueryRouter.js.map +1 -0
  301. package/dist/interfaces/middleware/index.d.ts +3 -0
  302. package/dist/interfaces/middleware/index.d.ts.map +1 -0
  303. package/dist/interfaces/middleware/index.js +3 -0
  304. package/dist/interfaces/middleware/index.js.map +1 -0
  305. package/package.json +3 -3
  306. package/contracts/Create2Factory.sol +0 -114
@@ -1,114 +0,0 @@
1
- // SPDX-License-Identifier: MIT
2
- // Copied from https://github.com/axelarnetwork/axelar-utils-solidity/commits/main/contracts/ConstAddressDeployer.sol
3
-
4
- pragma solidity ^0.8.0;
5
-
6
- contract Create2Factory {
7
- error EmptyBytecode();
8
- error FailedDeploy();
9
- error FailedInit();
10
-
11
- event Deployed(
12
- bytes32 indexed bytecodeHash,
13
- bytes32 indexed salt,
14
- address indexed deployedAddress
15
- );
16
-
17
- /**
18
- * @dev Deploys a contract using `CREATE2`. The address where the contract
19
- * will be deployed can be known in advance via {deployedAddress}.
20
- *
21
- * The bytecode for a contract can be obtained from Solidity with
22
- * `type(contractName).creationCode`.
23
- *
24
- * Requirements:
25
- *
26
- * - `bytecode` must not be empty.
27
- * - `salt` must have not been used for `bytecode` already by the same `msg.sender`.
28
- */
29
- function deploy(bytes memory bytecode, bytes32 salt)
30
- external
31
- returns (address deployedAddress_)
32
- {
33
- deployedAddress_ = _deploy(
34
- bytecode,
35
- keccak256(abi.encode(msg.sender, salt))
36
- );
37
- }
38
-
39
- /**
40
- * @dev Deploys a contract using `CREATE2` and initialize it. The address where the contract
41
- * will be deployed can be known in advance via {deployedAddress}.
42
- *
43
- * The bytecode for a contract can be obtained from Solidity with
44
- * `type(contractName).creationCode`.
45
- *
46
- * Requirements:
47
- *
48
- * - `bytecode` must not be empty.
49
- * - `salt` must have not been used for `bytecode` already by the same `msg.sender`.
50
- * - `init` is used to initialize the deployed contract
51
- * as an option to not have the constructor args affect the address derived by `CREATE2`.
52
- */
53
- function deployAndInit(
54
- bytes memory bytecode,
55
- bytes32 salt,
56
- bytes calldata init
57
- ) external returns (address deployedAddress_) {
58
- deployedAddress_ = _deploy(
59
- bytecode,
60
- keccak256(abi.encode(msg.sender, salt))
61
- );
62
-
63
- // solhint-disable-next-line avoid-low-level-calls
64
- (bool success, ) = deployedAddress_.call(init);
65
- if (!success) revert FailedInit();
66
- }
67
-
68
- /**
69
- * @dev Returns the address where a contract will be stored if deployed via {deploy} or {deployAndInit} by `sender`.
70
- * Any change in the `bytecode`, `sender`, or `salt` will result in a new destination address.
71
- */
72
- function deployedAddress(
73
- bytes calldata bytecode,
74
- address sender,
75
- bytes32 salt
76
- ) external view returns (address deployedAddress_) {
77
- bytes32 newSalt = keccak256(abi.encode(sender, salt));
78
- deployedAddress_ = address(
79
- uint160(
80
- uint256(
81
- keccak256(
82
- abi.encodePacked(
83
- hex"ff",
84
- address(this),
85
- newSalt,
86
- keccak256(bytecode) // init code hash
87
- )
88
- )
89
- )
90
- )
91
- );
92
- }
93
-
94
- function _deploy(bytes memory bytecode, bytes32 salt)
95
- internal
96
- returns (address deployedAddress_)
97
- {
98
- if (bytecode.length == 0) revert EmptyBytecode();
99
-
100
- // solhint-disable-next-line no-inline-assembly
101
- assembly {
102
- deployedAddress_ := create2(
103
- 0,
104
- add(bytecode, 32),
105
- mload(bytecode),
106
- salt
107
- )
108
- }
109
-
110
- if (deployedAddress_ == address(0)) revert FailedDeploy();
111
-
112
- emit Deployed(keccak256(bytecode), salt, deployedAddress_);
113
- }
114
- }