@across-protocol/contracts 5.0.27 → 6.0.0-beta.3

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 (377) hide show
  1. package/README.md +140 -34
  2. package/contracts/chain-adapters/Solana_Adapter.sol +25 -11
  3. package/contracts/external/interfaces/CCTPInterfaces.sol +19 -0
  4. package/contracts/handlers/HyperliquidDepositHandler.sol +2 -2
  5. package/contracts/test/MockCCTP.sol +49 -1
  6. package/dist/evm/artifacts/Arbitrum_Adapter.sol/Arbitrum_Adapter.json +1 -1
  7. package/dist/evm/artifacts/Arbitrum_CustomGasToken_Adapter.sol/Arbitrum_CustomGasToken_Adapter.json +1 -1
  8. package/dist/evm/artifacts/Arbitrum_RescueAdapter.sol/Arbitrum_RescueAdapter.json +1 -1
  9. package/dist/evm/artifacts/Arbitrum_SendTokensAdapter.sol/Arbitrum_SendTokensAdapter.json +1 -1
  10. package/dist/evm/artifacts/Arbitrum_SpokePool.sol/Arbitrum_SpokePool.json +1 -1
  11. package/dist/evm/artifacts/Arbitrum_WithdrawalHelper.sol/Arbitrum_WithdrawalHelper.json +1 -1
  12. package/dist/evm/artifacts/Base_Adapter.sol/Base_Adapter.json +1 -1
  13. package/dist/evm/artifacts/CCTPInterfaces.sol/IMessageTransmitterV2.json +1 -1
  14. package/dist/evm/artifacts/Cher_SpokePool.sol/Cher_SpokePool.json +1 -1
  15. package/dist/evm/artifacts/CircleCCTPAdapter.sol/CircleDomainIds.json +1 -1
  16. package/dist/evm/artifacts/Constants.sol/Constants.json +1 -1
  17. package/dist/evm/artifacts/CounterfactualConfig.sol/CounterfactualConfig.json +1 -1
  18. package/dist/evm/artifacts/CounterfactualDepositVanillaCCTP.sol/CounterfactualDepositVanillaCCTP.json +1 -1
  19. package/dist/evm/artifacts/DeploymentUtils.sol/DeploymentUtils.json +1 -1
  20. package/dist/evm/artifacts/DoctorWho_Adapter.sol/DoctorWho_Adapter.json +1 -1
  21. package/dist/evm/artifacts/HubPoolTestBase.sol/HubPoolTestBase.json +1 -1
  22. package/dist/evm/artifacts/HubPoolTestBase.sol/MockAddressWhitelist.json +1 -1
  23. package/dist/evm/artifacts/HubPoolTestBase.sol/MockFinder.json +1 -1
  24. package/dist/evm/artifacts/HubPoolTestBase.sol/MockIdentifierWhitelist.json +1 -1
  25. package/dist/evm/artifacts/HubPoolTestBase.sol/MockLpTokenFactory.json +1 -1
  26. package/dist/evm/artifacts/HubPoolTestBase.sol/MockOptimisticOracle.json +1 -1
  27. package/dist/evm/artifacts/HubPoolTestBase.sol/MockStore.json +1 -1
  28. package/dist/evm/artifacts/HyperliquidDepositHandler.sol/HyperliquidDepositHandler.json +1 -1
  29. package/dist/evm/artifacts/Lens_SpokePool.sol/Lens_SpokePool.json +1 -1
  30. package/dist/evm/artifacts/Linea_Adapter.sol/Linea_Adapter.json +1 -1
  31. package/dist/evm/artifacts/Linea_SpokePool.sol/Linea_SpokePool.json +1 -1
  32. package/dist/evm/artifacts/Lisk_Adapter.sol/Lisk_Adapter.json +1 -1
  33. package/dist/evm/artifacts/Lisk_SpokePool.sol/Lisk_SpokePool.json +1 -1
  34. package/dist/evm/artifacts/MockBedrockStandardBridge.sol/MockBedrockCrossDomainMessenger.json +1 -1
  35. package/dist/evm/artifacts/MockBedrockStandardBridge.sol/MockBedrockL1StandardBridge.json +1 -1
  36. package/dist/evm/artifacts/MockBedrockStandardBridge.sol/MockBedrockL2StandardBridge.json +1 -1
  37. package/dist/evm/artifacts/MockCCTP.sol/MockCCTPMessageTransmitter.json +1 -1
  38. package/dist/evm/artifacts/MockCCTP.sol/MockCCTPMessageTransmitterV2.json +1 -0
  39. package/dist/evm/artifacts/MockCCTP.sol/MockCCTPMessenger.json +1 -1
  40. package/dist/evm/artifacts/MockCCTP.sol/MockCCTPMessengerV2.json +1 -1
  41. package/dist/evm/artifacts/MockCCTP.sol/MockCCTPMinter.json +1 -1
  42. package/dist/evm/artifacts/Mode_Adapter.sol/Mode_Adapter.json +1 -1
  43. package/dist/evm/artifacts/OP_Adapter.sol/OP_Adapter.json +1 -1
  44. package/dist/evm/artifacts/OP_SpokePool.sol/OP_SpokePool.json +1 -1
  45. package/dist/evm/artifacts/Ovm_SpokePool.sol/Ovm_SpokePool.json +1 -1
  46. package/dist/evm/artifacts/Ovm_WithdrawalHelper.sol/Ovm_WithdrawalHelper.json +1 -1
  47. package/dist/evm/artifacts/Polygon_Adapter.sol/Polygon_Adapter.json +1 -1
  48. package/dist/evm/artifacts/Polygon_SpokePool.sol/Polygon_SpokePool.json +1 -1
  49. package/dist/evm/artifacts/Solana_Adapter.sol/Solana_Adapter.json +1 -1
  50. package/dist/evm/artifacts/SponsoredCCTPDstPeriphery.sol/SponsoredCCTPDstPeriphery.json +1 -1
  51. package/dist/evm/artifacts/SponsoredCCTPSrcPeriphery.sol/SponsoredCCTPSrcPeriphery.json +1 -1
  52. package/dist/evm/artifacts/Tron_SpokePool.sol/Tron_SpokePool.json +1 -1
  53. package/dist/evm/artifacts/Universal_Adapter.sol/Universal_Adapter.json +1 -1
  54. package/dist/evm/artifacts/Universal_SpokePool.sol/Universal_SpokePool.json +1 -1
  55. package/dist/evm/artifacts/ZkStack_Adapter.sol/ZkStack_Adapter.json +1 -1
  56. package/dist/evm/artifacts/ZkStack_CustomGasToken_Adapter.sol/ZkStack_CustomGasToken_Adapter.json +1 -1
  57. package/dist/evm/artifacts/ZkSync_SpokePool.sol/ZkSync_SpokePool.json +1 -1
  58. package/dist/evm/artifacts/Zora_Adapter.sol/Zora_Adapter.json +1 -1
  59. package/dist/evm/artifacts/eraVM_EIP7702.sol/SimpleContract.json +1 -1
  60. package/dist/evm/artifacts/eraVM_EIP7702.sol/SpokePoolEIP7702Test.json +1 -1
  61. package/dist/evm/artifacts/eraVM_EIP7702.sol/TestableMockSpokePool.json +1 -1
  62. package/dist/src/consts.js +3 -0
  63. package/dist/src/svm/assets/idl/index.d.ts +1 -3
  64. package/dist/src/svm/assets/idl/index.js +1 -5
  65. package/dist/src/svm/assets/idl/sponsored_cctp_src_periphery.json +41 -24
  66. package/dist/src/svm/assets/idl/svm_spoke.json +932 -2513
  67. package/dist/src/svm/assets/index.d.ts +0 -2
  68. package/dist/src/svm/assets/sponsored_cctp_src_periphery.d.ts +41 -24
  69. package/dist/src/svm/assets/svm_spoke.d.ts +929 -2510
  70. package/dist/src/svm/assets/token_messenger_minter_v2.d.ts +18 -18
  71. package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/index.d.ts +0 -1
  72. package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/index.js +0 -1
  73. package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/errors/sponsoredCctpSrcPeriphery.d.ts +24 -12
  74. package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/errors/sponsoredCctpSrcPeriphery.js +30 -12
  75. package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/programs/sponsoredCctpSrcPeriphery.d.ts +4 -5
  76. package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/programs/sponsoredCctpSrcPeriphery.js +4 -8
  77. package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/index.d.ts +1 -0
  78. package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/index.js +1 -0
  79. package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/messageSent.d.ts +21 -0
  80. package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/messageSent.js +30 -0
  81. package/dist/src/svm/clients/SvmSpoke/accounts/fillStatusAccount.d.ts +2 -2
  82. package/dist/src/svm/clients/SvmSpoke/accounts/fillStatusAccount.js +2 -2
  83. package/dist/src/svm/clients/SvmSpoke/accounts/index.d.ts +0 -4
  84. package/dist/src/svm/clients/SvmSpoke/accounts/index.js +0 -4
  85. package/dist/src/svm/clients/SvmSpoke/errors/svmSpoke.d.ts +95 -23
  86. package/dist/src/svm/clients/SvmSpoke/errors/svmSpoke.js +135 -26
  87. package/dist/src/svm/clients/SvmSpoke/instructions/adapterExecuteAcrossV5.d.ts +75 -0
  88. package/dist/src/svm/clients/SvmSpoke/instructions/adapterExecuteAcrossV5.js +144 -0
  89. package/dist/src/svm/clients/SvmSpoke/instructions/closeFillPda.d.ts +16 -8
  90. package/dist/src/svm/clients/SvmSpoke/instructions/closeFillPda.js +3 -3
  91. package/dist/src/svm/clients/SvmSpoke/instructions/executeRelayerRefundLeaf.d.ts +11 -15
  92. package/dist/src/svm/clients/SvmSpoke/instructions/executeRelayerRefundLeaf.js +1 -24
  93. package/dist/src/svm/clients/SvmSpoke/instructions/executeRelayerRefundLeafDeferred.d.ts +11 -15
  94. package/dist/src/svm/clients/SvmSpoke/instructions/executeRelayerRefundLeafDeferred.js +1 -24
  95. package/dist/src/svm/clients/SvmSpoke/instructions/handleReceiveFinalizedMessage.d.ts +75 -0
  96. package/dist/src/svm/clients/SvmSpoke/instructions/{handleReceiveMessage.js → handleReceiveFinalizedMessage.js} +26 -24
  97. package/dist/src/svm/clients/SvmSpoke/instructions/index.d.ts +3 -9
  98. package/dist/src/svm/clients/SvmSpoke/instructions/index.js +3 -9
  99. package/dist/src/svm/clients/SvmSpoke/instructions/withdrawV5FillPayer.d.ts +58 -0
  100. package/dist/src/svm/clients/SvmSpoke/instructions/withdrawV5FillPayer.js +134 -0
  101. package/dist/src/svm/clients/SvmSpoke/programs/svmSpoke.d.ts +26 -48
  102. package/dist/src/svm/clients/SvmSpoke/programs/svmSpoke.js +25 -65
  103. package/dist/src/svm/clients/SvmSpoke/types/acrossDepositInput.d.ts +25 -0
  104. package/dist/src/svm/clients/SvmSpoke/types/acrossDepositInput.js +33 -0
  105. package/dist/src/svm/clients/SvmSpoke/types/acrossDepositJitParams.d.ts +18 -0
  106. package/dist/src/svm/clients/SvmSpoke/types/acrossDepositJitParams.js +30 -0
  107. package/dist/src/svm/clients/SvmSpoke/types/acrossDepositParams.d.ts +43 -0
  108. package/dist/src/svm/clients/SvmSpoke/types/acrossDepositParams.js +48 -0
  109. package/dist/src/svm/clients/SvmSpoke/types/index.d.ts +9 -3
  110. package/dist/src/svm/clients/SvmSpoke/types/index.js +9 -3
  111. package/dist/src/svm/clients/SvmSpoke/types/v5AdapterInput.d.ts +39 -0
  112. package/dist/src/svm/clients/SvmSpoke/types/v5AdapterInput.js +59 -0
  113. package/dist/src/svm/clients/SvmSpoke/types/v5DepositModificationRules.d.ts +17 -0
  114. package/dist/src/svm/clients/SvmSpoke/types/v5DepositModificationRules.js +30 -0
  115. package/dist/src/svm/clients/SvmSpoke/types/v5FillFloatWithdrawn.d.ts +19 -0
  116. package/dist/src/svm/clients/SvmSpoke/types/v5FillFloatWithdrawn.js +28 -0
  117. package/dist/src/svm/clients/SvmSpoke/types/v5FillInput.d.ts +25 -0
  118. package/dist/src/svm/clients/SvmSpoke/types/v5FillInput.js +30 -0
  119. package/dist/src/svm/clients/SvmSpoke/types/v5FillJit.d.ts +22 -0
  120. package/dist/src/svm/clients/SvmSpoke/types/{slowFill.js → v5FillJit.js} +11 -11
  121. package/dist/src/svm/clients/SvmSpoke/types/v5InputAmountMode.d.ts +29 -0
  122. package/dist/src/svm/clients/SvmSpoke/types/v5InputAmountMode.js +38 -0
  123. package/dist/src/svm/clients/index.d.ts +1 -3
  124. package/dist/src/svm/clients/index.js +1 -5
  125. package/dist/src/svm/web3-v1/cctpV2Helpers.d.ts +94 -97
  126. package/dist/src/svm/web3-v1/cctpV2Helpers.js +41 -2
  127. package/dist/src/svm/web3-v1/coders.d.ts +1 -1
  128. package/dist/src/svm/web3-v1/coders.js +4 -4
  129. package/dist/src/svm/web3-v1/constants.d.ts +3 -2
  130. package/dist/src/svm/web3-v1/constants.js +5 -3
  131. package/dist/src/svm/web3-v1/conversionUtils.d.ts +1 -1
  132. package/dist/src/svm/web3-v1/conversionUtils.js +3 -3
  133. package/dist/src/svm/web3-v1/helpers.d.ts +1 -114
  134. package/dist/src/svm/web3-v1/helpers.js +1 -179
  135. package/dist/src/svm/web3-v1/index.d.ts +0 -1
  136. package/dist/src/svm/web3-v1/index.js +0 -1
  137. package/dist/src/svm/web3-v1/instructionParamsUtils.d.ts +11 -26
  138. package/dist/src/svm/web3-v1/instructionParamsUtils.js +5 -90
  139. package/dist/src/svm/web3-v1/programConnectors.d.ts +2 -4
  140. package/dist/src/svm/web3-v1/programConnectors.js +2 -12
  141. package/dist/src/svm/web3-v1/relayHashUtils.d.ts +2 -6
  142. package/dist/src/svm/web3-v1/relayHashUtils.js +5 -66
  143. package/dist/src/svm/web3-v1/solanaProgramUtils.d.ts +1 -1
  144. package/dist/src/svm/web3-v1/solanaProgramUtils.js +7 -7
  145. package/dist/src/svm/web3-v1/transactionUtils.js +3 -3
  146. package/dist/src/svm/web3-v2/solanaProgramUtils.d.ts +1 -1
  147. package/dist/src/svm/web3-v2/solanaProgramUtils.js +4 -4
  148. package/dist/src/types/svm.d.ts +1 -46
  149. package/package.json +17 -6
  150. package/dist/src/svm/assets/idl/message_transmitter.json +0 -1675
  151. package/dist/src/svm/assets/idl/token_messenger_minter.json +0 -2049
  152. package/dist/src/svm/assets/message_transmitter.d.ts +0 -1681
  153. package/dist/src/svm/assets/message_transmitter.js +0 -2
  154. package/dist/src/svm/assets/token_messenger_minter.d.ts +0 -2055
  155. package/dist/src/svm/assets/token_messenger_minter.js +0 -2
  156. package/dist/src/svm/clients/MessageTransmitter/accounts/index.d.ts +0 -10
  157. package/dist/src/svm/clients/MessageTransmitter/accounts/index.js +0 -26
  158. package/dist/src/svm/clients/MessageTransmitter/accounts/messageSent.d.ts +0 -28
  159. package/dist/src/svm/clients/MessageTransmitter/accounts/messageSent.js +0 -64
  160. package/dist/src/svm/clients/MessageTransmitter/accounts/messageTransmitter.d.ts +0 -46
  161. package/dist/src/svm/clients/MessageTransmitter/accounts/messageTransmitter.js +0 -82
  162. package/dist/src/svm/clients/MessageTransmitter/accounts/usedNonces.d.ts +0 -31
  163. package/dist/src/svm/clients/MessageTransmitter/accounts/usedNonces.js +0 -70
  164. package/dist/src/svm/clients/MessageTransmitter/errors/index.d.ts +0 -8
  165. package/dist/src/svm/clients/MessageTransmitter/errors/index.js +0 -24
  166. package/dist/src/svm/clients/MessageTransmitter/errors/messageTransmitter.d.ts +0 -83
  167. package/dist/src/svm/clients/MessageTransmitter/errors/messageTransmitter.js +0 -124
  168. package/dist/src/svm/clients/MessageTransmitter/index.d.ts +0 -12
  169. package/dist/src/svm/clients/MessageTransmitter/index.js +0 -28
  170. package/dist/src/svm/clients/MessageTransmitter/instructions/acceptOwnership.d.ts +0 -45
  171. package/dist/src/svm/clients/MessageTransmitter/instructions/acceptOwnership.js +0 -85
  172. package/dist/src/svm/clients/MessageTransmitter/instructions/disableAttester.d.ts +0 -55
  173. package/dist/src/svm/clients/MessageTransmitter/instructions/disableAttester.js +0 -105
  174. package/dist/src/svm/clients/MessageTransmitter/instructions/enableAttester.d.ts +0 -55
  175. package/dist/src/svm/clients/MessageTransmitter/instructions/enableAttester.js +0 -105
  176. package/dist/src/svm/clients/MessageTransmitter/instructions/getNoncePda.d.ts +0 -43
  177. package/dist/src/svm/clients/MessageTransmitter/instructions/getNoncePda.js +0 -82
  178. package/dist/src/svm/clients/MessageTransmitter/instructions/index.d.ts +0 -25
  179. package/dist/src/svm/clients/MessageTransmitter/instructions/index.js +0 -41
  180. package/dist/src/svm/clients/MessageTransmitter/instructions/initialize.d.ts +0 -70
  181. package/dist/src/svm/clients/MessageTransmitter/instructions/initialize.js +0 -123
  182. package/dist/src/svm/clients/MessageTransmitter/instructions/isNonceUsed.d.ts +0 -42
  183. package/dist/src/svm/clients/MessageTransmitter/instructions/isNonceUsed.js +0 -77
  184. package/dist/src/svm/clients/MessageTransmitter/instructions/pause.d.ts +0 -45
  185. package/dist/src/svm/clients/MessageTransmitter/instructions/pause.js +0 -85
  186. package/dist/src/svm/clients/MessageTransmitter/instructions/receiveMessage.d.ts +0 -67
  187. package/dist/src/svm/clients/MessageTransmitter/instructions/receiveMessage.js +0 -113
  188. package/dist/src/svm/clients/MessageTransmitter/instructions/reclaimEventAccount.d.ts +0 -48
  189. package/dist/src/svm/clients/MessageTransmitter/instructions/reclaimEventAccount.js +0 -94
  190. package/dist/src/svm/clients/MessageTransmitter/instructions/replaceMessage.d.ts +0 -64
  191. package/dist/src/svm/clients/MessageTransmitter/instructions/replaceMessage.js +0 -132
  192. package/dist/src/svm/clients/MessageTransmitter/instructions/sendMessage.d.ts +0 -61
  193. package/dist/src/svm/clients/MessageTransmitter/instructions/sendMessage.js +0 -112
  194. package/dist/src/svm/clients/MessageTransmitter/instructions/sendMessageWithCaller.d.ts +0 -64
  195. package/dist/src/svm/clients/MessageTransmitter/instructions/sendMessageWithCaller.js +0 -117
  196. package/dist/src/svm/clients/MessageTransmitter/instructions/setMaxMessageBodySize.d.ts +0 -49
  197. package/dist/src/svm/clients/MessageTransmitter/instructions/setMaxMessageBodySize.js +0 -94
  198. package/dist/src/svm/clients/MessageTransmitter/instructions/setSignatureThreshold.d.ts +0 -49
  199. package/dist/src/svm/clients/MessageTransmitter/instructions/setSignatureThreshold.js +0 -97
  200. package/dist/src/svm/clients/MessageTransmitter/instructions/transferOwnership.d.ts +0 -49
  201. package/dist/src/svm/clients/MessageTransmitter/instructions/transferOwnership.js +0 -91
  202. package/dist/src/svm/clients/MessageTransmitter/instructions/unpause.d.ts +0 -45
  203. package/dist/src/svm/clients/MessageTransmitter/instructions/unpause.js +0 -85
  204. package/dist/src/svm/clients/MessageTransmitter/instructions/updateAttesterManager.d.ts +0 -49
  205. package/dist/src/svm/clients/MessageTransmitter/instructions/updateAttesterManager.js +0 -94
  206. package/dist/src/svm/clients/MessageTransmitter/instructions/updatePauser.d.ts +0 -49
  207. package/dist/src/svm/clients/MessageTransmitter/instructions/updatePauser.js +0 -91
  208. package/dist/src/svm/clients/MessageTransmitter/programs/index.d.ts +0 -8
  209. package/dist/src/svm/clients/MessageTransmitter/programs/index.js +0 -24
  210. package/dist/src/svm/clients/MessageTransmitter/programs/messageTransmitter.d.ts +0 -78
  211. package/dist/src/svm/clients/MessageTransmitter/programs/messageTransmitter.js +0 -112
  212. package/dist/src/svm/clients/MessageTransmitter/shared/index.d.ts +0 -49
  213. package/dist/src/svm/clients/MessageTransmitter/shared/index.js +0 -94
  214. package/dist/src/svm/clients/MessageTransmitter/types/attesterDisabled.d.ts +0 -15
  215. package/dist/src/svm/clients/MessageTransmitter/types/attesterDisabled.js +0 -22
  216. package/dist/src/svm/clients/MessageTransmitter/types/attesterEnabled.d.ts +0 -15
  217. package/dist/src/svm/clients/MessageTransmitter/types/attesterEnabled.js +0 -22
  218. package/dist/src/svm/clients/MessageTransmitter/types/attesterManagerUpdated.d.ts +0 -16
  219. package/dist/src/svm/clients/MessageTransmitter/types/attesterManagerUpdated.js +0 -28
  220. package/dist/src/svm/clients/MessageTransmitter/types/handleReceiveMessageParams.d.ts +0 -18
  221. package/dist/src/svm/clients/MessageTransmitter/types/handleReceiveMessageParams.js +0 -32
  222. package/dist/src/svm/clients/MessageTransmitter/types/index.d.ts +0 -20
  223. package/dist/src/svm/clients/MessageTransmitter/types/index.js +0 -36
  224. package/dist/src/svm/clients/MessageTransmitter/types/mathError.d.ts +0 -17
  225. package/dist/src/svm/clients/MessageTransmitter/types/mathError.js +0 -29
  226. package/dist/src/svm/clients/MessageTransmitter/types/maxMessageBodySizeUpdated.d.ts +0 -17
  227. package/dist/src/svm/clients/MessageTransmitter/types/maxMessageBodySizeUpdated.js +0 -22
  228. package/dist/src/svm/clients/MessageTransmitter/types/messageReceived.d.ts +0 -25
  229. package/dist/src/svm/clients/MessageTransmitter/types/messageReceived.js +0 -34
  230. package/dist/src/svm/clients/MessageTransmitter/types/ownershipTransferStarted.d.ts +0 -16
  231. package/dist/src/svm/clients/MessageTransmitter/types/ownershipTransferStarted.js +0 -28
  232. package/dist/src/svm/clients/MessageTransmitter/types/ownershipTransferred.d.ts +0 -16
  233. package/dist/src/svm/clients/MessageTransmitter/types/ownershipTransferred.js +0 -28
  234. package/dist/src/svm/clients/MessageTransmitter/types/pause.d.ts +0 -13
  235. package/dist/src/svm/clients/MessageTransmitter/types/pause.js +0 -22
  236. package/dist/src/svm/clients/MessageTransmitter/types/pauserChanged.d.ts +0 -15
  237. package/dist/src/svm/clients/MessageTransmitter/types/pauserChanged.js +0 -22
  238. package/dist/src/svm/clients/MessageTransmitter/types/signatureThresholdUpdated.d.ts +0 -16
  239. package/dist/src/svm/clients/MessageTransmitter/types/signatureThresholdUpdated.js +0 -28
  240. package/dist/src/svm/clients/MessageTransmitter/types/unpause.d.ts +0 -13
  241. package/dist/src/svm/clients/MessageTransmitter/types/unpause.js +0 -22
  242. package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/messageSent.d.ts +0 -30
  243. package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/messageSent.js +0 -66
  244. package/dist/src/svm/clients/SvmSpoke/accounts/executeSlowRelayLeafParams.d.ts +0 -31
  245. package/dist/src/svm/clients/SvmSpoke/accounts/executeSlowRelayLeafParams.js +0 -70
  246. package/dist/src/svm/clients/SvmSpoke/accounts/fillRelayParams.d.ts +0 -31
  247. package/dist/src/svm/clients/SvmSpoke/accounts/fillRelayParams.js +0 -67
  248. package/dist/src/svm/clients/SvmSpoke/accounts/requestSlowFillParams.d.ts +0 -27
  249. package/dist/src/svm/clients/SvmSpoke/accounts/requestSlowFillParams.js +0 -66
  250. package/dist/src/svm/clients/SvmSpoke/accounts/transferLiability.d.ts +0 -27
  251. package/dist/src/svm/clients/SvmSpoke/accounts/transferLiability.js +0 -66
  252. package/dist/src/svm/clients/SvmSpoke/instructions/bridgeTokensToHubPool.d.ts +0 -123
  253. package/dist/src/svm/clients/SvmSpoke/instructions/bridgeTokensToHubPool.js +0 -313
  254. package/dist/src/svm/clients/SvmSpoke/instructions/deposit.d.ts +0 -131
  255. package/dist/src/svm/clients/SvmSpoke/instructions/deposit.js +0 -241
  256. package/dist/src/svm/clients/SvmSpoke/instructions/depositNow.d.ts +0 -127
  257. package/dist/src/svm/clients/SvmSpoke/instructions/depositNow.js +0 -239
  258. package/dist/src/svm/clients/SvmSpoke/instructions/executeSlowRelayLeaf.d.ts +0 -104
  259. package/dist/src/svm/clients/SvmSpoke/instructions/executeSlowRelayLeaf.js +0 -259
  260. package/dist/src/svm/clients/SvmSpoke/instructions/fillRelay.d.ts +0 -108
  261. package/dist/src/svm/clients/SvmSpoke/instructions/fillRelay.js +0 -265
  262. package/dist/src/svm/clients/SvmSpoke/instructions/getUnsafeDepositId.d.ts +0 -39
  263. package/dist/src/svm/clients/SvmSpoke/instructions/getUnsafeDepositId.js +0 -63
  264. package/dist/src/svm/clients/SvmSpoke/instructions/handleReceiveMessage.d.ts +0 -71
  265. package/dist/src/svm/clients/SvmSpoke/instructions/requestSlowFill.d.ts +0 -76
  266. package/dist/src/svm/clients/SvmSpoke/instructions/requestSlowFill.js +0 -187
  267. package/dist/src/svm/clients/SvmSpoke/instructions/unsafeDeposit.d.ts +0 -135
  268. package/dist/src/svm/clients/SvmSpoke/instructions/unsafeDeposit.js +0 -243
  269. package/dist/src/svm/clients/SvmSpoke/types/bridgedToHubPool.d.ts +0 -19
  270. package/dist/src/svm/clients/SvmSpoke/types/bridgedToHubPool.js +0 -28
  271. package/dist/src/svm/clients/SvmSpoke/types/slowFill.d.ts +0 -22
  272. package/dist/src/svm/clients/SvmSpoke/types/tokensBridged.d.ts +0 -25
  273. package/dist/src/svm/clients/SvmSpoke/types/tokensBridged.js +0 -34
  274. package/dist/src/svm/clients/TokenMessengerMinter/accounts/index.d.ts +0 -12
  275. package/dist/src/svm/clients/TokenMessengerMinter/accounts/index.js +0 -28
  276. package/dist/src/svm/clients/TokenMessengerMinter/accounts/localToken.d.ts +0 -43
  277. package/dist/src/svm/clients/TokenMessengerMinter/accounts/localToken.js +0 -82
  278. package/dist/src/svm/clients/TokenMessengerMinter/accounts/remoteTokenMessenger.d.ts +0 -29
  279. package/dist/src/svm/clients/TokenMessengerMinter/accounts/remoteTokenMessenger.js +0 -71
  280. package/dist/src/svm/clients/TokenMessengerMinter/accounts/tokenMessenger.d.ts +0 -35
  281. package/dist/src/svm/clients/TokenMessengerMinter/accounts/tokenMessenger.js +0 -74
  282. package/dist/src/svm/clients/TokenMessengerMinter/accounts/tokenMinter.d.ts +0 -33
  283. package/dist/src/svm/clients/TokenMessengerMinter/accounts/tokenMinter.js +0 -72
  284. package/dist/src/svm/clients/TokenMessengerMinter/accounts/tokenPair.d.ts +0 -33
  285. package/dist/src/svm/clients/TokenMessengerMinter/accounts/tokenPair.js +0 -72
  286. package/dist/src/svm/clients/TokenMessengerMinter/errors/index.d.ts +0 -8
  287. package/dist/src/svm/clients/TokenMessengerMinter/errors/index.js +0 -24
  288. package/dist/src/svm/clients/TokenMessengerMinter/errors/tokenMessengerMinter.d.ts +0 -45
  289. package/dist/src/svm/clients/TokenMessengerMinter/errors/tokenMessengerMinter.js +0 -67
  290. package/dist/src/svm/clients/TokenMessengerMinter/index.d.ts +0 -12
  291. package/dist/src/svm/clients/TokenMessengerMinter/index.js +0 -28
  292. package/dist/src/svm/clients/TokenMessengerMinter/instructions/acceptOwnership.d.ts +0 -45
  293. package/dist/src/svm/clients/TokenMessengerMinter/instructions/acceptOwnership.js +0 -82
  294. package/dist/src/svm/clients/TokenMessengerMinter/instructions/addLocalToken.d.ts +0 -63
  295. package/dist/src/svm/clients/TokenMessengerMinter/instructions/addLocalToken.js +0 -115
  296. package/dist/src/svm/clients/TokenMessengerMinter/instructions/addRemoteTokenMessenger.d.ts +0 -61
  297. package/dist/src/svm/clients/TokenMessengerMinter/instructions/addRemoteTokenMessenger.js +0 -110
  298. package/dist/src/svm/clients/TokenMessengerMinter/instructions/burnTokenCustody.d.ts +0 -64
  299. package/dist/src/svm/clients/TokenMessengerMinter/instructions/burnTokenCustody.js +0 -117
  300. package/dist/src/svm/clients/TokenMessengerMinter/instructions/depositForBurn.d.ts +0 -94
  301. package/dist/src/svm/clients/TokenMessengerMinter/instructions/depositForBurn.js +0 -161
  302. package/dist/src/svm/clients/TokenMessengerMinter/instructions/depositForBurnWithCaller.d.ts +0 -97
  303. package/dist/src/svm/clients/TokenMessengerMinter/instructions/depositForBurnWithCaller.js +0 -166
  304. package/dist/src/svm/clients/TokenMessengerMinter/instructions/handleReceiveMessage.d.ts +0 -79
  305. package/dist/src/svm/clients/TokenMessengerMinter/instructions/handleReceiveMessage.js +0 -132
  306. package/dist/src/svm/clients/TokenMessengerMinter/instructions/index.d.ts +0 -26
  307. package/dist/src/svm/clients/TokenMessengerMinter/instructions/index.js +0 -42
  308. package/dist/src/svm/clients/TokenMessengerMinter/instructions/initialize.d.ts +0 -73
  309. package/dist/src/svm/clients/TokenMessengerMinter/instructions/initialize.js +0 -124
  310. package/dist/src/svm/clients/TokenMessengerMinter/instructions/linkTokenPair.d.ts +0 -64
  311. package/dist/src/svm/clients/TokenMessengerMinter/instructions/linkTokenPair.js +0 -109
  312. package/dist/src/svm/clients/TokenMessengerMinter/instructions/pause.d.ts +0 -45
  313. package/dist/src/svm/clients/TokenMessengerMinter/instructions/pause.js +0 -82
  314. package/dist/src/svm/clients/TokenMessengerMinter/instructions/removeLocalToken.d.ts +0 -57
  315. package/dist/src/svm/clients/TokenMessengerMinter/instructions/removeLocalToken.js +0 -105
  316. package/dist/src/svm/clients/TokenMessengerMinter/instructions/removeRemoteTokenMessenger.d.ts +0 -51
  317. package/dist/src/svm/clients/TokenMessengerMinter/instructions/removeRemoteTokenMessenger.js +0 -94
  318. package/dist/src/svm/clients/TokenMessengerMinter/instructions/replaceDepositForBurn.d.ts +0 -79
  319. package/dist/src/svm/clients/TokenMessengerMinter/instructions/replaceDepositForBurn.js +0 -150
  320. package/dist/src/svm/clients/TokenMessengerMinter/instructions/setMaxBurnAmountPerMessage.d.ts +0 -52
  321. package/dist/src/svm/clients/TokenMessengerMinter/instructions/setMaxBurnAmountPerMessage.js +0 -97
  322. package/dist/src/svm/clients/TokenMessengerMinter/instructions/setTokenController.d.ts +0 -52
  323. package/dist/src/svm/clients/TokenMessengerMinter/instructions/setTokenController.js +0 -91
  324. package/dist/src/svm/clients/TokenMessengerMinter/instructions/transferOwnership.d.ts +0 -49
  325. package/dist/src/svm/clients/TokenMessengerMinter/instructions/transferOwnership.js +0 -88
  326. package/dist/src/svm/clients/TokenMessengerMinter/instructions/unlinkTokenPair.d.ts +0 -51
  327. package/dist/src/svm/clients/TokenMessengerMinter/instructions/unlinkTokenPair.js +0 -91
  328. package/dist/src/svm/clients/TokenMessengerMinter/instructions/unpause.d.ts +0 -45
  329. package/dist/src/svm/clients/TokenMessengerMinter/instructions/unpause.js +0 -82
  330. package/dist/src/svm/clients/TokenMessengerMinter/instructions/updatePauser.d.ts +0 -52
  331. package/dist/src/svm/clients/TokenMessengerMinter/instructions/updatePauser.js +0 -91
  332. package/dist/src/svm/clients/TokenMessengerMinter/programs/index.d.ts +0 -8
  333. package/dist/src/svm/clients/TokenMessengerMinter/programs/index.js +0 -24
  334. package/dist/src/svm/clients/TokenMessengerMinter/programs/tokenMessengerMinter.d.ts +0 -83
  335. package/dist/src/svm/clients/TokenMessengerMinter/programs/tokenMessengerMinter.js +0 -124
  336. package/dist/src/svm/clients/TokenMessengerMinter/shared/index.d.ts +0 -49
  337. package/dist/src/svm/clients/TokenMessengerMinter/shared/index.js +0 -94
  338. package/dist/src/svm/clients/TokenMessengerMinter/types/depositForBurn.d.ts +0 -31
  339. package/dist/src/svm/clients/TokenMessengerMinter/types/depositForBurn.js +0 -40
  340. package/dist/src/svm/clients/TokenMessengerMinter/types/index.d.ts +0 -24
  341. package/dist/src/svm/clients/TokenMessengerMinter/types/index.js +0 -40
  342. package/dist/src/svm/clients/TokenMessengerMinter/types/localTokenAdded.d.ts +0 -16
  343. package/dist/src/svm/clients/TokenMessengerMinter/types/localTokenAdded.js +0 -28
  344. package/dist/src/svm/clients/TokenMessengerMinter/types/localTokenRemoved.d.ts +0 -16
  345. package/dist/src/svm/clients/TokenMessengerMinter/types/localTokenRemoved.js +0 -28
  346. package/dist/src/svm/clients/TokenMessengerMinter/types/mintAndWithdraw.d.ts +0 -21
  347. package/dist/src/svm/clients/TokenMessengerMinter/types/mintAndWithdraw.js +0 -30
  348. package/dist/src/svm/clients/TokenMessengerMinter/types/ownershipTransferStarted.d.ts +0 -16
  349. package/dist/src/svm/clients/TokenMessengerMinter/types/ownershipTransferStarted.js +0 -28
  350. package/dist/src/svm/clients/TokenMessengerMinter/types/ownershipTransferred.d.ts +0 -16
  351. package/dist/src/svm/clients/TokenMessengerMinter/types/ownershipTransferred.js +0 -28
  352. package/dist/src/svm/clients/TokenMessengerMinter/types/pause.d.ts +0 -13
  353. package/dist/src/svm/clients/TokenMessengerMinter/types/pause.js +0 -22
  354. package/dist/src/svm/clients/TokenMessengerMinter/types/pauserChanged.d.ts +0 -15
  355. package/dist/src/svm/clients/TokenMessengerMinter/types/pauserChanged.js +0 -22
  356. package/dist/src/svm/clients/TokenMessengerMinter/types/remoteTokenMessengerAdded.d.ts +0 -16
  357. package/dist/src/svm/clients/TokenMessengerMinter/types/remoteTokenMessengerAdded.js +0 -28
  358. package/dist/src/svm/clients/TokenMessengerMinter/types/remoteTokenMessengerRemoved.d.ts +0 -16
  359. package/dist/src/svm/clients/TokenMessengerMinter/types/remoteTokenMessengerRemoved.js +0 -28
  360. package/dist/src/svm/clients/TokenMessengerMinter/types/setBurnLimitPerMessage.d.ts +0 -19
  361. package/dist/src/svm/clients/TokenMessengerMinter/types/setBurnLimitPerMessage.js +0 -28
  362. package/dist/src/svm/clients/TokenMessengerMinter/types/setTokenController.d.ts +0 -15
  363. package/dist/src/svm/clients/TokenMessengerMinter/types/setTokenController.js +0 -22
  364. package/dist/src/svm/clients/TokenMessengerMinter/types/tokenCustodyBurned.d.ts +0 -19
  365. package/dist/src/svm/clients/TokenMessengerMinter/types/tokenCustodyBurned.js +0 -28
  366. package/dist/src/svm/clients/TokenMessengerMinter/types/tokenMinterError.d.ts +0 -23
  367. package/dist/src/svm/clients/TokenMessengerMinter/types/tokenMinterError.js +0 -35
  368. package/dist/src/svm/clients/TokenMessengerMinter/types/tokenPairLinked.d.ts +0 -17
  369. package/dist/src/svm/clients/TokenMessengerMinter/types/tokenPairLinked.js +0 -30
  370. package/dist/src/svm/clients/TokenMessengerMinter/types/tokenPairUnlinked.d.ts +0 -17
  371. package/dist/src/svm/clients/TokenMessengerMinter/types/tokenPairUnlinked.js +0 -30
  372. package/dist/src/svm/clients/TokenMessengerMinter/types/unpause.d.ts +0 -13
  373. package/dist/src/svm/clients/TokenMessengerMinter/types/unpause.js +0 -22
  374. package/dist/src/svm/web3-v1/cctpHelpers.d.ts +0 -65
  375. package/dist/src/svm/web3-v1/cctpHelpers.js +0 -148
  376. package/dist/target/types/svm_spoke.d.ts +0 -5517
  377. package/dist/target/types/svm_spoke.js +0 -2
@@ -14,61 +14,40 @@ export type SvmSpoke = {
14
14
  };
15
15
  "instructions": [
16
16
  {
17
- "name": "bridgeTokensToHubPool";
17
+ "name": "adapterExecuteAcrossV5";
18
18
  "docs": [
19
- "Bridges tokens to the Hub Pool.",
20
- "",
21
- "This function initiates the process of sending tokens from the vault to the Hub Pool based on the outstanding",
22
- "token liability this Spoke Pool has accrued. Enables the caller to choose a custom amount to work around CCTP",
23
- "bridging limits. enforces that amount is less than or equal to liability. On execution decrements liability.",
19
+ "Executes one Gateway-authenticated Across V5 source-deposit or destination-fill adapter branch.",
24
20
  "",
25
21
  "### Required Accounts:",
26
- "- signer (Signer): The account that authorizes the bridge operation.",
27
- "- payer (Signer): The account responsible for paying the transaction fees.",
28
- "- mint (InterfaceAccount): The mint account for the token being bridged.",
29
- "- state (Account): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet.",
30
- "- transfer_liability (Account): Account tracking the pending amount to be sent to the Hub Pool. Incremented on",
31
- "relayRootBundle() and decremented on when this function is called. Seed: [\"transfer_liability\",mint].",
32
- "- vault (InterfaceAccount): The ATA for the token being bridged. Authority must be the state.",
33
- "- token_messenger_minter_sender_authority (UncheckedAccount): Authority for the token messenger minter.",
34
- "- message_transmitter (UncheckedAccount): Account for the message transmitter.",
35
- "- token_messenger (UncheckedAccount): Account for the token messenger.",
36
- "- remote_token_messenger (UncheckedAccount): Account for the remote token messenger.",
37
- "- token_minter (UncheckedAccount): Account for the token minter.",
38
- "- local_token (UncheckedAccount): Account for the local token.",
39
- "- cctp_event_authority (UncheckedAccount): Authority for CCTP events.",
40
- "- message_sent_event_data (Signer): Account for message sent event data.",
41
- "- message_transmitter_program (Program): Program for the message transmitter.",
42
- "- token_messenger_minter_program (Program): Program for the token messenger minter.",
43
- "- token_program (Interface): The token program.",
44
- "- system_program (Program): The system program.",
22
+ "- dispatch_authority (Signer): Gateway PDA derived from [\"dispatch_authority\", svm_spoke::ID].",
23
+ "- state: Spoke state PDA derived from [\"state\", state.seed], where `state.seed` is 0 on mainnet.",
24
+ "- event_authority: Anchor event CPI authority derived from [\"__event_authority\"].",
25
+ "- program: The SVM Spoke program.",
26
+ "- remaining accounts: Branch-specific mint and token-program accounts plus writable canonical token accounts.",
27
+ "Deposit mode also requires the SpokePool vault and [\"v5_deposit_delegate\"]. Fill mode requires the",
28
+ "submitter-scoped [\"v5_fill_payer\"], relay-scoped fill-status PDA, System Program, recipient ATA, and",
29
+ "[\"v5_fill_delegate\"], including when the recipient ATA is the Gateway vault itself. Account order is",
30
+ "unrestricted because each account is resolved by its authenticated expected key.",
45
31
  "",
46
32
  "### Parameters:",
47
- "- amount: The amount of tokens to bridge to the Hub Pool."
33
+ "- ctx_values: Gateway-attested step ID, path ID, and submitter.",
34
+ "- input: Strictly encoded, versioned `DepositV1 | FillV1` committed input.",
35
+ "- jit_data: Source modifications decoded only when the committed input enables them, or destination",
36
+ "relay/repayment data."
48
37
  ];
49
38
  "discriminator": [
50
- 1,
51
- 83,
52
- 255,
53
- 59,
54
- 232,
55
- 55,
56
- 64,
57
- 216
39
+ 23,
40
+ 161,
41
+ 69,
42
+ 148,
43
+ 150,
44
+ 128,
45
+ 173,
46
+ 220
58
47
  ];
59
48
  "accounts": [
60
49
  {
61
- "name": "signer";
62
- "signer": true;
63
- },
64
- {
65
- "name": "payer";
66
- "writable": true;
67
- "signer": true;
68
- },
69
- {
70
- "name": "mint";
71
- "writable": true;
50
+ "name": "dispatchAuthority";
72
51
  },
73
52
  {
74
53
  "name": "state";
@@ -92,141 +71,6 @@ export type SvmSpoke = {
92
71
  ];
93
72
  };
94
73
  },
95
- {
96
- "name": "transferLiability";
97
- "writable": true;
98
- "pda": {
99
- "seeds": [
100
- {
101
- "kind": "const";
102
- "value": [
103
- 116,
104
- 114,
105
- 97,
106
- 110,
107
- 115,
108
- 102,
109
- 101,
110
- 114,
111
- 95,
112
- 108,
113
- 105,
114
- 97,
115
- 98,
116
- 105,
117
- 108,
118
- 105,
119
- 116,
120
- 121
121
- ];
122
- },
123
- {
124
- "kind": "account";
125
- "path": "mint";
126
- }
127
- ];
128
- };
129
- },
130
- {
131
- "name": "vault";
132
- "writable": true;
133
- "pda": {
134
- "seeds": [
135
- {
136
- "kind": "account";
137
- "path": "state";
138
- },
139
- {
140
- "kind": "account";
141
- "path": "tokenProgram";
142
- },
143
- {
144
- "kind": "account";
145
- "path": "mint";
146
- }
147
- ];
148
- "program": {
149
- "kind": "const";
150
- "value": [
151
- 140,
152
- 151,
153
- 37,
154
- 143,
155
- 78,
156
- 36,
157
- 137,
158
- 241,
159
- 187,
160
- 61,
161
- 16,
162
- 41,
163
- 20,
164
- 142,
165
- 13,
166
- 131,
167
- 11,
168
- 90,
169
- 19,
170
- 153,
171
- 218,
172
- 255,
173
- 16,
174
- 132,
175
- 4,
176
- 142,
177
- 123,
178
- 216,
179
- 219,
180
- 233,
181
- 248,
182
- 89
183
- ];
184
- };
185
- };
186
- },
187
- {
188
- "name": "tokenMessengerMinterSenderAuthority";
189
- },
190
- {
191
- "name": "messageTransmitter";
192
- "writable": true;
193
- },
194
- {
195
- "name": "tokenMessenger";
196
- },
197
- {
198
- "name": "remoteTokenMessenger";
199
- },
200
- {
201
- "name": "tokenMinter";
202
- },
203
- {
204
- "name": "localToken";
205
- "writable": true;
206
- },
207
- {
208
- "name": "cctpEventAuthority";
209
- },
210
- {
211
- "name": "messageSentEventData";
212
- "writable": true;
213
- "signer": true;
214
- },
215
- {
216
- "name": "messageTransmitterProgram";
217
- "address": "CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd";
218
- },
219
- {
220
- "name": "tokenMessengerMinterProgram";
221
- "address": "CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3";
222
- },
223
- {
224
- "name": "tokenProgram";
225
- },
226
- {
227
- "name": "systemProgram";
228
- "address": "11111111111111111111111111111111";
229
- },
230
74
  {
231
75
  "name": "eventAuthority";
232
76
  "pda": {
@@ -262,8 +106,20 @@ export type SvmSpoke = {
262
106
  ];
263
107
  "args": [
264
108
  {
265
- "name": "amount";
266
- "type": "u64";
109
+ "name": "ctxValues";
110
+ "type": {
111
+ "defined": {
112
+ "name": "gatewayContextV1";
113
+ };
114
+ };
115
+ },
116
+ {
117
+ "name": "input";
118
+ "type": "bytes";
119
+ },
120
+ {
121
+ "name": "jitData";
122
+ "type": "bytes";
267
123
  }
268
124
  ];
269
125
  },
@@ -544,15 +400,16 @@ export type SvmSpoke = {
544
400
  {
545
401
  "name": "closeFillPda";
546
402
  "docs": [
547
- "Closes the FillStatusAccount PDA to reclaim relayer rent.",
403
+ "Closes the FillStatusAccount PDA to reclaim rent.",
548
404
  "",
549
405
  "This function is used to close the FillStatusAccount associated with a specific relay hash, effectively marking",
550
- "the end of its lifecycle. This can only be done once the fill deadline has passed. Relayers should do this for",
551
- "all fills once they expire to reclaim their rent.",
406
+ "the end of its lifecycle. This can only be done once the fill deadline has passed. Anyone can trigger closure,",
407
+ "but rent is always returned to the recorded rent recipient: the V5 payer PDA, historical relayer, or",
408
+ "slow-fill requester.",
552
409
  "",
553
410
  "### Required Accounts:",
554
- "- signer (Signer): The account that authorizes the closure. Must be the relayer in the fill_status PDA.",
555
- "- state (Writable): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet.",
411
+ "- rent_recipient (Writable): The recorded rent recipient; no signature is required.",
412
+ "- state (Readonly): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet.",
556
413
  "- fill_status (Writable): The FillStatusAccount PDA to be closed."
557
414
  ];
558
415
  "discriminator": [
@@ -567,9 +424,12 @@ export type SvmSpoke = {
567
424
  ];
568
425
  "accounts": [
569
426
  {
570
- "name": "signer";
427
+ "name": "rentRecipient";
428
+ "docs": [
429
+ "For V5 fills, supply the submitter's `[\"v5_fill_payer\", submitter]` PDA recorded in",
430
+ "`fill_status.rent_recipient`; legacy accounts retain the relayer or slow-fill requester address."
431
+ ];
571
432
  "writable": true;
572
- "signer": true;
573
433
  },
574
434
  {
575
435
  "name": "state";
@@ -716,76 +576,43 @@ export type SvmSpoke = {
716
576
  "args": [];
717
577
  },
718
578
  {
719
- "name": "deposit";
579
+ "name": "emergencyDeleteRootBundle";
720
580
  "docs": [
721
- "Request to bridge input_token to a target chain and receive output_token.",
722
- "",
723
- "The fee paid to relayers and the system is captured in the spread between the input and output amounts,",
724
- "denominated in the input token. A relayer on the destination chain will send `output_amount` of `output_token`",
725
- "to the recipient and receive `input_token` on a repayment chain of their choice. The fee accounts for:",
726
- "destination transaction costs, relayer's opportunity cost of capital while waiting for a refund during the",
727
- "optimistic challenge window in the HubPool, and the system fee charged to the relayer.",
581
+ "Deletes a root bundle in case of emergencies where bad bundle has reached the Spoke. Only callable by the owner.",
728
582
  "",
729
- "On the destination chain, a unique hash of the deposit data is used to identify this deposit. Modifying any",
730
- "parameters will result in a different hash, creating a separate deposit. The hash is computed using all parameters",
731
- "of this function along with the chain's `chainId()`. Relayers are refunded only for deposits with hashes that",
732
- "exactly match those emitted by this contract.",
583
+ "This function will close the PDA for the associated `root_bundle_id`.",
584
+ "Note: Using this function does not decrement `state.root_bundle_id`.",
733
585
  "",
734
586
  "### Required Accounts:",
735
- "- signer (Signer): The account that authorizes the deposit.",
587
+ "- signer (Signer): The account that must be the owner to authorize the deletion.",
588
+ "- closer (SystemAccount): The account that will receive the lamports from closing the root_bundle account.",
736
589
  "- state (Writable): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet.",
737
- "- depositor_token_account (Writable): The depositor's ATA for the input token.",
738
- "- vault (Writable): Programs ATA for the associated input token. This is where the depositor's assets are sent.",
739
- "Authority must be the state.",
740
- "- mint (Account): The mint account for the input token.",
741
- "- token_program (Interface): The token program.",
742
- "- delegate (Account): The account used to delegate the input amount of the input token.",
590
+ "- root_bundle (Writable): The root bundle PDA to be closed. Seed: [\"root_bundle\",state.seed,root_bundle_id].",
743
591
  "",
744
- "### Parameters",
745
- "- depositor: The account credited with the deposit. Can be different from the signer.",
746
- "- recipient: The account receiving funds on the destination chain. Depending on the output chain can be an ETH",
747
- "address or a contract address or any other address type encoded as a bytes32 field.",
748
- "- input_token: The token pulled from the caller's account and locked into this program's vault on deposit.",
749
- "- output_token: The token that the relayer will send to the recipient on the destination chain.",
750
- "- input_amount: The amount of input tokens to pull from the caller's account and lock into the vault. This",
751
- "amount will be sent to the relayer on their repayment chain of choice as a refund following an optimistic",
752
- "challenge window in the HubPool, less a system fee.",
753
- "- output_amount: The amount of output tokens that the relayer will send to the recipient on the destination.",
754
- "This is big-endian encoded as a 32-byte array to match its underlying byte representation on EVM side.",
755
- "- destination_chain_id: The destination chain identifier where the fill should be made.",
756
- "- exclusive_relayer: The relayer that will be exclusively allowed to fill this deposit before the exclusivity",
757
- "deadline timestamp. This must be a valid, non-zero address if the exclusivity deadline is greater than the",
758
- "current block timestamp.",
759
- "- quote_timestamp: The HubPool timestamp that is used to determine the system fee paid by the depositor. This",
760
- "must be set to some time between [currentTime - depositQuoteTimeBuffer, currentTime].",
761
- "- fill_deadline: The deadline for the relayer to fill the deposit. After this destination chain timestamp, the",
762
- "fill will revert on the destination chain. Must be set before currentTime + fillDeadlineBuffer.",
763
- "- exclusivity_parameter: Sets the exclusivity deadline timestamp for the exclusiveRelayer to fill the deposit.",
764
- "1. If 0, no exclusivity period.",
765
- "2. If less than MAX_EXCLUSIVITY_PERIOD_SECONDS, adds this value to the current block timestamp.",
766
- "3. Otherwise, uses this value as the exclusivity deadline timestamp.",
767
- "- message: The message to send to the recipient on the destination chain if the recipient is a contract.",
768
- "If not empty, the recipient contract must implement handleV3AcrossMessage() or the fill will revert."
592
+ "### Parameters:",
593
+ "- root_bundle_id: Index of the root bundle that needs to be deleted."
769
594
  ];
770
595
  "discriminator": [
771
- 242,
772
- 35,
773
- 198,
774
- 137,
775
- 82,
776
- 225,
777
- 242,
778
- 182
596
+ 226,
597
+ 158,
598
+ 1,
599
+ 74,
600
+ 84,
601
+ 113,
602
+ 24,
603
+ 152
779
604
  ];
780
605
  "accounts": [
781
606
  {
782
607
  "name": "signer";
783
- "writable": true;
784
608
  "signer": true;
785
609
  },
786
610
  {
787
- "name": "state";
611
+ "name": "closer";
788
612
  "writable": true;
613
+ },
614
+ {
615
+ "name": "state";
789
616
  "pda": {
790
617
  "seeds": [
791
618
  {
@@ -807,1117 +634,40 @@ export type SvmSpoke = {
807
634
  };
808
635
  },
809
636
  {
810
- "name": "delegate";
811
- },
812
- {
813
- "name": "depositorTokenAccount";
637
+ "name": "rootBundle";
814
638
  "writable": true;
815
639
  "pda": {
816
640
  "seeds": [
817
641
  {
818
- "kind": "arg";
819
- "path": "depositor";
642
+ "kind": "const";
643
+ "value": [
644
+ 114,
645
+ 111,
646
+ 111,
647
+ 116,
648
+ 95,
649
+ 98,
650
+ 117,
651
+ 110,
652
+ 100,
653
+ 108,
654
+ 101
655
+ ];
820
656
  },
821
657
  {
822
658
  "kind": "account";
823
- "path": "tokenProgram";
659
+ "path": "state.seed";
660
+ "account": "state";
824
661
  },
825
662
  {
826
- "kind": "account";
827
- "path": "mint";
663
+ "kind": "arg";
664
+ "path": "rootBundleId";
828
665
  }
829
666
  ];
830
- "program": {
831
- "kind": "const";
832
- "value": [
833
- 140,
834
- 151,
835
- 37,
836
- 143,
837
- 78,
838
- 36,
839
- 137,
840
- 241,
841
- 187,
842
- 61,
843
- 16,
844
- 41,
845
- 20,
846
- 142,
847
- 13,
848
- 131,
849
- 11,
850
- 90,
851
- 19,
852
- 153,
853
- 218,
854
- 255,
855
- 16,
856
- 132,
857
- 4,
858
- 142,
859
- 123,
860
- 216,
861
- 219,
862
- 233,
863
- 248,
864
- 89
865
- ];
866
- };
867
667
  };
868
668
  },
869
669
  {
870
- "name": "vault";
871
- "writable": true;
872
- "pda": {
873
- "seeds": [
874
- {
875
- "kind": "account";
876
- "path": "state";
877
- },
878
- {
879
- "kind": "account";
880
- "path": "tokenProgram";
881
- },
882
- {
883
- "kind": "account";
884
- "path": "mint";
885
- }
886
- ];
887
- "program": {
888
- "kind": "const";
889
- "value": [
890
- 140,
891
- 151,
892
- 37,
893
- 143,
894
- 78,
895
- 36,
896
- 137,
897
- 241,
898
- 187,
899
- 61,
900
- 16,
901
- 41,
902
- 20,
903
- 142,
904
- 13,
905
- 131,
906
- 11,
907
- 90,
908
- 19,
909
- 153,
910
- 218,
911
- 255,
912
- 16,
913
- 132,
914
- 4,
915
- 142,
916
- 123,
917
- 216,
918
- 219,
919
- 233,
920
- 248,
921
- 89
922
- ];
923
- };
924
- };
925
- },
926
- {
927
- "name": "mint";
928
- },
929
- {
930
- "name": "tokenProgram";
931
- },
932
- {
933
- "name": "associatedTokenProgram";
934
- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
935
- },
936
- {
937
- "name": "systemProgram";
938
- "address": "11111111111111111111111111111111";
939
- },
940
- {
941
- "name": "eventAuthority";
942
- "pda": {
943
- "seeds": [
944
- {
945
- "kind": "const";
946
- "value": [
947
- 95,
948
- 95,
949
- 101,
950
- 118,
951
- 101,
952
- 110,
953
- 116,
954
- 95,
955
- 97,
956
- 117,
957
- 116,
958
- 104,
959
- 111,
960
- 114,
961
- 105,
962
- 116,
963
- 121
964
- ];
965
- }
966
- ];
967
- };
968
- },
969
- {
970
- "name": "program";
971
- }
972
- ];
973
- "args": [
974
- {
975
- "name": "depositor";
976
- "type": "pubkey";
977
- },
978
- {
979
- "name": "recipient";
980
- "type": "pubkey";
981
- },
982
- {
983
- "name": "inputToken";
984
- "type": "pubkey";
985
- },
986
- {
987
- "name": "outputToken";
988
- "type": "pubkey";
989
- },
990
- {
991
- "name": "inputAmount";
992
- "type": "u64";
993
- },
994
- {
995
- "name": "outputAmount";
996
- "type": {
997
- "array": [
998
- "u8",
999
- 32
1000
- ];
1001
- };
1002
- },
1003
- {
1004
- "name": "destinationChainId";
1005
- "type": "u64";
1006
- },
1007
- {
1008
- "name": "exclusiveRelayer";
1009
- "type": "pubkey";
1010
- },
1011
- {
1012
- "name": "quoteTimestamp";
1013
- "type": "u32";
1014
- },
1015
- {
1016
- "name": "fillDeadline";
1017
- "type": "u32";
1018
- },
1019
- {
1020
- "name": "exclusivityParameter";
1021
- "type": "u32";
1022
- },
1023
- {
1024
- "name": "message";
1025
- "type": "bytes";
1026
- }
1027
- ];
1028
- },
1029
- {
1030
- "name": "depositNow";
1031
- "docs": [
1032
- "Equivalent to deposit except quote_timestamp is set to the current time.",
1033
- "The deposit `fill_deadline` is calculated as the current time plus `fill_deadline_offset`."
1034
- ];
1035
- "discriminator": [
1036
- 75,
1037
- 228,
1038
- 135,
1039
- 221,
1040
- 200,
1041
- 25,
1042
- 148,
1043
- 26
1044
- ];
1045
- "accounts": [
1046
- {
1047
- "name": "signer";
1048
- "writable": true;
1049
- "signer": true;
1050
- },
1051
- {
1052
- "name": "state";
1053
- "writable": true;
1054
- "pda": {
1055
- "seeds": [
1056
- {
1057
- "kind": "const";
1058
- "value": [
1059
- 115,
1060
- 116,
1061
- 97,
1062
- 116,
1063
- 101
1064
- ];
1065
- },
1066
- {
1067
- "kind": "account";
1068
- "path": "state.seed";
1069
- "account": "state";
1070
- }
1071
- ];
1072
- };
1073
- },
1074
- {
1075
- "name": "delegate";
1076
- },
1077
- {
1078
- "name": "depositorTokenAccount";
1079
- "writable": true;
1080
- "pda": {
1081
- "seeds": [
1082
- {
1083
- "kind": "arg";
1084
- "path": "depositor";
1085
- },
1086
- {
1087
- "kind": "account";
1088
- "path": "tokenProgram";
1089
- },
1090
- {
1091
- "kind": "account";
1092
- "path": "mint";
1093
- }
1094
- ];
1095
- "program": {
1096
- "kind": "const";
1097
- "value": [
1098
- 140,
1099
- 151,
1100
- 37,
1101
- 143,
1102
- 78,
1103
- 36,
1104
- 137,
1105
- 241,
1106
- 187,
1107
- 61,
1108
- 16,
1109
- 41,
1110
- 20,
1111
- 142,
1112
- 13,
1113
- 131,
1114
- 11,
1115
- 90,
1116
- 19,
1117
- 153,
1118
- 218,
1119
- 255,
1120
- 16,
1121
- 132,
1122
- 4,
1123
- 142,
1124
- 123,
1125
- 216,
1126
- 219,
1127
- 233,
1128
- 248,
1129
- 89
1130
- ];
1131
- };
1132
- };
1133
- },
1134
- {
1135
- "name": "vault";
1136
- "writable": true;
1137
- "pda": {
1138
- "seeds": [
1139
- {
1140
- "kind": "account";
1141
- "path": "state";
1142
- },
1143
- {
1144
- "kind": "account";
1145
- "path": "tokenProgram";
1146
- },
1147
- {
1148
- "kind": "account";
1149
- "path": "mint";
1150
- }
1151
- ];
1152
- "program": {
1153
- "kind": "const";
1154
- "value": [
1155
- 140,
1156
- 151,
1157
- 37,
1158
- 143,
1159
- 78,
1160
- 36,
1161
- 137,
1162
- 241,
1163
- 187,
1164
- 61,
1165
- 16,
1166
- 41,
1167
- 20,
1168
- 142,
1169
- 13,
1170
- 131,
1171
- 11,
1172
- 90,
1173
- 19,
1174
- 153,
1175
- 218,
1176
- 255,
1177
- 16,
1178
- 132,
1179
- 4,
1180
- 142,
1181
- 123,
1182
- 216,
1183
- 219,
1184
- 233,
1185
- 248,
1186
- 89
1187
- ];
1188
- };
1189
- };
1190
- },
1191
- {
1192
- "name": "mint";
1193
- },
1194
- {
1195
- "name": "tokenProgram";
1196
- },
1197
- {
1198
- "name": "associatedTokenProgram";
1199
- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
1200
- },
1201
- {
1202
- "name": "systemProgram";
1203
- "address": "11111111111111111111111111111111";
1204
- },
1205
- {
1206
- "name": "eventAuthority";
1207
- "pda": {
1208
- "seeds": [
1209
- {
1210
- "kind": "const";
1211
- "value": [
1212
- 95,
1213
- 95,
1214
- 101,
1215
- 118,
1216
- 101,
1217
- 110,
1218
- 116,
1219
- 95,
1220
- 97,
1221
- 117,
1222
- 116,
1223
- 104,
1224
- 111,
1225
- 114,
1226
- 105,
1227
- 116,
1228
- 121
1229
- ];
1230
- }
1231
- ];
1232
- };
1233
- },
1234
- {
1235
- "name": "program";
1236
- }
1237
- ];
1238
- "args": [
1239
- {
1240
- "name": "depositor";
1241
- "type": "pubkey";
1242
- },
1243
- {
1244
- "name": "recipient";
1245
- "type": "pubkey";
1246
- },
1247
- {
1248
- "name": "inputToken";
1249
- "type": "pubkey";
1250
- },
1251
- {
1252
- "name": "outputToken";
1253
- "type": "pubkey";
1254
- },
1255
- {
1256
- "name": "inputAmount";
1257
- "type": "u64";
1258
- },
1259
- {
1260
- "name": "outputAmount";
1261
- "type": {
1262
- "array": [
1263
- "u8",
1264
- 32
1265
- ];
1266
- };
1267
- },
1268
- {
1269
- "name": "destinationChainId";
1270
- "type": "u64";
1271
- },
1272
- {
1273
- "name": "exclusiveRelayer";
1274
- "type": "pubkey";
1275
- },
1276
- {
1277
- "name": "fillDeadlineOffset";
1278
- "type": "u32";
1279
- },
1280
- {
1281
- "name": "exclusivityParameter";
1282
- "type": "u32";
1283
- },
1284
- {
1285
- "name": "message";
1286
- "type": "bytes";
1287
- }
1288
- ];
1289
- },
1290
- {
1291
- "name": "emergencyDeleteRootBundle";
1292
- "docs": [
1293
- "Deletes a root bundle in case of emergencies where bad bundle has reached the Spoke. Only callable by the owner.",
1294
- "",
1295
- "This function will close the PDA for the associated `root_bundle_id`.",
1296
- "Note: Using this function does not decrement `state.root_bundle_id`.",
1297
- "",
1298
- "### Required Accounts:",
1299
- "- signer (Signer): The account that must be the owner to authorize the deletion.",
1300
- "- closer (SystemAccount): The account that will receive the lamports from closing the root_bundle account.",
1301
- "- state (Writable): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet.",
1302
- "- root_bundle (Writable): The root bundle PDA to be closed. Seed: [\"root_bundle\",state.seed,root_bundle_id].",
1303
- "",
1304
- "### Parameters:",
1305
- "- root_bundle_id: Index of the root bundle that needs to be deleted."
1306
- ];
1307
- "discriminator": [
1308
- 226,
1309
- 158,
1310
- 1,
1311
- 74,
1312
- 84,
1313
- 113,
1314
- 24,
1315
- 152
1316
- ];
1317
- "accounts": [
1318
- {
1319
- "name": "signer";
1320
- "signer": true;
1321
- },
1322
- {
1323
- "name": "closer";
1324
- "writable": true;
1325
- },
1326
- {
1327
- "name": "state";
1328
- "pda": {
1329
- "seeds": [
1330
- {
1331
- "kind": "const";
1332
- "value": [
1333
- 115,
1334
- 116,
1335
- 97,
1336
- 116,
1337
- 101
1338
- ];
1339
- },
1340
- {
1341
- "kind": "account";
1342
- "path": "state.seed";
1343
- "account": "state";
1344
- }
1345
- ];
1346
- };
1347
- },
1348
- {
1349
- "name": "rootBundle";
1350
- "writable": true;
1351
- "pda": {
1352
- "seeds": [
1353
- {
1354
- "kind": "const";
1355
- "value": [
1356
- 114,
1357
- 111,
1358
- 111,
1359
- 116,
1360
- 95,
1361
- 98,
1362
- 117,
1363
- 110,
1364
- 100,
1365
- 108,
1366
- 101
1367
- ];
1368
- },
1369
- {
1370
- "kind": "account";
1371
- "path": "state.seed";
1372
- "account": "state";
1373
- },
1374
- {
1375
- "kind": "arg";
1376
- "path": "rootBundleId";
1377
- }
1378
- ];
1379
- };
1380
- },
1381
- {
1382
- "name": "eventAuthority";
1383
- "pda": {
1384
- "seeds": [
1385
- {
1386
- "kind": "const";
1387
- "value": [
1388
- 95,
1389
- 95,
1390
- 101,
1391
- 118,
1392
- 101,
1393
- 110,
1394
- 116,
1395
- 95,
1396
- 97,
1397
- 117,
1398
- 116,
1399
- 104,
1400
- 111,
1401
- 114,
1402
- 105,
1403
- 116,
1404
- 121
1405
- ];
1406
- }
1407
- ];
1408
- };
1409
- },
1410
- {
1411
- "name": "program";
1412
- }
1413
- ];
1414
- "args": [
1415
- {
1416
- "name": "rootBundleId";
1417
- "type": "u32";
1418
- }
1419
- ];
1420
- },
1421
- {
1422
- "name": "executeRelayerRefundLeaf";
1423
- "docs": [
1424
- "Executes relayer refund leaf.",
1425
- "",
1426
- "Processes a relayer refund leaf, verifying its inclusion in a previous Merkle root and that it was not",
1427
- "previously executed. Function has two modes of operation: a) transfers all relayer refunds directly to",
1428
- "relayers ATA or b) credits relayers with claimable claim_account PDA that they can use later to claim their",
1429
- "refund. In the happy path, (a) should be used. (b) should only be used if there is a relayer within the bundle",
1430
- "who can't receive the transfer for some reason, such as failed token transfers due to blacklisting. Executing",
1431
- "relayer refunds requires the caller to create a LUT and load the execution params into it. This is needed to",
1432
- "fit the data in a single instruction. The exact structure and validation of the leaf is defined in the Across",
1433
- "UMIP: https://github.com/UMAprotocol/UMIPs/blob/master/UMIPs/umip-179.md",
1434
- "",
1435
- "instruction_params Parameters:",
1436
- "- root_bundle_id: The ID of the root bundle containing the relayer refund root.",
1437
- "- relayer_refund_leaf: The relayer refund leaf to be executed. Contents must include:",
1438
- "- amount_to_return: The amount to be to be sent back to mainnet Ethereum from this Spoke pool.",
1439
- "- chain_id: The targeted chainId for the refund. Validated against state.chain_id.",
1440
- "- refund_amounts: The amounts to be returned to the relayer for each refund_address.",
1441
- "- leaf_id: The leaf ID of the relayer refund leaf.",
1442
- "- mint_public_key: The public key of the mint (refunded token) being refunded.",
1443
- "- refund_addresses: The addresses to be refunded.",
1444
- "- proof: The Merkle proof for the relayer refund leaf.",
1445
- "",
1446
- "### Required Accounts:",
1447
- "- signer (Signer): The account that authorizes the execution. No permission requirements.",
1448
- "- instruction_params (Account): LUT containing the execution parameters. seed: [\"instruction_params\",signer]",
1449
- "- state (Writable): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet.",
1450
- "- root_bundle (Writable): The root bundle PDA containing the relayer refund root, created when the root bundle",
1451
- "was initially bridged. seed: [\"root_bundle\",state.seed,root_bundle_id].",
1452
- "- vault (Writable): The ATA for refunded mint. Authority must be the state.",
1453
- "- mint (Account): The mint account for the token being refunded.",
1454
- "- transfer_liability (Writable): Account to track pending refunds to be sent to the Ethereum hub pool. Only used",
1455
- "if the amount_to_return value is non-zero within the leaf. Seed: [\"transfer_liability\",mint]",
1456
- "- token_program: The token program.",
1457
- "- system_program: The system program required for account creation.",
1458
- "",
1459
- "execute_relayer_refund_leaf executes in mode where refunds are sent to ATA directly."
1460
- ];
1461
- "discriminator": [
1462
- 27,
1463
- 136,
1464
- 159,
1465
- 240,
1466
- 127,
1467
- 68,
1468
- 123,
1469
- 164
1470
- ];
1471
- "accounts": [
1472
- {
1473
- "name": "signer";
1474
- "writable": true;
1475
- "signer": true;
1476
- },
1477
- {
1478
- "name": "instructionParams";
1479
- "writable": true;
1480
- "pda": {
1481
- "seeds": [
1482
- {
1483
- "kind": "const";
1484
- "value": [
1485
- 105,
1486
- 110,
1487
- 115,
1488
- 116,
1489
- 114,
1490
- 117,
1491
- 99,
1492
- 116,
1493
- 105,
1494
- 111,
1495
- 110,
1496
- 95,
1497
- 112,
1498
- 97,
1499
- 114,
1500
- 97,
1501
- 109,
1502
- 115
1503
- ];
1504
- },
1505
- {
1506
- "kind": "account";
1507
- "path": "signer";
1508
- }
1509
- ];
1510
- };
1511
- },
1512
- {
1513
- "name": "state";
1514
- "pda": {
1515
- "seeds": [
1516
- {
1517
- "kind": "const";
1518
- "value": [
1519
- 115,
1520
- 116,
1521
- 97,
1522
- 116,
1523
- 101
1524
- ];
1525
- },
1526
- {
1527
- "kind": "account";
1528
- "path": "state.seed";
1529
- "account": "state";
1530
- }
1531
- ];
1532
- };
1533
- },
1534
- {
1535
- "name": "rootBundle";
1536
- "writable": true;
1537
- "pda": {
1538
- "seeds": [
1539
- {
1540
- "kind": "const";
1541
- "value": [
1542
- 114,
1543
- 111,
1544
- 111,
1545
- 116,
1546
- 95,
1547
- 98,
1548
- 117,
1549
- 110,
1550
- 100,
1551
- 108,
1552
- 101
1553
- ];
1554
- },
1555
- {
1556
- "kind": "account";
1557
- "path": "state.seed";
1558
- "account": "state";
1559
- },
1560
- {
1561
- "kind": "account";
1562
- "path": "instruction_params.root_bundle_id";
1563
- "account": "executeRelayerRefundLeafParams";
1564
- }
1565
- ];
1566
- };
1567
- },
1568
- {
1569
- "name": "vault";
1570
- "writable": true;
1571
- "pda": {
1572
- "seeds": [
1573
- {
1574
- "kind": "account";
1575
- "path": "state";
1576
- },
1577
- {
1578
- "kind": "account";
1579
- "path": "tokenProgram";
1580
- },
1581
- {
1582
- "kind": "account";
1583
- "path": "mint";
1584
- }
1585
- ];
1586
- "program": {
1587
- "kind": "const";
1588
- "value": [
1589
- 140,
1590
- 151,
1591
- 37,
1592
- 143,
1593
- 78,
1594
- 36,
1595
- 137,
1596
- 241,
1597
- 187,
1598
- 61,
1599
- 16,
1600
- 41,
1601
- 20,
1602
- 142,
1603
- 13,
1604
- 131,
1605
- 11,
1606
- 90,
1607
- 19,
1608
- 153,
1609
- 218,
1610
- 255,
1611
- 16,
1612
- 132,
1613
- 4,
1614
- 142,
1615
- 123,
1616
- 216,
1617
- 219,
1618
- 233,
1619
- 248,
1620
- 89
1621
- ];
1622
- };
1623
- };
1624
- },
1625
- {
1626
- "name": "mint";
1627
- },
1628
- {
1629
- "name": "transferLiability";
1630
- "writable": true;
1631
- "pda": {
1632
- "seeds": [
1633
- {
1634
- "kind": "const";
1635
- "value": [
1636
- 116,
1637
- 114,
1638
- 97,
1639
- 110,
1640
- 115,
1641
- 102,
1642
- 101,
1643
- 114,
1644
- 95,
1645
- 108,
1646
- 105,
1647
- 97,
1648
- 98,
1649
- 105,
1650
- 108,
1651
- 105,
1652
- 116,
1653
- 121
1654
- ];
1655
- },
1656
- {
1657
- "kind": "account";
1658
- "path": "mint";
1659
- }
1660
- ];
1661
- };
1662
- },
1663
- {
1664
- "name": "tokenProgram";
1665
- },
1666
- {
1667
- "name": "systemProgram";
1668
- "address": "11111111111111111111111111111111";
1669
- },
1670
- {
1671
- "name": "eventAuthority";
1672
- "pda": {
1673
- "seeds": [
1674
- {
1675
- "kind": "const";
1676
- "value": [
1677
- 95,
1678
- 95,
1679
- 101,
1680
- 118,
1681
- 101,
1682
- 110,
1683
- 116,
1684
- 95,
1685
- 97,
1686
- 117,
1687
- 116,
1688
- 104,
1689
- 111,
1690
- 114,
1691
- 105,
1692
- 116,
1693
- 121
1694
- ];
1695
- }
1696
- ];
1697
- };
1698
- },
1699
- {
1700
- "name": "program";
1701
- }
1702
- ];
1703
- "args": [];
1704
- },
1705
- {
1706
- "name": "executeRelayerRefundLeafDeferred";
1707
- "docs": [
1708
- "Similar to execute_relayer_refund_leaf, but executes in mode where refunds are allocated to claim_account PDAs."
1709
- ];
1710
- "discriminator": [
1711
- 110,
1712
- 112,
1713
- 89,
1714
- 208,
1715
- 38,
1716
- 116,
1717
- 93,
1718
- 10
1719
- ];
1720
- "accounts": [
1721
- {
1722
- "name": "signer";
1723
- "writable": true;
1724
- "signer": true;
1725
- },
1726
- {
1727
- "name": "instructionParams";
1728
- "writable": true;
1729
- "pda": {
1730
- "seeds": [
1731
- {
1732
- "kind": "const";
1733
- "value": [
1734
- 105,
1735
- 110,
1736
- 115,
1737
- 116,
1738
- 114,
1739
- 117,
1740
- 99,
1741
- 116,
1742
- 105,
1743
- 111,
1744
- 110,
1745
- 95,
1746
- 112,
1747
- 97,
1748
- 114,
1749
- 97,
1750
- 109,
1751
- 115
1752
- ];
1753
- },
1754
- {
1755
- "kind": "account";
1756
- "path": "signer";
1757
- }
1758
- ];
1759
- };
1760
- },
1761
- {
1762
- "name": "state";
1763
- "pda": {
1764
- "seeds": [
1765
- {
1766
- "kind": "const";
1767
- "value": [
1768
- 115,
1769
- 116,
1770
- 97,
1771
- 116,
1772
- 101
1773
- ];
1774
- },
1775
- {
1776
- "kind": "account";
1777
- "path": "state.seed";
1778
- "account": "state";
1779
- }
1780
- ];
1781
- };
1782
- },
1783
- {
1784
- "name": "rootBundle";
1785
- "writable": true;
1786
- "pda": {
1787
- "seeds": [
1788
- {
1789
- "kind": "const";
1790
- "value": [
1791
- 114,
1792
- 111,
1793
- 111,
1794
- 116,
1795
- 95,
1796
- 98,
1797
- 117,
1798
- 110,
1799
- 100,
1800
- 108,
1801
- 101
1802
- ];
1803
- },
1804
- {
1805
- "kind": "account";
1806
- "path": "state.seed";
1807
- "account": "state";
1808
- },
1809
- {
1810
- "kind": "account";
1811
- "path": "instruction_params.root_bundle_id";
1812
- "account": "executeRelayerRefundLeafParams";
1813
- }
1814
- ];
1815
- };
1816
- },
1817
- {
1818
- "name": "vault";
1819
- "writable": true;
1820
- "pda": {
1821
- "seeds": [
1822
- {
1823
- "kind": "account";
1824
- "path": "state";
1825
- },
1826
- {
1827
- "kind": "account";
1828
- "path": "tokenProgram";
1829
- },
1830
- {
1831
- "kind": "account";
1832
- "path": "mint";
1833
- }
1834
- ];
1835
- "program": {
1836
- "kind": "const";
1837
- "value": [
1838
- 140,
1839
- 151,
1840
- 37,
1841
- 143,
1842
- 78,
1843
- 36,
1844
- 137,
1845
- 241,
1846
- 187,
1847
- 61,
1848
- 16,
1849
- 41,
1850
- 20,
1851
- 142,
1852
- 13,
1853
- 131,
1854
- 11,
1855
- 90,
1856
- 19,
1857
- 153,
1858
- 218,
1859
- 255,
1860
- 16,
1861
- 132,
1862
- 4,
1863
- 142,
1864
- 123,
1865
- 216,
1866
- 219,
1867
- 233,
1868
- 248,
1869
- 89
1870
- ];
1871
- };
1872
- };
1873
- },
1874
- {
1875
- "name": "mint";
1876
- },
1877
- {
1878
- "name": "transferLiability";
1879
- "writable": true;
1880
- "pda": {
1881
- "seeds": [
1882
- {
1883
- "kind": "const";
1884
- "value": [
1885
- 116,
1886
- 114,
1887
- 97,
1888
- 110,
1889
- 115,
1890
- 102,
1891
- 101,
1892
- 114,
1893
- 95,
1894
- 108,
1895
- 105,
1896
- 97,
1897
- 98,
1898
- 105,
1899
- 108,
1900
- 105,
1901
- 116,
1902
- 121
1903
- ];
1904
- },
1905
- {
1906
- "kind": "account";
1907
- "path": "mint";
1908
- }
1909
- ];
1910
- };
1911
- },
1912
- {
1913
- "name": "tokenProgram";
1914
- },
1915
- {
1916
- "name": "systemProgram";
1917
- "address": "11111111111111111111111111111111";
1918
- },
1919
- {
1920
- "name": "eventAuthority";
670
+ "name": "eventAuthority";
1921
671
  "pda": {
1922
672
  "seeds": [
1923
673
  {
@@ -1949,70 +699,70 @@ export type SvmSpoke = {
1949
699
  "name": "program";
1950
700
  }
1951
701
  ];
1952
- "args": [];
702
+ "args": [
703
+ {
704
+ "name": "rootBundleId";
705
+ "type": "u32";
706
+ }
707
+ ];
1953
708
  },
1954
709
  {
1955
- "name": "executeSlowRelayLeaf";
710
+ "name": "executeRelayerRefundLeaf";
1956
711
  "docs": [
1957
- "Executes a slow relay leaf stored as part of a root bundle relayed by the HubPool.",
712
+ "Executes relayer refund leaf.",
713
+ "",
714
+ "Processes a relayer refund leaf, verifying its inclusion in a previous Merkle root and that it was not",
715
+ "previously executed. Function has two modes of operation: a) transfers all relayer refunds directly to",
716
+ "relayers ATA or b) credits relayers with claimable claim_account PDA that they can use later to claim their",
717
+ "refund. In the happy path, (a) should be used. (b) should only be used if there is a relayer within the bundle",
718
+ "who can't receive the transfer for some reason, such as failed token transfers due to blacklisting. Executing",
719
+ "relayer refunds requires the caller to create a LUT and load the execution params into it. This is needed to",
720
+ "fit the data in a single instruction. The exact structure and validation of the leaf is defined in the Across",
721
+ "UMIP: https://github.com/UMAprotocol/UMIPs/blob/master/UMIPs/umip-179.md",
1958
722
  "",
1959
- "Executing a slow fill leaf is equivalent to filling the relayData, so this function cannot be used to",
1960
- "double fill a recipient. The relayData that is filled is included in the slowFillLeaf and is hashed",
1961
- "like any other fill sent through fillRelay(). There is no relayer credited with filling this relay since funds",
1962
- "are sent directly out of this program's vault.",
723
+ "instruction_params Parameters:",
724
+ "- root_bundle_id: The ID of the root bundle containing the relayer refund root.",
725
+ "- relayer_refund_leaf: The relayer refund leaf to be executed. Contents must include:",
726
+ "- amount_to_return: Must be 0 as this Spoke pool never returns tokens to the HubPool.",
727
+ "- chain_id: The targeted chainId for the refund. Validated against state.chain_id.",
728
+ "- refund_amounts: The amounts to be returned to the relayer for each refund_address.",
729
+ "- leaf_id: The leaf ID of the relayer refund leaf.",
730
+ "- mint_public_key: The public key of the mint (refunded token) being refunded.",
731
+ "- refund_addresses: The addresses to be refunded.",
732
+ "- proof: The Merkle proof for the relayer refund leaf.",
1963
733
  "",
1964
734
  "### Required Accounts:",
1965
735
  "- signer (Signer): The account that authorizes the execution. No permission requirements.",
1966
- "- instruction_params (Account): Optional account to load instruction parameters when they are not passed in the",
1967
- "instruction data due to message size constraints. Pass this program ID to represent None. When Some, this must",
1968
- "be derived from the signer's public key with seed [\"instruction_params\",signer].",
736
+ "- instruction_params (Account): LUT containing the execution parameters. seed: [\"instruction_params\",signer]",
1969
737
  "- state (Writable): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet.",
1970
- "- root_bundle (Account): Root bundle PDA with slowRelayRoot. Seed: [\"root_bundle\",state.seed,root_bundle_id].",
1971
- "- fill_status (Writable): The fill status PDA, created when slow request was made. Updated to track slow fill.",
1972
- "Used to prevent double request and fill. Seed: [\"fills\",relay_hash].",
1973
- "- mint (Account): The mint account for the output token.",
1974
- "- recipient_token_account (Writable): The recipient's ATA for the output token.",
738
+ "- root_bundle (Writable): The root bundle PDA containing the relayer refund root, created when the root bundle",
739
+ "was initially bridged. seed: [\"root_bundle\",state.seed,root_bundle_id].",
1975
740
  "- vault (Writable): The ATA for refunded mint. Authority must be the state.",
1976
- "- token_program (Interface): The token program.",
1977
- "- system_program (Program): The system program.",
741
+ "- mint (Account): The mint account for the token being refunded.",
742
+ "- token_program: The token program.",
743
+ "- system_program: The system program required for account creation.",
1978
744
  "",
1979
- "### Parameters:",
1980
- "- _relay_hash: The hash identifying the deposit to be filled. Used to identify the deposit to be filled.",
1981
- "- slow_fill_leaf: Contains all data necessary to uniquely verify the slow fill. This struct contains:",
1982
- "- relayData: Struct containing all the data needed to identify the original deposit to be slow filled. Same",
1983
- "as the relay_data struct in fill_relay().",
1984
- "- chainId: Chain identifier where slow fill leaf should be executed. If this doesn't match this chain's",
1985
- "chainId, then this function will revert.",
1986
- "- updatedOutputAmount: Amount to be sent to recipient out of this contract's balance. Can be set differently",
1987
- "from relayData.outputAmount to charge a different fee because this deposit was \"slow\" filled. Usually,",
1988
- "this will be set higher to reimburse the recipient for waiting for the slow fill.",
1989
- "- _root_bundle_id: Unique ID of root bundle containing slow relay root that this leaf is contained in.",
1990
- "- proof: Inclusion proof for this leaf in slow relay root in root bundle.",
1991
- "Note: slow_fill_leaf, _root_bundle_id, and proof are optional parameters, but their presence must be consistent.",
1992
- "If None for these parameters is passed, the caller must load them via the instruction_params account.",
1993
- "Note: When verifying the slow fill leaf, the relay data is hashed using AnchorSerialize::serialize that encodes",
1994
- "output token amounts to little-endian format while input token amount preserves its big-endian encoding as it",
1995
- "is passed as [u8; 32] array."
745
+ "execute_relayer_refund_leaf executes in mode where refunds are sent to ATA directly."
1996
746
  ];
1997
747
  "discriminator": [
1998
- 26,
1999
- 207,
2000
- 3,
2001
- 168,
2002
- 193,
2003
- 252,
2004
- 59,
2005
- 127
748
+ 27,
749
+ 136,
750
+ 159,
751
+ 240,
752
+ 127,
753
+ 68,
754
+ 123,
755
+ 164
2006
756
  ];
2007
757
  "accounts": [
2008
758
  {
2009
759
  "name": "signer";
760
+ "writable": true;
2010
761
  "signer": true;
2011
762
  },
2012
763
  {
2013
764
  "name": "instructionParams";
2014
765
  "writable": true;
2015
- "optional": true;
2016
766
  "pda": {
2017
767
  "seeds": [
2018
768
  {
@@ -2069,6 +819,7 @@ export type SvmSpoke = {
2069
819
  },
2070
820
  {
2071
821
  "name": "rootBundle";
822
+ "writable": true;
2072
823
  "pda": {
2073
824
  "seeds": [
2074
825
  {
@@ -2092,93 +843,12 @@ export type SvmSpoke = {
2092
843
  "path": "state.seed";
2093
844
  "account": "state";
2094
845
  },
2095
- {
2096
- "kind": "arg";
2097
- "path": "_root_bundle_id.unwrap_or_else(| |\ninstruction_params";
2098
- }
2099
- ];
2100
- };
2101
- },
2102
- {
2103
- "name": "fillStatus";
2104
- "writable": true;
2105
- "pda": {
2106
- "seeds": [
2107
- {
2108
- "kind": "const";
2109
- "value": [
2110
- 102,
2111
- 105,
2112
- 108,
2113
- 108,
2114
- 115
2115
- ];
2116
- },
2117
- {
2118
- "kind": "arg";
2119
- "path": "relayHash";
2120
- }
2121
- ];
2122
- };
2123
- },
2124
- {
2125
- "name": "mint";
2126
- },
2127
- {
2128
- "name": "recipientTokenAccount";
2129
- "writable": true;
2130
- "pda": {
2131
- "seeds": [
2132
- {
2133
- "kind": "arg";
2134
- "path": "slowFillLeaf";
2135
- },
2136
- {
2137
- "kind": "account";
2138
- "path": "tokenProgram";
2139
- },
2140
846
  {
2141
847
  "kind": "account";
2142
- "path": "mint";
848
+ "path": "instructionParams.rootBundleId";
849
+ "account": "executeRelayerRefundLeafParams";
2143
850
  }
2144
851
  ];
2145
- "program": {
2146
- "kind": "const";
2147
- "value": [
2148
- 140,
2149
- 151,
2150
- 37,
2151
- 143,
2152
- 78,
2153
- 36,
2154
- 137,
2155
- 241,
2156
- 187,
2157
- 61,
2158
- 16,
2159
- 41,
2160
- 20,
2161
- 142,
2162
- 13,
2163
- 131,
2164
- 11,
2165
- 90,
2166
- 19,
2167
- 153,
2168
- 218,
2169
- 255,
2170
- 16,
2171
- 132,
2172
- 4,
2173
- 142,
2174
- 123,
2175
- 216,
2176
- 219,
2177
- 233,
2178
- 248,
2179
- 89
2180
- ];
2181
- };
2182
852
  };
2183
853
  },
2184
854
  {
@@ -2238,6 +908,9 @@ export type SvmSpoke = {
2238
908
  };
2239
909
  };
2240
910
  },
911
+ {
912
+ "name": "mint";
913
+ },
2241
914
  {
2242
915
  "name": "tokenProgram";
2243
916
  },
@@ -2278,112 +951,22 @@ export type SvmSpoke = {
2278
951
  "name": "program";
2279
952
  }
2280
953
  ];
2281
- "args": [
2282
- {
2283
- "name": "relayHash";
2284
- "type": {
2285
- "array": [
2286
- "u8",
2287
- 32
2288
- ];
2289
- };
2290
- },
2291
- {
2292
- "name": "slowFillLeaf";
2293
- "type": {
2294
- "option": {
2295
- "defined": {
2296
- "name": "slowFill";
2297
- };
2298
- };
2299
- };
2300
- },
2301
- {
2302
- "name": "rootBundleId";
2303
- "type": {
2304
- "option": "u32";
2305
- };
2306
- },
2307
- {
2308
- "name": "proof";
2309
- "type": {
2310
- "option": {
2311
- "vec": {
2312
- "array": [
2313
- "u8",
2314
- 32
2315
- ];
2316
- };
2317
- };
2318
- };
2319
- }
2320
- ];
954
+ "args": [];
2321
955
  },
2322
956
  {
2323
- "name": "fillRelay";
957
+ "name": "executeRelayerRefundLeafDeferred";
2324
958
  "docs": [
2325
- "Fulfill request to bridge cross chain by sending specified output tokens to recipient.",
2326
- "",
2327
- "Relayer & system fee is captured in the spread between input and output amounts. This fee accounts for tx costs,",
2328
- "relayer's capital opportunity cost, and a system fee. The relay_data hash uniquely identifies the deposit to",
2329
- "fill, ensuring relayers are refunded only for deposits matching the original hash from the origin SpokePool.",
2330
- "This hash includes all parameters from deposit() and must match the destination_chain_id. Note the relayer",
2331
- "creates an ATA in calling this method to store the fill_status. This should be closed once the deposit has",
2332
- "expired to let the relayer re-claim their rent. Cannot fill more than once. Partial fills are not supported.",
2333
- "",
2334
- "### Required Accounts:",
2335
- "- signer (Signer): The account that authorizes the fill (filler). No permission requirements.",
2336
- "- instruction_params (Account): Optional account to load instruction parameters when they are not passed in the",
2337
- "instruction data due to message size constraints. Pass this program ID to represent None. When Some, this must",
2338
- "be derived from the signer's public key with seed [\"instruction_params\",signer].",
2339
- "- state (Writable): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet.",
2340
- "- mint (Account): The mint of the output token, sent from the relayer to the recipient.",
2341
- "- relayer_token_account (Writable): The relayer's ATA for the input token.",
2342
- "- recipient_token_account (Writable): The recipient's ATA for the output token.",
2343
- "- fill_status (Writable): The fill status PDA, created on this function call to track the fill status to prevent",
2344
- "re-entrancy & double fills. Also used to track requested slow fills. Seed: [\"fills\",relay_hash].",
2345
- "- token_program (Interface): The token program.",
2346
- "- associated_token_program (Interface): The associated token program.",
2347
- "- system_program (Interface): The system program.",
2348
- "- delegate (Account): The account used to delegate the output amount of the output token.",
2349
- "",
2350
- "### Parameters:",
2351
- "- relay_hash: The hash identifying the deposit to be filled. Caller must pass this in. Computed as hash of",
2352
- "the flattened relay_data & destination_chain_id.",
2353
- "- relay_data: Struct containing all the data needed to identify the deposit to be filled. Should match",
2354
- "all the same-named parameters emitted in the origin chain FundsDeposited event.",
2355
- "- depositor: The account credited with the deposit.",
2356
- "- recipient: The account receiving funds on this chain.",
2357
- "- input_token: The token pulled from the caller's account to initiate the deposit. The equivalent of this",
2358
- "token on the repayment chain will be sent as a refund to the caller.",
2359
- "- output_token: The token that the caller will send to the recipient on this chain.",
2360
- "- input_amount: This amount, less a system fee, will be sent to the caller on their repayment chain.",
2361
- "This is big-endian encoded as a 32-byte array to match its underlying byte representation on EVM side",
2362
- "- output_amount: The amount of output tokens that the caller will send to the recipient.",
2363
- "- origin_chain_id: The origin chain identifier.",
2364
- "- exclusive_relayer: The relayer that will be exclusively allowed to fill this deposit before the",
2365
- "exclusivity deadline timestamp.",
2366
- "- fill_deadline: The deadline for the caller to fill the deposit. After this timestamp, the deposit will be",
2367
- "cancelled and the depositor will be refunded on the origin chain.",
2368
- "- exclusivity_deadline: The deadline for the exclusive relayer to fill the deposit. After this timestamp,",
2369
- "anyone can fill this deposit.",
2370
- "- message: The message to send to the recipient if the recipient is a contract that implements a",
2371
- "handle_across_message() public function.",
2372
- "- repayment_chain_id: Chain of SpokePool where relayer wants to be refunded after the challenge window has",
2373
- "passed. Will receive input_amount of the equivalent token to input_token on the repayment chain.",
2374
- "- repayment_address: The address of the recipient on the repayment chain that they want to be refunded to.",
2375
- "Note: relay_data, repayment_chain_id, and repayment_address are optional parameters, but their presence must be",
2376
- "consistent. If None for these is passed, the caller must load them via the instruction_params account."
959
+ "Similar to execute_relayer_refund_leaf, but executes in mode where refunds are allocated to claim_account PDAs."
2377
960
  ];
2378
961
  "discriminator": [
2379
- 100,
2380
- 84,
2381
- 222,
2382
- 90,
2383
- 106,
2384
- 209,
2385
- 58,
2386
- 222
962
+ 110,
963
+ 112,
964
+ 89,
965
+ 208,
966
+ 38,
967
+ 116,
968
+ 93,
969
+ 10
2387
970
  ];
2388
971
  "accounts": [
2389
972
  {
@@ -2394,7 +977,6 @@ export type SvmSpoke = {
2394
977
  {
2395
978
  "name": "instructionParams";
2396
979
  "writable": true;
2397
- "optional": true;
2398
980
  "pda": {
2399
981
  "seeds": [
2400
982
  {
@@ -2450,23 +1032,47 @@ export type SvmSpoke = {
2450
1032
  };
2451
1033
  },
2452
1034
  {
2453
- "name": "delegate";
2454
- },
2455
- {
2456
- "name": "mint";
2457
- },
2458
- {
2459
- "name": "relayerTokenAccount";
1035
+ "name": "rootBundle";
2460
1036
  "writable": true;
1037
+ "pda": {
1038
+ "seeds": [
1039
+ {
1040
+ "kind": "const";
1041
+ "value": [
1042
+ 114,
1043
+ 111,
1044
+ 111,
1045
+ 116,
1046
+ 95,
1047
+ 98,
1048
+ 117,
1049
+ 110,
1050
+ 100,
1051
+ 108,
1052
+ 101
1053
+ ];
1054
+ },
1055
+ {
1056
+ "kind": "account";
1057
+ "path": "state.seed";
1058
+ "account": "state";
1059
+ },
1060
+ {
1061
+ "kind": "account";
1062
+ "path": "instructionParams.rootBundleId";
1063
+ "account": "executeRelayerRefundLeafParams";
1064
+ }
1065
+ ];
1066
+ };
2461
1067
  },
2462
1068
  {
2463
- "name": "recipientTokenAccount";
1069
+ "name": "vault";
2464
1070
  "writable": true;
2465
1071
  "pda": {
2466
1072
  "seeds": [
2467
1073
  {
2468
- "kind": "arg";
2469
- "path": "relayData";
1074
+ "kind": "account";
1075
+ "path": "state";
2470
1076
  },
2471
1077
  {
2472
1078
  "kind": "account";
@@ -2517,34 +1123,11 @@ export type SvmSpoke = {
2517
1123
  };
2518
1124
  },
2519
1125
  {
2520
- "name": "fillStatus";
2521
- "writable": true;
2522
- "pda": {
2523
- "seeds": [
2524
- {
2525
- "kind": "const";
2526
- "value": [
2527
- 102,
2528
- 105,
2529
- 108,
2530
- 108,
2531
- 115
2532
- ];
2533
- },
2534
- {
2535
- "kind": "arg";
2536
- "path": "relayHash";
2537
- }
2538
- ];
2539
- };
1126
+ "name": "mint";
2540
1127
  },
2541
1128
  {
2542
1129
  "name": "tokenProgram";
2543
1130
  },
2544
- {
2545
- "name": "associatedTokenProgram";
2546
- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
2547
- },
2548
1131
  {
2549
1132
  "name": "systemProgram";
2550
1133
  "address": "11111111111111111111111111111111";
@@ -2582,95 +1165,24 @@ export type SvmSpoke = {
2582
1165
  "name": "program";
2583
1166
  }
2584
1167
  ];
2585
- "args": [
2586
- {
2587
- "name": "relayHash";
2588
- "type": {
2589
- "array": [
2590
- "u8",
2591
- 32
2592
- ];
2593
- };
2594
- },
2595
- {
2596
- "name": "relayData";
2597
- "type": {
2598
- "option": {
2599
- "defined": {
2600
- "name": "relayData";
2601
- };
2602
- };
2603
- };
2604
- },
2605
- {
2606
- "name": "repaymentChainId";
2607
- "type": {
2608
- "option": "u64";
2609
- };
2610
- },
2611
- {
2612
- "name": "repaymentAddress";
2613
- "type": {
2614
- "option": "pubkey";
2615
- };
2616
- }
2617
- ];
2618
- },
2619
- {
2620
- "name": "getUnsafeDepositId";
2621
- "docs": [
2622
- "Computes the deposit ID for the depositor using the provided deposit_nonce. This acts like a \"view\" function for",
2623
- "off-chain actors to compute what the expected deposit ID is for a given depositor and deposit nonce will be.",
2624
- "",
2625
- "### Parameters:",
2626
- "- signer: The public key of the depositor sender.",
2627
- "- depositor: The public key of the depositor.",
2628
- "- deposit_nonce: The nonce used to derive the deposit ID."
2629
- ];
2630
- "discriminator": [
2631
- 118,
2632
- 10,
2633
- 135,
2634
- 0,
2635
- 168,
2636
- 243,
2637
- 223,
2638
- 117
2639
- ];
2640
- "accounts": [];
2641
- "args": [
2642
- {
2643
- "name": "signer";
2644
- "type": "pubkey";
2645
- },
2646
- {
2647
- "name": "depositor";
2648
- "type": "pubkey";
2649
- },
2650
- {
2651
- "name": "depositNonce";
2652
- "type": "u64";
2653
- }
2654
- ];
2655
- "returns": {
2656
- "array": [
2657
- "u8",
2658
- 32
2659
- ];
2660
- };
1168
+ "args": [];
2661
1169
  },
2662
1170
  {
2663
- "name": "handleReceiveMessage";
1171
+ "name": "handleReceiveFinalizedMessage";
2664
1172
  "docs": [
2665
- "Handles cross-chain messages received from L1 Ethereum over CCTP.",
1173
+ "Handles finalized cross-chain messages received from L1 Ethereum over CCTP V2.",
2666
1174
  "",
2667
1175
  "This function serves as the permissioned entry point for messages sent from the Ethereum mainnet to the Solana",
2668
- "SVM Spoke program over CCTP. It processes the incoming message by translating it into a corresponding Solana",
1176
+ "SVM Spoke program over CCTP V2. It processes the incoming message by translating it into a corresponding Solana",
2669
1177
  "instruction and then invokes the instruction within this program.",
2670
1178
  "",
1179
+ "The CCTP V2 Message Transmitter dispatches messages attested at Circle's finalized threshold (2000) to this",
1180
+ "instruction and anything below to `handle_receive_unfinalized_message`. This program intentionally does not",
1181
+ "implement the latter, so messages attested before the source chain reached hard finality can never be consumed.",
1182
+ "",
2671
1183
  "### Required Accounts:",
2672
1184
  "- authority_pda: A signer account that ensures this instruction can only be called by the Message Transmitter.",
2673
- "This acts to block that only the CCTP Message Transmitter can send messages to this program.",
1185
+ "This acts to block that only the CCTP V2 Message Transmitter can send messages to this program.",
2674
1186
  "seed:[\"message_transmitter_authority\", program_id]",
2675
1187
  "- state (Account): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet. Enforces that the",
2676
1188
  "remote domain and sender are valid.",
@@ -2682,18 +1194,20 @@ export type SvmSpoke = {
2682
1194
  "- params: Contains information to process the received message, containing the following fields:",
2683
1195
  "- remote_domain: The remote domain of the message sender.",
2684
1196
  "- sender: The sender of the message.",
1197
+ "- finality_threshold_executed: The finality threshold the message was attested at. Not checked here, as the",
1198
+ "Message Transmitter dispatches only finalized messages to this instruction.",
2685
1199
  "- message_body: The body of the message.",
2686
1200
  "- authority_bump: The authority bump for the message transmitter."
2687
1201
  ];
2688
1202
  "discriminator": [
2689
- 133,
2690
- 102,
2691
- 1,
1203
+ 186,
1204
+ 252,
1205
+ 239,
1206
+ 70,
1207
+ 86,
2692
1208
  180,
2693
- 145,
2694
- 11,
2695
- 138,
2696
- 180
1209
+ 110,
1210
+ 95
2697
1211
  ];
2698
1212
  "accounts": [
2699
1213
  {
@@ -2778,36 +1292,36 @@ export type SvmSpoke = {
2778
1292
  "value": [
2779
1293
  166,
2780
1294
  95,
2781
- 201,
2782
- 137,
2783
- 219,
2784
- 95,
2785
- 93,
2786
- 66,
2787
- 117,
2788
- 159,
2789
- 58,
2790
- 84,
2791
- 96,
2792
- 88,
2793
- 239,
2794
- 205,
2795
- 205,
2796
- 192,
2797
- 191,
2798
- 60,
2799
- 24,
2800
- 152,
2801
- 7,
2802
- 45,
2803
- 142,
2804
- 180,
2805
- 93,
2806
- 209,
1295
+ 200,
1296
+ 28,
1297
+ 225,
1298
+ 158,
1299
+ 220,
1300
+ 210,
1301
+ 210,
1302
+ 195,
1303
+ 64,
1304
+ 176,
1305
+ 47,
1306
+ 166,
1307
+ 27,
1308
+ 225,
1309
+ 213,
1310
+ 186,
1311
+ 221,
1312
+ 225,
1313
+ 89,
1314
+ 40,
1315
+ 51,
1316
+ 221,
1317
+ 249,
1318
+ 32,
1319
+ 9,
2807
1320
  216,
2808
- 5,
2809
- 8,
2810
- 206
1321
+ 207,
1322
+ 104,
1323
+ 84,
1324
+ 85
2811
1325
  ];
2812
1326
  };
2813
1327
  };
@@ -3309,246 +1823,49 @@ export type SvmSpoke = {
3309
1823
  ];
3310
1824
  },
3311
1825
  {
3312
- "name": "relayRootBundle";
3313
- "docs": [
3314
- "Stores a new root bundle for later execution. Only callable by the owner.",
3315
- "",
3316
- "Once stored, these roots are used to execute relayer refunds, slow fills, and pool rebalancing actions.",
3317
- "This method initializes a root_bundle PDA to store the root bundle data. The caller",
3318
- "of this method is responsible for paying the rent for this PDA.",
3319
- "",
3320
- "### Required Accounts:",
3321
- "- signer (Signer): The account that must be the owner to authorize the addition of the new root bundle.",
3322
- "- payer (Signer): The account who pays rent to create root_bundle PDA.",
3323
- "- state (Writable): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet.",
3324
- "- root_bundle (Writable): The newly created bundle PDA to store root bundle data. Each root bundle has an",
3325
- "incrementing ID, stored in the state. Seed: [\"root_bundle\",state.seed,root_bundle_id].",
3326
- "- system_program (Program): The system program required for account creation.",
3327
- "",
3328
- "### Parameters:",
3329
- "- relayer_refund_root: Merkle root of the relayer refund tree.",
3330
- "- slow_relay_root: Merkle root of the slow relay tree."
3331
- ];
3332
- "discriminator": [
3333
- 69,
3334
- 13,
3335
- 223,
3336
- 204,
3337
- 251,
3338
- 61,
3339
- 105,
3340
- 6
3341
- ];
3342
- "accounts": [
3343
- {
3344
- "name": "signer";
3345
- "signer": true;
3346
- },
3347
- {
3348
- "name": "payer";
3349
- "writable": true;
3350
- "signer": true;
3351
- },
3352
- {
3353
- "name": "state";
3354
- "writable": true;
3355
- "pda": {
3356
- "seeds": [
3357
- {
3358
- "kind": "const";
3359
- "value": [
3360
- 115,
3361
- 116,
3362
- 97,
3363
- 116,
3364
- 101
3365
- ];
3366
- },
3367
- {
3368
- "kind": "account";
3369
- "path": "state.seed";
3370
- "account": "state";
3371
- }
3372
- ];
3373
- };
3374
- },
3375
- {
3376
- "name": "rootBundle";
3377
- "writable": true;
3378
- "pda": {
3379
- "seeds": [
3380
- {
3381
- "kind": "const";
3382
- "value": [
3383
- 114,
3384
- 111,
3385
- 111,
3386
- 116,
3387
- 95,
3388
- 98,
3389
- 117,
3390
- 110,
3391
- 100,
3392
- 108,
3393
- 101
3394
- ];
3395
- },
3396
- {
3397
- "kind": "account";
3398
- "path": "state.seed";
3399
- "account": "state";
3400
- },
3401
- {
3402
- "kind": "account";
3403
- "path": "state.root_bundle_id";
3404
- "account": "state";
3405
- }
3406
- ];
3407
- };
3408
- },
3409
- {
3410
- "name": "systemProgram";
3411
- "address": "11111111111111111111111111111111";
3412
- },
3413
- {
3414
- "name": "eventAuthority";
3415
- "pda": {
3416
- "seeds": [
3417
- {
3418
- "kind": "const";
3419
- "value": [
3420
- 95,
3421
- 95,
3422
- 101,
3423
- 118,
3424
- 101,
3425
- 110,
3426
- 116,
3427
- 95,
3428
- 97,
3429
- 117,
3430
- 116,
3431
- 104,
3432
- 111,
3433
- 114,
3434
- 105,
3435
- 116,
3436
- 121
3437
- ];
3438
- }
3439
- ];
3440
- };
3441
- },
3442
- {
3443
- "name": "program";
3444
- }
3445
- ];
3446
- "args": [
3447
- {
3448
- "name": "relayerRefundRoot";
3449
- "type": {
3450
- "array": [
3451
- "u8",
3452
- 32
3453
- ];
3454
- };
3455
- },
3456
- {
3457
- "name": "slowRelayRoot";
3458
- "type": {
3459
- "array": [
3460
- "u8",
3461
- 32
3462
- ];
3463
- };
3464
- }
3465
- ];
3466
- },
3467
- {
3468
- "name": "requestSlowFill";
1826
+ "name": "relayRootBundle";
3469
1827
  "docs": [
3470
- "Requests Across to send LP funds to this program to fulfill a slow fill.",
1828
+ "Stores a new root bundle for later execution. Only callable by the owner.",
3471
1829
  "",
3472
- "Slow fills are not possible unless the input and output tokens are \"equivalent\", i.e., they route to the same L1",
3473
- "token via PoolRebalanceRoutes. Slow fills are created by inserting slow fill objects into a Merkle tree that is",
3474
- "included in the next HubPool \"root bundle\". Once the optimistic challenge window has passed, the HubPool will",
3475
- "relay the slow root to this chain via relayRootBundle(). Once the slow root is relayed, the slow fill can be",
3476
- "executed by anyone who calls executeSlowRelayLeaf(). Cant request a slow fill if the fill deadline has",
3477
- "passed. Cant request a slow fill if the relay has already been filled or a slow fill has already been requested.",
1830
+ "The refund root authorizes relayer refunds. The slow root is stored only for compatibility and cannot execute.",
1831
+ "This method initializes a root_bundle PDA to store the root bundle data. The caller",
1832
+ "of this method is responsible for paying the rent for this PDA.",
3478
1833
  "",
3479
1834
  "### Required Accounts:",
3480
- "- signer (Signer): The account that authorizes the slow fill request.",
3481
- "- instruction_params (Account): Optional account to load instruction parameters when they are not passed in the",
3482
- "instruction data due to message size constraints. Pass this program ID to represent None. When Some, this must",
3483
- "be derived from the signer's public key with seed [\"instruction_params\",signer].",
1835
+ "- signer (Signer): The account that must be the owner to authorize the addition of the new root bundle.",
1836
+ "- payer (Signer): The account who pays rent to create root_bundle PDA.",
3484
1837
  "- state (Writable): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet.",
3485
- "- fill_status (Writable): The fill status PDA, created on this function call. Updated to track slow fill status.",
3486
- "Used to prevent double request and fill. Seed: [\"fills\",relay_hash].",
3487
- "- system_program (Interface): The system program.",
1838
+ "- root_bundle (Writable): The newly created bundle PDA to store root bundle data. Each root bundle has an",
1839
+ "incrementing ID, stored in the state. Seed: [\"root_bundle\",state.seed,root_bundle_id].",
1840
+ "- system_program (Program): The system program required for account creation.",
3488
1841
  "",
3489
1842
  "### Parameters:",
3490
- "- _relay_hash: The hash identifying the deposit to be filled. Caller must pass this in. Computed as hash of",
3491
- "the flattened relay_data & destination_chain_id.",
3492
- "- relay_data: Struct containing all the data needed to identify the deposit that should be slow filled. If any",
3493
- "of the params are missing or different from the origin chain deposit, then Across will not include a slow",
3494
- "fill for the intended deposit. See fill_relay & RelayData struct for more details.",
3495
- "Note: relay_data is optional parameter. If None for it is passed, the caller must load it via the",
3496
- "instruction_params account."
1843
+ "- relayer_refund_root: Merkle root of the relayer refund tree.",
1844
+ "- slow_relay_root: Inert legacy root retained for cross-chain admin ABI compatibility."
3497
1845
  ];
3498
1846
  "discriminator": [
3499
- 39,
3500
- 157,
3501
- 165,
3502
- 187,
3503
- 88,
3504
- 217,
3505
- 207,
3506
- 98
1847
+ 69,
1848
+ 13,
1849
+ 223,
1850
+ 204,
1851
+ 251,
1852
+ 61,
1853
+ 105,
1854
+ 6
3507
1855
  ];
3508
1856
  "accounts": [
3509
1857
  {
3510
1858
  "name": "signer";
3511
- "writable": true;
3512
1859
  "signer": true;
3513
1860
  },
3514
1861
  {
3515
- "name": "instructionParams";
1862
+ "name": "payer";
3516
1863
  "writable": true;
3517
- "optional": true;
3518
- "pda": {
3519
- "seeds": [
3520
- {
3521
- "kind": "const";
3522
- "value": [
3523
- 105,
3524
- 110,
3525
- 115,
3526
- 116,
3527
- 114,
3528
- 117,
3529
- 99,
3530
- 116,
3531
- 105,
3532
- 111,
3533
- 110,
3534
- 95,
3535
- 112,
3536
- 97,
3537
- 114,
3538
- 97,
3539
- 109,
3540
- 115
3541
- ];
3542
- },
3543
- {
3544
- "kind": "account";
3545
- "path": "signer";
3546
- }
3547
- ];
3548
- };
1864
+ "signer": true;
3549
1865
  },
3550
1866
  {
3551
1867
  "name": "state";
1868
+ "writable": true;
3552
1869
  "pda": {
3553
1870
  "seeds": [
3554
1871
  {
@@ -3570,23 +1887,35 @@ export type SvmSpoke = {
3570
1887
  };
3571
1888
  },
3572
1889
  {
3573
- "name": "fillStatus";
1890
+ "name": "rootBundle";
3574
1891
  "writable": true;
3575
1892
  "pda": {
3576
1893
  "seeds": [
3577
1894
  {
3578
1895
  "kind": "const";
3579
1896
  "value": [
3580
- 102,
3581
- 105,
3582
- 108,
1897
+ 114,
1898
+ 111,
1899
+ 111,
1900
+ 116,
1901
+ 95,
1902
+ 98,
1903
+ 117,
1904
+ 110,
1905
+ 100,
3583
1906
  108,
3584
- 115
1907
+ 101
3585
1908
  ];
3586
1909
  },
3587
1910
  {
3588
- "kind": "arg";
3589
- "path": "relayHash";
1911
+ "kind": "account";
1912
+ "path": "state.seed";
1913
+ "account": "state";
1914
+ },
1915
+ {
1916
+ "kind": "account";
1917
+ "path": "state.rootBundleId";
1918
+ "account": "state";
3590
1919
  }
3591
1920
  ];
3592
1921
  };
@@ -3630,7 +1959,7 @@ export type SvmSpoke = {
3630
1959
  ];
3631
1960
  "args": [
3632
1961
  {
3633
- "name": "relayHash";
1962
+ "name": "relayerRefundRoot";
3634
1963
  "type": {
3635
1964
  "array": [
3636
1965
  "u8",
@@ -3639,13 +1968,12 @@ export type SvmSpoke = {
3639
1968
  };
3640
1969
  },
3641
1970
  {
3642
- "name": "relayData";
1971
+ "name": "slowRelayRoot";
3643
1972
  "type": {
3644
- "option": {
3645
- "defined": {
3646
- "name": "relayData";
3647
- };
3648
- };
1973
+ "array": [
1974
+ "u8",
1975
+ 32
1976
+ ];
3649
1977
  };
3650
1978
  }
3651
1979
  ];
@@ -3882,275 +2210,69 @@ export type SvmSpoke = {
3882
2210
  ];
3883
2211
  },
3884
2212
  {
3885
- "name": "unsafeDeposit";
2213
+ "name": "withdrawV5FillPayer";
3886
2214
  "docs": [
3887
- "Equivalent to deposit, except that it doesn't use the global `number_of_deposits` counter as the deposit",
3888
- "nonce. Instead, it allows the caller to pass a `deposit_nonce`. This function is designed for anyone who",
3889
- "wants to pre-compute their resultant deposit ID, which can be useful for filling a deposit faster and",
3890
- "avoiding the risk of a deposit ID unexpectedly changing due to another deposit front-running this one and",
3891
- "incrementing the global deposit ID counter. This enables the caller to influence the deposit ID, making it",
3892
- "deterministic for the depositor. The computed `depositID` is the keccak256 hash of [signer, depositor, deposit_nonce]."
2215
+ "Withdraws lamports from the signing submitter's V5 fill-status payer float back to that same submitter. Partial",
2216
+ "withdrawals remain subject to the runtime's rent-state rules; `u64::MAX` withdraws the live balance."
3893
2217
  ];
3894
2218
  "discriminator": [
3895
- 196,
3896
- 187,
3897
- 166,
3898
- 179,
3899
- 3,
3900
- 146,
3901
- 150,
3902
- 246
2219
+ 160,
2220
+ 125,
2221
+ 152,
2222
+ 107,
2223
+ 21,
2224
+ 37,
2225
+ 181,
2226
+ 144
3903
2227
  ];
3904
- "accounts": [
3905
- {
3906
- "name": "signer";
3907
- "writable": true;
3908
- "signer": true;
3909
- },
3910
- {
3911
- "name": "state";
3912
- "writable": true;
3913
- "pda": {
3914
- "seeds": [
3915
- {
3916
- "kind": "const";
3917
- "value": [
3918
- 115,
3919
- 116,
3920
- 97,
3921
- 116,
3922
- 101
3923
- ];
3924
- },
3925
- {
3926
- "kind": "account";
3927
- "path": "state.seed";
3928
- "account": "state";
3929
- }
3930
- ];
3931
- };
3932
- },
3933
- {
3934
- "name": "delegate";
3935
- },
3936
- {
3937
- "name": "depositorTokenAccount";
3938
- "writable": true;
3939
- "pda": {
3940
- "seeds": [
3941
- {
3942
- "kind": "arg";
3943
- "path": "depositor";
3944
- },
3945
- {
3946
- "kind": "account";
3947
- "path": "tokenProgram";
3948
- },
3949
- {
3950
- "kind": "account";
3951
- "path": "mint";
3952
- }
3953
- ];
3954
- "program": {
3955
- "kind": "const";
3956
- "value": [
3957
- 140,
3958
- 151,
3959
- 37,
3960
- 143,
3961
- 78,
3962
- 36,
3963
- 137,
3964
- 241,
3965
- 187,
3966
- 61,
3967
- 16,
3968
- 41,
3969
- 20,
3970
- 142,
3971
- 13,
3972
- 131,
3973
- 11,
3974
- 90,
3975
- 19,
3976
- 153,
3977
- 218,
3978
- 255,
3979
- 16,
3980
- 132,
3981
- 4,
3982
- 142,
3983
- 123,
3984
- 216,
3985
- 219,
3986
- 233,
3987
- 248,
3988
- 89
3989
- ];
3990
- };
3991
- };
3992
- },
3993
- {
3994
- "name": "vault";
3995
- "writable": true;
3996
- "pda": {
3997
- "seeds": [
3998
- {
3999
- "kind": "account";
4000
- "path": "state";
4001
- },
4002
- {
4003
- "kind": "account";
4004
- "path": "tokenProgram";
4005
- },
4006
- {
4007
- "kind": "account";
4008
- "path": "mint";
4009
- }
4010
- ];
4011
- "program": {
4012
- "kind": "const";
4013
- "value": [
4014
- 140,
4015
- 151,
4016
- 37,
4017
- 143,
4018
- 78,
4019
- 36,
4020
- 137,
4021
- 241,
4022
- 187,
4023
- 61,
4024
- 16,
4025
- 41,
4026
- 20,
4027
- 142,
4028
- 13,
4029
- 131,
4030
- 11,
4031
- 90,
4032
- 19,
4033
- 153,
4034
- 218,
4035
- 255,
4036
- 16,
4037
- 132,
4038
- 4,
4039
- 142,
4040
- 123,
4041
- 216,
4042
- 219,
4043
- 233,
4044
- 248,
4045
- 89
4046
- ];
4047
- };
4048
- };
4049
- },
4050
- {
4051
- "name": "mint";
4052
- },
4053
- {
4054
- "name": "tokenProgram";
4055
- },
4056
- {
4057
- "name": "associatedTokenProgram";
4058
- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
4059
- },
2228
+ "accounts": [
4060
2229
  {
4061
- "name": "systemProgram";
4062
- "address": "11111111111111111111111111111111";
2230
+ "name": "submitter";
2231
+ "docs": [
2232
+ "The float owner and the only withdrawal destination."
2233
+ ];
2234
+ "writable": true;
2235
+ "signer": true;
4063
2236
  },
4064
2237
  {
4065
- "name": "eventAuthority";
2238
+ "name": "payer";
2239
+ "writable": true;
4066
2240
  "pda": {
4067
2241
  "seeds": [
4068
2242
  {
4069
2243
  "kind": "const";
4070
2244
  "value": [
4071
- 95,
4072
- 95,
4073
- 101,
4074
2245
  118,
4075
- 101,
4076
- 110,
4077
- 116,
2246
+ 53,
4078
2247
  95,
4079
- 97,
4080
- 117,
4081
- 116,
4082
- 104,
4083
- 111,
4084
- 114,
2248
+ 102,
4085
2249
  105,
4086
- 116,
4087
- 121
2250
+ 108,
2251
+ 108,
2252
+ 95,
2253
+ 112,
2254
+ 97,
2255
+ 121,
2256
+ 101,
2257
+ 114
4088
2258
  ];
2259
+ },
2260
+ {
2261
+ "kind": "account";
2262
+ "path": "submitter";
4089
2263
  }
4090
2264
  ];
4091
2265
  };
4092
2266
  },
4093
2267
  {
4094
- "name": "program";
2268
+ "name": "systemProgram";
2269
+ "address": "11111111111111111111111111111111";
4095
2270
  }
4096
2271
  ];
4097
2272
  "args": [
4098
2273
  {
4099
- "name": "depositor";
4100
- "type": "pubkey";
4101
- },
4102
- {
4103
- "name": "recipient";
4104
- "type": "pubkey";
4105
- },
4106
- {
4107
- "name": "inputToken";
4108
- "type": "pubkey";
4109
- },
4110
- {
4111
- "name": "outputToken";
4112
- "type": "pubkey";
4113
- },
4114
- {
4115
- "name": "inputAmount";
4116
- "type": "u64";
4117
- },
4118
- {
4119
- "name": "outputAmount";
4120
- "type": {
4121
- "array": [
4122
- "u8",
4123
- 32
4124
- ];
4125
- };
4126
- },
4127
- {
4128
- "name": "destinationChainId";
4129
- "type": "u64";
4130
- },
4131
- {
4132
- "name": "exclusiveRelayer";
4133
- "type": "pubkey";
4134
- },
4135
- {
4136
- "name": "depositNonce";
2274
+ "name": "amount";
4137
2275
  "type": "u64";
4138
- },
4139
- {
4140
- "name": "quoteTimestamp";
4141
- "type": "u32";
4142
- },
4143
- {
4144
- "name": "fillDeadline";
4145
- "type": "u32";
4146
- },
4147
- {
4148
- "name": "exclusivityParameter";
4149
- "type": "u32";
4150
- },
4151
- {
4152
- "name": "message";
4153
- "type": "bytes";
4154
2276
  }
4155
2277
  ];
4156
2278
  },
@@ -4265,32 +2387,6 @@ export type SvmSpoke = {
4265
2387
  250
4266
2388
  ];
4267
2389
  },
4268
- {
4269
- "name": "executeSlowRelayLeafParams";
4270
- "discriminator": [
4271
- 135,
4272
- 208,
4273
- 119,
4274
- 251,
4275
- 14,
4276
- 222,
4277
- 66,
4278
- 155
4279
- ];
4280
- },
4281
- {
4282
- "name": "fillRelayParams";
4283
- "discriminator": [
4284
- 50,
4285
- 243,
4286
- 51,
4287
- 185,
4288
- 89,
4289
- 60,
4290
- 43,
4291
- 202
4292
- ];
4293
- },
4294
2390
  {
4295
2391
  "name": "fillStatusAccount";
4296
2392
  "discriminator": [
@@ -4304,19 +2400,6 @@ export type SvmSpoke = {
4304
2400
  137
4305
2401
  ];
4306
2402
  },
4307
- {
4308
- "name": "requestSlowFillParams";
4309
- "discriminator": [
4310
- 5,
4311
- 54,
4312
- 214,
4313
- 89,
4314
- 197,
4315
- 37,
4316
- 118,
4317
- 28
4318
- ];
4319
- },
4320
2403
  {
4321
2404
  "name": "rootBundle";
4322
2405
  "discriminator": [
@@ -4342,35 +2425,9 @@ export type SvmSpoke = {
4342
2425
  182,
4343
2426
  177
4344
2427
  ];
4345
- },
4346
- {
4347
- "name": "transferLiability";
4348
- "discriminator": [
4349
- 157,
4350
- 137,
4351
- 86,
4352
- 109,
4353
- 206,
4354
- 241,
4355
- 183,
4356
- 79
4357
- ];
4358
2428
  }
4359
2429
  ];
4360
2430
  "events": [
4361
- {
4362
- "name": "bridgedToHubPool";
4363
- "discriminator": [
4364
- 181,
4365
- 111,
4366
- 52,
4367
- 218,
4368
- 105,
4369
- 53,
4370
- 240,
4371
- 205
4372
- ];
4373
- },
4374
2431
  {
4375
2432
  "name": "claimedRelayerRefund";
4376
2433
  "discriminator": [
@@ -4501,19 +2558,6 @@ export type SvmSpoke = {
4501
2558
  66
4502
2559
  ];
4503
2560
  },
4504
- {
4505
- "name": "tokensBridged";
4506
- "discriminator": [
4507
- 200,
4508
- 201,
4509
- 199,
4510
- 39,
4511
- 5,
4512
- 238,
4513
- 214,
4514
- 196
4515
- ];
4516
- },
4517
2561
  {
4518
2562
  "name": "transferredOwnership";
4519
2563
  "discriminator": [
@@ -4526,228 +2570,485 @@ export type SvmSpoke = {
4526
2570
  21,
4527
2571
  117
4528
2572
  ];
2573
+ },
2574
+ {
2575
+ "name": "v5FillFloatWithdrawn";
2576
+ "discriminator": [
2577
+ 169,
2578
+ 141,
2579
+ 173,
2580
+ 134,
2581
+ 108,
2582
+ 32,
2583
+ 187,
2584
+ 186
2585
+ ];
4529
2586
  }
4530
2587
  ];
4531
2588
  "errors": [
4532
2589
  {
4533
2590
  "code": 6000;
4534
- "name": "notOwner";
4535
- "msg": "Only the owner can call this function!";
2591
+ "name": "invalidQuoteTimestamp";
2592
+ "msg": "Invalid quote timestamp!";
4536
2593
  },
4537
2594
  {
4538
2595
  "code": 6001;
4539
- "name": "invalidRelayHash";
4540
- "msg": "Invalid relay hash!";
2596
+ "name": "invalidFillDeadline";
2597
+ "msg": "Invalid fill deadline!";
4541
2598
  },
4542
2599
  {
4543
2600
  "code": 6002;
2601
+ "name": "notExclusiveRelayer";
2602
+ "msg": "Caller is not the exclusive relayer and exclusivity deadline has not passed!";
2603
+ },
2604
+ {
2605
+ "code": 6003;
2606
+ "name": "retiredNoSlowFillsInExclusivityWindow";
2607
+ "msg": "The Deposit is still within the exclusivity window!";
2608
+ },
2609
+ {
2610
+ "code": 6004;
2611
+ "name": "relayFilled";
2612
+ "msg": "The relay has already been filled!";
2613
+ },
2614
+ {
2615
+ "code": 6005;
2616
+ "name": "retiredInvalidSlowFillRequest";
2617
+ "msg": "Slow fill requires status of Unfilled!";
2618
+ },
2619
+ {
2620
+ "code": 6006;
2621
+ "name": "expiredFillDeadline";
2622
+ "msg": "The fill deadline has passed!";
2623
+ },
2624
+ {
2625
+ "code": 6007;
2626
+ "name": "invalidMerkleProof";
2627
+ "msg": "Invalid Merkle proof!";
2628
+ },
2629
+ {
2630
+ "code": 6008;
2631
+ "name": "invalidChainId";
2632
+ "msg": "Invalid chain id!";
2633
+ },
2634
+ {
2635
+ "code": 6009;
2636
+ "name": "invalidMerkleLeaf";
2637
+ "msg": "Invalid Merkle leaf!";
2638
+ },
2639
+ {
2640
+ "code": 6010;
2641
+ "name": "claimedMerkleLeaf";
2642
+ "msg": "Leaf already claimed!";
2643
+ },
2644
+ {
2645
+ "code": 6011;
2646
+ "name": "depositsArePaused";
2647
+ "msg": "Deposits are currently paused!";
2648
+ },
2649
+ {
2650
+ "code": 6012;
2651
+ "name": "fillsArePaused";
2652
+ "msg": "Fills are currently paused!";
2653
+ },
2654
+ {
2655
+ "code": 6013;
2656
+ "name": "insufficientSpokePoolBalanceToExecuteLeaf";
2657
+ "msg": "Insufficient spoke pool balance to execute leaf";
2658
+ },
2659
+ {
2660
+ "code": 6014;
2661
+ "name": "invalidExclusiveRelayer";
2662
+ "msg": "Invalid exclusive relayer!";
2663
+ },
2664
+ {
2665
+ "code": 6015;
2666
+ "name": "invalidOutputToken";
2667
+ "msg": "Invalid output token!";
2668
+ },
2669
+ {
2670
+ "code": 7000;
2671
+ "name": "notOwner";
2672
+ "msg": "Only the owner can call this function!";
2673
+ },
2674
+ {
2675
+ "code": 7001;
4544
2676
  "name": "canOnlyCloseFillStatusPdaIfFillDeadlinePassed";
4545
2677
  "msg": "The fill deadline has not passed!";
4546
2678
  },
4547
2679
  {
4548
- "code": 6003;
2680
+ "code": 7002;
4549
2681
  "name": "notRelayer";
4550
2682
  "msg": "The caller is not the relayer!";
4551
2683
  },
4552
2684
  {
4553
- "code": 6004;
2685
+ "code": 7003;
4554
2686
  "name": "cannotSetCurrentTime";
4555
2687
  "msg": "Cannot set time if not in test mode!";
4556
2688
  },
4557
2689
  {
4558
- "code": 6005;
2690
+ "code": 7004;
4559
2691
  "name": "invalidRemoteDomain";
4560
2692
  "msg": "Invalid remote domain!";
4561
2693
  },
4562
2694
  {
4563
- "code": 6006;
2695
+ "code": 7005;
4564
2696
  "name": "invalidRemoteSender";
4565
2697
  "msg": "Invalid remote sender!";
4566
2698
  },
4567
2699
  {
4568
- "code": 6007;
2700
+ "code": 7006;
4569
2701
  "name": "invalidMint";
4570
2702
  "msg": "Invalid mint!";
4571
2703
  },
4572
2704
  {
4573
- "code": 6008;
4574
- "name": "exceededPendingBridgeAmount";
4575
- "msg": "Exceeded pending bridge amount to HubPool!";
2705
+ "code": 7007;
2706
+ "name": "nonZeroAmountToReturn";
2707
+ "msg": "Relayer refund leaf must not return tokens to HubPool!";
4576
2708
  },
4577
2709
  {
4578
- "code": 6009;
2710
+ "code": 7008;
4579
2711
  "name": "paramsWriteOverflow";
4580
2712
  "msg": "Overflow writing to parameters account!";
4581
2713
  },
4582
2714
  {
4583
- "code": 6010;
2715
+ "code": 7009;
4584
2716
  "name": "invalidRefund";
4585
2717
  "msg": "Invalid refund address!";
4586
2718
  },
4587
2719
  {
4588
- "code": 6011;
2720
+ "code": 7010;
4589
2721
  "name": "zeroRefundClaim";
4590
2722
  "msg": "Zero relayer refund claim!";
4591
2723
  },
4592
2724
  {
4593
- "code": 6012;
2725
+ "code": 7011;
4594
2726
  "name": "nonZeroRefundClaim";
4595
2727
  "msg": "Cannot close non-zero relayer refund claim!";
4596
2728
  },
4597
2729
  {
4598
- "code": 6013;
2730
+ "code": 7012;
4599
2731
  "name": "invalidClaimInitializer";
4600
2732
  "msg": "Invalid claim initializer!";
4601
2733
  },
4602
2734
  {
4603
- "code": 6014;
2735
+ "code": 7013;
4604
2736
  "name": "invalidRefundTokenAccount";
4605
2737
  "msg": "Invalid refund token account!";
4606
2738
  },
4607
2739
  {
4608
- "code": 6015;
2740
+ "code": 7014;
4609
2741
  "name": "invalidProductionSeed";
4610
2742
  "msg": "Seed must be 0 in production!";
4611
2743
  },
4612
2744
  {
4613
- "code": 6016;
2745
+ "code": 7015;
4614
2746
  "name": "invalidAtaCreationAccounts";
4615
2747
  "msg": "Invalid remaining accounts for ATA creation!";
4616
2748
  },
4617
2749
  {
4618
- "code": 6017;
2750
+ "code": 7016;
4619
2751
  "name": "invalidDelegatePda";
4620
2752
  "msg": "Invalid delegate PDA!";
4621
2753
  },
4622
2754
  {
4623
- "code": 6018;
4624
- "name": "inconsistentOptionalParameters";
4625
- "msg": "Inconsistent optional parameters!";
2755
+ "code": 8000;
2756
+ "name": "invalidWireFormat";
2757
+ "msg": "Malformed Across V5 wire data!";
2758
+ },
2759
+ {
2760
+ "code": 8001;
2761
+ "name": "invalidParamModificationSignature";
2762
+ "msg": "Invalid Across V5 parameter modification signature!";
2763
+ },
2764
+ {
2765
+ "code": 8002;
2766
+ "name": "missingAccount";
2767
+ "msg": "Missing required Across V5 account!";
2768
+ },
2769
+ {
2770
+ "code": 8003;
2771
+ "name": "invalidDispatchAuthority";
2772
+ "msg": "Invalid Across V5 Gateway dispatch authority!";
2773
+ },
2774
+ {
2775
+ "code": 8004;
2776
+ "name": "invalidAccountMutability";
2777
+ "msg": "Across V5 account must be writable!";
2778
+ },
2779
+ {
2780
+ "code": 8005;
2781
+ "name": "resolvedInputAmountBelowCommitted";
2782
+ "msg": "Resolved Across V5 input amount is below the committed floor!";
2783
+ },
2784
+ {
2785
+ "code": 8006;
2786
+ "name": "paramModificationNotAnImprovement";
2787
+ "msg": "Across V5 parameter modification is not an improvement!";
2788
+ },
2789
+ {
2790
+ "code": 8007;
2791
+ "name": "invalidAmountBips";
2792
+ "msg": "Across V5 input amount bips exceed the denominator!";
2793
+ },
2794
+ {
2795
+ "code": 8008;
2796
+ "name": "unsupportedMode";
2797
+ "msg": "Across V5 adapter mode is not enabled!";
2798
+ },
2799
+ {
2800
+ "code": 8009;
2801
+ "name": "invalidTokenAccount";
2802
+ "msg": "Invalid Across V5 token account!";
2803
+ },
2804
+ {
2805
+ "code": 8010;
2806
+ "name": "unsupportedTokenExtension";
2807
+ "msg": "Unsupported Across V5 token extension!";
2808
+ },
2809
+ {
2810
+ "code": 8011;
2811
+ "name": "invalidFillPayer";
2812
+ "msg": "Invalid Across V5 fill payer!";
2813
+ },
2814
+ {
2815
+ "code": 8012;
2816
+ "name": "invalidFillStatusAccount";
2817
+ "msg": "Invalid Across V5 fill status account!";
2818
+ },
2819
+ {
2820
+ "code": 8013;
2821
+ "name": "fillCommitmentMismatch";
2822
+ "msg": "Across V5 fill data does not match the committed input!";
2823
+ },
2824
+ {
2825
+ "code": 8014;
2826
+ "name": "fillOutputAmountTooLow";
2827
+ "msg": "Across V5 fill output amount is below the committed floor!";
2828
+ },
2829
+ {
2830
+ "code": 9000;
2831
+ "name": "invalidSelector";
2832
+ "msg": "Invalid solidity selector";
2833
+ },
2834
+ {
2835
+ "code": 9001;
2836
+ "name": "invalidArgument";
2837
+ "msg": "Invalid solidity argument";
2838
+ },
2839
+ {
2840
+ "code": 9002;
2841
+ "name": "invalidBool";
2842
+ "msg": "Invalid solidity bool argument";
2843
+ },
2844
+ {
2845
+ "code": 9003;
2846
+ "name": "invalidAddress";
2847
+ "msg": "Invalid solidity address argument";
2848
+ },
2849
+ {
2850
+ "code": 9004;
2851
+ "name": "invalidUint32";
2852
+ "msg": "Invalid solidity uint32 argument";
2853
+ },
2854
+ {
2855
+ "code": 9005;
2856
+ "name": "invalidUint64";
2857
+ "msg": "Invalid solidity uint64 argument";
2858
+ },
2859
+ {
2860
+ "code": 9006;
2861
+ "name": "unsupportedSelector";
2862
+ "msg": "Unsupported solidity selector";
4626
2863
  }
4627
2864
  ];
4628
2865
  "types": [
4629
2866
  {
4630
- "name": "bridgedToHubPool";
2867
+ "name": "acrossDepositInput";
2868
+ "docs": [
2869
+ "Path-committed source-deposit input, shaped like the EVM `AcrossDepositInput` compatibility surface."
2870
+ ];
4631
2871
  "type": {
4632
2872
  "kind": "struct";
4633
2873
  "fields": [
4634
2874
  {
4635
- "name": "amount";
4636
- "type": "u64";
2875
+ "name": "depositParams";
2876
+ "type": {
2877
+ "defined": {
2878
+ "name": "acrossDepositParams";
2879
+ };
2880
+ };
2881
+ },
2882
+ {
2883
+ "name": "dstStepId";
2884
+ "type": {
2885
+ "array": [
2886
+ "u8",
2887
+ 32
2888
+ ];
2889
+ };
2890
+ },
2891
+ {
2892
+ "name": "inputAmountMode";
2893
+ "type": {
2894
+ "defined": {
2895
+ "name": "v5InputAmountMode";
2896
+ };
2897
+ };
4637
2898
  },
4638
2899
  {
4639
- "name": "mint";
4640
- "type": "pubkey";
2900
+ "name": "modificationRules";
2901
+ "type": {
2902
+ "defined": {
2903
+ "name": "v5DepositModificationRules";
2904
+ };
2905
+ };
4641
2906
  }
4642
2907
  ];
4643
2908
  };
4644
2909
  },
4645
2910
  {
4646
- "name": "claimAccount";
2911
+ "name": "acrossDepositJitParams";
2912
+ "docs": [
2913
+ "JIT payload for Deposit mode. The signature is fixed `r[32] || s[32] || v[1]` rather than a length-prefixed vec."
2914
+ ];
4647
2915
  "type": {
4648
2916
  "kind": "struct";
4649
2917
  "fields": [
4650
2918
  {
4651
- "name": "amount";
4652
- "type": "u64";
2919
+ "name": "newOutputAmount";
2920
+ "type": {
2921
+ "array": [
2922
+ "u8",
2923
+ 32
2924
+ ];
2925
+ };
4653
2926
  },
4654
2927
  {
4655
- "name": "initializer";
2928
+ "name": "newExclusiveRelayer";
4656
2929
  "type": "pubkey";
2930
+ },
2931
+ {
2932
+ "name": "signature";
2933
+ "type": {
2934
+ "array": [
2935
+ "u8",
2936
+ 65
2937
+ ];
2938
+ };
4657
2939
  }
4658
2940
  ];
4659
2941
  };
4660
2942
  },
4661
2943
  {
4662
- "name": "claimedRelayerRefund";
2944
+ "name": "acrossDepositParams";
2945
+ "docs": [
2946
+ "Canonical Across deposit fields. `output_amount` remains an EVM uint256 word; SVM-native amounts and non-EVM",
2947
+ "chain IDs are width-bounded to u64."
2948
+ ];
4663
2949
  "type": {
4664
2950
  "kind": "struct";
4665
2951
  "fields": [
4666
2952
  {
4667
- "name": "l2TokenAddress";
2953
+ "name": "depositor";
4668
2954
  "type": "pubkey";
4669
2955
  },
4670
2956
  {
4671
- "name": "claimAmount";
2957
+ "name": "recipient";
2958
+ "type": "pubkey";
2959
+ },
2960
+ {
2961
+ "name": "inputToken";
2962
+ "type": "pubkey";
2963
+ },
2964
+ {
2965
+ "name": "outputToken";
2966
+ "type": "pubkey";
2967
+ },
2968
+ {
2969
+ "name": "inputAmount";
4672
2970
  "type": "u64";
4673
2971
  },
4674
2972
  {
4675
- "name": "refundAddress";
2973
+ "name": "outputAmount";
2974
+ "type": {
2975
+ "array": [
2976
+ "u8",
2977
+ 32
2978
+ ];
2979
+ };
2980
+ },
2981
+ {
2982
+ "name": "destinationChainId";
2983
+ "type": "u64";
2984
+ },
2985
+ {
2986
+ "name": "exclusiveRelayer";
4676
2987
  "type": "pubkey";
2988
+ },
2989
+ {
2990
+ "name": "depositNonce";
2991
+ "type": "u64";
2992
+ },
2993
+ {
2994
+ "name": "quoteTimestamp";
2995
+ "type": "u32";
2996
+ },
2997
+ {
2998
+ "name": "fillDeadline";
2999
+ "type": "u32";
3000
+ },
3001
+ {
3002
+ "name": "exclusivityParameter";
3003
+ "type": "u32";
4677
3004
  }
4678
3005
  ];
4679
3006
  };
4680
3007
  },
4681
3008
  {
4682
- "name": "emergencyDeletedRootBundle";
3009
+ "name": "claimAccount";
4683
3010
  "type": {
4684
3011
  "kind": "struct";
4685
3012
  "fields": [
4686
3013
  {
4687
- "name": "rootBundleId";
4688
- "type": "u32";
3014
+ "name": "amount";
3015
+ "type": "u64";
3016
+ },
3017
+ {
3018
+ "name": "initializer";
3019
+ "type": "pubkey";
4689
3020
  }
4690
3021
  ];
4691
3022
  };
4692
3023
  },
4693
3024
  {
4694
- "name": "executeRelayerRefundLeafParams";
3025
+ "name": "claimedRelayerRefund";
4695
3026
  "type": {
4696
3027
  "kind": "struct";
4697
3028
  "fields": [
4698
3029
  {
4699
- "name": "rootBundleId";
4700
- "type": "u32";
3030
+ "name": "l2TokenAddress";
3031
+ "type": "pubkey";
4701
3032
  },
4702
3033
  {
4703
- "name": "relayerRefundLeaf";
4704
- "type": {
4705
- "defined": {
4706
- "name": "relayerRefundLeaf";
4707
- };
4708
- };
3034
+ "name": "claimAmount";
3035
+ "type": "u64";
4709
3036
  },
4710
3037
  {
4711
- "name": "proof";
4712
- "type": {
4713
- "vec": {
4714
- "array": [
4715
- "u8",
4716
- 32
4717
- ];
4718
- };
4719
- };
3038
+ "name": "refundAddress";
3039
+ "type": "pubkey";
4720
3040
  }
4721
3041
  ];
4722
3042
  };
4723
3043
  },
4724
3044
  {
4725
- "name": "executeSlowRelayLeafParams";
3045
+ "name": "emergencyDeletedRootBundle";
4726
3046
  "type": {
4727
3047
  "kind": "struct";
4728
3048
  "fields": [
4729
- {
4730
- "name": "slowFillLeaf";
4731
- "type": {
4732
- "defined": {
4733
- "name": "slowFill";
4734
- };
4735
- };
4736
- },
4737
3049
  {
4738
3050
  "name": "rootBundleId";
4739
3051
  "type": "u32";
4740
- },
4741
- {
4742
- "name": "proof";
4743
- "type": {
4744
- "vec": {
4745
- "array": [
4746
- "u8",
4747
- 32
4748
- ];
4749
- };
4750
- };
4751
3052
  }
4752
3053
  ];
4753
3054
  };
@@ -4801,83 +3102,32 @@ export type SvmSpoke = {
4801
3102
  };
4802
3103
  },
4803
3104
  {
4804
- "name": "fillRelayParams";
3105
+ "name": "executeRelayerRefundLeafParams";
4805
3106
  "type": {
4806
3107
  "kind": "struct";
4807
3108
  "fields": [
4808
3109
  {
4809
- "name": "relayData";
3110
+ "name": "rootBundleId";
3111
+ "type": "u32";
3112
+ },
3113
+ {
3114
+ "name": "relayerRefundLeaf";
4810
3115
  "type": {
4811
3116
  "defined": {
4812
- "name": "relayData";
3117
+ "name": "relayerRefundLeaf";
4813
3118
  };
4814
3119
  };
4815
3120
  },
4816
3121
  {
4817
- "name": "repaymentChainId";
4818
- "type": "u64";
4819
- },
4820
- {
4821
- "name": "repaymentAddress";
4822
- "type": "pubkey";
4823
- }
4824
- ];
4825
- };
4826
- },
4827
- {
4828
- "name": "fillStatus";
4829
- "type": {
4830
- "kind": "enum";
4831
- "variants": [
4832
- {
4833
- "name": "unfilled";
4834
- },
4835
- {
4836
- "name": "requestedSlowFill";
4837
- },
4838
- {
4839
- "name": "filled";
4840
- }
4841
- ];
4842
- };
4843
- },
4844
- {
4845
- "name": "fillStatusAccount";
4846
- "type": {
4847
- "kind": "struct";
4848
- "fields": [
4849
- {
4850
- "name": "status";
3122
+ "name": "proof";
4851
3123
  "type": {
4852
- "defined": {
4853
- "name": "fillStatus";
3124
+ "vec": {
3125
+ "array": [
3126
+ "u8",
3127
+ 32
3128
+ ];
4854
3129
  };
4855
3130
  };
4856
- },
4857
- {
4858
- "name": "relayer";
4859
- "type": "pubkey";
4860
- },
4861
- {
4862
- "name": "fillDeadline";
4863
- "type": "u32";
4864
- }
4865
- ];
4866
- };
4867
- },
4868
- {
4869
- "name": "fillType";
4870
- "type": {
4871
- "kind": "enum";
4872
- "variants": [
4873
- {
4874
- "name": "fastFill";
4875
- },
4876
- {
4877
- "name": "replacedSlowFill";
4878
- },
4879
- {
4880
- "name": "slowFill";
4881
3131
  }
4882
3132
  ];
4883
3133
  };
@@ -4934,37 +3184,95 @@ export type SvmSpoke = {
4934
3184
  "type": "u32";
4935
3185
  },
4936
3186
  {
4937
- "name": "exclusiveRelayer";
4938
- "type": "pubkey";
3187
+ "name": "exclusiveRelayer";
3188
+ "type": "pubkey";
3189
+ },
3190
+ {
3191
+ "name": "relayer";
3192
+ "type": "pubkey";
3193
+ },
3194
+ {
3195
+ "name": "depositor";
3196
+ "type": "pubkey";
3197
+ },
3198
+ {
3199
+ "name": "recipient";
3200
+ "type": "pubkey";
3201
+ },
3202
+ {
3203
+ "name": "messageHash";
3204
+ "type": {
3205
+ "array": [
3206
+ "u8",
3207
+ 32
3208
+ ];
3209
+ };
3210
+ },
3211
+ {
3212
+ "name": "relayExecutionInfo";
3213
+ "type": {
3214
+ "defined": {
3215
+ "name": "relayExecutionEventInfo";
3216
+ };
3217
+ };
3218
+ }
3219
+ ];
3220
+ };
3221
+ },
3222
+ {
3223
+ "name": "fillStatus";
3224
+ "type": {
3225
+ "kind": "enum";
3226
+ "variants": [
3227
+ {
3228
+ "name": "unfilled";
3229
+ },
3230
+ {
3231
+ "name": "requestedSlowFill";
3232
+ },
3233
+ {
3234
+ "name": "filled";
3235
+ }
3236
+ ];
3237
+ };
3238
+ },
3239
+ {
3240
+ "name": "fillStatusAccount";
3241
+ "type": {
3242
+ "kind": "struct";
3243
+ "fields": [
3244
+ {
3245
+ "name": "status";
3246
+ "type": {
3247
+ "defined": {
3248
+ "name": "fillStatus";
3249
+ };
3250
+ };
4939
3251
  },
4940
3252
  {
4941
- "name": "relayer";
3253
+ "name": "rentRecipient";
4942
3254
  "type": "pubkey";
4943
3255
  },
4944
3256
  {
4945
- "name": "depositor";
4946
- "type": "pubkey";
4947
- },
3257
+ "name": "fillDeadline";
3258
+ "type": "u32";
3259
+ }
3260
+ ];
3261
+ };
3262
+ },
3263
+ {
3264
+ "name": "fillType";
3265
+ "type": {
3266
+ "kind": "enum";
3267
+ "variants": [
4948
3268
  {
4949
- "name": "recipient";
4950
- "type": "pubkey";
3269
+ "name": "fastFill";
4951
3270
  },
4952
3271
  {
4953
- "name": "messageHash";
4954
- "type": {
4955
- "array": [
4956
- "u8",
4957
- 32
4958
- ];
4959
- };
3272
+ "name": "replacedSlowFill";
4960
3273
  },
4961
3274
  {
4962
- "name": "relayExecutionInfo";
4963
- "type": {
4964
- "defined": {
4965
- "name": "relayExecutionEventInfo";
4966
- };
4967
- };
3275
+ "name": "slowFill";
4968
3276
  }
4969
3277
  ];
4970
3278
  };
@@ -5039,6 +3347,42 @@ export type SvmSpoke = {
5039
3347
  ];
5040
3348
  };
5041
3349
  },
3350
+ {
3351
+ "name": "gatewayContextV1";
3352
+ "docs": [
3353
+ "Version 1 of the Gateway-attested context prepended to every adapter call.",
3354
+ "",
3355
+ "Field order and widths are part of the Gateway dispatch ABI. A context-layout change requires a new Gateway",
3356
+ "dispatch ABI and adapter entrypoint rather than a new [`V5AdapterInput`] variant."
3357
+ ];
3358
+ "type": {
3359
+ "kind": "struct";
3360
+ "fields": [
3361
+ {
3362
+ "name": "stepId";
3363
+ "type": {
3364
+ "array": [
3365
+ "u8",
3366
+ 32
3367
+ ];
3368
+ };
3369
+ },
3370
+ {
3371
+ "name": "pathId";
3372
+ "type": {
3373
+ "array": [
3374
+ "u8",
3375
+ 32
3376
+ ];
3377
+ };
3378
+ },
3379
+ {
3380
+ "name": "submitter";
3381
+ "type": "pubkey";
3382
+ }
3383
+ ];
3384
+ };
3385
+ },
5042
3386
  {
5043
3387
  "name": "handleReceiveMessageParams";
5044
3388
  "type": {
@@ -5052,6 +3396,10 @@ export type SvmSpoke = {
5052
3396
  "name": "sender";
5053
3397
  "type": "pubkey";
5054
3398
  },
3399
+ {
3400
+ "name": "finalityThresholdExecuted";
3401
+ "type": "u32";
3402
+ },
5055
3403
  {
5056
3404
  "name": "messageBody";
5057
3405
  "type": "bytes";
@@ -5153,39 +3501,6 @@ export type SvmSpoke = {
5153
3501
  ];
5154
3502
  };
5155
3503
  },
5156
- {
5157
- "name": "relayExecutionEventInfo";
5158
- "type": {
5159
- "kind": "struct";
5160
- "fields": [
5161
- {
5162
- "name": "updatedRecipient";
5163
- "type": "pubkey";
5164
- },
5165
- {
5166
- "name": "updatedMessageHash";
5167
- "type": {
5168
- "array": [
5169
- "u8",
5170
- 32
5171
- ];
5172
- };
5173
- },
5174
- {
5175
- "name": "updatedOutputAmount";
5176
- "type": "u64";
5177
- },
5178
- {
5179
- "name": "fillType";
5180
- "type": {
5181
- "defined": {
5182
- "name": "fillType";
5183
- };
5184
- };
5185
- }
5186
- ];
5187
- };
5188
- },
5189
3504
  {
5190
3505
  "name": "relayedRootBundle";
5191
3506
  "type": {
@@ -5253,15 +3568,32 @@ export type SvmSpoke = {
5253
3568
  };
5254
3569
  },
5255
3570
  {
5256
- "name": "requestSlowFillParams";
3571
+ "name": "relayExecutionEventInfo";
5257
3572
  "type": {
5258
3573
  "kind": "struct";
5259
3574
  "fields": [
5260
3575
  {
5261
- "name": "relayData";
3576
+ "name": "updatedRecipient";
3577
+ "type": "pubkey";
3578
+ },
3579
+ {
3580
+ "name": "updatedMessageHash";
3581
+ "type": {
3582
+ "array": [
3583
+ "u8",
3584
+ 32
3585
+ ];
3586
+ };
3587
+ },
3588
+ {
3589
+ "name": "updatedOutputAmount";
3590
+ "type": "u64";
3591
+ },
3592
+ {
3593
+ "name": "fillType";
5262
3594
  "type": {
5263
3595
  "defined": {
5264
- "name": "relayData";
3596
+ "name": "fillType";
5265
3597
  };
5266
3598
  };
5267
3599
  }
@@ -5381,30 +3713,6 @@ export type SvmSpoke = {
5381
3713
  ];
5382
3714
  };
5383
3715
  },
5384
- {
5385
- "name": "slowFill";
5386
- "type": {
5387
- "kind": "struct";
5388
- "fields": [
5389
- {
5390
- "name": "relayData";
5391
- "type": {
5392
- "defined": {
5393
- "name": "relayData";
5394
- };
5395
- };
5396
- },
5397
- {
5398
- "name": "chainId";
5399
- "type": "u64";
5400
- },
5401
- {
5402
- "name": "updatedOutputAmount";
5403
- "type": "u64";
5404
- }
5405
- ];
5406
- };
5407
- },
5408
3716
  {
5409
3717
  "name": "state";
5410
3718
  "type": {
@@ -5462,56 +3770,167 @@ export type SvmSpoke = {
5462
3770
  };
5463
3771
  },
5464
3772
  {
5465
- "name": "tokensBridged";
3773
+ "name": "transferredOwnership";
5466
3774
  "type": {
5467
3775
  "kind": "struct";
5468
3776
  "fields": [
5469
3777
  {
5470
- "name": "amountToReturn";
5471
- "type": "u64";
3778
+ "name": "newOwner";
3779
+ "type": "pubkey";
3780
+ }
3781
+ ];
3782
+ };
3783
+ },
3784
+ {
3785
+ "name": "v5AdapterInput";
3786
+ "docs": [
3787
+ "Committed input for an Across V5 adapter call.",
3788
+ "",
3789
+ "`V5` is the Across protocol generation; each variant's `V1` is its SVM wire-schema revision. Borsh discriminants",
3790
+ "are frozen as `DepositV1 = 0` and `FillV1 = 1`. Append a new versioned variant when one payload changes; never",
3791
+ "reorder existing variants. A safe old variant may remain accepted while in-flight inputs drain, while an unsafe",
3792
+ "variant can be rejected immediately."
3793
+ ];
3794
+ "type": {
3795
+ "kind": "enum";
3796
+ "variants": [
3797
+ {
3798
+ "name": "depositV1";
3799
+ "fields": [
3800
+ {
3801
+ "defined": {
3802
+ "name": "acrossDepositInput";
3803
+ };
3804
+ }
3805
+ ];
5472
3806
  },
5473
3807
  {
5474
- "name": "chainId";
5475
- "type": "u64";
3808
+ "name": "fillV1";
3809
+ "fields": [
3810
+ {
3811
+ "defined": {
3812
+ "name": "v5FillInput";
3813
+ };
3814
+ }
3815
+ ];
3816
+ }
3817
+ ];
3818
+ };
3819
+ },
3820
+ {
3821
+ "name": "v5DepositModificationRules";
3822
+ "type": {
3823
+ "kind": "struct";
3824
+ "fields": [
3825
+ {
3826
+ "name": "authority";
3827
+ "type": {
3828
+ "array": [
3829
+ "u8",
3830
+ 20
3831
+ ];
3832
+ };
5476
3833
  },
5477
3834
  {
5478
- "name": "leafId";
5479
- "type": "u32";
3835
+ "name": "allowOutputAmount";
3836
+ "type": "bool";
5480
3837
  },
5481
3838
  {
5482
- "name": "l2TokenAddress";
3839
+ "name": "allowExclusiveRelayer";
3840
+ "type": "bool";
3841
+ }
3842
+ ];
3843
+ };
3844
+ },
3845
+ {
3846
+ "name": "v5FillFloatWithdrawn";
3847
+ "type": {
3848
+ "kind": "struct";
3849
+ "fields": [
3850
+ {
3851
+ "name": "submitter";
5483
3852
  "type": "pubkey";
5484
3853
  },
5485
3854
  {
5486
- "name": "caller";
5487
- "type": "pubkey";
3855
+ "name": "amount";
3856
+ "type": "u64";
5488
3857
  }
5489
3858
  ];
5490
3859
  };
5491
3860
  },
5492
3861
  {
5493
- "name": "transferLiability";
3862
+ "name": "v5FillInput";
3863
+ "docs": [
3864
+ "Destination acceptance bounds. Unlike the EVM executor-mode input, the SVM adapter omits a callback message",
3865
+ "because V5 adapter fills do not execute recipient callbacks."
3866
+ ];
5494
3867
  "type": {
5495
3868
  "kind": "struct";
5496
3869
  "fields": [
5497
3870
  {
5498
- "name": "pendingToHubPool";
3871
+ "name": "recipient";
3872
+ "type": "pubkey";
3873
+ },
3874
+ {
3875
+ "name": "outputToken";
3876
+ "type": "pubkey";
3877
+ },
3878
+ {
3879
+ "name": "minOutputAmount";
5499
3880
  "type": "u64";
5500
3881
  }
5501
3882
  ];
5502
3883
  };
5503
3884
  },
5504
3885
  {
5505
- "name": "transferredOwnership";
3886
+ "name": "v5FillJit";
5506
3887
  "type": {
5507
3888
  "kind": "struct";
5508
3889
  "fields": [
5509
3890
  {
5510
- "name": "newOwner";
3891
+ "name": "relayData";
3892
+ "type": {
3893
+ "defined": {
3894
+ "name": "relayData";
3895
+ };
3896
+ };
3897
+ },
3898
+ {
3899
+ "name": "repaymentChainId";
3900
+ "type": "u64";
3901
+ },
3902
+ {
3903
+ "name": "repaymentAddress";
5511
3904
  "type": "pubkey";
5512
3905
  }
5513
3906
  ];
5514
3907
  };
3908
+ },
3909
+ {
3910
+ "name": "v5InputAmountMode";
3911
+ "docs": [
3912
+ "Literal uses the committed `input_amount`. Balance-relative mode resolves `bips` of the canonical Gateway input",
3913
+ "vault's live token amount, rounded down, and later enforces the committed amount as a floor. Gateway vaults are",
3914
+ "shared per mint, not isolated per execution, so the continuing tape must leave no residual balance; Gateway does",
3915
+ "not currently enforce that net-zero settlement invariant."
3916
+ ];
3917
+ "type": {
3918
+ "kind": "enum";
3919
+ "variants": [
3920
+ {
3921
+ "name": "literal";
3922
+ },
3923
+ {
3924
+ "name": "inputVaultBalance";
3925
+ "fields": [
3926
+ {
3927
+ "name": "bips";
3928
+ "type": "u16";
3929
+ }
3930
+ ];
3931
+ }
3932
+ ];
3933
+ };
5515
3934
  }
5516
3935
  ];
5517
3936
  };