@hyperlane-xyz/core 0.5.4-3 → 1.0.0-beta0

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 (773) hide show
  1. package/contracts/HyperlaneConnectionClient.sol +3 -4
  2. package/contracts/InterchainGasPaymaster.sol +19 -10
  3. package/contracts/Mailbox.sol +84 -19
  4. package/contracts/PausableReentrancyGuard.sol +69 -0
  5. package/contracts/Router.sol +15 -9
  6. package/contracts/isms/MultisigIsm.sol +77 -44
  7. package/contracts/libs/MultisigIsmMetadata.sol +17 -19
  8. package/contracts/middleware/InterchainAccountRouter.sol +18 -8
  9. package/contracts/middleware/InterchainQueryRouter.sol +28 -8
  10. package/contracts/middleware/liquidity-layer/LiquidityLayerRouter.sol +20 -12
  11. package/contracts/middleware/liquidity-layer/adapters/CircleBridgeAdapter.sol +0 -3
  12. package/contracts/mock/MockHyperlaneEnvironment.sol +17 -4
  13. package/contracts/mock/MockInterchainAccountRouter.sol +16 -2
  14. package/contracts/test/TestHyperlaneConnectionClient.sol +2 -2
  15. package/contracts/test/TestLiquidityLayerMessageRecipient.sol +1 -1
  16. package/contracts/test/TestRouter.sol +14 -6
  17. package/contracts/test/TestSendReceiver.sol +22 -7
  18. package/contracts/test/TestTokenRecipient.sol +1 -1
  19. package/contracts/upgrade/ProxyAdmin.sol +6 -0
  20. package/contracts/upgrade/TransparentUpgradeableProxy.sol +6 -0
  21. package/interfaces/IInterchainAccountRouter.sol +6 -0
  22. package/interfaces/IInterchainGasPaymaster.sol +6 -3
  23. package/interfaces/IInterchainQueryRouter.sol +7 -0
  24. package/{contracts/middleware/liquidity-layer/interfaces → interfaces}/ILiquidityLayerMessageRecipient.sol +0 -0
  25. package/interfaces/ILiquidityLayerRouter.sol +15 -0
  26. package/interfaces/IMultisigIsm.sol +1 -1
  27. package/package.json +6 -7
  28. package/contracts/test/MysteryMath.sol +0 -21
  29. package/contracts/test/MysteryMathV1.sol +0 -22
  30. package/contracts/test/MysteryMathV2.sol +0 -22
  31. package/contracts/upgrade/UpgradeBeacon.sol +0 -98
  32. package/contracts/upgrade/UpgradeBeaconController.sol +0 -48
  33. package/contracts/upgrade/UpgradeBeaconProxy.sol +0 -176
  34. package/dist/@openzeppelin/contracts/access/Ownable.d.ts +0 -90
  35. package/dist/@openzeppelin/contracts/access/Ownable.d.ts.map +0 -1
  36. package/dist/@openzeppelin/contracts/access/Ownable.js +0 -4
  37. package/dist/@openzeppelin/contracts/access/Ownable.js.map +0 -1
  38. package/dist/@openzeppelin/contracts/access/index.d.ts +0 -2
  39. package/dist/@openzeppelin/contracts/access/index.d.ts.map +0 -1
  40. package/dist/@openzeppelin/contracts/access/index.js +0 -3
  41. package/dist/@openzeppelin/contracts/access/index.js.map +0 -1
  42. package/dist/@openzeppelin/contracts/index.d.ts +0 -5
  43. package/dist/@openzeppelin/contracts/index.d.ts.map +0 -1
  44. package/dist/@openzeppelin/contracts/index.js +0 -4
  45. package/dist/@openzeppelin/contracts/index.js.map +0 -1
  46. package/dist/@openzeppelin/contracts/token/ERC20/IERC20.d.ts +0 -139
  47. package/dist/@openzeppelin/contracts/token/ERC20/IERC20.d.ts.map +0 -1
  48. package/dist/@openzeppelin/contracts/token/ERC20/IERC20.js +0 -4
  49. package/dist/@openzeppelin/contracts/token/ERC20/IERC20.js.map +0 -1
  50. package/dist/@openzeppelin/contracts/token/ERC20/index.d.ts +0 -2
  51. package/dist/@openzeppelin/contracts/token/ERC20/index.d.ts.map +0 -1
  52. package/dist/@openzeppelin/contracts/token/ERC20/index.js +0 -3
  53. package/dist/@openzeppelin/contracts/token/ERC20/index.js.map +0 -1
  54. package/dist/@openzeppelin/contracts/token/index.d.ts +0 -3
  55. package/dist/@openzeppelin/contracts/token/index.d.ts.map +0 -1
  56. package/dist/@openzeppelin/contracts/token/index.js +0 -4
  57. package/dist/@openzeppelin/contracts/token/index.js.map +0 -1
  58. package/dist/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.d.ts +0 -99
  59. package/dist/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.d.ts.map +0 -1
  60. package/dist/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.js +0 -4
  61. package/dist/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.js.map +0 -1
  62. package/dist/@openzeppelin/contracts-upgradeable/access/index.d.ts +0 -2
  63. package/dist/@openzeppelin/contracts-upgradeable/access/index.d.ts.map +0 -1
  64. package/dist/@openzeppelin/contracts-upgradeable/access/index.js +0 -3
  65. package/dist/@openzeppelin/contracts-upgradeable/access/index.js.map +0 -1
  66. package/dist/@openzeppelin/contracts-upgradeable/index.d.ts +0 -11
  67. package/dist/@openzeppelin/contracts-upgradeable/index.d.ts.map +0 -1
  68. package/dist/@openzeppelin/contracts-upgradeable/index.js +0 -4
  69. package/dist/@openzeppelin/contracts-upgradeable/index.js.map +0 -1
  70. package/dist/@openzeppelin/contracts-upgradeable/proxy/index.d.ts +0 -3
  71. package/dist/@openzeppelin/contracts-upgradeable/proxy/index.d.ts.map +0 -1
  72. package/dist/@openzeppelin/contracts-upgradeable/proxy/index.js +0 -4
  73. package/dist/@openzeppelin/contracts-upgradeable/proxy/index.js.map +0 -1
  74. package/dist/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.d.ts +0 -40
  75. package/dist/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.d.ts.map +0 -1
  76. package/dist/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.js +0 -4
  77. package/dist/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.js.map +0 -1
  78. package/dist/@openzeppelin/contracts-upgradeable/proxy/utils/index.d.ts +0 -2
  79. package/dist/@openzeppelin/contracts-upgradeable/proxy/utils/index.d.ts.map +0 -1
  80. package/dist/@openzeppelin/contracts-upgradeable/proxy/utils/index.js +0 -3
  81. package/dist/@openzeppelin/contracts-upgradeable/proxy/utils/index.js.map +0 -1
  82. package/dist/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.d.ts +0 -40
  83. package/dist/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.d.ts.map +0 -1
  84. package/dist/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.js +0 -4
  85. package/dist/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.js.map +0 -1
  86. package/dist/@openzeppelin/contracts-upgradeable/security/index.d.ts +0 -2
  87. package/dist/@openzeppelin/contracts-upgradeable/security/index.d.ts.map +0 -1
  88. package/dist/@openzeppelin/contracts-upgradeable/security/index.js +0 -3
  89. package/dist/@openzeppelin/contracts-upgradeable/security/index.js.map +0 -1
  90. package/dist/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.d.ts +0 -204
  91. package/dist/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.d.ts.map +0 -1
  92. package/dist/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.js +0 -4
  93. package/dist/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.js.map +0 -1
  94. package/dist/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.d.ts +0 -139
  95. package/dist/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.d.ts.map +0 -1
  96. package/dist/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.js +0 -4
  97. package/dist/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.js.map +0 -1
  98. package/dist/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.d.ts +0 -163
  99. package/dist/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.d.ts.map +0 -1
  100. package/dist/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.js +0 -4
  101. package/dist/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.js.map +0 -1
  102. package/dist/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.d.ts +0 -2
  103. package/dist/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.d.ts.map +0 -1
  104. package/dist/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.js +0 -3
  105. package/dist/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.js.map +0 -1
  106. package/dist/@openzeppelin/contracts-upgradeable/token/ERC20/index.d.ts +0 -5
  107. package/dist/@openzeppelin/contracts-upgradeable/token/ERC20/index.d.ts.map +0 -1
  108. package/dist/@openzeppelin/contracts-upgradeable/token/ERC20/index.js +0 -4
  109. package/dist/@openzeppelin/contracts-upgradeable/token/ERC20/index.js.map +0 -1
  110. package/dist/@openzeppelin/contracts-upgradeable/token/index.d.ts +0 -3
  111. package/dist/@openzeppelin/contracts-upgradeable/token/index.d.ts.map +0 -1
  112. package/dist/@openzeppelin/contracts-upgradeable/token/index.js +0 -4
  113. package/dist/@openzeppelin/contracts-upgradeable/token/index.js.map +0 -1
  114. package/dist/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.d.ts +0 -40
  115. package/dist/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.d.ts.map +0 -1
  116. package/dist/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.js +0 -4
  117. package/dist/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.js.map +0 -1
  118. package/dist/@openzeppelin/contracts-upgradeable/utils/index.d.ts +0 -2
  119. package/dist/@openzeppelin/contracts-upgradeable/utils/index.d.ts.map +0 -1
  120. package/dist/@openzeppelin/contracts-upgradeable/utils/index.js +0 -3
  121. package/dist/@openzeppelin/contracts-upgradeable/utils/index.js.map +0 -1
  122. package/dist/@openzeppelin/index.d.ts +0 -5
  123. package/dist/@openzeppelin/index.d.ts.map +0 -1
  124. package/dist/@openzeppelin/index.js +0 -4
  125. package/dist/@openzeppelin/index.js.map +0 -1
  126. package/dist/common.d.ts +0 -22
  127. package/dist/common.d.ts.map +0 -1
  128. package/dist/common.js +0 -4
  129. package/dist/common.js.map +0 -1
  130. package/dist/contracts/Create2Factory.d.ts +0 -94
  131. package/dist/contracts/Create2Factory.d.ts.map +0 -1
  132. package/dist/contracts/Create2Factory.js +0 -4
  133. package/dist/contracts/Create2Factory.js.map +0 -1
  134. package/dist/contracts/HyperlaneConnectionClient.d.ts +0 -202
  135. package/dist/contracts/HyperlaneConnectionClient.d.ts.map +0 -1
  136. package/dist/contracts/HyperlaneConnectionClient.js +0 -4
  137. package/dist/contracts/HyperlaneConnectionClient.js.map +0 -1
  138. package/dist/contracts/InterchainGasPaymaster.d.ts +0 -160
  139. package/dist/contracts/InterchainGasPaymaster.d.ts.map +0 -1
  140. package/dist/contracts/InterchainGasPaymaster.js +0 -4
  141. package/dist/contracts/InterchainGasPaymaster.js.map +0 -1
  142. package/dist/contracts/Mailbox.d.ts +0 -265
  143. package/dist/contracts/Mailbox.d.ts.map +0 -1
  144. package/dist/contracts/Mailbox.js +0 -4
  145. package/dist/contracts/Mailbox.js.map +0 -1
  146. package/dist/contracts/OwnableMulticall.d.ts +0 -123
  147. package/dist/contracts/OwnableMulticall.d.ts.map +0 -1
  148. package/dist/contracts/OwnableMulticall.js +0 -4
  149. package/dist/contracts/OwnableMulticall.js.map +0 -1
  150. package/dist/contracts/OwnableSpecifiesISM.d.ts +0 -134
  151. package/dist/contracts/OwnableSpecifiesISM.d.ts.map +0 -1
  152. package/dist/contracts/OwnableSpecifiesISM.js +0 -4
  153. package/dist/contracts/OwnableSpecifiesISM.js.map +0 -1
  154. package/dist/contracts/Router.d.ts +0 -271
  155. package/dist/contracts/Router.d.ts.map +0 -1
  156. package/dist/contracts/Router.js +0 -4
  157. package/dist/contracts/Router.js.map +0 -1
  158. package/dist/contracts/index.d.ts +0 -17
  159. package/dist/contracts/index.d.ts.map +0 -1
  160. package/dist/contracts/index.js +0 -4
  161. package/dist/contracts/index.js.map +0 -1
  162. package/dist/contracts/isms/MultisigIsm.d.ts +0 -235
  163. package/dist/contracts/isms/MultisigIsm.d.ts.map +0 -1
  164. package/dist/contracts/isms/MultisigIsm.js +0 -4
  165. package/dist/contracts/isms/MultisigIsm.js.map +0 -1
  166. package/dist/contracts/isms/index.d.ts +0 -2
  167. package/dist/contracts/isms/index.d.ts.map +0 -1
  168. package/dist/contracts/isms/index.js +0 -3
  169. package/dist/contracts/isms/index.js.map +0 -1
  170. package/dist/contracts/middleware/InterchainAccountRouter.d.ts +0 -350
  171. package/dist/contracts/middleware/InterchainAccountRouter.d.ts.map +0 -1
  172. package/dist/contracts/middleware/InterchainAccountRouter.js +0 -4
  173. package/dist/contracts/middleware/InterchainAccountRouter.js.map +0 -1
  174. package/dist/contracts/middleware/InterchainQueryRouter.d.ts +0 -382
  175. package/dist/contracts/middleware/InterchainQueryRouter.d.ts.map +0 -1
  176. package/dist/contracts/middleware/InterchainQueryRouter.js +0 -4
  177. package/dist/contracts/middleware/InterchainQueryRouter.js.map +0 -1
  178. package/dist/contracts/middleware/index.d.ts +0 -5
  179. package/dist/contracts/middleware/index.d.ts.map +0 -1
  180. package/dist/contracts/middleware/index.js +0 -4
  181. package/dist/contracts/middleware/index.js.map +0 -1
  182. package/dist/contracts/middleware/liquidity-layer/LiquidityLayerRouter.d.ts +0 -340
  183. package/dist/contracts/middleware/liquidity-layer/LiquidityLayerRouter.d.ts.map +0 -1
  184. package/dist/contracts/middleware/liquidity-layer/LiquidityLayerRouter.js +0 -4
  185. package/dist/contracts/middleware/liquidity-layer/LiquidityLayerRouter.js.map +0 -1
  186. package/dist/contracts/middleware/liquidity-layer/adapters/CircleBridgeAdapter.d.ts +0 -465
  187. package/dist/contracts/middleware/liquidity-layer/adapters/CircleBridgeAdapter.d.ts.map +0 -1
  188. package/dist/contracts/middleware/liquidity-layer/adapters/CircleBridgeAdapter.js +0 -4
  189. package/dist/contracts/middleware/liquidity-layer/adapters/CircleBridgeAdapter.js.map +0 -1
  190. package/dist/contracts/middleware/liquidity-layer/adapters/index.d.ts +0 -2
  191. package/dist/contracts/middleware/liquidity-layer/adapters/index.d.ts.map +0 -1
  192. package/dist/contracts/middleware/liquidity-layer/adapters/index.js +0 -3
  193. package/dist/contracts/middleware/liquidity-layer/adapters/index.js.map +0 -1
  194. package/dist/contracts/middleware/liquidity-layer/index.d.ts +0 -6
  195. package/dist/contracts/middleware/liquidity-layer/index.d.ts.map +0 -1
  196. package/dist/contracts/middleware/liquidity-layer/index.js +0 -4
  197. package/dist/contracts/middleware/liquidity-layer/index.js.map +0 -1
  198. package/dist/contracts/middleware/liquidity-layer/interfaces/ILiquidityLayerAdapter.d.ts +0 -67
  199. package/dist/contracts/middleware/liquidity-layer/interfaces/ILiquidityLayerAdapter.d.ts.map +0 -1
  200. package/dist/contracts/middleware/liquidity-layer/interfaces/ILiquidityLayerAdapter.js +0 -4
  201. package/dist/contracts/middleware/liquidity-layer/interfaces/ILiquidityLayerAdapter.js.map +0 -1
  202. package/dist/contracts/middleware/liquidity-layer/interfaces/ILiquidityLayerMessageRecipient.d.ts +0 -51
  203. package/dist/contracts/middleware/liquidity-layer/interfaces/ILiquidityLayerMessageRecipient.d.ts.map +0 -1
  204. package/dist/contracts/middleware/liquidity-layer/interfaces/ILiquidityLayerMessageRecipient.js +0 -4
  205. package/dist/contracts/middleware/liquidity-layer/interfaces/ILiquidityLayerMessageRecipient.js.map +0 -1
  206. package/dist/contracts/middleware/liquidity-layer/interfaces/circle/ICircleBridge.d.ts +0 -78
  207. package/dist/contracts/middleware/liquidity-layer/interfaces/circle/ICircleBridge.d.ts.map +0 -1
  208. package/dist/contracts/middleware/liquidity-layer/interfaces/circle/ICircleBridge.js +0 -4
  209. package/dist/contracts/middleware/liquidity-layer/interfaces/circle/ICircleBridge.js.map +0 -1
  210. package/dist/contracts/middleware/liquidity-layer/interfaces/circle/ICircleMessageTransmitter.d.ts +0 -59
  211. package/dist/contracts/middleware/liquidity-layer/interfaces/circle/ICircleMessageTransmitter.d.ts.map +0 -1
  212. package/dist/contracts/middleware/liquidity-layer/interfaces/circle/ICircleMessageTransmitter.js +0 -4
  213. package/dist/contracts/middleware/liquidity-layer/interfaces/circle/ICircleMessageTransmitter.js.map +0 -1
  214. package/dist/contracts/middleware/liquidity-layer/interfaces/circle/index.d.ts +0 -3
  215. package/dist/contracts/middleware/liquidity-layer/interfaces/circle/index.d.ts.map +0 -1
  216. package/dist/contracts/middleware/liquidity-layer/interfaces/circle/index.js +0 -3
  217. package/dist/contracts/middleware/liquidity-layer/interfaces/circle/index.js.map +0 -1
  218. package/dist/contracts/middleware/liquidity-layer/interfaces/index.d.ts +0 -5
  219. package/dist/contracts/middleware/liquidity-layer/interfaces/index.d.ts.map +0 -1
  220. package/dist/contracts/middleware/liquidity-layer/interfaces/index.js +0 -4
  221. package/dist/contracts/middleware/liquidity-layer/interfaces/index.js.map +0 -1
  222. package/dist/contracts/mock/MockCircleBridge.d.ts +0 -86
  223. package/dist/contracts/mock/MockCircleBridge.d.ts.map +0 -1
  224. package/dist/contracts/mock/MockCircleBridge.js +0 -4
  225. package/dist/contracts/mock/MockCircleBridge.js.map +0 -1
  226. package/dist/contracts/mock/MockCircleMessageTransmitter.d.ts +0 -77
  227. package/dist/contracts/mock/MockCircleMessageTransmitter.d.ts.map +0 -1
  228. package/dist/contracts/mock/MockCircleMessageTransmitter.js +0 -4
  229. package/dist/contracts/mock/MockCircleMessageTransmitter.js.map +0 -1
  230. package/dist/contracts/mock/MockHyperlaneEnvironment.d.ts +0 -83
  231. package/dist/contracts/mock/MockHyperlaneEnvironment.d.ts.map +0 -1
  232. package/dist/contracts/mock/MockHyperlaneEnvironment.js +0 -4
  233. package/dist/contracts/mock/MockHyperlaneEnvironment.js.map +0 -1
  234. package/dist/contracts/mock/MockInterchainAccountRouter.d.ts +0 -124
  235. package/dist/contracts/mock/MockInterchainAccountRouter.d.ts.map +0 -1
  236. package/dist/contracts/mock/MockInterchainAccountRouter.js +0 -4
  237. package/dist/contracts/mock/MockInterchainAccountRouter.js.map +0 -1
  238. package/dist/contracts/mock/MockMailbox.d.ts +0 -185
  239. package/dist/contracts/mock/MockMailbox.d.ts.map +0 -1
  240. package/dist/contracts/mock/MockMailbox.js +0 -4
  241. package/dist/contracts/mock/MockMailbox.js.map +0 -1
  242. package/dist/contracts/mock/MockToken.d.ts +0 -236
  243. package/dist/contracts/mock/MockToken.d.ts.map +0 -1
  244. package/dist/contracts/mock/MockToken.js +0 -4
  245. package/dist/contracts/mock/MockToken.js.map +0 -1
  246. package/dist/contracts/mock/index.d.ts +0 -7
  247. package/dist/contracts/mock/index.d.ts.map +0 -1
  248. package/dist/contracts/mock/index.js +0 -3
  249. package/dist/contracts/mock/index.js.map +0 -1
  250. package/dist/contracts/test/MysteryMath.d.ts +0 -77
  251. package/dist/contracts/test/MysteryMath.d.ts.map +0 -1
  252. package/dist/contracts/test/MysteryMath.js +0 -4
  253. package/dist/contracts/test/MysteryMath.js.map +0 -1
  254. package/dist/contracts/test/MysteryMathV1.d.ts +0 -85
  255. package/dist/contracts/test/MysteryMathV1.d.ts.map +0 -1
  256. package/dist/contracts/test/MysteryMathV1.js +0 -4
  257. package/dist/contracts/test/MysteryMathV1.js.map +0 -1
  258. package/dist/contracts/test/MysteryMathV2.d.ts +0 -85
  259. package/dist/contracts/test/MysteryMathV2.d.ts.map +0 -1
  260. package/dist/contracts/test/MysteryMathV2.js +0 -4
  261. package/dist/contracts/test/MysteryMathV2.js.map +0 -1
  262. package/dist/contracts/test/TestHyperlaneConnectionClient.d.ts +0 -226
  263. package/dist/contracts/test/TestHyperlaneConnectionClient.d.ts.map +0 -1
  264. package/dist/contracts/test/TestHyperlaneConnectionClient.js +0 -4
  265. package/dist/contracts/test/TestHyperlaneConnectionClient.js.map +0 -1
  266. package/dist/contracts/test/TestIsm.d.ts +0 -67
  267. package/dist/contracts/test/TestIsm.d.ts.map +0 -1
  268. package/dist/contracts/test/TestIsm.js +0 -4
  269. package/dist/contracts/test/TestIsm.js.map +0 -1
  270. package/dist/contracts/test/TestLiquidityLayerMessageRecipient.d.ts +0 -72
  271. package/dist/contracts/test/TestLiquidityLayerMessageRecipient.d.ts.map +0 -1
  272. package/dist/contracts/test/TestLiquidityLayerMessageRecipient.js +0 -4
  273. package/dist/contracts/test/TestLiquidityLayerMessageRecipient.js.map +0 -1
  274. package/dist/contracts/test/TestMailbox.d.ts +0 -289
  275. package/dist/contracts/test/TestMailbox.d.ts.map +0 -1
  276. package/dist/contracts/test/TestMailbox.js +0 -4
  277. package/dist/contracts/test/TestMailbox.js.map +0 -1
  278. package/dist/contracts/test/TestMerkle.d.ts +0 -87
  279. package/dist/contracts/test/TestMerkle.d.ts.map +0 -1
  280. package/dist/contracts/test/TestMerkle.js +0 -4
  281. package/dist/contracts/test/TestMerkle.js.map +0 -1
  282. package/dist/contracts/test/TestMessage.d.ts +0 -123
  283. package/dist/contracts/test/TestMessage.d.ts.map +0 -1
  284. package/dist/contracts/test/TestMessage.js +0 -4
  285. package/dist/contracts/test/TestMessage.js.map +0 -1
  286. package/dist/contracts/test/TestMultisigIsm.d.ts +0 -251
  287. package/dist/contracts/test/TestMultisigIsm.d.ts.map +0 -1
  288. package/dist/contracts/test/TestMultisigIsm.js +0 -4
  289. package/dist/contracts/test/TestMultisigIsm.js.map +0 -1
  290. package/dist/contracts/test/TestQuery.d.ts +0 -87
  291. package/dist/contracts/test/TestQuery.d.ts.map +0 -1
  292. package/dist/contracts/test/TestQuery.js +0 -4
  293. package/dist/contracts/test/TestQuery.js.map +0 -1
  294. package/dist/contracts/test/TestQuerySender.d.ts +0 -215
  295. package/dist/contracts/test/TestQuerySender.d.ts.map +0 -1
  296. package/dist/contracts/test/TestQuerySender.js +0 -4
  297. package/dist/contracts/test/TestQuerySender.js.map +0 -1
  298. package/dist/contracts/test/TestRecipient.d.ts +0 -131
  299. package/dist/contracts/test/TestRecipient.d.ts.map +0 -1
  300. package/dist/contracts/test/TestRecipient.js +0 -4
  301. package/dist/contracts/test/TestRecipient.js.map +0 -1
  302. package/dist/contracts/test/TestRouter.d.ts +0 -344
  303. package/dist/contracts/test/TestRouter.d.ts.map +0 -1
  304. package/dist/contracts/test/TestRouter.js +0 -4
  305. package/dist/contracts/test/TestRouter.js.map +0 -1
  306. package/dist/contracts/test/TestSendReceiver.d.ts +0 -78
  307. package/dist/contracts/test/TestSendReceiver.d.ts.map +0 -1
  308. package/dist/contracts/test/TestSendReceiver.js +0 -4
  309. package/dist/contracts/test/TestSendReceiver.js.map +0 -1
  310. package/dist/contracts/test/TestTokenRecipient.d.ts +0 -151
  311. package/dist/contracts/test/TestTokenRecipient.d.ts.map +0 -1
  312. package/dist/contracts/test/TestTokenRecipient.js +0 -4
  313. package/dist/contracts/test/TestTokenRecipient.js.map +0 -1
  314. package/dist/contracts/test/bad-recipient/BadRecipient1.d.ts +0 -43
  315. package/dist/contracts/test/bad-recipient/BadRecipient1.d.ts.map +0 -1
  316. package/dist/contracts/test/bad-recipient/BadRecipient1.js +0 -4
  317. package/dist/contracts/test/bad-recipient/BadRecipient1.js.map +0 -1
  318. package/dist/contracts/test/bad-recipient/BadRecipient2.d.ts +0 -43
  319. package/dist/contracts/test/bad-recipient/BadRecipient2.d.ts.map +0 -1
  320. package/dist/contracts/test/bad-recipient/BadRecipient2.js +0 -4
  321. package/dist/contracts/test/bad-recipient/BadRecipient2.js.map +0 -1
  322. package/dist/contracts/test/bad-recipient/BadRecipient3.d.ts +0 -43
  323. package/dist/contracts/test/bad-recipient/BadRecipient3.d.ts.map +0 -1
  324. package/dist/contracts/test/bad-recipient/BadRecipient3.js +0 -4
  325. package/dist/contracts/test/bad-recipient/BadRecipient3.js.map +0 -1
  326. package/dist/contracts/test/bad-recipient/BadRecipient5.d.ts +0 -43
  327. package/dist/contracts/test/bad-recipient/BadRecipient5.d.ts.map +0 -1
  328. package/dist/contracts/test/bad-recipient/BadRecipient5.js +0 -4
  329. package/dist/contracts/test/bad-recipient/BadRecipient5.js.map +0 -1
  330. package/dist/contracts/test/bad-recipient/BadRecipient6.d.ts +0 -43
  331. package/dist/contracts/test/bad-recipient/BadRecipient6.d.ts.map +0 -1
  332. package/dist/contracts/test/bad-recipient/BadRecipient6.js +0 -4
  333. package/dist/contracts/test/bad-recipient/BadRecipient6.js.map +0 -1
  334. package/dist/contracts/test/bad-recipient/index.d.ts +0 -6
  335. package/dist/contracts/test/bad-recipient/index.d.ts.map +0 -1
  336. package/dist/contracts/test/bad-recipient/index.js +0 -3
  337. package/dist/contracts/test/bad-recipient/index.js.map +0 -1
  338. package/dist/contracts/test/index.d.ts +0 -19
  339. package/dist/contracts/test/index.d.ts.map +0 -1
  340. package/dist/contracts/test/index.js +0 -4
  341. package/dist/contracts/test/index.js.map +0 -1
  342. package/dist/contracts/upgrade/UpgradeBeacon.d.ts +0 -40
  343. package/dist/contracts/upgrade/UpgradeBeacon.d.ts.map +0 -1
  344. package/dist/contracts/upgrade/UpgradeBeacon.js +0 -4
  345. package/dist/contracts/upgrade/UpgradeBeacon.js.map +0 -1
  346. package/dist/contracts/upgrade/UpgradeBeaconController.d.ts +0 -119
  347. package/dist/contracts/upgrade/UpgradeBeaconController.d.ts.map +0 -1
  348. package/dist/contracts/upgrade/UpgradeBeaconController.js +0 -4
  349. package/dist/contracts/upgrade/UpgradeBeaconController.js.map +0 -1
  350. package/dist/contracts/upgrade/UpgradeBeaconProxy.d.ts +0 -28
  351. package/dist/contracts/upgrade/UpgradeBeaconProxy.d.ts.map +0 -1
  352. package/dist/contracts/upgrade/UpgradeBeaconProxy.js +0 -4
  353. package/dist/contracts/upgrade/UpgradeBeaconProxy.js.map +0 -1
  354. package/dist/contracts/upgrade/Versioned.d.ts +0 -43
  355. package/dist/contracts/upgrade/Versioned.d.ts.map +0 -1
  356. package/dist/contracts/upgrade/Versioned.js +0 -4
  357. package/dist/contracts/upgrade/Versioned.js.map +0 -1
  358. package/dist/contracts/upgrade/index.d.ts +0 -5
  359. package/dist/contracts/upgrade/index.d.ts.map +0 -1
  360. package/dist/contracts/upgrade/index.js +0 -3
  361. package/dist/contracts/upgrade/index.js.map +0 -1
  362. package/dist/factories/@openzeppelin/contracts/access/Ownable__factory.d.ts +0 -43
  363. package/dist/factories/@openzeppelin/contracts/access/Ownable__factory.d.ts.map +0 -1
  364. package/dist/factories/@openzeppelin/contracts/access/Ownable__factory.js +0 -70
  365. package/dist/factories/@openzeppelin/contracts/access/Ownable__factory.js.map +0 -1
  366. package/dist/factories/@openzeppelin/contracts/access/index.d.ts +0 -2
  367. package/dist/factories/@openzeppelin/contracts/access/index.d.ts.map +0 -1
  368. package/dist/factories/@openzeppelin/contracts/access/index.js +0 -9
  369. package/dist/factories/@openzeppelin/contracts/access/index.js.map +0 -1
  370. package/dist/factories/@openzeppelin/contracts/index.d.ts +0 -3
  371. package/dist/factories/@openzeppelin/contracts/index.d.ts.map +0 -1
  372. package/dist/factories/@openzeppelin/contracts/index.js +0 -32
  373. package/dist/factories/@openzeppelin/contracts/index.js.map +0 -1
  374. package/dist/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.d.ts +0 -36
  375. package/dist/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.d.ts.map +0 -1
  376. package/dist/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.js +0 -201
  377. package/dist/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.js.map +0 -1
  378. package/dist/factories/@openzeppelin/contracts/token/ERC20/index.d.ts +0 -2
  379. package/dist/factories/@openzeppelin/contracts/token/ERC20/index.d.ts.map +0 -1
  380. package/dist/factories/@openzeppelin/contracts/token/ERC20/index.js +0 -9
  381. package/dist/factories/@openzeppelin/contracts/token/ERC20/index.js.map +0 -1
  382. package/dist/factories/@openzeppelin/contracts/token/index.d.ts +0 -2
  383. package/dist/factories/@openzeppelin/contracts/token/index.d.ts.map +0 -1
  384. package/dist/factories/@openzeppelin/contracts/token/index.js +0 -31
  385. package/dist/factories/@openzeppelin/contracts/token/index.js.map +0 -1
  386. package/dist/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.d.ts +0 -43
  387. package/dist/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.d.ts.map +0 -1
  388. package/dist/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.js +0 -83
  389. package/dist/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.js.map +0 -1
  390. package/dist/factories/@openzeppelin/contracts-upgradeable/access/index.d.ts +0 -2
  391. package/dist/factories/@openzeppelin/contracts-upgradeable/access/index.d.ts.map +0 -1
  392. package/dist/factories/@openzeppelin/contracts-upgradeable/access/index.js +0 -9
  393. package/dist/factories/@openzeppelin/contracts-upgradeable/access/index.js.map +0 -1
  394. package/dist/factories/@openzeppelin/contracts-upgradeable/index.d.ts +0 -6
  395. package/dist/factories/@openzeppelin/contracts-upgradeable/index.d.ts.map +0 -1
  396. package/dist/factories/@openzeppelin/contracts-upgradeable/index.js +0 -35
  397. package/dist/factories/@openzeppelin/contracts-upgradeable/index.js.map +0 -1
  398. package/dist/factories/@openzeppelin/contracts-upgradeable/proxy/index.d.ts +0 -2
  399. package/dist/factories/@openzeppelin/contracts-upgradeable/proxy/index.d.ts.map +0 -1
  400. package/dist/factories/@openzeppelin/contracts-upgradeable/proxy/index.js +0 -31
  401. package/dist/factories/@openzeppelin/contracts-upgradeable/proxy/index.js.map +0 -1
  402. package/dist/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.d.ts +0 -19
  403. package/dist/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.d.ts.map +0 -1
  404. package/dist/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.js +0 -31
  405. package/dist/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.js.map +0 -1
  406. package/dist/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.d.ts +0 -2
  407. package/dist/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.d.ts.map +0 -1
  408. package/dist/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.js +0 -9
  409. package/dist/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.js.map +0 -1
  410. package/dist/factories/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable__factory.d.ts +0 -19
  411. package/dist/factories/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable__factory.d.ts.map +0 -1
  412. package/dist/factories/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable__factory.js +0 -31
  413. package/dist/factories/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable__factory.js.map +0 -1
  414. package/dist/factories/@openzeppelin/contracts-upgradeable/security/index.d.ts +0 -2
  415. package/dist/factories/@openzeppelin/contracts-upgradeable/security/index.d.ts.map +0 -1
  416. package/dist/factories/@openzeppelin/contracts-upgradeable/security/index.js +0 -9
  417. package/dist/factories/@openzeppelin/contracts-upgradeable/security/index.js.map +0 -1
  418. package/dist/factories/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable__factory.d.ts +0 -48
  419. package/dist/factories/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable__factory.d.ts.map +0 -1
  420. package/dist/factories/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable__factory.js +0 -324
  421. package/dist/factories/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable__factory.js.map +0 -1
  422. package/dist/factories/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable__factory.d.ts +0 -36
  423. package/dist/factories/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable__factory.d.ts.map +0 -1
  424. package/dist/factories/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable__factory.js +0 -201
  425. package/dist/factories/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable__factory.js.map +0 -1
  426. package/dist/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable__factory.d.ts +0 -36
  427. package/dist/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable__factory.d.ts.map +0 -1
  428. package/dist/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable__factory.js +0 -240
  429. package/dist/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable__factory.js.map +0 -1
  430. package/dist/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.d.ts +0 -2
  431. package/dist/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.d.ts.map +0 -1
  432. package/dist/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.js +0 -9
  433. package/dist/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.js.map +0 -1
  434. package/dist/factories/@openzeppelin/contracts-upgradeable/token/ERC20/index.d.ts +0 -4
  435. package/dist/factories/@openzeppelin/contracts-upgradeable/token/ERC20/index.d.ts.map +0 -1
  436. package/dist/factories/@openzeppelin/contracts-upgradeable/token/ERC20/index.js +0 -35
  437. package/dist/factories/@openzeppelin/contracts-upgradeable/token/ERC20/index.js.map +0 -1
  438. package/dist/factories/@openzeppelin/contracts-upgradeable/token/index.d.ts +0 -2
  439. package/dist/factories/@openzeppelin/contracts-upgradeable/token/index.d.ts.map +0 -1
  440. package/dist/factories/@openzeppelin/contracts-upgradeable/token/index.js +0 -31
  441. package/dist/factories/@openzeppelin/contracts-upgradeable/token/index.js.map +0 -1
  442. package/dist/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.d.ts +0 -19
  443. package/dist/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.d.ts.map +0 -1
  444. package/dist/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.js +0 -31
  445. package/dist/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.js.map +0 -1
  446. package/dist/factories/@openzeppelin/contracts-upgradeable/utils/index.d.ts +0 -2
  447. package/dist/factories/@openzeppelin/contracts-upgradeable/utils/index.d.ts.map +0 -1
  448. package/dist/factories/@openzeppelin/contracts-upgradeable/utils/index.js +0 -9
  449. package/dist/factories/@openzeppelin/contracts-upgradeable/utils/index.js.map +0 -1
  450. package/dist/factories/@openzeppelin/index.d.ts +0 -3
  451. package/dist/factories/@openzeppelin/index.d.ts.map +0 -1
  452. package/dist/factories/@openzeppelin/index.js +0 -32
  453. package/dist/factories/@openzeppelin/index.js.map +0 -1
  454. package/dist/factories/contracts/Create2Factory__factory.d.ts +0 -55
  455. package/dist/factories/contracts/Create2Factory__factory.d.ts.map +0 -1
  456. package/dist/factories/contracts/Create2Factory__factory.js +0 -163
  457. package/dist/factories/contracts/Create2Factory__factory.js.map +0 -1
  458. package/dist/factories/contracts/HyperlaneConnectionClient__factory.d.ts +0 -43
  459. package/dist/factories/contracts/HyperlaneConnectionClient__factory.d.ts.map +0 -1
  460. package/dist/factories/contracts/HyperlaneConnectionClient__factory.js +0 -200
  461. package/dist/factories/contracts/HyperlaneConnectionClient__factory.js.map +0 -1
  462. package/dist/factories/contracts/InterchainGasPaymaster__factory.d.ts +0 -62
  463. package/dist/factories/contracts/InterchainGasPaymaster__factory.d.ts.map +0 -1
  464. package/dist/factories/contracts/InterchainGasPaymaster__factory.js +0 -162
  465. package/dist/factories/contracts/InterchainGasPaymaster__factory.js.map +0 -1
  466. package/dist/factories/contracts/Mailbox__factory.d.ts +0 -59
  467. package/dist/factories/contracts/Mailbox__factory.d.ts.map +0 -1
  468. package/dist/factories/contracts/Mailbox__factory.js +0 -363
  469. package/dist/factories/contracts/Mailbox__factory.js.map +0 -1
  470. package/dist/factories/contracts/OwnableMulticall__factory.d.ts +0 -78
  471. package/dist/factories/contracts/OwnableMulticall__factory.d.ts.map +0 -1
  472. package/dist/factories/contracts/OwnableMulticall__factory.js +0 -136
  473. package/dist/factories/contracts/OwnableMulticall__factory.js.map +0 -1
  474. package/dist/factories/contracts/OwnableSpecifiesISM__factory.d.ts +0 -55
  475. package/dist/factories/contracts/OwnableSpecifiesISM__factory.d.ts.map +0 -1
  476. package/dist/factories/contracts/OwnableSpecifiesISM__factory.js +0 -145
  477. package/dist/factories/contracts/OwnableSpecifiesISM__factory.js.map +0 -1
  478. package/dist/factories/contracts/Router__factory.d.ts +0 -36
  479. package/dist/factories/contracts/Router__factory.d.ts.map +0 -1
  480. package/dist/factories/contracts/Router__factory.js +0 -297
  481. package/dist/factories/contracts/Router__factory.js.map +0 -1
  482. package/dist/factories/contracts/index.d.ts +0 -12
  483. package/dist/factories/contracts/index.d.ts.map +0 -1
  484. package/dist/factories/contracts/index.js +0 -47
  485. package/dist/factories/contracts/index.js.map +0 -1
  486. package/dist/factories/contracts/isms/MultisigIsm__factory.d.ts +0 -55
  487. package/dist/factories/contracts/isms/MultisigIsm__factory.d.ts.map +0 -1
  488. package/dist/factories/contracts/isms/MultisigIsm__factory.js +0 -363
  489. package/dist/factories/contracts/isms/MultisigIsm__factory.js.map +0 -1
  490. package/dist/factories/contracts/isms/index.d.ts +0 -2
  491. package/dist/factories/contracts/isms/index.d.ts.map +0 -1
  492. package/dist/factories/contracts/isms/index.js +0 -9
  493. package/dist/factories/contracts/isms/index.js.map +0 -1
  494. package/dist/factories/contracts/middleware/InterchainAccountRouter__factory.d.ts +0 -58
  495. package/dist/factories/contracts/middleware/InterchainAccountRouter__factory.d.ts.map +0 -1
  496. package/dist/factories/contracts/middleware/InterchainAccountRouter__factory.js +0 -452
  497. package/dist/factories/contracts/middleware/InterchainAccountRouter__factory.js.map +0 -1
  498. package/dist/factories/contracts/middleware/InterchainQueryRouter__factory.d.ts +0 -58
  499. package/dist/factories/contracts/middleware/InterchainQueryRouter__factory.d.ts.map +0 -1
  500. package/dist/factories/contracts/middleware/InterchainQueryRouter__factory.js +0 -507
  501. package/dist/factories/contracts/middleware/InterchainQueryRouter__factory.js.map +0 -1
  502. package/dist/factories/contracts/middleware/index.d.ts +0 -4
  503. package/dist/factories/contracts/middleware/index.d.ts.map +0 -1
  504. package/dist/factories/contracts/middleware/index.js +0 -35
  505. package/dist/factories/contracts/middleware/index.js.map +0 -1
  506. package/dist/factories/contracts/middleware/liquidity-layer/LiquidityLayerRouter__factory.d.ts +0 -48
  507. package/dist/factories/contracts/middleware/liquidity-layer/LiquidityLayerRouter__factory.d.ts.map +0 -1
  508. package/dist/factories/contracts/middleware/liquidity-layer/LiquidityLayerRouter__factory.js +0 -437
  509. package/dist/factories/contracts/middleware/liquidity-layer/LiquidityLayerRouter__factory.js.map +0 -1
  510. package/dist/factories/contracts/middleware/liquidity-layer/adapters/CircleBridgeAdapter__factory.d.ts +0 -48
  511. package/dist/factories/contracts/middleware/liquidity-layer/adapters/CircleBridgeAdapter__factory.d.ts.map +0 -1
  512. package/dist/factories/contracts/middleware/liquidity-layer/adapters/CircleBridgeAdapter__factory.js +0 -641
  513. package/dist/factories/contracts/middleware/liquidity-layer/adapters/CircleBridgeAdapter__factory.js.map +0 -1
  514. package/dist/factories/contracts/middleware/liquidity-layer/adapters/index.d.ts +0 -2
  515. package/dist/factories/contracts/middleware/liquidity-layer/adapters/index.d.ts.map +0 -1
  516. package/dist/factories/contracts/middleware/liquidity-layer/adapters/index.js +0 -9
  517. package/dist/factories/contracts/middleware/liquidity-layer/adapters/index.js.map +0 -1
  518. package/dist/factories/contracts/middleware/liquidity-layer/index.d.ts +0 -4
  519. package/dist/factories/contracts/middleware/liquidity-layer/index.d.ts.map +0 -1
  520. package/dist/factories/contracts/middleware/liquidity-layer/index.js +0 -34
  521. package/dist/factories/contracts/middleware/liquidity-layer/index.js.map +0 -1
  522. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/ILiquidityLayerAdapter__factory.d.ts +0 -23
  523. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/ILiquidityLayerAdapter__factory.d.ts.map +0 -1
  524. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/ILiquidityLayerAdapter__factory.js +0 -91
  525. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/ILiquidityLayerAdapter__factory.js.map +0 -1
  526. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/ILiquidityLayerMessageRecipient__factory.d.ts +0 -19
  527. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/ILiquidityLayerMessageRecipient__factory.d.ts.map +0 -1
  528. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/ILiquidityLayerMessageRecipient__factory.js +0 -51
  529. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/ILiquidityLayerMessageRecipient__factory.js.map +0 -1
  530. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/circle/ICircleBridge__factory.d.ts +0 -36
  531. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/circle/ICircleBridge__factory.d.ts.map +0 -1
  532. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/circle/ICircleBridge__factory.js +0 -104
  533. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/circle/ICircleBridge__factory.js.map +0 -1
  534. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/circle/ICircleMessageTransmitter__factory.d.ts +0 -23
  535. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/circle/ICircleMessageTransmitter__factory.d.ts.map +0 -1
  536. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/circle/ICircleMessageTransmitter__factory.js +0 -61
  537. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/circle/ICircleMessageTransmitter__factory.js.map +0 -1
  538. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/circle/index.d.ts +0 -3
  539. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/circle/index.d.ts.map +0 -1
  540. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/circle/index.js +0 -11
  541. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/circle/index.js.map +0 -1
  542. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/index.d.ts +0 -4
  543. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/index.d.ts.map +0 -1
  544. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/index.js +0 -35
  545. package/dist/factories/contracts/middleware/liquidity-layer/interfaces/index.js.map +0 -1
  546. package/dist/factories/contracts/mock/MockCircleBridge__factory.d.ts +0 -59
  547. package/dist/factories/contracts/mock/MockCircleBridge__factory.d.ts.map +0 -1
  548. package/dist/factories/contracts/mock/MockCircleBridge__factory.js +0 -151
  549. package/dist/factories/contracts/mock/MockCircleBridge__factory.js.map +0 -1
  550. package/dist/factories/contracts/mock/MockCircleMessageTransmitter__factory.d.ts +0 -45
  551. package/dist/factories/contracts/mock/MockCircleMessageTransmitter__factory.d.ts.map +0 -1
  552. package/dist/factories/contracts/mock/MockCircleMessageTransmitter__factory.js +0 -142
  553. package/dist/factories/contracts/mock/MockCircleMessageTransmitter__factory.js.map +0 -1
  554. package/dist/factories/contracts/mock/MockHyperlaneEnvironment__factory.d.ts +0 -45
  555. package/dist/factories/contracts/mock/MockHyperlaneEnvironment__factory.d.ts.map +0 -1
  556. package/dist/factories/contracts/mock/MockHyperlaneEnvironment__factory.js +0 -109
  557. package/dist/factories/contracts/mock/MockHyperlaneEnvironment__factory.js.map +0 -1
  558. package/dist/factories/contracts/mock/MockInterchainAccountRouter__factory.d.ts +0 -69
  559. package/dist/factories/contracts/mock/MockInterchainAccountRouter__factory.d.ts.map +0 -1
  560. package/dist/factories/contracts/mock/MockInterchainAccountRouter__factory.js +0 -181
  561. package/dist/factories/contracts/mock/MockInterchainAccountRouter__factory.js.map +0 -1
  562. package/dist/factories/contracts/mock/MockMailbox__factory.d.ts +0 -45
  563. package/dist/factories/contracts/mock/MockMailbox__factory.d.ts.map +0 -1
  564. package/dist/factories/contracts/mock/MockMailbox__factory.js +0 -252
  565. package/dist/factories/contracts/mock/MockMailbox__factory.js.map +0 -1
  566. package/dist/factories/contracts/mock/MockToken__factory.d.ts +0 -48
  567. package/dist/factories/contracts/mock/MockToken__factory.d.ts.map +0 -1
  568. package/dist/factories/contracts/mock/MockToken__factory.js +0 -355
  569. package/dist/factories/contracts/mock/MockToken__factory.js.map +0 -1
  570. package/dist/factories/contracts/mock/index.d.ts +0 -7
  571. package/dist/factories/contracts/mock/index.d.ts.map +0 -1
  572. package/dist/factories/contracts/mock/index.js +0 -19
  573. package/dist/factories/contracts/mock/index.js.map +0 -1
  574. package/dist/factories/contracts/test/MysteryMathV1__factory.d.ts +0 -41
  575. package/dist/factories/contracts/test/MysteryMathV1__factory.d.ts.map +0 -1
  576. package/dist/factories/contracts/test/MysteryMathV1__factory.js +0 -122
  577. package/dist/factories/contracts/test/MysteryMathV1__factory.js.map +0 -1
  578. package/dist/factories/contracts/test/MysteryMathV2__factory.d.ts +0 -41
  579. package/dist/factories/contracts/test/MysteryMathV2__factory.d.ts.map +0 -1
  580. package/dist/factories/contracts/test/MysteryMathV2__factory.js +0 -122
  581. package/dist/factories/contracts/test/MysteryMathV2__factory.js.map +0 -1
  582. package/dist/factories/contracts/test/MysteryMath__factory.d.ts +0 -23
  583. package/dist/factories/contracts/test/MysteryMath__factory.d.ts.map +0 -1
  584. package/dist/factories/contracts/test/MysteryMath__factory.js +0 -81
  585. package/dist/factories/contracts/test/MysteryMath__factory.js.map +0 -1
  586. package/dist/factories/contracts/test/TestHyperlaneConnectionClient__factory.d.ts +0 -55
  587. package/dist/factories/contracts/test/TestHyperlaneConnectionClient__factory.d.ts.map +0 -1
  588. package/dist/factories/contracts/test/TestHyperlaneConnectionClient__factory.js +0 -249
  589. package/dist/factories/contracts/test/TestHyperlaneConnectionClient__factory.js.map +0 -1
  590. package/dist/factories/contracts/test/TestIsm__factory.d.ts +0 -35
  591. package/dist/factories/contracts/test/TestIsm__factory.d.ts.map +0 -1
  592. package/dist/factories/contracts/test/TestIsm__factory.js +0 -91
  593. package/dist/factories/contracts/test/TestIsm__factory.js.map +0 -1
  594. package/dist/factories/contracts/test/TestLiquidityLayerMessageRecipient__factory.d.ts +0 -44
  595. package/dist/factories/contracts/test/TestLiquidityLayerMessageRecipient__factory.d.ts.map +0 -1
  596. package/dist/factories/contracts/test/TestLiquidityLayerMessageRecipient__factory.js +0 -111
  597. package/dist/factories/contracts/test/TestLiquidityLayerMessageRecipient__factory.js.map +0 -1
  598. package/dist/factories/contracts/test/TestMailbox__factory.d.ts +0 -59
  599. package/dist/factories/contracts/test/TestMailbox__factory.d.ts.map +0 -1
  600. package/dist/factories/contracts/test/TestMailbox__factory.js +0 -404
  601. package/dist/factories/contracts/test/TestMailbox__factory.js.map +0 -1
  602. package/dist/factories/contracts/test/TestMerkle__factory.d.ts +0 -41
  603. package/dist/factories/contracts/test/TestMerkle__factory.d.ts.map +0 -1
  604. package/dist/factories/contracts/test/TestMerkle__factory.js +0 -127
  605. package/dist/factories/contracts/test/TestMerkle__factory.js.map +0 -1
  606. package/dist/factories/contracts/test/TestMessage__factory.d.ts +0 -35
  607. package/dist/factories/contracts/test/TestMessage__factory.d.ts.map +0 -1
  608. package/dist/factories/contracts/test/TestMessage__factory.js +0 -212
  609. package/dist/factories/contracts/test/TestMessage__factory.js.map +0 -1
  610. package/dist/factories/contracts/test/TestMultisigIsm__factory.d.ts +0 -48
  611. package/dist/factories/contracts/test/TestMultisigIsm__factory.d.ts.map +0 -1
  612. package/dist/factories/contracts/test/TestMultisigIsm__factory.js +0 -406
  613. package/dist/factories/contracts/test/TestMultisigIsm__factory.js.map +0 -1
  614. package/dist/factories/contracts/test/TestQuerySender__factory.d.ts +0 -55
  615. package/dist/factories/contracts/test/TestQuerySender__factory.d.ts.map +0 -1
  616. package/dist/factories/contracts/test/TestQuerySender__factory.js +0 -253
  617. package/dist/factories/contracts/test/TestQuerySender__factory.js.map +0 -1
  618. package/dist/factories/contracts/test/TestQuery__factory.d.ts +0 -66
  619. package/dist/factories/contracts/test/TestQuery__factory.d.ts.map +0 -1
  620. package/dist/factories/contracts/test/TestQuery__factory.js +0 -120
  621. package/dist/factories/contracts/test/TestQuery__factory.js.map +0 -1
  622. package/dist/factories/contracts/test/TestRecipient__factory.d.ts +0 -55
  623. package/dist/factories/contracts/test/TestRecipient__factory.d.ts.map +0 -1
  624. package/dist/factories/contracts/test/TestRecipient__factory.js +0 -184
  625. package/dist/factories/contracts/test/TestRecipient__factory.js.map +0 -1
  626. package/dist/factories/contracts/test/TestRouter__factory.d.ts +0 -48
  627. package/dist/factories/contracts/test/TestRouter__factory.d.ts.map +0 -1
  628. package/dist/factories/contracts/test/TestRouter__factory.js +0 -423
  629. package/dist/factories/contracts/test/TestRouter__factory.js.map +0 -1
  630. package/dist/factories/contracts/test/TestSendReceiver__factory.d.ts +0 -44
  631. package/dist/factories/contracts/test/TestSendReceiver__factory.d.ts.map +0 -1
  632. package/dist/factories/contracts/test/TestSendReceiver__factory.js +0 -105
  633. package/dist/factories/contracts/test/TestSendReceiver__factory.js.map +0 -1
  634. package/dist/factories/contracts/test/TestTokenRecipient__factory.d.ts +0 -55
  635. package/dist/factories/contracts/test/TestTokenRecipient__factory.d.ts.map +0 -1
  636. package/dist/factories/contracts/test/TestTokenRecipient__factory.js +0 -232
  637. package/dist/factories/contracts/test/TestTokenRecipient__factory.js.map +0 -1
  638. package/dist/factories/contracts/test/bad-recipient/BadRecipient1__factory.d.ts +0 -31
  639. package/dist/factories/contracts/test/bad-recipient/BadRecipient1__factory.d.ts.map +0 -1
  640. package/dist/factories/contracts/test/bad-recipient/BadRecipient1__factory.js +0 -64
  641. package/dist/factories/contracts/test/bad-recipient/BadRecipient1__factory.js.map +0 -1
  642. package/dist/factories/contracts/test/bad-recipient/BadRecipient2__factory.d.ts +0 -31
  643. package/dist/factories/contracts/test/bad-recipient/BadRecipient2__factory.d.ts.map +0 -1
  644. package/dist/factories/contracts/test/bad-recipient/BadRecipient2__factory.js +0 -59
  645. package/dist/factories/contracts/test/bad-recipient/BadRecipient2__factory.js.map +0 -1
  646. package/dist/factories/contracts/test/bad-recipient/BadRecipient3__factory.d.ts +0 -31
  647. package/dist/factories/contracts/test/bad-recipient/BadRecipient3__factory.d.ts.map +0 -1
  648. package/dist/factories/contracts/test/bad-recipient/BadRecipient3__factory.js +0 -64
  649. package/dist/factories/contracts/test/bad-recipient/BadRecipient3__factory.js.map +0 -1
  650. package/dist/factories/contracts/test/bad-recipient/BadRecipient5__factory.d.ts +0 -31
  651. package/dist/factories/contracts/test/bad-recipient/BadRecipient5__factory.d.ts.map +0 -1
  652. package/dist/factories/contracts/test/bad-recipient/BadRecipient5__factory.js +0 -64
  653. package/dist/factories/contracts/test/bad-recipient/BadRecipient5__factory.js.map +0 -1
  654. package/dist/factories/contracts/test/bad-recipient/BadRecipient6__factory.d.ts +0 -31
  655. package/dist/factories/contracts/test/bad-recipient/BadRecipient6__factory.d.ts.map +0 -1
  656. package/dist/factories/contracts/test/bad-recipient/BadRecipient6__factory.js +0 -64
  657. package/dist/factories/contracts/test/bad-recipient/BadRecipient6__factory.js.map +0 -1
  658. package/dist/factories/contracts/test/bad-recipient/index.d.ts +0 -6
  659. package/dist/factories/contracts/test/bad-recipient/index.d.ts.map +0 -1
  660. package/dist/factories/contracts/test/bad-recipient/index.js +0 -17
  661. package/dist/factories/contracts/test/bad-recipient/index.js.map +0 -1
  662. package/dist/factories/contracts/test/index.d.ts +0 -18
  663. package/dist/factories/contracts/test/index.d.ts.map +0 -1
  664. package/dist/factories/contracts/test/index.js +0 -63
  665. package/dist/factories/contracts/test/index.js.map +0 -1
  666. package/dist/factories/contracts/upgrade/UpgradeBeaconController__factory.d.ts +0 -55
  667. package/dist/factories/contracts/upgrade/UpgradeBeaconController__factory.d.ts.map +0 -1
  668. package/dist/factories/contracts/upgrade/UpgradeBeaconController__factory.js +0 -130
  669. package/dist/factories/contracts/upgrade/UpgradeBeaconController__factory.js.map +0 -1
  670. package/dist/factories/contracts/upgrade/UpgradeBeaconProxy__factory.d.ts +0 -33
  671. package/dist/factories/contracts/upgrade/UpgradeBeaconProxy__factory.d.ts.map +0 -1
  672. package/dist/factories/contracts/upgrade/UpgradeBeaconProxy__factory.js +0 -65
  673. package/dist/factories/contracts/upgrade/UpgradeBeaconProxy__factory.js.map +0 -1
  674. package/dist/factories/contracts/upgrade/UpgradeBeacon__factory.d.ts +0 -48
  675. package/dist/factories/contracts/upgrade/UpgradeBeacon__factory.d.ts.map +0 -1
  676. package/dist/factories/contracts/upgrade/UpgradeBeacon__factory.js +0 -74
  677. package/dist/factories/contracts/upgrade/UpgradeBeacon__factory.js.map +0 -1
  678. package/dist/factories/contracts/upgrade/Versioned__factory.d.ts +0 -31
  679. package/dist/factories/contracts/upgrade/Versioned__factory.d.ts.map +0 -1
  680. package/dist/factories/contracts/upgrade/Versioned__factory.js +0 -54
  681. package/dist/factories/contracts/upgrade/Versioned__factory.js.map +0 -1
  682. package/dist/factories/contracts/upgrade/index.d.ts +0 -5
  683. package/dist/factories/contracts/upgrade/index.d.ts.map +0 -1
  684. package/dist/factories/contracts/upgrade/index.js +0 -15
  685. package/dist/factories/contracts/upgrade/index.js.map +0 -1
  686. package/dist/factories/index.d.ts +0 -4
  687. package/dist/factories/index.d.ts.map +0 -1
  688. package/dist/factories/index.js +0 -33
  689. package/dist/factories/index.js.map +0 -1
  690. package/dist/factories/interfaces/IInterchainAccountRouter__factory.d.ts +0 -33
  691. package/dist/factories/interfaces/IInterchainAccountRouter__factory.d.ts.map +0 -1
  692. package/dist/factories/interfaces/IInterchainAccountRouter__factory.js +0 -78
  693. package/dist/factories/interfaces/IInterchainAccountRouter__factory.js.map +0 -1
  694. package/dist/factories/interfaces/IInterchainGasPaymaster__factory.d.ts +0 -19
  695. package/dist/factories/interfaces/IInterchainGasPaymaster__factory.d.ts.map +0 -1
  696. package/dist/factories/interfaces/IInterchainGasPaymaster__factory.js +0 -36
  697. package/dist/factories/interfaces/IInterchainGasPaymaster__factory.js.map +0 -1
  698. package/dist/factories/interfaces/IInterchainQueryRouter__factory.d.ts +0 -33
  699. package/dist/factories/interfaces/IInterchainQueryRouter__factory.d.ts.map +0 -1
  700. package/dist/factories/interfaces/IInterchainQueryRouter__factory.js +0 -100
  701. package/dist/factories/interfaces/IInterchainQueryRouter__factory.js.map +0 -1
  702. package/dist/factories/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule__factory.d.ts +0 -23
  703. package/dist/factories/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule__factory.d.ts.map +0 -1
  704. package/dist/factories/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule__factory.js +0 -42
  705. package/dist/factories/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule__factory.js.map +0 -1
  706. package/dist/factories/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule__factory.d.ts +0 -19
  707. package/dist/factories/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule__factory.d.ts.map +0 -1
  708. package/dist/factories/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule__factory.js +0 -31
  709. package/dist/factories/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule__factory.js.map +0 -1
  710. package/dist/factories/interfaces/IInterchainSecurityModule.sol/index.d.ts +0 -3
  711. package/dist/factories/interfaces/IInterchainSecurityModule.sol/index.d.ts.map +0 -1
  712. package/dist/factories/interfaces/IInterchainSecurityModule.sol/index.js +0 -11
  713. package/dist/factories/interfaces/IInterchainSecurityModule.sol/index.js.map +0 -1
  714. package/dist/factories/interfaces/IMailbox__factory.d.ts +0 -23
  715. package/dist/factories/interfaces/IMailbox__factory.d.ts.map +0 -1
  716. package/dist/factories/interfaces/IMailbox__factory.js +0 -122
  717. package/dist/factories/interfaces/IMailbox__factory.js.map +0 -1
  718. package/dist/factories/interfaces/IMessageRecipient__factory.d.ts +0 -19
  719. package/dist/factories/interfaces/IMessageRecipient__factory.d.ts.map +0 -1
  720. package/dist/factories/interfaces/IMessageRecipient__factory.js +0 -41
  721. package/dist/factories/interfaces/IMessageRecipient__factory.js.map +0 -1
  722. package/dist/factories/interfaces/IMultisigIsm__factory.d.ts +0 -23
  723. package/dist/factories/interfaces/IMultisigIsm__factory.d.ts.map +0 -1
  724. package/dist/factories/interfaces/IMultisigIsm__factory.js +0 -104
  725. package/dist/factories/interfaces/IMultisigIsm__factory.js.map +0 -1
  726. package/dist/factories/interfaces/index.d.ts +0 -8
  727. package/dist/factories/interfaces/index.d.ts.map +0 -1
  728. package/dist/factories/interfaces/index.js +0 -43
  729. package/dist/factories/interfaces/index.js.map +0 -1
  730. package/dist/index.d.ts +0 -134
  731. package/dist/index.d.ts.map +0 -1
  732. package/dist/index.js +0 -156
  733. package/dist/index.js.map +0 -1
  734. package/dist/interfaces/IInterchainAccountRouter.d.ts +0 -67
  735. package/dist/interfaces/IInterchainAccountRouter.d.ts.map +0 -1
  736. package/dist/interfaces/IInterchainAccountRouter.js +0 -4
  737. package/dist/interfaces/IInterchainAccountRouter.js.map +0 -1
  738. package/dist/interfaces/IInterchainGasPaymaster.d.ts +0 -51
  739. package/dist/interfaces/IInterchainGasPaymaster.d.ts.map +0 -1
  740. package/dist/interfaces/IInterchainGasPaymaster.js +0 -4
  741. package/dist/interfaces/IInterchainGasPaymaster.js.map +0 -1
  742. package/dist/interfaces/IInterchainQueryRouter.d.ts +0 -75
  743. package/dist/interfaces/IInterchainQueryRouter.d.ts.map +0 -1
  744. package/dist/interfaces/IInterchainQueryRouter.js +0 -4
  745. package/dist/interfaces/IInterchainQueryRouter.js.map +0 -1
  746. package/dist/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule.d.ts +0 -51
  747. package/dist/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule.d.ts.map +0 -1
  748. package/dist/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule.js +0 -4
  749. package/dist/interfaces/IInterchainSecurityModule.sol/IInterchainSecurityModule.js.map +0 -1
  750. package/dist/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule.d.ts +0 -43
  751. package/dist/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule.d.ts.map +0 -1
  752. package/dist/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule.js +0 -4
  753. package/dist/interfaces/IInterchainSecurityModule.sol/ISpecifiesInterchainSecurityModule.js.map +0 -1
  754. package/dist/interfaces/IInterchainSecurityModule.sol/index.d.ts +0 -3
  755. package/dist/interfaces/IInterchainSecurityModule.sol/index.d.ts.map +0 -1
  756. package/dist/interfaces/IInterchainSecurityModule.sol/index.js +0 -3
  757. package/dist/interfaces/IInterchainSecurityModule.sol/index.js.map +0 -1
  758. package/dist/interfaces/IMailbox.d.ts +0 -99
  759. package/dist/interfaces/IMailbox.d.ts.map +0 -1
  760. package/dist/interfaces/IMailbox.js +0 -4
  761. package/dist/interfaces/IMailbox.js.map +0 -1
  762. package/dist/interfaces/IMessageRecipient.d.ts +0 -51
  763. package/dist/interfaces/IMessageRecipient.d.ts.map +0 -1
  764. package/dist/interfaces/IMessageRecipient.js +0 -4
  765. package/dist/interfaces/IMessageRecipient.js.map +0 -1
  766. package/dist/interfaces/IMultisigIsm.d.ts +0 -75
  767. package/dist/interfaces/IMultisigIsm.d.ts.map +0 -1
  768. package/dist/interfaces/IMultisigIsm.js +0 -4
  769. package/dist/interfaces/IMultisigIsm.js.map +0 -1
  770. package/dist/interfaces/index.d.ts +0 -9
  771. package/dist/interfaces/index.d.ts.map +0 -1
  772. package/dist/interfaces/index.js +0 -4
  773. package/dist/interfaces/index.js.map +0 -1
@@ -18,7 +18,7 @@ abstract contract HyperlaneConnectionClient is
18
18
 
19
19
  IMailbox public mailbox;
20
20
  // Interchain Gas Paymaster contract. The relayer associated with this contract
21
- // must be willing to relay messages dispatched from the current Outbox contract,
21
+ // must be willing to relay messages dispatched from the current Mailbox contract,
22
22
  // otherwise payments made to the paymaster will not result in relayed messages.
23
23
  IInterchainGasPaymaster public interchainGasPaymaster;
24
24
 
@@ -55,8 +55,7 @@ abstract contract HyperlaneConnectionClient is
55
55
  * @notice Only accept addresses that at least have contract code
56
56
  */
57
57
  modifier onlyContract(address _contract) {
58
- // TODO: fix tests that provide zero address
59
- // require(Address.isContract(_contract), "!contract");
58
+ require(Address.isContract(_contract), "!contract");
60
59
  _;
61
60
  }
62
61
 
@@ -137,7 +136,7 @@ abstract contract HyperlaneConnectionClient is
137
136
  }
138
137
 
139
138
  /**
140
- * @notice Modify the contract the Application uses to validate Inbox contracts
139
+ * @notice Modify the contract the Application uses to validate Mailbox contracts
141
140
  * @param _mailbox The address of the mailbox contract
142
141
  */
143
142
  function _setMailbox(address _mailbox) internal onlyContract(_mailbox) {
@@ -17,9 +17,14 @@ contract InterchainGasPaymaster is IInterchainGasPaymaster, OwnableUpgradeable {
17
17
  /**
18
18
  * @notice Emitted when a payment is made for a message's gas costs.
19
19
  * @param messageId The ID of the message to pay for.
20
- * @param amount The amount of native tokens paid.
20
+ * @param gasAmount The amount of destination gas paid for.
21
+ * @param payment The amount of native tokens paid.
21
22
  */
22
- event GasPayment(bytes32 indexed messageId, uint256 amount);
23
+ event GasPayment(
24
+ bytes32 indexed messageId,
25
+ uint256 gasAmount,
26
+ uint256 payment
27
+ );
23
28
 
24
29
  // ============ Constructor ============
25
30
 
@@ -39,18 +44,22 @@ contract InterchainGasPaymaster is IInterchainGasPaymaster, OwnableUpgradeable {
39
44
  * to its destination chain.
40
45
  * @param _messageId The ID of the message to pay for.
41
46
  * @param _destinationDomain The domain of the message's destination chain.
47
+ * @param _gasAmount The amount of destination gas to pay for. Currently unused.
48
+ * @param _refundAddress The address to refund any overpayment to. Currently unused.
42
49
  */
43
- function payGasFor(bytes32 _messageId, uint32 _destinationDomain)
44
- external
45
- payable
46
- override
47
- {
50
+ function payForGas(
51
+ bytes32 _messageId,
52
+ uint32 _destinationDomain,
53
+ uint256 _gasAmount,
54
+ address _refundAddress
55
+ ) external payable override {
48
56
  // Silence compiler warning. The NatSpec @param requires the parameter to be named.
49
- // While not used at the moment, future versions of the paymaster may conditionally
50
- // forward payments depending on the destination domain.
57
+ // While not used at the moment, future versions of the paymaster have behavior specific
58
+ // to the destination domain and refund overpayments to the _refundAddress.
51
59
  _destinationDomain;
60
+ _refundAddress;
52
61
 
53
- emit GasPayment(_messageId, msg.value);
62
+ emit GasPayment(_messageId, _gasAmount, msg.value);
54
63
  }
55
64
 
56
65
  /**
@@ -9,16 +9,16 @@ import {TypeCasts} from "./libs/TypeCasts.sol";
9
9
  import {IMessageRecipient} from "../interfaces/IMessageRecipient.sol";
10
10
  import {IInterchainSecurityModule, ISpecifiesInterchainSecurityModule} from "../interfaces/IInterchainSecurityModule.sol";
11
11
  import {IMailbox} from "../interfaces/IMailbox.sol";
12
+ import {PausableReentrancyGuardUpgradeable} from "./PausableReentrancyGuard.sol";
12
13
 
13
14
  // ============ External Imports ============
14
15
  import {Address} from "@openzeppelin/contracts/utils/Address.sol";
15
16
  import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
16
- import {ReentrancyGuardUpgradeable} from "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
17
17
 
18
18
  contract Mailbox is
19
19
  IMailbox,
20
20
  OwnableUpgradeable,
21
- ReentrancyGuardUpgradeable,
21
+ PausableReentrancyGuardUpgradeable,
22
22
  Versioned
23
23
  {
24
24
  // ============ Libraries ============
@@ -59,16 +59,51 @@ contract Mailbox is
59
59
 
60
60
  /**
61
61
  * @notice Emitted when a new message is dispatched via Hyperlane
62
- * @param messageId The unique message identifier
62
+ * @param sender The address that dispatched the message
63
+ * @param destination The destination domain of the message
64
+ * @param recipient The message recipient address on `destination`
63
65
  * @param message Raw bytes of message
64
66
  */
65
- event Dispatch(bytes32 indexed messageId, bytes message);
67
+ event Dispatch(
68
+ address indexed sender,
69
+ uint32 indexed destination,
70
+ bytes32 indexed recipient,
71
+ bytes message
72
+ );
66
73
 
67
74
  /**
68
- * @notice Emitted when a Hyperlane message is delivered
75
+ * @notice Emitted when a new message is dispatched via Hyperlane
69
76
  * @param messageId The unique message identifier
70
77
  */
71
- event Process(bytes32 indexed messageId);
78
+ event DispatchId(bytes32 indexed messageId);
79
+
80
+ /**
81
+ * @notice Emitted when a Hyperlane message is processed
82
+ * @param messageId The unique message identifier
83
+ */
84
+ event ProcessId(bytes32 indexed messageId);
85
+
86
+ /**
87
+ * @notice Emitted when a Hyperlane message is delivered
88
+ * @param origin The origin domain of the message
89
+ * @param sender The message sender address on `origin`
90
+ * @param recipient The address that handled the message
91
+ */
92
+ event Process(
93
+ uint32 indexed origin,
94
+ bytes32 indexed sender,
95
+ address indexed recipient
96
+ );
97
+
98
+ /**
99
+ * @notice Emitted when Mailbox is paused
100
+ */
101
+ event Paused();
102
+
103
+ /**
104
+ * @notice Emitted when Mailbox is unpaused
105
+ */
106
+ event Unpaused();
72
107
 
73
108
  // ============ Constructor ============
74
109
 
@@ -80,7 +115,7 @@ contract Mailbox is
80
115
  // ============ Initializer ============
81
116
 
82
117
  function initialize(address _defaultIsm) external initializer {
83
- __ReentrancyGuard_init();
118
+ __PausableReentrancyGuard_init();
84
119
  __Ownable_init();
85
120
  _setDefaultIsm(_defaultIsm);
86
121
  }
@@ -106,7 +141,7 @@ contract Mailbox is
106
141
  uint32 _destinationDomain,
107
142
  bytes32 _recipientAddress,
108
143
  bytes calldata _messageBody
109
- ) external override returns (bytes32) {
144
+ ) external override notPaused returns (bytes32) {
110
145
  require(_messageBody.length <= MAX_MESSAGE_BODY_BYTES, "msg too long");
111
146
  // Format the message into packed bytes.
112
147
  bytes memory _message = Message.formatMessage(
@@ -122,7 +157,13 @@ contract Mailbox is
122
157
  // Insert the message ID into the merkle tree.
123
158
  bytes32 _id = _message.id();
124
159
  tree.insert(_id);
125
- emit Dispatch(_id, _message);
160
+ emit Dispatch(
161
+ msg.sender,
162
+ _destinationDomain,
163
+ _recipientAddress,
164
+ _message
165
+ );
166
+ emit DispatchId(_id);
126
167
  return _id;
127
168
  }
128
169
 
@@ -135,7 +176,7 @@ contract Mailbox is
135
176
  function process(bytes calldata _metadata, bytes calldata _message)
136
177
  external
137
178
  override
138
- nonReentrant
179
+ nonReentrantAndNotPaused
139
180
  {
140
181
  // Check that the message was intended for this mailbox.
141
182
  require(_message.version() == VERSION, "!version");
@@ -153,13 +194,12 @@ contract Mailbox is
153
194
  require(_ism.verify(_metadata, _message), "!module");
154
195
 
155
196
  // Deliver the message to the recipient.
156
- uint32 _origin = _message.origin();
157
- IMessageRecipient(_message.recipientAddress()).handle(
158
- _origin,
159
- _message.sender(),
160
- _message.body()
161
- );
162
- emit Process(_id);
197
+ uint32 origin = _message.origin();
198
+ bytes32 sender = _message.sender();
199
+ address recipient = _message.recipientAddress();
200
+ IMessageRecipient(recipient).handle(origin, sender, _message.body());
201
+ emit Process(origin, sender, recipient);
202
+ emit ProcessId(_id);
163
203
  }
164
204
 
165
205
  // ============ Public Functions ============
@@ -181,13 +221,38 @@ contract Mailbox is
181
221
 
182
222
  /**
183
223
  * @notice Returns a checkpoint representing the current merkle tree.
184
- * @return root The root of the Outbox's merkle tree.
224
+ * @return root The root of the Mailbox's merkle tree.
185
225
  * @return index The index of the last element in the tree.
186
226
  */
187
227
  function latestCheckpoint() public view returns (bytes32, uint32) {
188
228
  return (root(), count() - 1);
189
229
  }
190
230
 
231
+ /**
232
+ * @notice Pauses mailbox and prevents further dispatch/process calls
233
+ * @dev Only `owner` can pause the mailbox.
234
+ */
235
+ function pause() external onlyOwner {
236
+ _pause();
237
+ emit Paused();
238
+ }
239
+
240
+ /**
241
+ * @notice Unpauses mailbox and allows for message processing.
242
+ * @dev Only `owner` can unpause the mailbox.
243
+ */
244
+ function unpause() external onlyOwner {
245
+ _unpause();
246
+ emit Unpaused();
247
+ }
248
+
249
+ /**
250
+ * @notice Returns whether mailbox is paused.
251
+ */
252
+ function isPaused() external view returns (bool) {
253
+ return _isPaused();
254
+ }
255
+
191
256
  // ============ Internal Functions ============
192
257
 
193
258
  /**
@@ -218,7 +283,7 @@ contract Mailbox is
218
283
  try _recipient.interchainSecurityModule() returns (
219
284
  IInterchainSecurityModule _val
220
285
  ) {
221
- // TODO: reconsider
286
+ // If the recipient specifies a zero address, use the default ISM.
222
287
  if (address(_val) != address(0)) {
223
288
  return _val;
224
289
  }
@@ -0,0 +1,69 @@
1
+ // SPDX-License-Identifier: MIT OR Apache-2.0
2
+ pragma solidity >=0.8.0;
3
+
4
+ import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
5
+
6
+ // adapted from "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
7
+ abstract contract PausableReentrancyGuardUpgradeable is Initializable {
8
+ uint256 private constant _NOT_ENTERED = 1;
9
+ uint256 private constant _ENTERED = 2;
10
+ uint256 private constant _PAUSED = 3;
11
+
12
+ uint256 private _status;
13
+
14
+ /**
15
+ * @dev MUST be called for `nonReentrant` to not always revert
16
+ */
17
+ function __PausableReentrancyGuard_init() internal onlyInitializing {
18
+ _status = _NOT_ENTERED;
19
+ }
20
+
21
+ function _isPaused() internal view returns (bool) {
22
+ return _status == _PAUSED;
23
+ }
24
+
25
+ function _pause() internal notPaused {
26
+ _status = _PAUSED;
27
+ }
28
+
29
+ function _unpause() internal {
30
+ require(_isPaused(), "!paused");
31
+ _status = _NOT_ENTERED;
32
+ }
33
+
34
+ /**
35
+ * @dev Prevents a contract from being entered when paused.
36
+ */
37
+ modifier notPaused() {
38
+ require(!_isPaused(), "paused");
39
+ _;
40
+ }
41
+
42
+ /**
43
+ * @dev Prevents a contract from calling itself, directly or indirectly.
44
+ * Calling a `nonReentrant` function from another `nonReentrant`
45
+ * function is not supported. It is possible to prevent this from happening
46
+ * by making the `nonReentrant` function external, and making it call a
47
+ * `private` function that does the actual work.
48
+ */
49
+ modifier nonReentrantAndNotPaused() {
50
+ // status must have been initialized
51
+ require(_status == _NOT_ENTERED, "reentrant call (or paused)");
52
+
53
+ // Any calls to nonReentrant after this point will fail
54
+ _status = _ENTERED;
55
+
56
+ _;
57
+
58
+ // By storing the original value once again, a refund is triggered (see
59
+ // https://eips.ethereum.org/EIPS/eip-2200)
60
+ _status = _NOT_ENTERED;
61
+ }
62
+
63
+ /**
64
+ * @dev This empty reserved space is put in place to allow future versions to add new
65
+ * variables without shifting down storage in the inheritance chain.
66
+ * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
67
+ */
68
+ uint256[49] private __gap;
69
+ }
@@ -151,20 +151,26 @@ abstract contract Router is HyperlaneConnectionClient, IMessageRecipient {
151
151
  * @dev Reverts if there is no enrolled router for _destinationDomain.
152
152
  * @param _destinationDomain The domain of the chain to which to send the message.
153
153
  * @param _messageBody Raw bytes content of message.
154
+ * @param _gasAmount The amount of destination gas for the message that is requested via the InterchainGasPaymaster.
154
155
  * @param _gasPayment The amount of native tokens to pay for the message to be relayed.
156
+ * @param _gasPaymentRefundAddress The address to refund any gas overpayment to.
155
157
  */
156
158
  function _dispatchWithGas(
157
159
  uint32 _destinationDomain,
158
160
  bytes memory _messageBody,
159
- uint256 _gasPayment
160
- ) internal {
161
- bytes32 _messageId = _dispatch(_destinationDomain, _messageBody);
162
- if (_gasPayment > 0) {
163
- interchainGasPaymaster.payGasFor{value: _gasPayment}(
164
- _messageId,
165
- _destinationDomain
166
- );
167
- }
161
+ uint256 _gasAmount,
162
+ uint256 _gasPayment,
163
+ address _gasPaymentRefundAddress
164
+ ) internal returns (bytes32 _messageId) {
165
+ _messageId = _dispatch(_destinationDomain, _messageBody);
166
+ // Call the IGP even if the gas payment is zero. This is to support on-chain
167
+ // fee quoting in IGPs, which should always revert if gas payment is insufficient.
168
+ interchainGasPaymaster.payForGas{value: _gasPayment}(
169
+ _messageId,
170
+ _destinationDomain,
171
+ _gasAmount,
172
+ _gasPaymentRefundAddress
173
+ );
168
174
  }
169
175
 
170
176
  /**
@@ -28,7 +28,7 @@ contract MultisigIsm is IMultisigIsm, Ownable {
28
28
  // ============ Mutable Storage ============
29
29
 
30
30
  /// @notice The validator threshold for each remote domain.
31
- mapping(uint32 => uint256) public threshold;
31
+ mapping(uint32 => uint8) public threshold;
32
32
 
33
33
  /// @notice The validator set for each remote domain.
34
34
  mapping(uint32 => EnumerableSet.AddressSet) private validatorSet;
@@ -44,13 +44,11 @@ contract MultisigIsm is IMultisigIsm, Ownable {
44
44
  * @param domain The remote domain of the validator set.
45
45
  * @param validator The address of the validator.
46
46
  * @param validatorCount The number of enrolled validators in the validator set.
47
- * @param commitment A commitment to the validator set and threshold.
48
47
  */
49
48
  event ValidatorEnrolled(
50
49
  uint32 indexed domain,
51
50
  address indexed validator,
52
- uint256 validatorCount,
53
- bytes32 commitment
51
+ uint256 validatorCount
54
52
  );
55
53
 
56
54
  /**
@@ -58,26 +56,26 @@ contract MultisigIsm is IMultisigIsm, Ownable {
58
56
  * @param domain The remote domain of the validator set.
59
57
  * @param validator The address of the validator.
60
58
  * @param validatorCount The number of enrolled validators in the validator set.
61
- * @param commitment A commitment to the validator set and threshold.
62
59
  */
63
60
  event ValidatorUnenrolled(
64
61
  uint32 indexed domain,
65
62
  address indexed validator,
66
- uint256 validatorCount,
67
- bytes32 commitment
63
+ uint256 validatorCount
68
64
  );
69
65
 
70
66
  /**
71
67
  * @notice Emitted when the quorum threshold is set.
72
68
  * @param domain The remote domain of the validator set.
73
69
  * @param threshold The new quorum threshold.
70
+ */
71
+ event ThresholdSet(uint32 indexed domain, uint8 threshold);
72
+
73
+ /**
74
+ * @notice Emitted when the validator set or threshold changes.
75
+ * @param domain The remote domain of the validator set.
74
76
  * @param commitment A commitment to the validator set and threshold.
75
77
  */
76
- event ThresholdSet(
77
- uint32 indexed domain,
78
- uint256 threshold,
79
- bytes32 commitment
80
- );
78
+ event CommitmentUpdated(uint32 domain, bytes32 commitment);
81
79
 
82
80
  // ============ Constructor ============
83
81
 
@@ -86,6 +84,27 @@ contract MultisigIsm is IMultisigIsm, Ownable {
86
84
 
87
85
  // ============ External Functions ============
88
86
 
87
+ /**
88
+ * @notice Enrolls multiple validators into a validator set.
89
+ * @dev Reverts if `_validator` is already in the validator set.
90
+ * @param _domains The remote domains of the validator sets.
91
+ * @param _validators The validators to add to the validator sets.
92
+ * @dev _validators[i] are the validators to enroll for _domains[i].
93
+ */
94
+ function enrollValidators(
95
+ uint32[] calldata _domains,
96
+ address[][] calldata _validators
97
+ ) external onlyOwner {
98
+ require(_domains.length == _validators.length, "!length");
99
+ for (uint256 i = 0; i < _domains.length; i += 1) {
100
+ address[] calldata _domainValidators = _validators[i];
101
+ for (uint256 j = 0; j < _domainValidators.length; j += 1) {
102
+ _enrollValidator(_domains[i], _domainValidators[j]);
103
+ }
104
+ _updateCommitment(_domains[i]);
105
+ }
106
+ }
107
+
89
108
  /**
90
109
  * @notice Enrolls a validator into a validator set.
91
110
  * @dev Reverts if `_validator` is already in the validator set.
@@ -96,15 +115,8 @@ contract MultisigIsm is IMultisigIsm, Ownable {
96
115
  external
97
116
  onlyOwner
98
117
  {
99
- require(_validator != address(0), "zero address");
100
- require(validatorSet[_domain].add(_validator), "already enrolled");
101
- bytes32 _commitment = _updateCommitment(_domain);
102
- emit ValidatorEnrolled(
103
- _domain,
104
- _validator,
105
- validatorCount(_domain),
106
- _commitment
107
- );
118
+ _enrollValidator(_domain, _validator);
119
+ _updateCommitment(_domain);
108
120
  }
109
121
 
110
122
  /**
@@ -123,31 +135,23 @@ contract MultisigIsm is IMultisigIsm, Ownable {
123
135
  _validatorCount >= threshold[_domain],
124
136
  "violates quorum threshold"
125
137
  );
126
- bytes32 _commitment = _updateCommitment(_domain);
127
- emit ValidatorUnenrolled(
128
- _domain,
129
- _validator,
130
- _validatorCount,
131
- _commitment
132
- );
138
+ _updateCommitment(_domain);
139
+ emit ValidatorUnenrolled(_domain, _validator, _validatorCount);
133
140
  }
134
141
 
135
142
  /**
136
- * @notice Sets the quorum threshold.
137
- * @param _domain The remote domain of the validator set.
138
- * @param _threshold The new quorum threshold.
143
+ * @notice Sets the quorum threshold for multiple domains.
144
+ * @param _domains The remote domains of the validator sets.
145
+ * @param _thresholds The new quorum thresholds.
139
146
  */
140
- function setThreshold(uint32 _domain, uint256 _threshold)
141
- external
142
- onlyOwner
143
- {
144
- require(
145
- _threshold > 0 && _threshold <= validatorCount(_domain),
146
- "!range"
147
- );
148
- threshold[_domain] = _threshold;
149
- bytes32 _commitment = _updateCommitment(_domain);
150
- emit ThresholdSet(_domain, _threshold, _commitment);
147
+ function setThresholds(
148
+ uint32[] calldata _domains,
149
+ uint8[] calldata _thresholds
150
+ ) external onlyOwner {
151
+ require(_domains.length == _thresholds.length, "!length");
152
+ for (uint256 i = 0; i < _domains.length; i += 1) {
153
+ setThreshold(_domains[i], _thresholds[i]);
154
+ }
151
155
  }
152
156
 
153
157
  /**
@@ -167,6 +171,22 @@ contract MultisigIsm is IMultisigIsm, Ownable {
167
171
 
168
172
  // ============ Public Functions ============
169
173
 
174
+ /**
175
+ * @notice Sets the quorum threshold.
176
+ * @param _domain The remote domain of the validator set.
177
+ * @param _threshold The new quorum threshold.
178
+ */
179
+ function setThreshold(uint32 _domain, uint8 _threshold) public onlyOwner {
180
+ require(
181
+ _threshold > 0 && _threshold <= validatorCount(_domain),
182
+ "!range"
183
+ );
184
+ threshold[_domain] = _threshold;
185
+ emit ThresholdSet(_domain, _threshold);
186
+
187
+ _updateCommitment(_domain);
188
+ }
189
+
170
190
  /**
171
191
  * @notice Verifies that a quorum of the origin domain's validators signed
172
192
  * a checkpoint, and verifies the merkle proof of `_message` against that
@@ -210,6 +230,18 @@ contract MultisigIsm is IMultisigIsm, Ownable {
210
230
 
211
231
  // ============ Internal Functions ============
212
232
 
233
+ /**
234
+ * @notice Enrolls a validator into a validator set.
235
+ * @dev Reverts if `_validator` is already in the validator set.
236
+ * @param _domain The remote domain of the validator set.
237
+ * @param _validator The validator to add to the validator set.
238
+ */
239
+ function _enrollValidator(uint32 _domain, address _validator) internal {
240
+ require(_validator != address(0), "zero address");
241
+ require(validatorSet[_domain].add(_validator), "already enrolled");
242
+ emit ValidatorEnrolled(_domain, _validator, validatorCount(_domain));
243
+ }
244
+
213
245
  /**
214
246
  * @notice Updates the commitment to the validator set for `_domain`.
215
247
  * @param _domain The remote domain of the validator set.
@@ -217,11 +249,12 @@ contract MultisigIsm is IMultisigIsm, Ownable {
217
249
  */
218
250
  function _updateCommitment(uint32 _domain) internal returns (bytes32) {
219
251
  address[] memory _validators = validators(_domain);
220
- uint256 _threshold = threshold[_domain];
252
+ uint8 _threshold = threshold[_domain];
221
253
  bytes32 _commitment = keccak256(
222
254
  abi.encodePacked(_threshold, _validators)
223
255
  );
224
256
  commitment[_domain] = _commitment;
257
+ emit CommitmentUpdated(_domain, _commitment);
225
258
  return _commitment;
226
259
  }
227
260
 
@@ -254,7 +287,7 @@ contract MultisigIsm is IMultisigIsm, Ownable {
254
287
  bytes calldata _metadata,
255
288
  bytes calldata _message
256
289
  ) internal view returns (bool) {
257
- uint256 _threshold = _metadata.threshold();
290
+ uint8 _threshold = _metadata.threshold();
258
291
  bytes32 _digest;
259
292
  {
260
293
  uint32 _origin = _message.origin();
@@ -4,20 +4,20 @@ pragma solidity >=0.8.0;
4
4
  /**
5
5
  * Format of metadata:
6
6
  * [ 0: 32] Merkle root
7
- * [ 32: 64] Root index
8
- * [ 64: 96] Origin mailbox address
9
- * [ 96:1120] Merkle proof
10
- * [1120:1152] Threshold
11
- * [1152:????] Validator signatures, 65 bytes each, length == Threshold
7
+ * [ 32: 36] Root index
8
+ * [ 36: 68] Origin mailbox address
9
+ * [ 68:1092] Merkle proof
10
+ * [1092:1093] Threshold
11
+ * [1093:????] Validator signatures, 65 bytes each, length == Threshold
12
12
  * [????:????] Addresses of the entire validator set, left padded to bytes32
13
13
  */
14
14
  library MultisigIsmMetadata {
15
15
  uint256 private constant MERKLE_ROOT_OFFSET = 0;
16
16
  uint256 private constant MERKLE_INDEX_OFFSET = 32;
17
- uint256 private constant ORIGIN_MAILBOX_OFFSET = 64;
18
- uint256 private constant MERKLE_PROOF_OFFSET = 96;
19
- uint256 private constant THRESHOLD_OFFSET = 1120;
20
- uint256 private constant SIGNATURES_OFFSET = 1152;
17
+ uint256 private constant ORIGIN_MAILBOX_OFFSET = 36;
18
+ uint256 private constant MERKLE_PROOF_OFFSET = 68;
19
+ uint256 private constant THRESHOLD_OFFSET = 1092;
20
+ uint256 private constant SIGNATURES_OFFSET = 1093;
21
21
  uint256 private constant SIGNATURE_LENGTH = 65;
22
22
 
23
23
  /**
@@ -34,10 +34,10 @@ library MultisigIsmMetadata {
34
34
  * @param _metadata ABI encoded Multisig ISM metadata.
35
35
  * @return Index of the signed checkpoint
36
36
  */
37
- function index(bytes calldata _metadata) internal pure returns (uint256) {
37
+ function index(bytes calldata _metadata) internal pure returns (uint32) {
38
38
  return
39
- uint256(
40
- bytes32(_metadata[MERKLE_INDEX_OFFSET:ORIGIN_MAILBOX_OFFSET])
39
+ uint32(
40
+ bytes4(_metadata[MERKLE_INDEX_OFFSET:ORIGIN_MAILBOX_OFFSET])
41
41
  );
42
42
  }
43
43
 
@@ -79,12 +79,8 @@ library MultisigIsmMetadata {
79
79
  * @param _metadata ABI encoded Multisig ISM metadata.
80
80
  * @return The number of required signatures.
81
81
  */
82
- function threshold(bytes calldata _metadata)
83
- internal
84
- pure
85
- returns (uint256)
86
- {
87
- return uint256(bytes32(_metadata[THRESHOLD_OFFSET:SIGNATURES_OFFSET]));
82
+ function threshold(bytes calldata _metadata) internal pure returns (uint8) {
83
+ return uint8(bytes1(_metadata[THRESHOLD_OFFSET:SIGNATURES_OFFSET]));
88
84
  }
89
85
 
90
86
  /**
@@ -182,6 +178,8 @@ library MultisigIsmMetadata {
182
178
  pure
183
179
  returns (uint256)
184
180
  {
185
- return SIGNATURES_OFFSET + (threshold(_metadata) * SIGNATURE_LENGTH);
181
+ return
182
+ SIGNATURES_OFFSET +
183
+ (uint256(threshold(_metadata)) * SIGNATURE_LENGTH);
186
184
  }
187
185
  }