@across-protocol/contracts 5.0.25 → 5.0.27

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 (313) hide show
  1. package/README.md +4 -0
  2. package/contracts/chain-adapters/CrossDomainEnabled.sol +1 -1
  3. package/contracts/external/interfaces/IAcrossV5Executor.sol +14 -0
  4. package/contracts/external/interfaces/IAcrossV5ExecutorAdapter.sol +14 -0
  5. package/contracts/external/interfaces/IGateway.sol +25 -0
  6. package/contracts/interfaces/ICounterfactualBeacon.sol +25 -16
  7. package/contracts/interfaces/ICounterfactualBeaconBase.sol +30 -0
  8. package/contracts/interfaces/ICounterfactualDeposit.sol +30 -0
  9. package/contracts/interfaces/ICounterfactualDepositFactory.sol +33 -54
  10. package/contracts/interfaces/SpokePoolPeripheryInterface.sol +16 -4
  11. package/contracts/interfaces/V5SpokePoolInterface.sol +71 -0
  12. package/contracts/libraries/HyperCoreLib.sol +114 -30
  13. package/contracts/libraries/PeripherySigningLib.sol +56 -0
  14. package/contracts/libraries/SafeTransferERC20.sol +4 -0
  15. package/contracts/periphery/SpokePoolPeriphery.sol +81 -19
  16. package/contracts/periphery/Tron_SpokePoolPeriphery.sol +52 -0
  17. package/contracts/periphery/counterfactual/AdminWithdrawManager.sol +12 -4
  18. package/contracts/periphery/counterfactual/CounterfactualBeacon.sol +28 -1
  19. package/contracts/periphery/counterfactual/CounterfactualBeaconBase.sol +11 -11
  20. package/contracts/periphery/counterfactual/CounterfactualDeposit.sol +6 -16
  21. package/contracts/periphery/counterfactual/CounterfactualDepositCCTP.sol +9 -5
  22. package/contracts/periphery/counterfactual/CounterfactualDepositFactory.sol +3 -5
  23. package/contracts/periphery/counterfactual/CounterfactualDepositOFT.sol +6 -3
  24. package/contracts/periphery/counterfactual/CounterfactualDepositSpokePool.sol +24 -8
  25. package/contracts/periphery/counterfactual/CounterfactualDepositVanillaCCTP.sol +28 -12
  26. package/contracts/periphery/counterfactual/CounterfactualImplementationBase.sol +8 -7
  27. package/contracts/periphery/counterfactual/CounterfactualNonces.sol +52 -0
  28. package/contracts/periphery/mintburn/HyperCoreFlowExecutor.sol +7 -1
  29. package/contracts/periphery/mintburn/SwapHandler.sol +8 -7
  30. package/contracts/spoke-pools/Arbitrum_SpokePool.sol +10 -2
  31. package/contracts/spoke-pools/Cher_SpokePool.sol +4 -2
  32. package/contracts/spoke-pools/Ethereum_SpokePool.sol +4 -2
  33. package/contracts/spoke-pools/Lens_SpokePool.sol +7 -2
  34. package/contracts/spoke-pools/Linea_SpokePool.sol +4 -2
  35. package/contracts/spoke-pools/Lisk_SpokePool.sol +4 -2
  36. package/contracts/spoke-pools/OP_SpokePool.sol +4 -2
  37. package/contracts/spoke-pools/Ovm_SpokePool.sol +7 -5
  38. package/contracts/spoke-pools/Polygon_SpokePool.sol +10 -2
  39. package/contracts/spoke-pools/SpokePool.sol +181 -25
  40. package/contracts/spoke-pools/Tron_SpokePool.sol +4 -2
  41. package/contracts/spoke-pools/Universal_SpokePool.sol +10 -2
  42. package/contracts/spoke-pools/ZkSync_SpokePool.sol +7 -2
  43. package/contracts/test/MockGateway.sol +33 -0
  44. package/contracts/test/MockSpokePool.sol +4 -1
  45. package/contracts/test/MockSpokePoolV2.sol +1 -1
  46. package/contracts/tron/TronCounterfactualImports.sol +2 -0
  47. package/contracts/tron/TronPeripheryImports.sol +5 -2
  48. package/dist/broadcast/deployed-addresses.json +611 -447
  49. package/dist/evm/artifacts/AcrossConfigStore.sol/AcrossConfigStore.json +1 -1
  50. package/dist/evm/artifacts/AcrossEventEmitter.sol/AcrossEventEmitter.json +1 -1
  51. package/dist/evm/artifacts/AcrossMerkleDistributor.sol/AcrossMerkleDistributor.json +1 -1
  52. package/dist/evm/artifacts/AcrossMessageHandlerMock.sol/AcrossMessageHandlerMock.json +1 -1
  53. package/dist/evm/artifacts/AdapterStore.sol/AdapterStore.json +1 -1
  54. package/dist/evm/artifacts/AdapterStore.sol/MessengerTypes.json +1 -1
  55. package/dist/evm/artifacts/Address.sol/Address.json +1 -1
  56. package/dist/evm/artifacts/AddressConverters.sol/Bytes32ToAddress.json +1 -1
  57. package/dist/evm/artifacts/AdminRelayTokensAdapter.sol/AdminRelayTokensAdapter.json +1 -1
  58. package/dist/evm/artifacts/AdminWithdrawManager.sol/AdminWithdrawManager.json +1 -1
  59. package/dist/evm/artifacts/ArbitrumMocks.sol/ArbitrumMockErc20GatewayRouter.json +1 -1
  60. package/dist/evm/artifacts/ArbitrumMocks.sol/Inbox.json +1 -1
  61. package/dist/evm/artifacts/ArbitrumMocks.sol/L2GatewayRouter.json +1 -1
  62. package/dist/evm/artifacts/Arbitrum_Adapter.sol/Arbitrum_Adapter.json +1 -1
  63. package/dist/evm/artifacts/Arbitrum_CustomGasToken_Adapter.sol/Arbitrum_CustomGasToken_Adapter.json +1 -1
  64. package/dist/evm/artifacts/Arbitrum_Forwarder.sol/Arbitrum_Forwarder.json +1 -1
  65. package/dist/evm/artifacts/Arbitrum_RescueAdapter.sol/Arbitrum_RescueAdapter.json +1 -1
  66. package/dist/evm/artifacts/Arbitrum_SendTokensAdapter.sol/Arbitrum_SendTokensAdapter.json +1 -1
  67. package/dist/evm/artifacts/Arbitrum_SpokePool.sol/Arbitrum_SpokePool.json +1 -1
  68. package/dist/evm/artifacts/Arbitrum_WithdrawalHelper.sol/Arbitrum_WithdrawalHelper.json +1 -1
  69. package/dist/evm/artifacts/Base_Adapter.sol/Base_Adapter.json +1 -1
  70. package/dist/evm/artifacts/BeaconProxy.sol/BeaconProxy.json +1 -1
  71. package/dist/evm/artifacts/BondToken.sol/BondToken.json +1 -1
  72. package/dist/evm/artifacts/BytesLib.sol/BytesLib.json +1 -1
  73. package/dist/evm/artifacts/Cher_SpokePool.sol/Cher_SpokePool.json +1 -1
  74. package/dist/evm/artifacts/CircleCCTPAdapter.sol/CircleDomainIds.json +1 -1
  75. package/dist/evm/artifacts/Constants.sol/Constants.json +1 -1
  76. package/dist/evm/artifacts/Constants.sol/OptimisticOracleConstraints.json +1 -1
  77. package/dist/evm/artifacts/Constants.sol/OracleInterfaces.json +1 -1
  78. package/dist/evm/artifacts/CoreExecution.sol/CoreExecution.json +1 -1
  79. package/dist/evm/artifacts/CoreSimulatorLib.sol/HypeSystemContract.json +1 -1
  80. package/dist/evm/artifacts/CoreState.sol/CoreState.json +1 -1
  81. package/dist/evm/artifacts/CoreView.sol/CoreView.json +1 -1
  82. package/dist/evm/artifacts/CoreWriterLib.sol/CoreWriterLib.json +1 -1
  83. package/dist/evm/artifacts/CoreWriterSim.sol/CoreWriterSim.json +1 -1
  84. package/dist/evm/artifacts/CounterfactualBeacon.sol/CounterfactualBeacon.json +1 -1
  85. package/dist/evm/artifacts/CounterfactualBeaconBase.sol/CounterfactualBeaconBase.json +1 -1
  86. package/dist/evm/artifacts/CounterfactualBeaconBootstrap.sol/CounterfactualBeaconBootstrap.json +1 -1
  87. package/dist/evm/artifacts/CounterfactualConfig.sol/CounterfactualConfig.json +1 -1
  88. package/dist/evm/artifacts/CounterfactualDeposit.sol/CounterfactualDeposit.json +1 -1
  89. package/dist/evm/artifacts/CounterfactualDepositCCTP.sol/CounterfactualDepositCCTP.json +1 -1
  90. package/dist/evm/artifacts/CounterfactualDepositFactory.sol/CounterfactualDepositFactory.json +1 -1
  91. package/dist/evm/artifacts/CounterfactualDepositFactoryTron.sol/CounterfactualDepositFactoryTron.json +1 -1
  92. package/dist/evm/artifacts/CounterfactualDepositOFT.sol/CounterfactualDepositOFT.json +1 -1
  93. package/dist/evm/artifacts/CounterfactualDepositSpokePool.sol/CounterfactualDepositSpokePool.json +1 -1
  94. package/dist/evm/artifacts/CounterfactualDepositSpokePoolTr.sol/CounterfactualDepositSpokePoolTr.json +1 -1
  95. package/dist/evm/artifacts/CounterfactualDepositVanillaCCTP.sol/CounterfactualDepositVanillaCCTP.json +1 -1
  96. package/dist/evm/artifacts/CounterfactualNonces.sol/CounterfactualNonces.json +1 -0
  97. package/dist/evm/artifacts/Create2.sol/Create2.json +1 -1
  98. package/dist/evm/artifacts/CrossDomainEnabled.sol/CrossDomainEnabled.json +1 -1
  99. package/dist/evm/artifacts/DeployedAddresses.sol/DeployedAddresses.json +1 -1
  100. package/dist/evm/artifacts/DeploymentUtils.sol/DeploymentUtils.json +1 -1
  101. package/dist/evm/artifacts/DoctorWho_Adapter.sol/DoctorWho_Adapter.json +1 -1
  102. package/dist/evm/artifacts/DonationBox.sol/DonationBox.json +1 -1
  103. package/dist/evm/artifacts/DstOFTHandler.sol/DstOFTHandler.json +1 -1
  104. package/dist/evm/artifacts/ECDSA.sol/ECDSA.json +1 -1
  105. package/dist/evm/artifacts/ERC1155.sol/ERC1155.json +1 -1
  106. package/dist/evm/artifacts/ERC1967Proxy.sol/ERC1967Proxy.json +1 -1
  107. package/dist/evm/artifacts/ERC1967Utils.sol/ERC1967Utils.json +1 -1
  108. package/dist/evm/artifacts/ERC20.sol/ERC20.json +1 -1
  109. package/dist/evm/artifacts/Errors.sol/Errors.json +1 -1
  110. package/dist/evm/artifacts/Ethereum_Adapter.sol/Ethereum_Adapter.json +1 -1
  111. package/dist/evm/artifacts/Ethereum_RescueAdapter.sol/Ethereum_RescueAdapter.json +1 -1
  112. package/dist/evm/artifacts/Ethereum_SpokePool.sol/Ethereum_SpokePool.json +1 -1
  113. package/dist/evm/artifacts/ExpandedERC20.sol/ExpandedERC20.json +1 -1
  114. package/dist/evm/artifacts/ExpandedERC20WithBlacklist.sol/ExpandedERC20WithBlacklist.json +1 -1
  115. package/dist/evm/artifacts/HLConstants.sol/HLConstants.json +1 -1
  116. package/dist/evm/artifacts/HLConversions.sol/HLConversions.json +1 -1
  117. package/dist/evm/artifacts/HubPool.sol/HubPool.json +1 -1
  118. package/dist/evm/artifacts/HubPoolStore.sol/HubPoolStore.json +1 -1
  119. package/dist/evm/artifacts/HubPoolTestBase.sol/HubPoolTestBase.json +1 -1
  120. package/dist/evm/artifacts/HubPoolTestBase.sol/MockAddressWhitelist.json +1 -1
  121. package/dist/evm/artifacts/HubPoolTestBase.sol/MockFinder.json +1 -1
  122. package/dist/evm/artifacts/HubPoolTestBase.sol/MockIdentifierWhitelist.json +1 -1
  123. package/dist/evm/artifacts/HubPoolTestBase.sol/MockLpTokenFactory.json +1 -1
  124. package/dist/evm/artifacts/HubPoolTestBase.sol/MockOptimisticOracle.json +1 -1
  125. package/dist/evm/artifacts/HubPoolTestBase.sol/MockStore.json +1 -1
  126. package/dist/evm/artifacts/HyperCore.sol/HyperCore.json +1 -1
  127. package/dist/evm/artifacts/HyperCoreFlowExecutor.sol/HyperCoreFlowExecutor.json +1 -1
  128. package/dist/evm/artifacts/HyperCoreLib.sol/HyperCoreLib.json +1 -1
  129. package/dist/evm/artifacts/HyperliquidDepositHandler.sol/HyperliquidDepositHandler.json +1 -1
  130. package/dist/evm/artifacts/IAcrossV5Executor.sol/IAcrossV5Executor.json +1 -0
  131. package/dist/evm/artifacts/IAcrossV5ExecutorAdapter.sol/IAcrossV5ExecutorAdapter.json +1 -0
  132. package/dist/evm/artifacts/ICounterfactualBeacon.sol/ICounterfactualBeacon.json +1 -1
  133. package/dist/evm/artifacts/ICounterfactualBeaconBase.sol/ICounterfactualBeaconBase.json +1 -0
  134. package/dist/evm/artifacts/ICounterfactualDeposit.sol/ICounterfactualDeposit.json +1 -1
  135. package/dist/evm/artifacts/ICounterfactualDepositFactory.sol/ICounterfactualDepositFactory.json +1 -1
  136. package/dist/evm/artifacts/IGateway.sol/IGateway.json +1 -0
  137. package/dist/evm/artifacts/Lens_SpokePool.sol/Lens_SpokePool.json +1 -1
  138. package/dist/evm/artifacts/LibVariable.sol/LibVariable.json +1 -1
  139. package/dist/evm/artifacts/LineaMocks.sol/MockL2MessageService.json +1 -1
  140. package/dist/evm/artifacts/LineaMocks.sol/MockL2TokenBridge.json +1 -1
  141. package/dist/evm/artifacts/Linea_Adapter.sol/Linea_Adapter.json +1 -1
  142. package/dist/evm/artifacts/Linea_SpokePool.sol/Linea_SpokePool.json +1 -1
  143. package/dist/evm/artifacts/Lisk_Adapter.sol/Lisk_Adapter.json +1 -1
  144. package/dist/evm/artifacts/Lisk_SpokePool.sol/Lisk_SpokePool.json +1 -1
  145. package/dist/evm/artifacts/Lockable.sol/Lockable.json +1 -1
  146. package/dist/evm/artifacts/LpTokenFactory.sol/LpTokenFactory.json +1 -1
  147. package/dist/evm/artifacts/Merkle.sol/Merkle.json +1 -1
  148. package/dist/evm/artifacts/MerkleDistributor.sol/MerkleDistributor.json +1 -1
  149. package/dist/evm/artifacts/MerkleLibTest.sol/MerkleLibTest.json +1 -1
  150. package/dist/evm/artifacts/MerkleProof.sol/MerkleProof.json +1 -1
  151. package/dist/evm/artifacts/MinimalLZOptions.sol/MinimalLZOptions.json +1 -1
  152. package/dist/evm/artifacts/MintableERC1155.sol/MintableERC1155.json +1 -1
  153. package/dist/evm/artifacts/MockBedrockStandardBridge.sol/MockBedrockCrossDomainMessenger.json +1 -1
  154. package/dist/evm/artifacts/MockBedrockStandardBridge.sol/MockBedrockL1StandardBridge.json +1 -1
  155. package/dist/evm/artifacts/MockBedrockStandardBridge.sol/MockBedrockL2StandardBridge.json +1 -1
  156. package/dist/evm/artifacts/MockCCTP.sol/MockCCTPMessageTransmitter.json +1 -1
  157. package/dist/evm/artifacts/MockCCTP.sol/MockCCTPMessenger.json +1 -1
  158. package/dist/evm/artifacts/MockCCTP.sol/MockCCTPMessengerV2.json +1 -1
  159. package/dist/evm/artifacts/MockCCTP.sol/MockCCTPMinter.json +1 -1
  160. package/dist/evm/artifacts/MockCaller.sol/MockCaller.json +1 -1
  161. package/dist/evm/artifacts/MockERC1271.sol/MockERC1271.json +1 -1
  162. package/dist/evm/artifacts/MockERC20.sol/MintableERC20.json +1 -1
  163. package/dist/evm/artifacts/MockERC20.sol/MockERC20.json +1 -1
  164. package/dist/evm/artifacts/MockEndpoint.sol/MockEndpoint.json +1 -1
  165. package/dist/evm/artifacts/MockGateway.sol/MockGateway.json +1 -0
  166. package/dist/evm/artifacts/MockHubPool.sol/MockHubPool.json +1 -1
  167. package/dist/evm/artifacts/MockOFTMessenger.sol/MockOFTMessenger.json +1 -1
  168. package/dist/evm/artifacts/MockPermit2.sol/MockPermit2.json +1 -1
  169. package/dist/evm/artifacts/MockPermit2.sol/Permit2EIP712.json +1 -1
  170. package/dist/evm/artifacts/MockPermit2.sol/SignatureVerification.json +1 -1
  171. package/dist/evm/artifacts/MockSpokePool.sol/MockSpokePool.json +1 -1
  172. package/dist/evm/artifacts/MockSpokePoolV2.sol/MockSpokePoolV2.json +1 -1
  173. package/dist/evm/artifacts/MockTronUSDT.sol/MockTronUSDT.json +1 -1
  174. package/dist/evm/artifacts/MockZkStackBridgeHub.sol/MockBridgeHub.json +1 -1
  175. package/dist/evm/artifacts/Mock_Adapter.sol/Mock_Adapter.json +1 -1
  176. package/dist/evm/artifacts/Mock_Adapter.sol/Mock_Bridge.json +1 -1
  177. package/dist/evm/artifacts/Mode_Adapter.sol/Mode_Adapter.json +1 -1
  178. package/dist/evm/artifacts/MultiCaller.sol/MultiCaller.json +1 -1
  179. package/dist/evm/artifacts/MultiCallerUpgradeable.sol/MultiCallerUpgradeable.json +1 -1
  180. package/dist/evm/artifacts/Multicall3.sol/Multicall3.json +1 -1
  181. package/dist/evm/artifacts/MulticallHandler.sol/MulticallHandler.json +1 -1
  182. package/dist/evm/artifacts/OFTTransportAdapter.sol/OFTTransportAdapter.json +1 -1
  183. package/dist/evm/artifacts/OFTTransportAdapterWithStore.sol/OFTTransportAdapterWithStore.json +1 -1
  184. package/dist/evm/artifacts/OP_Adapter.sol/OP_Adapter.json +1 -1
  185. package/dist/evm/artifacts/OP_SpokePool.sol/OP_SpokePool.json +1 -1
  186. package/dist/evm/artifacts/Ovm_Forwarder.sol/Ovm_Forwarder.json +1 -1
  187. package/dist/evm/artifacts/Ovm_SpokePool.sol/Ovm_SpokePool.json +1 -1
  188. package/dist/evm/artifacts/Ovm_WithdrawalHelper.sol/Ovm_WithdrawalHelper.json +1 -1
  189. package/dist/evm/artifacts/PeripherySigningLib.sol/PeripherySigningLib.json +1 -1
  190. package/dist/evm/artifacts/PermissionedMulticallHandler.sol/PermissionedMulticallHandler.json +1 -1
  191. package/dist/evm/artifacts/PolygonERC20Test.sol/PolygonERC20Test.json +1 -1
  192. package/dist/evm/artifacts/PolygonMocks.sol/DepositManagerMock.json +1 -1
  193. package/dist/evm/artifacts/PolygonMocks.sol/FxStateSenderMock.json +1 -1
  194. package/dist/evm/artifacts/PolygonMocks.sol/PolygonERC20Mock.json +1 -1
  195. package/dist/evm/artifacts/PolygonMocks.sol/PolygonERC20PredicateMock.json +1 -1
  196. package/dist/evm/artifacts/PolygonMocks.sol/PolygonRegistryMock.json +1 -1
  197. package/dist/evm/artifacts/PolygonMocks.sol/RootChainManagerMock.json +1 -1
  198. package/dist/evm/artifacts/PolygonTokenBridger.sol/PolygonTokenBridger.json +1 -1
  199. package/dist/evm/artifacts/Polygon_Adapter.sol/Polygon_Adapter.json +1 -1
  200. package/dist/evm/artifacts/Polygon_SpokePool.sol/Polygon_SpokePool.json +1 -1
  201. package/dist/evm/artifacts/PrecompileLib.sol/PrecompileLib.json +1 -1
  202. package/dist/evm/artifacts/PrecompileSim.sol/PrecompileSim.json +1 -1
  203. package/dist/evm/artifacts/ProxyAdmin.sol/ProxyAdmin.json +1 -1
  204. package/dist/evm/artifacts/Router_Adapter.sol/Router_Adapter.json +1 -1
  205. package/dist/evm/artifacts/SP1AutoVerifier.sol/SP1AutoVerifier.json +1 -1
  206. package/dist/evm/artifacts/SP1Helios.sol/SP1Helios.json +1 -1
  207. package/dist/evm/artifacts/SP1MockVerifier.sol/SP1MockVerifier.json +1 -1
  208. package/dist/evm/artifacts/SafeCast.sol/SafeCast.json +1 -1
  209. package/dist/evm/artifacts/SafeERC20.sol/SafeERC20.json +1 -1
  210. package/dist/evm/artifacts/ShortStrings.sol/ShortStrings.json +1 -1
  211. package/dist/evm/artifacts/Solana_Adapter.sol/Solana_Adapter.json +1 -1
  212. package/dist/evm/artifacts/SpokePool.sol/SpokePool.json +1 -1
  213. package/dist/evm/artifacts/SpokePoolPeriphery.sol/SpokePoolPeriphery.json +1 -1
  214. package/dist/evm/artifacts/SpokePoolPeriphery.sol/SwapProxy.json +1 -1
  215. package/dist/evm/artifacts/SpokePoolVerifier.sol/SpokePoolVerifier.json +1 -1
  216. package/dist/evm/artifacts/SponsoredCCTPDstPeriphery.sol/SponsoredCCTPDstPeriphery.json +1 -1
  217. package/dist/evm/artifacts/SponsoredCCTPSrcPeriphery.sol/SponsoredCCTPSrcPeriphery.json +1 -1
  218. package/dist/evm/artifacts/SponsoredOFTSrcPeriphery.sol/SponsoredOFTSrcPeriphery.json +1 -1
  219. package/dist/evm/artifacts/StdConfig.sol/StdConfig.json +1 -1
  220. package/dist/evm/artifacts/Strings.sol/Strings.json +1 -1
  221. package/dist/evm/artifacts/SwapHandler.sol/SwapHandler.json +1 -1
  222. package/dist/evm/artifacts/Timer.sol/Timer.json +1 -1
  223. package/dist/evm/artifacts/TransferProxy.sol/TransferProxy.json +1 -1
  224. package/dist/evm/artifacts/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.json +1 -1
  225. package/dist/evm/artifacts/TronMulticallHandler.sol/TronMulticallHandler.json +1 -1
  226. package/dist/evm/artifacts/TronTransferLib.sol/TronTransferLib.json +1 -1
  227. package/dist/evm/artifacts/Tron_SpokePool.sol/Tron_SpokePool.json +1 -1
  228. package/dist/evm/artifacts/Tron_SpokePoolPeriphery.sol/Tron_SpokePoolPeriphery.json +1 -0
  229. package/dist/evm/artifacts/Tron_SpokePoolPeriphery.sol/Tron_SwapProxy.json +1 -0
  230. package/dist/evm/artifacts/Universal_Adapter.sol/Universal_Adapter.json +1 -1
  231. package/dist/evm/artifacts/Universal_SpokePool.sol/Universal_SpokePool.json +1 -1
  232. package/dist/evm/artifacts/UpgradeableBeacon.sol/UpgradeableBeacon.json +1 -1
  233. package/dist/evm/artifacts/V5SpokePoolInterface.sol/V5SpokePoolInterface.json +1 -0
  234. package/dist/evm/artifacts/WETH9.sol/WETH9.json +1 -1
  235. package/dist/evm/artifacts/WithdrawImplementation.sol/WithdrawImplementation.json +1 -1
  236. package/dist/evm/artifacts/WithdrawImplementationTron.sol/WithdrawImplementationTron.json +1 -1
  237. package/dist/evm/artifacts/ZkStack_Adapter.sol/ZkStack_Adapter.json +1 -1
  238. package/dist/evm/artifacts/ZkStack_CustomGasToken_Adapter.sol/ZkStack_CustomGasToken_Adapter.json +1 -1
  239. package/dist/evm/artifacts/ZkSyncMocks.sol/MockL2Eth.json +1 -1
  240. package/dist/evm/artifacts/ZkSyncMocks.sol/MockZkBridge.json +1 -1
  241. package/dist/evm/artifacts/ZkSync_SpokePool.sol/ZkSync_SpokePool.json +1 -1
  242. package/dist/evm/artifacts/Zora_Adapter.sol/Zora_Adapter.json +1 -1
  243. package/dist/evm/artifacts/eraVM_EIP7702.sol/SimpleContract.json +1 -1
  244. package/dist/evm/artifacts/eraVM_EIP7702.sol/SpokePoolEIP7702Test.json +1 -1
  245. package/dist/evm/artifacts/eraVM_EIP7702.sol/TestableMockSpokePool.json +1 -1
  246. package/dist/src/consts.d.ts +2 -0
  247. package/dist/src/consts.js +21 -47
  248. package/dist/src/svm/assets/idl/svm_spoke.json +9 -4
  249. package/dist/src/svm/assets/svm_spoke.d.ts +9 -4
  250. package/dist/src/svm/clients/SvmSpoke/errors/svmSpoke.d.ts +3 -1
  251. package/dist/src/svm/clients/SvmSpoke/errors/svmSpoke.js +4 -1
  252. package/dist/src/types/svm.d.ts +44 -0
  253. package/dist/target/types/svm_spoke.d.ts +9 -4
  254. package/package.json +12 -6
  255. package/contracts/chain-adapters/Blast_Adapter.sol +0 -127
  256. package/contracts/chain-adapters/Blast_RescueAdapter.sol +0 -47
  257. package/contracts/chain-adapters/Boba_Adapter.sol +0 -78
  258. package/contracts/chain-adapters/Optimism_Adapter.sol +0 -118
  259. package/contracts/chain-adapters/PolygonZkEVM_Adapter.sol +0 -75
  260. package/contracts/chain-adapters/Scroll_Adapter.sol +0 -144
  261. package/contracts/external/interfaces/IPolygonZkEVMBridge.sol +0 -40
  262. package/contracts/hub-pool/Blast_DaiRetriever.sol +0 -59
  263. package/contracts/hub-pool/PermissionSplitterProxy.sol +0 -128
  264. package/contracts/spoke-pools/Blast_SpokePool.sol +0 -161
  265. package/contracts/spoke-pools/Boba_SpokePool.sol +0 -45
  266. package/contracts/spoke-pools/Ink_SpokePool.sol +0 -72
  267. package/contracts/spoke-pools/Optimism_SpokePool.sol +0 -66
  268. package/contracts/spoke-pools/PolygonZkEVM_SpokePool.sol +0 -217
  269. package/contracts/spoke-pools/Scroll_SpokePool.sol +0 -153
  270. package/contracts/spoke-pools/WorldChain_SpokePool.sol +0 -72
  271. package/contracts/test/MockBlastUsdYieldManager.sol +0 -20
  272. package/contracts/test/MockOptimism_SpokePool.sol +0 -22
  273. package/contracts/test/PolygonZkEVMMocks.sol +0 -72
  274. package/contracts/test/ScrollMocks.sol +0 -109
  275. package/dist/evm/artifacts/Blast_Adapter.sol/Blast_Adapter.json +0 -1
  276. package/dist/evm/artifacts/Blast_Adapter.sol/IL1ERC20Bridge.json +0 -1
  277. package/dist/evm/artifacts/Blast_DaiRetriever.sol/Blast_DaiRetriever.json +0 -1
  278. package/dist/evm/artifacts/Blast_DaiRetriever.sol/USDYieldManager.json +0 -1
  279. package/dist/evm/artifacts/Blast_RescueAdapter.sol/Blast_RescueAdapter.json +0 -1
  280. package/dist/evm/artifacts/Blast_SpokePool.sol/Blast_SpokePool.json +0 -1
  281. package/dist/evm/artifacts/Blast_SpokePool.sol/IBlast.json +0 -1
  282. package/dist/evm/artifacts/Blast_SpokePool.sol/IERC20Rebasing.json +0 -1
  283. package/dist/evm/artifacts/Blast_SpokePool.sol/IUSDBL2Bridge.json +0 -1
  284. package/dist/evm/artifacts/Boba_Adapter.sol/Boba_Adapter.json +0 -1
  285. package/dist/evm/artifacts/Boba_SpokePool.sol/Boba_SpokePool.json +0 -1
  286. package/dist/evm/artifacts/IL1ERC20Gateway.sol/IL1ERC20Gateway.json +0 -1
  287. package/dist/evm/artifacts/IL1ETHGateway.sol/IL1ETHGateway.json +0 -1
  288. package/dist/evm/artifacts/IL1GatewayRouter.sol/IL1GatewayRouter.json +0 -1
  289. package/dist/evm/artifacts/IL1ScrollMessenger.sol/IL1ScrollMessenger.json +0 -1
  290. package/dist/evm/artifacts/IL2ERC20Gateway.sol/IL2ERC20Gateway.json +0 -1
  291. package/dist/evm/artifacts/IL2ETHGateway.sol/IL2ETHGateway.json +0 -1
  292. package/dist/evm/artifacts/IL2GasPriceOracle.sol/IL2GasPriceOracle.json +0 -1
  293. package/dist/evm/artifacts/IL2GatewayRouter.sol/IL2GatewayRouter.json +0 -1
  294. package/dist/evm/artifacts/IPolygonZkEVMBridge.sol/IPolygonZkEVMBridge.json +0 -1
  295. package/dist/evm/artifacts/IScrollMessenger.sol/IScrollMessenger.json +0 -1
  296. package/dist/evm/artifacts/Ink_SpokePool.sol/Ink_SpokePool.json +0 -1
  297. package/dist/evm/artifacts/MockBlastUsdYieldManager.sol/MockBlastUsdYieldManager.json +0 -1
  298. package/dist/evm/artifacts/MockOptimism_SpokePool.sol/MockOptimism_SpokePool.json +0 -1
  299. package/dist/evm/artifacts/Optimism_Adapter.sol/Optimism_Adapter.json +0 -1
  300. package/dist/evm/artifacts/Optimism_Adapter.sol/SynthetixBridgeToOptimism.json +0 -1
  301. package/dist/evm/artifacts/Optimism_SpokePool.sol/Optimism_SpokePool.json +0 -1
  302. package/dist/evm/artifacts/Optimism_SpokePool.sol/SynthetixBridgeToBase.json +0 -1
  303. package/dist/evm/artifacts/PermissionSplitterProxy.sol/PermissionSplitterProxy.json +0 -1
  304. package/dist/evm/artifacts/PolygonZkEVMMocks.sol/MockPolygonZkEVMBridge.json +0 -1
  305. package/dist/evm/artifacts/PolygonZkEVM_Adapter.sol/PolygonZkEVM_Adapter.json +0 -1
  306. package/dist/evm/artifacts/PolygonZkEVM_SpokePool.sol/IBridgeMessageReceiver.json +0 -1
  307. package/dist/evm/artifacts/PolygonZkEVM_SpokePool.sol/PolygonZkEVM_SpokePool.json +0 -1
  308. package/dist/evm/artifacts/ScrollMocks.sol/MockScrollL2GatewayRouter.json +0 -1
  309. package/dist/evm/artifacts/ScrollMocks.sol/MockScrollMessenger.json +0 -1
  310. package/dist/evm/artifacts/Scroll_Adapter.sol/Scroll_Adapter.json +0 -1
  311. package/dist/evm/artifacts/Scroll_SpokePool.sol/IL2GatewayRouterExtended.json +0 -1
  312. package/dist/evm/artifacts/Scroll_SpokePool.sol/Scroll_SpokePool.json +0 -1
  313. package/dist/evm/artifacts/WorldChain_SpokePool.sol/WorldChain_SpokePool.json +0 -1
@@ -32,7 +32,8 @@ contract Tron_SpokePool is Universal_SpokePool {
32
32
  IERC20 _l2Usdc,
33
33
  ITokenMessenger _cctpTokenMessenger,
34
34
  uint32 _oftDstEid,
35
- uint256 _oftFeeCap
35
+ uint256 _oftFeeCap,
36
+ address _gateway
36
37
  )
37
38
  Universal_SpokePool(
38
39
  _adminUpdateBufferSeconds,
@@ -44,7 +45,8 @@ contract Tron_SpokePool is Universal_SpokePool {
44
45
  _l2Usdc,
45
46
  _cctpTokenMessenger,
46
47
  _oftDstEid,
47
- _oftFeeCap
48
+ _oftFeeCap,
49
+ _gateway
48
50
  )
49
51
  {} // solhint-disable-line no-empty-blocks
50
52
 
@@ -88,9 +88,17 @@ contract Universal_SpokePool is OwnableUpgradeable, SpokePool, CircleCCTPAdapter
88
88
  IERC20 _l2Usdc,
89
89
  ITokenMessenger _cctpTokenMessenger,
90
90
  uint32 _oftDstEid,
91
- uint256 _oftFeeCap
91
+ uint256 _oftFeeCap,
92
+ address _gateway
92
93
  )
93
- SpokePool(_wrappedNativeTokenAddress, _depositQuoteTimeBuffer, _fillDeadlineBuffer, _oftDstEid, _oftFeeCap)
94
+ SpokePool(
95
+ _wrappedNativeTokenAddress,
96
+ _depositQuoteTimeBuffer,
97
+ _fillDeadlineBuffer,
98
+ _oftDstEid,
99
+ _oftFeeCap,
100
+ _gateway
101
+ )
94
102
  CircleCCTPAdapter(_l2Usdc, _cctpTokenMessenger, CircleDomainIds.Ethereum)
95
103
  {
96
104
  ADMIN_UPDATE_BUFFER = _adminUpdateBufferSeconds;
@@ -91,7 +91,8 @@ contract ZkSync_SpokePool is SpokePool, CircleCCTPAdapter {
91
91
  uint256 _l1ChainId,
92
92
  ITokenMessenger _cctpTokenMessenger,
93
93
  uint32 _depositQuoteTimeBuffer,
94
- uint32 _fillDeadlineBuffer
94
+ uint32 _fillDeadlineBuffer,
95
+ address _gateway
95
96
  )
96
97
  SpokePool(
97
98
  _wrappedNativeTokenAddress,
@@ -99,7 +100,8 @@ contract ZkSync_SpokePool is SpokePool, CircleCCTPAdapter {
99
100
  _fillDeadlineBuffer,
100
101
  // ZkSync_SpokePool does not use OFT messaging; setting destination eid and fee cap to 0
101
102
  0,
102
- 0
103
+ 0,
104
+ _gateway
103
105
  )
104
106
  CircleCCTPAdapter(_circleUSDC, _cctpTokenMessenger, CircleDomainIds.Ethereum)
105
107
  {
@@ -124,6 +126,9 @@ contract ZkSync_SpokePool is SpokePool, CircleCCTPAdapter {
124
126
  * @param _crossDomainAdmin Cross domain admin to set. Can be changed by admin.
125
127
  * @param _withdrawalRecipient Address which receives token withdrawals. Can be changed by admin. For Spoke Pools on L2, this will
126
128
  * likely be the hub pool.
129
+ * @dev The incorrect-initializer-order heuristic (upgrades-core 1.44) misfires on our standard pattern of
130
+ * delegating all parent setup to __SpokePool_init; each nested init is guarded by onlyInitializing.
131
+ * @custom:oz-upgrades-unsafe-allow incorrect-initializer-order
127
132
  */
128
133
  function initialize(
129
134
  uint32 _initialDepositId,
@@ -0,0 +1,33 @@
1
+ //SPDX-License-Identifier: Unlicense
2
+ pragma solidity ^0.8.0;
3
+
4
+ /**
5
+ * @title MockGateway
6
+ * @notice Minimal IGateway stand-in for tests. Exposes settable execution-context fields so a SpokePool wired
7
+ * to this gateway can exercise its V5 deposit/fill paths. The auto-generated getters for the public state
8
+ * variables match the IGateway view selectors that SpokePool calls. On the real Gateway, `currentExecutor` is
9
+ * populated only for the duration of the committed executor's call (zero while idle and during the funding
10
+ * loop), while the other fields are live for the whole execution.
11
+ */
12
+ contract MockGateway {
13
+ address public currentSubmitter;
14
+ address public currentExecutor;
15
+ bytes32 public currentStepId;
16
+ bytes32 public currentPathId;
17
+
18
+ function setSubmitter(address submitter) external {
19
+ currentSubmitter = submitter;
20
+ }
21
+
22
+ function setExecutor(address executor) external {
23
+ currentExecutor = executor;
24
+ }
25
+
26
+ function setStepId(bytes32 stepId) external {
27
+ currentStepId = stepId;
28
+ }
29
+
30
+ function setPathId(bytes32 pathId) external {
31
+ currentPathId = pathId;
32
+ }
33
+ }
@@ -31,7 +31,10 @@ contract MockSpokePool is SpokePool, MockV2SpokePoolInterface, OwnableUpgradeabl
31
31
  event PreLeafExecuteHook(bytes32 token);
32
32
 
33
33
  /// @custom:oz-upgrades-unsafe-allow constructor
34
- constructor(address _wrappedNativeTokenAddress) SpokePool(_wrappedNativeTokenAddress, 1 hours, 9 hours, 0, 0) {} // solhint-disable-line no-empty-blocks
34
+ constructor(
35
+ address _wrappedNativeTokenAddress,
36
+ address _gateway
37
+ ) SpokePool(_wrappedNativeTokenAddress, 1 hours, 9 hours, 0, 0, _gateway) {} // solhint-disable-line no-empty-blocks
35
38
 
36
39
  function initialize(uint32 _initialDepositId, address _crossDomainAdmin, address _hubPool) public initializer {
37
40
  __Ownable_init();
@@ -12,7 +12,7 @@ contract MockSpokePoolV2 is MockSpokePool {
12
12
  event NewEvent(bool value);
13
13
 
14
14
  /// @custom:oz-upgrades-unsafe-allow constructor
15
- constructor(address _wrappedNativeTokenAddress) MockSpokePool(_wrappedNativeTokenAddress) {} // solhint-disable-line no-empty-blocks
15
+ constructor(address _wrappedNativeTokenAddress) MockSpokePool(_wrappedNativeTokenAddress, address(0)) {} // solhint-disable-line no-empty-blocks
16
16
 
17
17
  // Demonstrative of how we could reset state variables in a V2 contract conveniently while initializing new
18
18
  // modules. The `reinitializer` modifier is required to create new Initializable contracts.
@@ -3,7 +3,9 @@ pragma solidity ^0.8.0;
3
3
 
4
4
  // Entry point for counterfactual contracts in the tron Foundry profile. These use OZ v4 and must
5
5
  // be in a separate file from SP1Helios/Tron_SpokePool (OZ v5) to avoid name collisions.
6
+ import "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol";
6
7
  import "../periphery/counterfactual/AdminWithdrawManager.sol";
8
+ import "../periphery/counterfactual/CounterfactualBeacon.sol";
7
9
  import "../periphery/counterfactual/CounterfactualConstants.sol";
8
10
  import "../periphery/counterfactual/CounterfactualDeposit.sol";
9
11
  import "../periphery/counterfactual/CounterfactualDepositCCTP.sol";
@@ -1,8 +1,11 @@
1
1
  // SPDX-License-Identifier: BUSL-1.1
2
2
  pragma solidity ^0.8.0;
3
3
 
4
- // Entry point for SpokePoolPeriphery and SwapProxy in the tron Foundry profile. These use OZ v4
5
- // and are kept in a separate file from SP1Helios/Tron_SpokePool (OZ v5) to avoid name collisions.
4
+ // Entry point for SpokePoolPeriphery and SwapProxy (and their Tron variants) in the tron Foundry
5
+ // profile. These use OZ v4, except the `_safeTransfer` hook: OZ v5 in the mainline contracts (see
6
+ // `SafeTransferERC20`), overridden with `TronTransferLib` errors in the Tron variants. Kept in a
7
+ // separate file from SP1Helios/Tron_SpokePool (OZ v5) to avoid name collisions.
6
8
  import "../periphery/SpokePoolPeriphery.sol";
9
+ import "../periphery/Tron_SpokePoolPeriphery.sol";
7
10
  import "../periphery/AcrossEventEmitter.sol";
8
11
  import "../handlers/TronMulticallHandler.sol";