@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
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+ /**
3
+ * This code was AUTOGENERATED using the codama library.
4
+ * Please DO NOT EDIT THIS FILE, instead use visitors
5
+ * to add features, then rerun codama to update it.
6
+ *
7
+ * @see https://github.com/codama-idl/codama
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.WITHDRAW_V5_FILL_PAYER_DISCRIMINATOR = void 0;
11
+ exports.getWithdrawV5FillPayerDiscriminatorBytes = getWithdrawV5FillPayerDiscriminatorBytes;
12
+ exports.getWithdrawV5FillPayerInstructionDataEncoder = getWithdrawV5FillPayerInstructionDataEncoder;
13
+ exports.getWithdrawV5FillPayerInstructionDataDecoder = getWithdrawV5FillPayerInstructionDataDecoder;
14
+ exports.getWithdrawV5FillPayerInstructionDataCodec = getWithdrawV5FillPayerInstructionDataCodec;
15
+ exports.getWithdrawV5FillPayerInstructionAsync = getWithdrawV5FillPayerInstructionAsync;
16
+ exports.getWithdrawV5FillPayerInstruction = getWithdrawV5FillPayerInstruction;
17
+ exports.parseWithdrawV5FillPayerInstruction = parseWithdrawV5FillPayerInstruction;
18
+ const kit_1 = require("@solana/kit");
19
+ const programs_1 = require("../programs");
20
+ const shared_1 = require("../shared");
21
+ exports.WITHDRAW_V5_FILL_PAYER_DISCRIMINATOR = new Uint8Array([
22
+ 160, 125, 152, 107, 21, 37, 181, 144,
23
+ ]);
24
+ function getWithdrawV5FillPayerDiscriminatorBytes() {
25
+ return (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(exports.WITHDRAW_V5_FILL_PAYER_DISCRIMINATOR);
26
+ }
27
+ function getWithdrawV5FillPayerInstructionDataEncoder() {
28
+ return (0, kit_1.transformEncoder)((0, kit_1.getStructEncoder)([
29
+ ['discriminator', (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8)],
30
+ ['amount', (0, kit_1.getU64Encoder)()],
31
+ ]), (value) => ({
32
+ ...value,
33
+ discriminator: exports.WITHDRAW_V5_FILL_PAYER_DISCRIMINATOR,
34
+ }));
35
+ }
36
+ function getWithdrawV5FillPayerInstructionDataDecoder() {
37
+ return (0, kit_1.getStructDecoder)([
38
+ ['discriminator', (0, kit_1.fixDecoderSize)((0, kit_1.getBytesDecoder)(), 8)],
39
+ ['amount', (0, kit_1.getU64Decoder)()],
40
+ ]);
41
+ }
42
+ function getWithdrawV5FillPayerInstructionDataCodec() {
43
+ return (0, kit_1.combineCodec)(getWithdrawV5FillPayerInstructionDataEncoder(), getWithdrawV5FillPayerInstructionDataDecoder());
44
+ }
45
+ async function getWithdrawV5FillPayerInstructionAsync(input, config) {
46
+ // Program address.
47
+ const programAddress = config?.programAddress ?? programs_1.SVM_SPOKE_PROGRAM_ADDRESS;
48
+ // Original accounts.
49
+ const originalAccounts = {
50
+ submitter: { value: input.submitter ?? null, isWritable: true },
51
+ payer: { value: input.payer ?? null, isWritable: true },
52
+ systemProgram: { value: input.systemProgram ?? null, isWritable: false },
53
+ };
54
+ const accounts = originalAccounts;
55
+ // Original args.
56
+ const args = { ...input };
57
+ // Resolve default values.
58
+ if (!accounts.payer.value) {
59
+ accounts.payer.value = await (0, kit_1.getProgramDerivedAddress)({
60
+ programAddress,
61
+ seeds: [
62
+ (0, kit_1.getBytesEncoder)().encode(new Uint8Array([
63
+ 118, 53, 95, 102, 105, 108, 108, 95, 112, 97, 121, 101, 114,
64
+ ])),
65
+ (0, kit_1.getAddressEncoder)().encode((0, shared_1.expectAddress)(accounts.submitter.value)),
66
+ ],
67
+ });
68
+ }
69
+ if (!accounts.systemProgram.value) {
70
+ accounts.systemProgram.value =
71
+ '11111111111111111111111111111111';
72
+ }
73
+ const getAccountMeta = (0, shared_1.getAccountMetaFactory)(programAddress, 'programId');
74
+ const instruction = {
75
+ accounts: [
76
+ getAccountMeta(accounts.submitter),
77
+ getAccountMeta(accounts.payer),
78
+ getAccountMeta(accounts.systemProgram),
79
+ ],
80
+ programAddress,
81
+ data: getWithdrawV5FillPayerInstructionDataEncoder().encode(args),
82
+ };
83
+ return instruction;
84
+ }
85
+ function getWithdrawV5FillPayerInstruction(input, config) {
86
+ // Program address.
87
+ const programAddress = config?.programAddress ?? programs_1.SVM_SPOKE_PROGRAM_ADDRESS;
88
+ // Original accounts.
89
+ const originalAccounts = {
90
+ submitter: { value: input.submitter ?? null, isWritable: true },
91
+ payer: { value: input.payer ?? null, isWritable: true },
92
+ systemProgram: { value: input.systemProgram ?? null, isWritable: false },
93
+ };
94
+ const accounts = originalAccounts;
95
+ // Original args.
96
+ const args = { ...input };
97
+ // Resolve default values.
98
+ if (!accounts.systemProgram.value) {
99
+ accounts.systemProgram.value =
100
+ '11111111111111111111111111111111';
101
+ }
102
+ const getAccountMeta = (0, shared_1.getAccountMetaFactory)(programAddress, 'programId');
103
+ const instruction = {
104
+ accounts: [
105
+ getAccountMeta(accounts.submitter),
106
+ getAccountMeta(accounts.payer),
107
+ getAccountMeta(accounts.systemProgram),
108
+ ],
109
+ programAddress,
110
+ data: getWithdrawV5FillPayerInstructionDataEncoder().encode(args),
111
+ };
112
+ return instruction;
113
+ }
114
+ function parseWithdrawV5FillPayerInstruction(instruction) {
115
+ if (instruction.accounts.length < 3) {
116
+ // TODO: Coded error.
117
+ throw new Error('Not enough accounts');
118
+ }
119
+ let accountIndex = 0;
120
+ const getNextAccount = () => {
121
+ const accountMeta = instruction.accounts[accountIndex];
122
+ accountIndex += 1;
123
+ return accountMeta;
124
+ };
125
+ return {
126
+ programAddress: instruction.programAddress,
127
+ accounts: {
128
+ submitter: getNextAccount(),
129
+ payer: getNextAccount(),
130
+ systemProgram: getNextAccount(),
131
+ },
132
+ data: getWithdrawV5FillPayerInstructionDataDecoder().decode(instruction.data),
133
+ };
134
+ }
@@ -6,57 +6,47 @@
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
8
8
  import { type Address, type ReadonlyUint8Array } from '@solana/kit';
9
- import { type ParsedBridgeTokensToHubPoolInstruction, type ParsedClaimRelayerRefundInstruction, type ParsedCloseClaimAccountInstruction, type ParsedCloseFillPdaInstruction, type ParsedCloseInstructionParamsInstruction, type ParsedCreateTokenAccountsInstruction, type ParsedDepositInstruction, type ParsedDepositNowInstruction, type ParsedEmergencyDeleteRootBundleInstruction, type ParsedExecuteRelayerRefundLeafDeferredInstruction, type ParsedExecuteRelayerRefundLeafInstruction, type ParsedExecuteSlowRelayLeafInstruction, type ParsedFillRelayInstruction, type ParsedGetUnsafeDepositIdInstruction, type ParsedHandleReceiveMessageInstruction, type ParsedInitializeClaimAccountInstruction, type ParsedInitializeInstruction, type ParsedInitializeInstructionParamsInstruction, type ParsedPauseDepositsInstruction, type ParsedPauseFillsInstruction, type ParsedRelayRootBundleInstruction, type ParsedRequestSlowFillInstruction, type ParsedSetCrossDomainAdminInstruction, type ParsedSetCurrentTimeInstruction, type ParsedTransferOwnershipInstruction, type ParsedUnsafeDepositInstruction, type ParsedWriteInstructionParamsFragmentInstruction } from '../instructions';
9
+ import { type ParsedAdapterExecuteAcrossV5Instruction, type ParsedClaimRelayerRefundInstruction, type ParsedCloseClaimAccountInstruction, type ParsedCloseFillPdaInstruction, type ParsedCloseInstructionParamsInstruction, type ParsedCreateTokenAccountsInstruction, type ParsedEmergencyDeleteRootBundleInstruction, type ParsedExecuteRelayerRefundLeafDeferredInstruction, type ParsedExecuteRelayerRefundLeafInstruction, type ParsedHandleReceiveFinalizedMessageInstruction, type ParsedInitializeClaimAccountInstruction, type ParsedInitializeInstruction, type ParsedInitializeInstructionParamsInstruction, type ParsedPauseDepositsInstruction, type ParsedPauseFillsInstruction, type ParsedRelayRootBundleInstruction, type ParsedSetCrossDomainAdminInstruction, type ParsedSetCurrentTimeInstruction, type ParsedTransferOwnershipInstruction, type ParsedWithdrawV5FillPayerInstruction, type ParsedWriteInstructionParamsFragmentInstruction } from '../instructions';
10
10
  export declare const SVM_SPOKE_PROGRAM_ADDRESS: Address<"DLv3NggMiSaef97YCkew5xKUHDh13tVGZ7tydt3ZeAru">;
11
11
  export declare enum SvmSpokeAccount {
12
12
  ClaimAccount = 0,
13
13
  ExecuteRelayerRefundLeafParams = 1,
14
- ExecuteSlowRelayLeafParams = 2,
15
- FillRelayParams = 3,
16
- FillStatusAccount = 4,
17
- RequestSlowFillParams = 5,
18
- RootBundle = 6,
19
- State = 7,
20
- TransferLiability = 8
14
+ FillStatusAccount = 2,
15
+ RootBundle = 3,
16
+ State = 4
21
17
  }
22
18
  export declare function identifySvmSpokeAccount(account: {
23
19
  data: ReadonlyUint8Array;
24
20
  } | ReadonlyUint8Array): SvmSpokeAccount;
25
21
  export declare enum SvmSpokeInstruction {
26
- BridgeTokensToHubPool = 0,
22
+ AdapterExecuteAcrossV5 = 0,
27
23
  ClaimRelayerRefund = 1,
28
24
  CloseClaimAccount = 2,
29
25
  CloseFillPda = 3,
30
26
  CloseInstructionParams = 4,
31
27
  CreateTokenAccounts = 5,
32
- Deposit = 6,
33
- DepositNow = 7,
34
- EmergencyDeleteRootBundle = 8,
35
- ExecuteRelayerRefundLeaf = 9,
36
- ExecuteRelayerRefundLeafDeferred = 10,
37
- ExecuteSlowRelayLeaf = 11,
38
- FillRelay = 12,
39
- GetUnsafeDepositId = 13,
40
- HandleReceiveMessage = 14,
41
- Initialize = 15,
42
- InitializeClaimAccount = 16,
43
- InitializeInstructionParams = 17,
44
- PauseDeposits = 18,
45
- PauseFills = 19,
46
- RelayRootBundle = 20,
47
- RequestSlowFill = 21,
48
- SetCrossDomainAdmin = 22,
49
- SetCurrentTime = 23,
50
- TransferOwnership = 24,
51
- UnsafeDeposit = 25,
52
- WriteInstructionParamsFragment = 26
28
+ EmergencyDeleteRootBundle = 6,
29
+ ExecuteRelayerRefundLeaf = 7,
30
+ ExecuteRelayerRefundLeafDeferred = 8,
31
+ HandleReceiveFinalizedMessage = 9,
32
+ Initialize = 10,
33
+ InitializeClaimAccount = 11,
34
+ InitializeInstructionParams = 12,
35
+ PauseDeposits = 13,
36
+ PauseFills = 14,
37
+ RelayRootBundle = 15,
38
+ SetCrossDomainAdmin = 16,
39
+ SetCurrentTime = 17,
40
+ TransferOwnership = 18,
41
+ WithdrawV5FillPayer = 19,
42
+ WriteInstructionParamsFragment = 20
53
43
  }
54
44
  export declare function identifySvmSpokeInstruction(instruction: {
55
45
  data: ReadonlyUint8Array;
56
46
  } | ReadonlyUint8Array): SvmSpokeInstruction;
57
47
  export type ParsedSvmSpokeInstruction<TProgram extends string = 'DLv3NggMiSaef97YCkew5xKUHDh13tVGZ7tydt3ZeAru'> = ({
58
- instructionType: SvmSpokeInstruction.BridgeTokensToHubPool;
59
- } & ParsedBridgeTokensToHubPoolInstruction<TProgram>) | ({
48
+ instructionType: SvmSpokeInstruction.AdapterExecuteAcrossV5;
49
+ } & ParsedAdapterExecuteAcrossV5Instruction<TProgram>) | ({
60
50
  instructionType: SvmSpokeInstruction.ClaimRelayerRefund;
61
51
  } & ParsedClaimRelayerRefundInstruction<TProgram>) | ({
62
52
  instructionType: SvmSpokeInstruction.CloseClaimAccount;
@@ -67,24 +57,14 @@ export type ParsedSvmSpokeInstruction<TProgram extends string = 'DLv3NggMiSaef97
67
57
  } & ParsedCloseInstructionParamsInstruction<TProgram>) | ({
68
58
  instructionType: SvmSpokeInstruction.CreateTokenAccounts;
69
59
  } & ParsedCreateTokenAccountsInstruction<TProgram>) | ({
70
- instructionType: SvmSpokeInstruction.Deposit;
71
- } & ParsedDepositInstruction<TProgram>) | ({
72
- instructionType: SvmSpokeInstruction.DepositNow;
73
- } & ParsedDepositNowInstruction<TProgram>) | ({
74
60
  instructionType: SvmSpokeInstruction.EmergencyDeleteRootBundle;
75
61
  } & ParsedEmergencyDeleteRootBundleInstruction<TProgram>) | ({
76
62
  instructionType: SvmSpokeInstruction.ExecuteRelayerRefundLeaf;
77
63
  } & ParsedExecuteRelayerRefundLeafInstruction<TProgram>) | ({
78
64
  instructionType: SvmSpokeInstruction.ExecuteRelayerRefundLeafDeferred;
79
65
  } & ParsedExecuteRelayerRefundLeafDeferredInstruction<TProgram>) | ({
80
- instructionType: SvmSpokeInstruction.ExecuteSlowRelayLeaf;
81
- } & ParsedExecuteSlowRelayLeafInstruction<TProgram>) | ({
82
- instructionType: SvmSpokeInstruction.FillRelay;
83
- } & ParsedFillRelayInstruction<TProgram>) | ({
84
- instructionType: SvmSpokeInstruction.GetUnsafeDepositId;
85
- } & ParsedGetUnsafeDepositIdInstruction<TProgram>) | ({
86
- instructionType: SvmSpokeInstruction.HandleReceiveMessage;
87
- } & ParsedHandleReceiveMessageInstruction<TProgram>) | ({
66
+ instructionType: SvmSpokeInstruction.HandleReceiveFinalizedMessage;
67
+ } & ParsedHandleReceiveFinalizedMessageInstruction<TProgram>) | ({
88
68
  instructionType: SvmSpokeInstruction.Initialize;
89
69
  } & ParsedInitializeInstruction<TProgram>) | ({
90
70
  instructionType: SvmSpokeInstruction.InitializeClaimAccount;
@@ -97,15 +77,13 @@ export type ParsedSvmSpokeInstruction<TProgram extends string = 'DLv3NggMiSaef97
97
77
  } & ParsedPauseFillsInstruction<TProgram>) | ({
98
78
  instructionType: SvmSpokeInstruction.RelayRootBundle;
99
79
  } & ParsedRelayRootBundleInstruction<TProgram>) | ({
100
- instructionType: SvmSpokeInstruction.RequestSlowFill;
101
- } & ParsedRequestSlowFillInstruction<TProgram>) | ({
102
80
  instructionType: SvmSpokeInstruction.SetCrossDomainAdmin;
103
81
  } & ParsedSetCrossDomainAdminInstruction<TProgram>) | ({
104
82
  instructionType: SvmSpokeInstruction.SetCurrentTime;
105
83
  } & ParsedSetCurrentTimeInstruction<TProgram>) | ({
106
84
  instructionType: SvmSpokeInstruction.TransferOwnership;
107
85
  } & ParsedTransferOwnershipInstruction<TProgram>) | ({
108
- instructionType: SvmSpokeInstruction.UnsafeDeposit;
109
- } & ParsedUnsafeDepositInstruction<TProgram>) | ({
86
+ instructionType: SvmSpokeInstruction.WithdrawV5FillPayer;
87
+ } & ParsedWithdrawV5FillPayerInstruction<TProgram>) | ({
110
88
  instructionType: SvmSpokeInstruction.WriteInstructionParamsFragment;
111
89
  } & ParsedWriteInstructionParamsFragmentInstruction<TProgram>);
@@ -16,13 +16,9 @@ var SvmSpokeAccount;
16
16
  (function (SvmSpokeAccount) {
17
17
  SvmSpokeAccount[SvmSpokeAccount["ClaimAccount"] = 0] = "ClaimAccount";
18
18
  SvmSpokeAccount[SvmSpokeAccount["ExecuteRelayerRefundLeafParams"] = 1] = "ExecuteRelayerRefundLeafParams";
19
- SvmSpokeAccount[SvmSpokeAccount["ExecuteSlowRelayLeafParams"] = 2] = "ExecuteSlowRelayLeafParams";
20
- SvmSpokeAccount[SvmSpokeAccount["FillRelayParams"] = 3] = "FillRelayParams";
21
- SvmSpokeAccount[SvmSpokeAccount["FillStatusAccount"] = 4] = "FillStatusAccount";
22
- SvmSpokeAccount[SvmSpokeAccount["RequestSlowFillParams"] = 5] = "RequestSlowFillParams";
23
- SvmSpokeAccount[SvmSpokeAccount["RootBundle"] = 6] = "RootBundle";
24
- SvmSpokeAccount[SvmSpokeAccount["State"] = 7] = "State";
25
- SvmSpokeAccount[SvmSpokeAccount["TransferLiability"] = 8] = "TransferLiability";
19
+ SvmSpokeAccount[SvmSpokeAccount["FillStatusAccount"] = 2] = "FillStatusAccount";
20
+ SvmSpokeAccount[SvmSpokeAccount["RootBundle"] = 3] = "RootBundle";
21
+ SvmSpokeAccount[SvmSpokeAccount["State"] = 4] = "State";
26
22
  })(SvmSpokeAccount || (exports.SvmSpokeAccount = SvmSpokeAccount = {}));
27
23
  function identifySvmSpokeAccount(account) {
28
24
  const data = 'data' in account ? account.data : account;
@@ -32,63 +28,45 @@ function identifySvmSpokeAccount(account) {
32
28
  if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([192, 59, 93, 9, 171, 77, 28, 250])), 0)) {
33
29
  return SvmSpokeAccount.ExecuteRelayerRefundLeafParams;
34
30
  }
35
- if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([135, 208, 119, 251, 14, 222, 66, 155])), 0)) {
36
- return SvmSpokeAccount.ExecuteSlowRelayLeafParams;
37
- }
38
- if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([50, 243, 51, 185, 89, 60, 43, 202])), 0)) {
39
- return SvmSpokeAccount.FillRelayParams;
40
- }
41
31
  if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([105, 89, 88, 35, 24, 147, 178, 137])), 0)) {
42
32
  return SvmSpokeAccount.FillStatusAccount;
43
33
  }
44
- if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([5, 54, 214, 89, 197, 37, 118, 28])), 0)) {
45
- return SvmSpokeAccount.RequestSlowFillParams;
46
- }
47
34
  if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([66, 221, 214, 231, 25, 222, 184, 219])), 0)) {
48
35
  return SvmSpokeAccount.RootBundle;
49
36
  }
50
37
  if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([216, 146, 107, 94, 104, 75, 182, 177])), 0)) {
51
38
  return SvmSpokeAccount.State;
52
39
  }
53
- if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([157, 137, 86, 109, 206, 241, 183, 79])), 0)) {
54
- return SvmSpokeAccount.TransferLiability;
55
- }
56
40
  throw new Error('The provided account could not be identified as a svmSpoke account.');
57
41
  }
58
42
  var SvmSpokeInstruction;
59
43
  (function (SvmSpokeInstruction) {
60
- SvmSpokeInstruction[SvmSpokeInstruction["BridgeTokensToHubPool"] = 0] = "BridgeTokensToHubPool";
44
+ SvmSpokeInstruction[SvmSpokeInstruction["AdapterExecuteAcrossV5"] = 0] = "AdapterExecuteAcrossV5";
61
45
  SvmSpokeInstruction[SvmSpokeInstruction["ClaimRelayerRefund"] = 1] = "ClaimRelayerRefund";
62
46
  SvmSpokeInstruction[SvmSpokeInstruction["CloseClaimAccount"] = 2] = "CloseClaimAccount";
63
47
  SvmSpokeInstruction[SvmSpokeInstruction["CloseFillPda"] = 3] = "CloseFillPda";
64
48
  SvmSpokeInstruction[SvmSpokeInstruction["CloseInstructionParams"] = 4] = "CloseInstructionParams";
65
49
  SvmSpokeInstruction[SvmSpokeInstruction["CreateTokenAccounts"] = 5] = "CreateTokenAccounts";
66
- SvmSpokeInstruction[SvmSpokeInstruction["Deposit"] = 6] = "Deposit";
67
- SvmSpokeInstruction[SvmSpokeInstruction["DepositNow"] = 7] = "DepositNow";
68
- SvmSpokeInstruction[SvmSpokeInstruction["EmergencyDeleteRootBundle"] = 8] = "EmergencyDeleteRootBundle";
69
- SvmSpokeInstruction[SvmSpokeInstruction["ExecuteRelayerRefundLeaf"] = 9] = "ExecuteRelayerRefundLeaf";
70
- SvmSpokeInstruction[SvmSpokeInstruction["ExecuteRelayerRefundLeafDeferred"] = 10] = "ExecuteRelayerRefundLeafDeferred";
71
- SvmSpokeInstruction[SvmSpokeInstruction["ExecuteSlowRelayLeaf"] = 11] = "ExecuteSlowRelayLeaf";
72
- SvmSpokeInstruction[SvmSpokeInstruction["FillRelay"] = 12] = "FillRelay";
73
- SvmSpokeInstruction[SvmSpokeInstruction["GetUnsafeDepositId"] = 13] = "GetUnsafeDepositId";
74
- SvmSpokeInstruction[SvmSpokeInstruction["HandleReceiveMessage"] = 14] = "HandleReceiveMessage";
75
- SvmSpokeInstruction[SvmSpokeInstruction["Initialize"] = 15] = "Initialize";
76
- SvmSpokeInstruction[SvmSpokeInstruction["InitializeClaimAccount"] = 16] = "InitializeClaimAccount";
77
- SvmSpokeInstruction[SvmSpokeInstruction["InitializeInstructionParams"] = 17] = "InitializeInstructionParams";
78
- SvmSpokeInstruction[SvmSpokeInstruction["PauseDeposits"] = 18] = "PauseDeposits";
79
- SvmSpokeInstruction[SvmSpokeInstruction["PauseFills"] = 19] = "PauseFills";
80
- SvmSpokeInstruction[SvmSpokeInstruction["RelayRootBundle"] = 20] = "RelayRootBundle";
81
- SvmSpokeInstruction[SvmSpokeInstruction["RequestSlowFill"] = 21] = "RequestSlowFill";
82
- SvmSpokeInstruction[SvmSpokeInstruction["SetCrossDomainAdmin"] = 22] = "SetCrossDomainAdmin";
83
- SvmSpokeInstruction[SvmSpokeInstruction["SetCurrentTime"] = 23] = "SetCurrentTime";
84
- SvmSpokeInstruction[SvmSpokeInstruction["TransferOwnership"] = 24] = "TransferOwnership";
85
- SvmSpokeInstruction[SvmSpokeInstruction["UnsafeDeposit"] = 25] = "UnsafeDeposit";
86
- SvmSpokeInstruction[SvmSpokeInstruction["WriteInstructionParamsFragment"] = 26] = "WriteInstructionParamsFragment";
50
+ SvmSpokeInstruction[SvmSpokeInstruction["EmergencyDeleteRootBundle"] = 6] = "EmergencyDeleteRootBundle";
51
+ SvmSpokeInstruction[SvmSpokeInstruction["ExecuteRelayerRefundLeaf"] = 7] = "ExecuteRelayerRefundLeaf";
52
+ SvmSpokeInstruction[SvmSpokeInstruction["ExecuteRelayerRefundLeafDeferred"] = 8] = "ExecuteRelayerRefundLeafDeferred";
53
+ SvmSpokeInstruction[SvmSpokeInstruction["HandleReceiveFinalizedMessage"] = 9] = "HandleReceiveFinalizedMessage";
54
+ SvmSpokeInstruction[SvmSpokeInstruction["Initialize"] = 10] = "Initialize";
55
+ SvmSpokeInstruction[SvmSpokeInstruction["InitializeClaimAccount"] = 11] = "InitializeClaimAccount";
56
+ SvmSpokeInstruction[SvmSpokeInstruction["InitializeInstructionParams"] = 12] = "InitializeInstructionParams";
57
+ SvmSpokeInstruction[SvmSpokeInstruction["PauseDeposits"] = 13] = "PauseDeposits";
58
+ SvmSpokeInstruction[SvmSpokeInstruction["PauseFills"] = 14] = "PauseFills";
59
+ SvmSpokeInstruction[SvmSpokeInstruction["RelayRootBundle"] = 15] = "RelayRootBundle";
60
+ SvmSpokeInstruction[SvmSpokeInstruction["SetCrossDomainAdmin"] = 16] = "SetCrossDomainAdmin";
61
+ SvmSpokeInstruction[SvmSpokeInstruction["SetCurrentTime"] = 17] = "SetCurrentTime";
62
+ SvmSpokeInstruction[SvmSpokeInstruction["TransferOwnership"] = 18] = "TransferOwnership";
63
+ SvmSpokeInstruction[SvmSpokeInstruction["WithdrawV5FillPayer"] = 19] = "WithdrawV5FillPayer";
64
+ SvmSpokeInstruction[SvmSpokeInstruction["WriteInstructionParamsFragment"] = 20] = "WriteInstructionParamsFragment";
87
65
  })(SvmSpokeInstruction || (exports.SvmSpokeInstruction = SvmSpokeInstruction = {}));
88
66
  function identifySvmSpokeInstruction(instruction) {
89
67
  const data = 'data' in instruction ? instruction.data : instruction;
90
- if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([1, 83, 255, 59, 232, 55, 64, 216])), 0)) {
91
- return SvmSpokeInstruction.BridgeTokensToHubPool;
68
+ if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([23, 161, 69, 148, 150, 128, 173, 220])), 0)) {
69
+ return SvmSpokeInstruction.AdapterExecuteAcrossV5;
92
70
  }
93
71
  if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([205, 34, 34, 224, 204, 103, 81, 176])), 0)) {
94
72
  return SvmSpokeInstruction.ClaimRelayerRefund;
@@ -105,12 +83,6 @@ function identifySvmSpokeInstruction(instruction) {
105
83
  if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([163, 216, 49, 204, 97, 16, 80, 167])), 0)) {
106
84
  return SvmSpokeInstruction.CreateTokenAccounts;
107
85
  }
108
- if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([242, 35, 198, 137, 82, 225, 242, 182])), 0)) {
109
- return SvmSpokeInstruction.Deposit;
110
- }
111
- if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([75, 228, 135, 221, 200, 25, 148, 26])), 0)) {
112
- return SvmSpokeInstruction.DepositNow;
113
- }
114
86
  if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([226, 158, 1, 74, 84, 113, 24, 152])), 0)) {
115
87
  return SvmSpokeInstruction.EmergencyDeleteRootBundle;
116
88
  }
@@ -120,17 +92,8 @@ function identifySvmSpokeInstruction(instruction) {
120
92
  if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([110, 112, 89, 208, 38, 116, 93, 10])), 0)) {
121
93
  return SvmSpokeInstruction.ExecuteRelayerRefundLeafDeferred;
122
94
  }
123
- if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([26, 207, 3, 168, 193, 252, 59, 127])), 0)) {
124
- return SvmSpokeInstruction.ExecuteSlowRelayLeaf;
125
- }
126
- if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([100, 84, 222, 90, 106, 209, 58, 222])), 0)) {
127
- return SvmSpokeInstruction.FillRelay;
128
- }
129
- if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([118, 10, 135, 0, 168, 243, 223, 117])), 0)) {
130
- return SvmSpokeInstruction.GetUnsafeDepositId;
131
- }
132
- if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([133, 102, 1, 180, 145, 11, 138, 180])), 0)) {
133
- return SvmSpokeInstruction.HandleReceiveMessage;
95
+ if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([186, 252, 239, 70, 86, 180, 110, 95])), 0)) {
96
+ return SvmSpokeInstruction.HandleReceiveFinalizedMessage;
134
97
  }
135
98
  if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([175, 175, 109, 31, 13, 152, 155, 237])), 0)) {
136
99
  return SvmSpokeInstruction.Initialize;
@@ -150,9 +113,6 @@ function identifySvmSpokeInstruction(instruction) {
150
113
  if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([69, 13, 223, 204, 251, 61, 105, 6])), 0)) {
151
114
  return SvmSpokeInstruction.RelayRootBundle;
152
115
  }
153
- if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([39, 157, 165, 187, 88, 217, 207, 98])), 0)) {
154
- return SvmSpokeInstruction.RequestSlowFill;
155
- }
156
116
  if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([102, 206, 237, 106, 63, 141, 42, 248])), 0)) {
157
117
  return SvmSpokeInstruction.SetCrossDomainAdmin;
158
118
  }
@@ -162,8 +122,8 @@ function identifySvmSpokeInstruction(instruction) {
162
122
  if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([65, 177, 215, 73, 53, 45, 99, 47])), 0)) {
163
123
  return SvmSpokeInstruction.TransferOwnership;
164
124
  }
165
- if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([196, 187, 166, 179, 3, 146, 150, 246])), 0)) {
166
- return SvmSpokeInstruction.UnsafeDeposit;
125
+ if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([160, 125, 152, 107, 21, 37, 181, 144])), 0)) {
126
+ return SvmSpokeInstruction.WithdrawV5FillPayer;
167
127
  }
168
128
  if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([238, 182, 109, 113, 124, 255, 72, 18])), 0)) {
169
129
  return SvmSpokeInstruction.WriteInstructionParamsFragment;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ import { type Codec, type Decoder, type Encoder, type ReadonlyUint8Array } from '@solana/kit';
9
+ import { type AcrossDepositParams, type AcrossDepositParamsArgs, type V5DepositModificationRules, type V5DepositModificationRulesArgs, type V5InputAmountMode, type V5InputAmountModeArgs } from '.';
10
+ /** Path-committed source-deposit input, shaped like the EVM `AcrossDepositInput` compatibility surface. */
11
+ export type AcrossDepositInput = {
12
+ depositParams: AcrossDepositParams;
13
+ dstStepId: ReadonlyUint8Array;
14
+ inputAmountMode: V5InputAmountMode;
15
+ modificationRules: V5DepositModificationRules;
16
+ };
17
+ export type AcrossDepositInputArgs = {
18
+ depositParams: AcrossDepositParamsArgs;
19
+ dstStepId: ReadonlyUint8Array;
20
+ inputAmountMode: V5InputAmountModeArgs;
21
+ modificationRules: V5DepositModificationRulesArgs;
22
+ };
23
+ export declare function getAcrossDepositInputEncoder(): Encoder<AcrossDepositInputArgs>;
24
+ export declare function getAcrossDepositInputDecoder(): Decoder<AcrossDepositInput>;
25
+ export declare function getAcrossDepositInputCodec(): Codec<AcrossDepositInputArgs, AcrossDepositInput>;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This code was AUTOGENERATED using the codama library.
4
+ * Please DO NOT EDIT THIS FILE, instead use visitors
5
+ * to add features, then rerun codama to update it.
6
+ *
7
+ * @see https://github.com/codama-idl/codama
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.getAcrossDepositInputEncoder = getAcrossDepositInputEncoder;
11
+ exports.getAcrossDepositInputDecoder = getAcrossDepositInputDecoder;
12
+ exports.getAcrossDepositInputCodec = getAcrossDepositInputCodec;
13
+ const kit_1 = require("@solana/kit");
14
+ const _1 = require(".");
15
+ function getAcrossDepositInputEncoder() {
16
+ return (0, kit_1.getStructEncoder)([
17
+ ['depositParams', (0, _1.getAcrossDepositParamsEncoder)()],
18
+ ['dstStepId', (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 32)],
19
+ ['inputAmountMode', (0, _1.getV5InputAmountModeEncoder)()],
20
+ ['modificationRules', (0, _1.getV5DepositModificationRulesEncoder)()],
21
+ ]);
22
+ }
23
+ function getAcrossDepositInputDecoder() {
24
+ return (0, kit_1.getStructDecoder)([
25
+ ['depositParams', (0, _1.getAcrossDepositParamsDecoder)()],
26
+ ['dstStepId', (0, kit_1.fixDecoderSize)((0, kit_1.getBytesDecoder)(), 32)],
27
+ ['inputAmountMode', (0, _1.getV5InputAmountModeDecoder)()],
28
+ ['modificationRules', (0, _1.getV5DepositModificationRulesDecoder)()],
29
+ ]);
30
+ }
31
+ function getAcrossDepositInputCodec() {
32
+ return (0, kit_1.combineCodec)(getAcrossDepositInputEncoder(), getAcrossDepositInputDecoder());
33
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ import { type Address, type Codec, type Decoder, type Encoder, type ReadonlyUint8Array } from '@solana/kit';
9
+ /** JIT payload for Deposit mode. The signature is fixed `r[32] || s[32] || v[1]` rather than a length-prefixed vec. */
10
+ export type AcrossDepositJitParams = {
11
+ newOutputAmount: ReadonlyUint8Array;
12
+ newExclusiveRelayer: Address;
13
+ signature: ReadonlyUint8Array;
14
+ };
15
+ export type AcrossDepositJitParamsArgs = AcrossDepositJitParams;
16
+ export declare function getAcrossDepositJitParamsEncoder(): Encoder<AcrossDepositJitParamsArgs>;
17
+ export declare function getAcrossDepositJitParamsDecoder(): Decoder<AcrossDepositJitParams>;
18
+ export declare function getAcrossDepositJitParamsCodec(): Codec<AcrossDepositJitParamsArgs, AcrossDepositJitParams>;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ /**
3
+ * This code was AUTOGENERATED using the codama library.
4
+ * Please DO NOT EDIT THIS FILE, instead use visitors
5
+ * to add features, then rerun codama to update it.
6
+ *
7
+ * @see https://github.com/codama-idl/codama
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.getAcrossDepositJitParamsEncoder = getAcrossDepositJitParamsEncoder;
11
+ exports.getAcrossDepositJitParamsDecoder = getAcrossDepositJitParamsDecoder;
12
+ exports.getAcrossDepositJitParamsCodec = getAcrossDepositJitParamsCodec;
13
+ const kit_1 = require("@solana/kit");
14
+ function getAcrossDepositJitParamsEncoder() {
15
+ return (0, kit_1.getStructEncoder)([
16
+ ['newOutputAmount', (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 32)],
17
+ ['newExclusiveRelayer', (0, kit_1.getAddressEncoder)()],
18
+ ['signature', (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 65)],
19
+ ]);
20
+ }
21
+ function getAcrossDepositJitParamsDecoder() {
22
+ return (0, kit_1.getStructDecoder)([
23
+ ['newOutputAmount', (0, kit_1.fixDecoderSize)((0, kit_1.getBytesDecoder)(), 32)],
24
+ ['newExclusiveRelayer', (0, kit_1.getAddressDecoder)()],
25
+ ['signature', (0, kit_1.fixDecoderSize)((0, kit_1.getBytesDecoder)(), 65)],
26
+ ]);
27
+ }
28
+ function getAcrossDepositJitParamsCodec() {
29
+ return (0, kit_1.combineCodec)(getAcrossDepositJitParamsEncoder(), getAcrossDepositJitParamsDecoder());
30
+ }
@@ -0,0 +1,43 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ import { type Address, type Codec, type Decoder, type Encoder, type ReadonlyUint8Array } from '@solana/kit';
9
+ /**
10
+ * Canonical Across deposit fields. `output_amount` remains an EVM uint256 word; SVM-native amounts and non-EVM
11
+ * chain IDs are width-bounded to u64.
12
+ */
13
+ export type AcrossDepositParams = {
14
+ depositor: Address;
15
+ recipient: Address;
16
+ inputToken: Address;
17
+ outputToken: Address;
18
+ inputAmount: bigint;
19
+ outputAmount: ReadonlyUint8Array;
20
+ destinationChainId: bigint;
21
+ exclusiveRelayer: Address;
22
+ depositNonce: bigint;
23
+ quoteTimestamp: number;
24
+ fillDeadline: number;
25
+ exclusivityParameter: number;
26
+ };
27
+ export type AcrossDepositParamsArgs = {
28
+ depositor: Address;
29
+ recipient: Address;
30
+ inputToken: Address;
31
+ outputToken: Address;
32
+ inputAmount: number | bigint;
33
+ outputAmount: ReadonlyUint8Array;
34
+ destinationChainId: number | bigint;
35
+ exclusiveRelayer: Address;
36
+ depositNonce: number | bigint;
37
+ quoteTimestamp: number;
38
+ fillDeadline: number;
39
+ exclusivityParameter: number;
40
+ };
41
+ export declare function getAcrossDepositParamsEncoder(): Encoder<AcrossDepositParamsArgs>;
42
+ export declare function getAcrossDepositParamsDecoder(): Decoder<AcrossDepositParams>;
43
+ export declare function getAcrossDepositParamsCodec(): Codec<AcrossDepositParamsArgs, AcrossDepositParams>;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /**
3
+ * This code was AUTOGENERATED using the codama library.
4
+ * Please DO NOT EDIT THIS FILE, instead use visitors
5
+ * to add features, then rerun codama to update it.
6
+ *
7
+ * @see https://github.com/codama-idl/codama
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.getAcrossDepositParamsEncoder = getAcrossDepositParamsEncoder;
11
+ exports.getAcrossDepositParamsDecoder = getAcrossDepositParamsDecoder;
12
+ exports.getAcrossDepositParamsCodec = getAcrossDepositParamsCodec;
13
+ const kit_1 = require("@solana/kit");
14
+ function getAcrossDepositParamsEncoder() {
15
+ return (0, kit_1.getStructEncoder)([
16
+ ['depositor', (0, kit_1.getAddressEncoder)()],
17
+ ['recipient', (0, kit_1.getAddressEncoder)()],
18
+ ['inputToken', (0, kit_1.getAddressEncoder)()],
19
+ ['outputToken', (0, kit_1.getAddressEncoder)()],
20
+ ['inputAmount', (0, kit_1.getU64Encoder)()],
21
+ ['outputAmount', (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 32)],
22
+ ['destinationChainId', (0, kit_1.getU64Encoder)()],
23
+ ['exclusiveRelayer', (0, kit_1.getAddressEncoder)()],
24
+ ['depositNonce', (0, kit_1.getU64Encoder)()],
25
+ ['quoteTimestamp', (0, kit_1.getU32Encoder)()],
26
+ ['fillDeadline', (0, kit_1.getU32Encoder)()],
27
+ ['exclusivityParameter', (0, kit_1.getU32Encoder)()],
28
+ ]);
29
+ }
30
+ function getAcrossDepositParamsDecoder() {
31
+ return (0, kit_1.getStructDecoder)([
32
+ ['depositor', (0, kit_1.getAddressDecoder)()],
33
+ ['recipient', (0, kit_1.getAddressDecoder)()],
34
+ ['inputToken', (0, kit_1.getAddressDecoder)()],
35
+ ['outputToken', (0, kit_1.getAddressDecoder)()],
36
+ ['inputAmount', (0, kit_1.getU64Decoder)()],
37
+ ['outputAmount', (0, kit_1.fixDecoderSize)((0, kit_1.getBytesDecoder)(), 32)],
38
+ ['destinationChainId', (0, kit_1.getU64Decoder)()],
39
+ ['exclusiveRelayer', (0, kit_1.getAddressDecoder)()],
40
+ ['depositNonce', (0, kit_1.getU64Decoder)()],
41
+ ['quoteTimestamp', (0, kit_1.getU32Decoder)()],
42
+ ['fillDeadline', (0, kit_1.getU32Decoder)()],
43
+ ['exclusivityParameter', (0, kit_1.getU32Decoder)()],
44
+ ]);
45
+ }
46
+ function getAcrossDepositParamsCodec() {
47
+ return (0, kit_1.combineCodec)(getAcrossDepositParamsEncoder(), getAcrossDepositParamsDecoder());
48
+ }
@@ -5,7 +5,9 @@
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
8
- export * from './bridgedToHubPool';
8
+ export * from './acrossDepositInput';
9
+ export * from './acrossDepositJitParams';
10
+ export * from './acrossDepositParams';
9
11
  export * from './claimedRelayerRefund';
10
12
  export * from './emergencyDeletedRootBundle';
11
13
  export * from './executedRelayerRefundRoot';
@@ -21,6 +23,10 @@ export * from './relayerRefundLeaf';
21
23
  export * from './relayExecutionEventInfo';
22
24
  export * from './requestedSlowFill';
23
25
  export * from './setXDomainAdmin';
24
- export * from './slowFill';
25
- export * from './tokensBridged';
26
26
  export * from './transferredOwnership';
27
+ export * from './v5AdapterInput';
28
+ export * from './v5DepositModificationRules';
29
+ export * from './v5FillFloatWithdrawn';
30
+ export * from './v5FillInput';
31
+ export * from './v5FillJit';
32
+ export * from './v5InputAmountMode';