@across-protocol/contracts 6.0.0-beta.2 → 6.0.0-beta.4

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 (138) hide show
  1. package/README.md +195 -34
  2. package/contracts/chain-adapters/Solana_Adapter.sol +4 -7
  3. package/contracts/handlers/HyperliquidDepositHandler.sol +2 -2
  4. package/contracts/interfaces/SpokePoolPeripheryInterface.sol +16 -4
  5. package/contracts/libraries/HyperCoreLib.sol +113 -20
  6. package/contracts/libraries/PeripherySigningLib.sol +56 -0
  7. package/contracts/periphery/SpokePoolPeriphery.sol +58 -10
  8. package/dist/broadcast/deployed-addresses.json +19 -0
  9. package/dist/evm/artifacts/Constants.sol/Constants.json +1 -1
  10. package/dist/evm/artifacts/DeploymentUtils.sol/DeploymentUtils.json +1 -1
  11. package/dist/evm/artifacts/DstOFTHandler.sol/DstOFTHandler.json +1 -1
  12. package/dist/evm/artifacts/HubPoolTestBase.sol/MockAddressWhitelist.json +1 -1
  13. package/dist/evm/artifacts/HubPoolTestBase.sol/MockFinder.json +1 -1
  14. package/dist/evm/artifacts/HubPoolTestBase.sol/MockIdentifierWhitelist.json +1 -1
  15. package/dist/evm/artifacts/HubPoolTestBase.sol/MockLpTokenFactory.json +1 -1
  16. package/dist/evm/artifacts/HubPoolTestBase.sol/MockOptimisticOracle.json +1 -1
  17. package/dist/evm/artifacts/HubPoolTestBase.sol/MockStore.json +1 -1
  18. package/dist/evm/artifacts/HyperCoreFlowExecutor.sol/HyperCoreFlowExecutor.json +1 -1
  19. package/dist/evm/artifacts/HyperCoreLib.sol/HyperCoreLib.json +1 -1
  20. package/dist/evm/artifacts/HyperliquidDepositHandler.sol/HyperliquidDepositHandler.json +1 -1
  21. package/dist/evm/artifacts/PeripherySigningLib.sol/PeripherySigningLib.json +1 -1
  22. package/dist/evm/artifacts/Solana_Adapter.sol/Solana_Adapter.json +1 -1
  23. package/dist/evm/artifacts/SpokePoolPeriphery.sol/SpokePoolPeriphery.json +1 -1
  24. package/dist/evm/artifacts/SpokePoolPeriphery.sol/SwapProxy.json +1 -1
  25. package/dist/evm/artifacts/SponsoredCCTPDstPeriphery.sol/SponsoredCCTPDstPeriphery.json +1 -1
  26. package/dist/evm/artifacts/SponsoredCCTPSrcPeriphery.sol/SponsoredCCTPSrcPeriphery.json +1 -1
  27. package/dist/evm/artifacts/SponsoredOFTSrcPeriphery.sol/SponsoredOFTSrcPeriphery.json +1 -1
  28. package/dist/evm/artifacts/SwapHandler.sol/SwapHandler.json +1 -1
  29. package/dist/evm/artifacts/Tron_SpokePoolPeriphery.sol/Tron_SpokePoolPeriphery.json +1 -1
  30. package/dist/evm/artifacts/Tron_SpokePoolPeriphery.sol/Tron_SwapProxy.json +1 -1
  31. package/dist/src/consts.js +1 -0
  32. package/dist/src/svm/assets/idl/index.d.ts +5 -7
  33. package/dist/src/svm/assets/idl/index.js +6 -14
  34. package/dist/src/svm/assets/idl/sponsored_cctp_src_periphery.json +41 -24
  35. package/dist/src/svm/assets/idl/svm_spoke.json +1001 -2171
  36. package/dist/src/svm/assets/index.d.ts +2 -3
  37. package/dist/src/svm/assets/index.js +0 -1
  38. package/dist/src/svm/assets/sponsored_cctp_src_periphery.d.ts +41 -24
  39. package/dist/src/svm/assets/svm_spoke.d.ts +996 -2166
  40. package/dist/src/svm/assets/token_messenger_minter_v2.d.ts +18 -18
  41. package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/index.d.ts +0 -1
  42. package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/index.js +0 -1
  43. package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/errors/sponsoredCctpSrcPeriphery.d.ts +24 -12
  44. package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/errors/sponsoredCctpSrcPeriphery.js +30 -12
  45. package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/programs/sponsoredCctpSrcPeriphery.d.ts +4 -5
  46. package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/programs/sponsoredCctpSrcPeriphery.js +4 -8
  47. package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/index.d.ts +1 -0
  48. package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/index.js +1 -0
  49. package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/messageSent.d.ts +21 -0
  50. package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/messageSent.js +30 -0
  51. package/dist/src/svm/clients/SvmSpoke/accounts/fillStatusAccount.d.ts +2 -2
  52. package/dist/src/svm/clients/SvmSpoke/accounts/fillStatusAccount.js +2 -2
  53. package/dist/src/svm/clients/SvmSpoke/accounts/index.d.ts +0 -3
  54. package/dist/src/svm/clients/SvmSpoke/accounts/index.js +0 -3
  55. package/dist/src/svm/clients/SvmSpoke/errors/svmSpoke.d.ts +94 -22
  56. package/dist/src/svm/clients/SvmSpoke/errors/svmSpoke.js +133 -24
  57. package/dist/src/svm/clients/SvmSpoke/instructions/adapterExecuteAcrossV5.d.ts +75 -0
  58. package/dist/src/svm/clients/SvmSpoke/instructions/adapterExecuteAcrossV5.js +144 -0
  59. package/dist/src/svm/clients/SvmSpoke/instructions/closeFillPda.d.ts +16 -8
  60. package/dist/src/svm/clients/SvmSpoke/instructions/closeFillPda.js +3 -3
  61. package/dist/src/svm/clients/SvmSpoke/instructions/index.d.ts +2 -7
  62. package/dist/src/svm/clients/SvmSpoke/instructions/index.js +2 -7
  63. package/dist/src/svm/clients/SvmSpoke/instructions/withdrawV5FillPayer.d.ts +58 -0
  64. package/dist/src/svm/clients/SvmSpoke/instructions/withdrawV5FillPayer.js +134 -0
  65. package/dist/src/svm/clients/SvmSpoke/programs/svmSpoke.d.ts +29 -47
  66. package/dist/src/svm/clients/SvmSpoke/programs/svmSpoke.js +29 -61
  67. package/dist/src/svm/clients/SvmSpoke/types/acrossDepositInput.d.ts +25 -0
  68. package/dist/src/svm/clients/SvmSpoke/types/acrossDepositInput.js +33 -0
  69. package/dist/src/svm/clients/SvmSpoke/types/acrossDepositJitParams.d.ts +18 -0
  70. package/dist/src/svm/clients/SvmSpoke/types/acrossDepositJitParams.js +30 -0
  71. package/dist/src/svm/clients/SvmSpoke/types/acrossDepositParams.d.ts +43 -0
  72. package/dist/src/svm/clients/SvmSpoke/types/acrossDepositParams.js +48 -0
  73. package/dist/src/svm/clients/SvmSpoke/types/index.d.ts +9 -1
  74. package/dist/src/svm/clients/SvmSpoke/types/index.js +9 -1
  75. package/dist/src/svm/clients/SvmSpoke/types/v5AdapterInput.d.ts +39 -0
  76. package/dist/src/svm/clients/SvmSpoke/types/v5AdapterInput.js +59 -0
  77. package/dist/src/svm/clients/SvmSpoke/types/v5DepositModificationRules.d.ts +17 -0
  78. package/dist/src/svm/clients/SvmSpoke/types/v5DepositModificationRules.js +30 -0
  79. package/dist/src/svm/clients/SvmSpoke/types/v5FillFloatWithdrawn.d.ts +19 -0
  80. package/dist/src/svm/clients/SvmSpoke/types/v5FillFloatWithdrawn.js +28 -0
  81. package/dist/src/svm/clients/SvmSpoke/types/v5FillInput.d.ts +25 -0
  82. package/dist/src/svm/clients/SvmSpoke/types/v5FillInput.js +30 -0
  83. package/dist/src/svm/clients/SvmSpoke/types/v5FillJit.d.ts +22 -0
  84. package/dist/src/svm/clients/SvmSpoke/types/{slowFill.js → v5FillJit.js} +11 -11
  85. package/dist/src/svm/clients/SvmSpoke/types/v5InputAmountMode.d.ts +29 -0
  86. package/dist/src/svm/clients/SvmSpoke/types/v5InputAmountMode.js +38 -0
  87. package/dist/src/svm/web3-v1/cctpV2Helpers.d.ts +51 -65
  88. package/dist/src/svm/web3-v1/cctpV2Helpers.js +1 -1
  89. package/dist/src/svm/web3-v1/coders.d.ts +1 -1
  90. package/dist/src/svm/web3-v1/coders.js +4 -4
  91. package/dist/src/svm/web3-v1/conversionUtils.d.ts +1 -1
  92. package/dist/src/svm/web3-v1/conversionUtils.js +3 -3
  93. package/dist/src/svm/web3-v1/helpers.d.ts +1 -114
  94. package/dist/src/svm/web3-v1/helpers.js +1 -179
  95. package/dist/src/svm/web3-v1/instructionParamsUtils.d.ts +11 -26
  96. package/dist/src/svm/web3-v1/instructionParamsUtils.js +5 -90
  97. package/dist/src/svm/web3-v1/programConnectors.d.ts +1 -1
  98. package/dist/src/svm/web3-v1/programConnectors.js +2 -2
  99. package/dist/src/svm/web3-v1/relayHashUtils.d.ts +2 -6
  100. package/dist/src/svm/web3-v1/relayHashUtils.js +5 -66
  101. package/dist/src/svm/web3-v1/solanaProgramUtils.d.ts +1 -1
  102. package/dist/src/svm/web3-v1/solanaProgramUtils.js +7 -7
  103. package/dist/src/svm/web3-v1/transactionUtils.js +3 -3
  104. package/dist/src/svm/web3-v2/solanaProgramUtils.d.ts +1 -1
  105. package/dist/src/svm/web3-v2/solanaProgramUtils.js +4 -4
  106. package/dist/src/types/svm.d.ts +1 -46
  107. package/package.json +28 -13
  108. package/svm/idl/multicall_handler.json +31 -0
  109. package/svm/idl/sponsored_cctp_src_periphery.json +1982 -0
  110. package/svm/idl/svm_spoke.json +3930 -0
  111. package/dist/src/svm/assets/idl/test.json +0 -243
  112. package/dist/src/svm/assets/test.d.ts +0 -249
  113. package/dist/src/svm/assets/test.js +0 -2
  114. package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/messageSent.d.ts +0 -30
  115. package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/messageSent.js +0 -66
  116. package/dist/src/svm/clients/SvmSpoke/accounts/executeSlowRelayLeafParams.d.ts +0 -31
  117. package/dist/src/svm/clients/SvmSpoke/accounts/executeSlowRelayLeafParams.js +0 -70
  118. package/dist/src/svm/clients/SvmSpoke/accounts/fillRelayParams.d.ts +0 -31
  119. package/dist/src/svm/clients/SvmSpoke/accounts/fillRelayParams.js +0 -67
  120. package/dist/src/svm/clients/SvmSpoke/accounts/requestSlowFillParams.d.ts +0 -27
  121. package/dist/src/svm/clients/SvmSpoke/accounts/requestSlowFillParams.js +0 -66
  122. package/dist/src/svm/clients/SvmSpoke/instructions/deposit.d.ts +0 -131
  123. package/dist/src/svm/clients/SvmSpoke/instructions/deposit.js +0 -241
  124. package/dist/src/svm/clients/SvmSpoke/instructions/depositNow.d.ts +0 -127
  125. package/dist/src/svm/clients/SvmSpoke/instructions/depositNow.js +0 -239
  126. package/dist/src/svm/clients/SvmSpoke/instructions/executeSlowRelayLeaf.d.ts +0 -104
  127. package/dist/src/svm/clients/SvmSpoke/instructions/executeSlowRelayLeaf.js +0 -259
  128. package/dist/src/svm/clients/SvmSpoke/instructions/fillRelay.d.ts +0 -108
  129. package/dist/src/svm/clients/SvmSpoke/instructions/fillRelay.js +0 -265
  130. package/dist/src/svm/clients/SvmSpoke/instructions/getUnsafeDepositId.d.ts +0 -39
  131. package/dist/src/svm/clients/SvmSpoke/instructions/getUnsafeDepositId.js +0 -63
  132. package/dist/src/svm/clients/SvmSpoke/instructions/requestSlowFill.d.ts +0 -76
  133. package/dist/src/svm/clients/SvmSpoke/instructions/requestSlowFill.js +0 -187
  134. package/dist/src/svm/clients/SvmSpoke/instructions/unsafeDeposit.d.ts +0 -135
  135. package/dist/src/svm/clients/SvmSpoke/instructions/unsafeDeposit.js +0 -243
  136. package/dist/src/svm/clients/SvmSpoke/types/slowFill.d.ts +0 -22
  137. package/dist/target/types/svm_spoke.d.ts +0 -5106
  138. package/dist/target/types/svm_spoke.js +0 -2
@@ -7,70 +7,179 @@
7
7
  * @see https://github.com/codama-idl/codama
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.SVM_SPOKE_ERROR__INCONSISTENT_OPTIONAL_PARAMETERS = exports.SVM_SPOKE_ERROR__INVALID_DELEGATE_PDA = exports.SVM_SPOKE_ERROR__INVALID_A_T_A_CREATION_ACCOUNTS = exports.SVM_SPOKE_ERROR__INVALID_PRODUCTION_SEED = exports.SVM_SPOKE_ERROR__INVALID_REFUND_TOKEN_ACCOUNT = exports.SVM_SPOKE_ERROR__INVALID_CLAIM_INITIALIZER = exports.SVM_SPOKE_ERROR__NON_ZERO_REFUND_CLAIM = exports.SVM_SPOKE_ERROR__ZERO_REFUND_CLAIM = exports.SVM_SPOKE_ERROR__INVALID_REFUND = exports.SVM_SPOKE_ERROR__PARAMS_WRITE_OVERFLOW = exports.SVM_SPOKE_ERROR__NON_ZERO_AMOUNT_TO_RETURN = exports.SVM_SPOKE_ERROR__INVALID_MINT = exports.SVM_SPOKE_ERROR__INVALID_REMOTE_SENDER = exports.SVM_SPOKE_ERROR__INVALID_REMOTE_DOMAIN = exports.SVM_SPOKE_ERROR__CANNOT_SET_CURRENT_TIME = exports.SVM_SPOKE_ERROR__NOT_RELAYER = exports.SVM_SPOKE_ERROR__CAN_ONLY_CLOSE_FILL_STATUS_PDA_IF_FILL_DEADLINE_PASSED = exports.SVM_SPOKE_ERROR__INVALID_RELAY_HASH = exports.SVM_SPOKE_ERROR__NOT_OWNER = void 0;
10
+ exports.SVM_SPOKE_ERROR__INVALID_ARGUMENT = exports.SVM_SPOKE_ERROR__INVALID_SELECTOR = exports.SVM_SPOKE_ERROR__FILL_OUTPUT_AMOUNT_TOO_LOW = exports.SVM_SPOKE_ERROR__FILL_COMMITMENT_MISMATCH = exports.SVM_SPOKE_ERROR__INVALID_FILL_STATUS_ACCOUNT = exports.SVM_SPOKE_ERROR__INVALID_FILL_PAYER = exports.SVM_SPOKE_ERROR__UNSUPPORTED_TOKEN_EXTENSION = exports.SVM_SPOKE_ERROR__INVALID_TOKEN_ACCOUNT = exports.SVM_SPOKE_ERROR__UNSUPPORTED_MODE = exports.SVM_SPOKE_ERROR__INVALID_AMOUNT_BIPS = exports.SVM_SPOKE_ERROR__PARAM_MODIFICATION_NOT_AN_IMPROVEMENT = exports.SVM_SPOKE_ERROR__RESOLVED_INPUT_AMOUNT_BELOW_COMMITTED = exports.SVM_SPOKE_ERROR__INVALID_ACCOUNT_MUTABILITY = exports.SVM_SPOKE_ERROR__INVALID_DISPATCH_AUTHORITY = exports.SVM_SPOKE_ERROR__MISSING_ACCOUNT = exports.SVM_SPOKE_ERROR__INVALID_PARAM_MODIFICATION_SIGNATURE = exports.SVM_SPOKE_ERROR__INVALID_WIRE_FORMAT = exports.SVM_SPOKE_ERROR__INVALID_DELEGATE_PDA = exports.SVM_SPOKE_ERROR__INVALID_A_T_A_CREATION_ACCOUNTS = exports.SVM_SPOKE_ERROR__INVALID_PRODUCTION_SEED = exports.SVM_SPOKE_ERROR__INVALID_REFUND_TOKEN_ACCOUNT = exports.SVM_SPOKE_ERROR__INVALID_CLAIM_INITIALIZER = exports.SVM_SPOKE_ERROR__NON_ZERO_REFUND_CLAIM = exports.SVM_SPOKE_ERROR__ZERO_REFUND_CLAIM = exports.SVM_SPOKE_ERROR__INVALID_REFUND = exports.SVM_SPOKE_ERROR__PARAMS_WRITE_OVERFLOW = exports.SVM_SPOKE_ERROR__NON_ZERO_AMOUNT_TO_RETURN = exports.SVM_SPOKE_ERROR__INVALID_MINT = exports.SVM_SPOKE_ERROR__INVALID_REMOTE_SENDER = exports.SVM_SPOKE_ERROR__INVALID_REMOTE_DOMAIN = exports.SVM_SPOKE_ERROR__CANNOT_SET_CURRENT_TIME = exports.SVM_SPOKE_ERROR__NOT_RELAYER = exports.SVM_SPOKE_ERROR__CAN_ONLY_CLOSE_FILL_STATUS_PDA_IF_FILL_DEADLINE_PASSED = exports.SVM_SPOKE_ERROR__NOT_OWNER = exports.SVM_SPOKE_ERROR__INVALID_OUTPUT_TOKEN = exports.SVM_SPOKE_ERROR__INVALID_EXCLUSIVE_RELAYER = exports.SVM_SPOKE_ERROR__INSUFFICIENT_SPOKE_POOL_BALANCE_TO_EXECUTE_LEAF = exports.SVM_SPOKE_ERROR__FILLS_ARE_PAUSED = exports.SVM_SPOKE_ERROR__DEPOSITS_ARE_PAUSED = exports.SVM_SPOKE_ERROR__CLAIMED_MERKLE_LEAF = exports.SVM_SPOKE_ERROR__INVALID_MERKLE_LEAF = exports.SVM_SPOKE_ERROR__INVALID_CHAIN_ID = exports.SVM_SPOKE_ERROR__INVALID_MERKLE_PROOF = exports.SVM_SPOKE_ERROR__EXPIRED_FILL_DEADLINE = exports.SVM_SPOKE_ERROR__RETIRED_INVALID_SLOW_FILL_REQUEST = exports.SVM_SPOKE_ERROR__RELAY_FILLED = exports.SVM_SPOKE_ERROR__RETIRED_NO_SLOW_FILLS_IN_EXCLUSIVITY_WINDOW = exports.SVM_SPOKE_ERROR__NOT_EXCLUSIVE_RELAYER = exports.SVM_SPOKE_ERROR__INVALID_FILL_DEADLINE = exports.SVM_SPOKE_ERROR__INVALID_QUOTE_TIMESTAMP = void 0;
11
+ exports.SVM_SPOKE_ERROR__UNSUPPORTED_SELECTOR = exports.SVM_SPOKE_ERROR__INVALID_UINT64 = exports.SVM_SPOKE_ERROR__INVALID_UINT32 = exports.SVM_SPOKE_ERROR__INVALID_ADDRESS = exports.SVM_SPOKE_ERROR__INVALID_BOOL = void 0;
11
12
  exports.getSvmSpokeErrorMessage = getSvmSpokeErrorMessage;
12
13
  exports.isSvmSpokeError = isSvmSpokeError;
13
14
  const kit_1 = require("@solana/kit");
14
15
  const programs_1 = require("../programs");
16
+ /** InvalidQuoteTimestamp: Invalid quote timestamp! */
17
+ exports.SVM_SPOKE_ERROR__INVALID_QUOTE_TIMESTAMP = 0x1770; // 6000
18
+ /** InvalidFillDeadline: Invalid fill deadline! */
19
+ exports.SVM_SPOKE_ERROR__INVALID_FILL_DEADLINE = 0x1771; // 6001
20
+ /** NotExclusiveRelayer: Caller is not the exclusive relayer and exclusivity deadline has not passed! */
21
+ exports.SVM_SPOKE_ERROR__NOT_EXCLUSIVE_RELAYER = 0x1772; // 6002
22
+ /** RetiredNoSlowFillsInExclusivityWindow: The Deposit is still within the exclusivity window! */
23
+ exports.SVM_SPOKE_ERROR__RETIRED_NO_SLOW_FILLS_IN_EXCLUSIVITY_WINDOW = 0x1773; // 6003
24
+ /** RelayFilled: The relay has already been filled! */
25
+ exports.SVM_SPOKE_ERROR__RELAY_FILLED = 0x1774; // 6004
26
+ /** RetiredInvalidSlowFillRequest: Slow fill requires status of Unfilled! */
27
+ exports.SVM_SPOKE_ERROR__RETIRED_INVALID_SLOW_FILL_REQUEST = 0x1775; // 6005
28
+ /** ExpiredFillDeadline: The fill deadline has passed! */
29
+ exports.SVM_SPOKE_ERROR__EXPIRED_FILL_DEADLINE = 0x1776; // 6006
30
+ /** InvalidMerkleProof: Invalid Merkle proof! */
31
+ exports.SVM_SPOKE_ERROR__INVALID_MERKLE_PROOF = 0x1777; // 6007
32
+ /** InvalidChainId: Invalid chain id! */
33
+ exports.SVM_SPOKE_ERROR__INVALID_CHAIN_ID = 0x1778; // 6008
34
+ /** InvalidMerkleLeaf: Invalid Merkle leaf! */
35
+ exports.SVM_SPOKE_ERROR__INVALID_MERKLE_LEAF = 0x1779; // 6009
36
+ /** ClaimedMerkleLeaf: Leaf already claimed! */
37
+ exports.SVM_SPOKE_ERROR__CLAIMED_MERKLE_LEAF = 0x177a; // 6010
38
+ /** DepositsArePaused: Deposits are currently paused! */
39
+ exports.SVM_SPOKE_ERROR__DEPOSITS_ARE_PAUSED = 0x177b; // 6011
40
+ /** FillsArePaused: Fills are currently paused! */
41
+ exports.SVM_SPOKE_ERROR__FILLS_ARE_PAUSED = 0x177c; // 6012
42
+ /** InsufficientSpokePoolBalanceToExecuteLeaf: Insufficient spoke pool balance to execute leaf */
43
+ exports.SVM_SPOKE_ERROR__INSUFFICIENT_SPOKE_POOL_BALANCE_TO_EXECUTE_LEAF = 0x177d; // 6013
44
+ /** InvalidExclusiveRelayer: Invalid exclusive relayer! */
45
+ exports.SVM_SPOKE_ERROR__INVALID_EXCLUSIVE_RELAYER = 0x177e; // 6014
46
+ /** InvalidOutputToken: Invalid output token! */
47
+ exports.SVM_SPOKE_ERROR__INVALID_OUTPUT_TOKEN = 0x177f; // 6015
15
48
  /** NotOwner: Only the owner can call this function! */
16
- exports.SVM_SPOKE_ERROR__NOT_OWNER = 0x1770; // 6000
17
- /** InvalidRelayHash: Invalid relay hash! */
18
- exports.SVM_SPOKE_ERROR__INVALID_RELAY_HASH = 0x1771; // 6001
49
+ exports.SVM_SPOKE_ERROR__NOT_OWNER = 0x1b58; // 7000
19
50
  /** CanOnlyCloseFillStatusPdaIfFillDeadlinePassed: The fill deadline has not passed! */
20
- exports.SVM_SPOKE_ERROR__CAN_ONLY_CLOSE_FILL_STATUS_PDA_IF_FILL_DEADLINE_PASSED = 0x1772; // 6002
51
+ exports.SVM_SPOKE_ERROR__CAN_ONLY_CLOSE_FILL_STATUS_PDA_IF_FILL_DEADLINE_PASSED = 0x1b59; // 7001
21
52
  /** NotRelayer: The caller is not the relayer! */
22
- exports.SVM_SPOKE_ERROR__NOT_RELAYER = 0x1773; // 6003
53
+ exports.SVM_SPOKE_ERROR__NOT_RELAYER = 0x1b5a; // 7002
23
54
  /** CannotSetCurrentTime: Cannot set time if not in test mode! */
24
- exports.SVM_SPOKE_ERROR__CANNOT_SET_CURRENT_TIME = 0x1774; // 6004
55
+ exports.SVM_SPOKE_ERROR__CANNOT_SET_CURRENT_TIME = 0x1b5b; // 7003
25
56
  /** InvalidRemoteDomain: Invalid remote domain! */
26
- exports.SVM_SPOKE_ERROR__INVALID_REMOTE_DOMAIN = 0x1775; // 6005
57
+ exports.SVM_SPOKE_ERROR__INVALID_REMOTE_DOMAIN = 0x1b5c; // 7004
27
58
  /** InvalidRemoteSender: Invalid remote sender! */
28
- exports.SVM_SPOKE_ERROR__INVALID_REMOTE_SENDER = 0x1776; // 6006
59
+ exports.SVM_SPOKE_ERROR__INVALID_REMOTE_SENDER = 0x1b5d; // 7005
29
60
  /** InvalidMint: Invalid mint! */
30
- exports.SVM_SPOKE_ERROR__INVALID_MINT = 0x1777; // 6007
61
+ exports.SVM_SPOKE_ERROR__INVALID_MINT = 0x1b5e; // 7006
31
62
  /** NonZeroAmountToReturn: Relayer refund leaf must not return tokens to HubPool! */
32
- exports.SVM_SPOKE_ERROR__NON_ZERO_AMOUNT_TO_RETURN = 0x1778; // 6008
63
+ exports.SVM_SPOKE_ERROR__NON_ZERO_AMOUNT_TO_RETURN = 0x1b5f; // 7007
33
64
  /** ParamsWriteOverflow: Overflow writing to parameters account! */
34
- exports.SVM_SPOKE_ERROR__PARAMS_WRITE_OVERFLOW = 0x1779; // 6009
65
+ exports.SVM_SPOKE_ERROR__PARAMS_WRITE_OVERFLOW = 0x1b60; // 7008
35
66
  /** InvalidRefund: Invalid refund address! */
36
- exports.SVM_SPOKE_ERROR__INVALID_REFUND = 0x177a; // 6010
67
+ exports.SVM_SPOKE_ERROR__INVALID_REFUND = 0x1b61; // 7009
37
68
  /** ZeroRefundClaim: Zero relayer refund claim! */
38
- exports.SVM_SPOKE_ERROR__ZERO_REFUND_CLAIM = 0x177b; // 6011
69
+ exports.SVM_SPOKE_ERROR__ZERO_REFUND_CLAIM = 0x1b62; // 7010
39
70
  /** NonZeroRefundClaim: Cannot close non-zero relayer refund claim! */
40
- exports.SVM_SPOKE_ERROR__NON_ZERO_REFUND_CLAIM = 0x177c; // 6012
71
+ exports.SVM_SPOKE_ERROR__NON_ZERO_REFUND_CLAIM = 0x1b63; // 7011
41
72
  /** InvalidClaimInitializer: Invalid claim initializer! */
42
- exports.SVM_SPOKE_ERROR__INVALID_CLAIM_INITIALIZER = 0x177d; // 6013
73
+ exports.SVM_SPOKE_ERROR__INVALID_CLAIM_INITIALIZER = 0x1b64; // 7012
43
74
  /** InvalidRefundTokenAccount: Invalid refund token account! */
44
- exports.SVM_SPOKE_ERROR__INVALID_REFUND_TOKEN_ACCOUNT = 0x177e; // 6014
75
+ exports.SVM_SPOKE_ERROR__INVALID_REFUND_TOKEN_ACCOUNT = 0x1b65; // 7013
45
76
  /** InvalidProductionSeed: Seed must be 0 in production! */
46
- exports.SVM_SPOKE_ERROR__INVALID_PRODUCTION_SEED = 0x177f; // 6015
77
+ exports.SVM_SPOKE_ERROR__INVALID_PRODUCTION_SEED = 0x1b66; // 7014
47
78
  /** InvalidATACreationAccounts: Invalid remaining accounts for ATA creation! */
48
- exports.SVM_SPOKE_ERROR__INVALID_A_T_A_CREATION_ACCOUNTS = 0x1780; // 6016
79
+ exports.SVM_SPOKE_ERROR__INVALID_A_T_A_CREATION_ACCOUNTS = 0x1b67; // 7015
49
80
  /** InvalidDelegatePda: Invalid delegate PDA! */
50
- exports.SVM_SPOKE_ERROR__INVALID_DELEGATE_PDA = 0x1781; // 6017
51
- /** InconsistentOptionalParameters: Inconsistent optional parameters! */
52
- exports.SVM_SPOKE_ERROR__INCONSISTENT_OPTIONAL_PARAMETERS = 0x1782; // 6018
81
+ exports.SVM_SPOKE_ERROR__INVALID_DELEGATE_PDA = 0x1b68; // 7016
82
+ /** InvalidWireFormat: Malformed Across V5 wire data! */
83
+ exports.SVM_SPOKE_ERROR__INVALID_WIRE_FORMAT = 0x1f40; // 8000
84
+ /** InvalidParamModificationSignature: Invalid Across V5 parameter modification signature! */
85
+ exports.SVM_SPOKE_ERROR__INVALID_PARAM_MODIFICATION_SIGNATURE = 0x1f41; // 8001
86
+ /** MissingAccount: Missing required Across V5 account! */
87
+ exports.SVM_SPOKE_ERROR__MISSING_ACCOUNT = 0x1f42; // 8002
88
+ /** InvalidDispatchAuthority: Invalid Across V5 Gateway dispatch authority! */
89
+ exports.SVM_SPOKE_ERROR__INVALID_DISPATCH_AUTHORITY = 0x1f43; // 8003
90
+ /** InvalidAccountMutability: Across V5 account must be writable! */
91
+ exports.SVM_SPOKE_ERROR__INVALID_ACCOUNT_MUTABILITY = 0x1f44; // 8004
92
+ /** ResolvedInputAmountBelowCommitted: Resolved Across V5 input amount is below the committed floor! */
93
+ exports.SVM_SPOKE_ERROR__RESOLVED_INPUT_AMOUNT_BELOW_COMMITTED = 0x1f45; // 8005
94
+ /** ParamModificationNotAnImprovement: Across V5 parameter modification is not an improvement! */
95
+ exports.SVM_SPOKE_ERROR__PARAM_MODIFICATION_NOT_AN_IMPROVEMENT = 0x1f46; // 8006
96
+ /** InvalidAmountBips: Across V5 input amount bips exceed the denominator! */
97
+ exports.SVM_SPOKE_ERROR__INVALID_AMOUNT_BIPS = 0x1f47; // 8007
98
+ /** UnsupportedMode: Across V5 adapter mode is not enabled! */
99
+ exports.SVM_SPOKE_ERROR__UNSUPPORTED_MODE = 0x1f48; // 8008
100
+ /** InvalidTokenAccount: Invalid Across V5 token account! */
101
+ exports.SVM_SPOKE_ERROR__INVALID_TOKEN_ACCOUNT = 0x1f49; // 8009
102
+ /** UnsupportedTokenExtension: Unsupported Across V5 token extension! */
103
+ exports.SVM_SPOKE_ERROR__UNSUPPORTED_TOKEN_EXTENSION = 0x1f4a; // 8010
104
+ /** InvalidFillPayer: Invalid Across V5 fill payer! */
105
+ exports.SVM_SPOKE_ERROR__INVALID_FILL_PAYER = 0x1f4b; // 8011
106
+ /** InvalidFillStatusAccount: Invalid Across V5 fill status account! */
107
+ exports.SVM_SPOKE_ERROR__INVALID_FILL_STATUS_ACCOUNT = 0x1f4c; // 8012
108
+ /** FillCommitmentMismatch: Across V5 fill data does not match the committed input! */
109
+ exports.SVM_SPOKE_ERROR__FILL_COMMITMENT_MISMATCH = 0x1f4d; // 8013
110
+ /** FillOutputAmountTooLow: Across V5 fill output amount is below the committed floor! */
111
+ exports.SVM_SPOKE_ERROR__FILL_OUTPUT_AMOUNT_TOO_LOW = 0x1f4e; // 8014
112
+ /** InvalidSelector: Invalid solidity selector */
113
+ exports.SVM_SPOKE_ERROR__INVALID_SELECTOR = 0x2328; // 9000
114
+ /** InvalidArgument: Invalid solidity argument */
115
+ exports.SVM_SPOKE_ERROR__INVALID_ARGUMENT = 0x2329; // 9001
116
+ /** InvalidBool: Invalid solidity bool argument */
117
+ exports.SVM_SPOKE_ERROR__INVALID_BOOL = 0x232a; // 9002
118
+ /** InvalidAddress: Invalid solidity address argument */
119
+ exports.SVM_SPOKE_ERROR__INVALID_ADDRESS = 0x232b; // 9003
120
+ /** InvalidUint32: Invalid solidity uint32 argument */
121
+ exports.SVM_SPOKE_ERROR__INVALID_UINT32 = 0x232c; // 9004
122
+ /** InvalidUint64: Invalid solidity uint64 argument */
123
+ exports.SVM_SPOKE_ERROR__INVALID_UINT64 = 0x232d; // 9005
124
+ /** UnsupportedSelector: Unsupported solidity selector */
125
+ exports.SVM_SPOKE_ERROR__UNSUPPORTED_SELECTOR = 0x232e; // 9006
53
126
  let svmSpokeErrorMessages;
54
127
  if (process.env.NODE_ENV !== 'production') {
55
128
  svmSpokeErrorMessages = {
56
129
  [exports.SVM_SPOKE_ERROR__CANNOT_SET_CURRENT_TIME]: `Cannot set time if not in test mode!`,
57
130
  [exports.SVM_SPOKE_ERROR__CAN_ONLY_CLOSE_FILL_STATUS_PDA_IF_FILL_DEADLINE_PASSED]: `The fill deadline has not passed!`,
58
- [exports.SVM_SPOKE_ERROR__INCONSISTENT_OPTIONAL_PARAMETERS]: `Inconsistent optional parameters!`,
131
+ [exports.SVM_SPOKE_ERROR__CLAIMED_MERKLE_LEAF]: `Leaf already claimed!`,
132
+ [exports.SVM_SPOKE_ERROR__DEPOSITS_ARE_PAUSED]: `Deposits are currently paused!`,
133
+ [exports.SVM_SPOKE_ERROR__EXPIRED_FILL_DEADLINE]: `The fill deadline has passed!`,
134
+ [exports.SVM_SPOKE_ERROR__FILL_COMMITMENT_MISMATCH]: `Across V5 fill data does not match the committed input!`,
135
+ [exports.SVM_SPOKE_ERROR__FILL_OUTPUT_AMOUNT_TOO_LOW]: `Across V5 fill output amount is below the committed floor!`,
136
+ [exports.SVM_SPOKE_ERROR__FILLS_ARE_PAUSED]: `Fills are currently paused!`,
137
+ [exports.SVM_SPOKE_ERROR__INSUFFICIENT_SPOKE_POOL_BALANCE_TO_EXECUTE_LEAF]: `Insufficient spoke pool balance to execute leaf`,
138
+ [exports.SVM_SPOKE_ERROR__INVALID_ACCOUNT_MUTABILITY]: `Across V5 account must be writable!`,
139
+ [exports.SVM_SPOKE_ERROR__INVALID_ADDRESS]: `Invalid solidity address argument`,
140
+ [exports.SVM_SPOKE_ERROR__INVALID_AMOUNT_BIPS]: `Across V5 input amount bips exceed the denominator!`,
141
+ [exports.SVM_SPOKE_ERROR__INVALID_ARGUMENT]: `Invalid solidity argument`,
59
142
  [exports.SVM_SPOKE_ERROR__INVALID_A_T_A_CREATION_ACCOUNTS]: `Invalid remaining accounts for ATA creation!`,
143
+ [exports.SVM_SPOKE_ERROR__INVALID_BOOL]: `Invalid solidity bool argument`,
144
+ [exports.SVM_SPOKE_ERROR__INVALID_CHAIN_ID]: `Invalid chain id!`,
60
145
  [exports.SVM_SPOKE_ERROR__INVALID_CLAIM_INITIALIZER]: `Invalid claim initializer!`,
61
146
  [exports.SVM_SPOKE_ERROR__INVALID_DELEGATE_PDA]: `Invalid delegate PDA!`,
147
+ [exports.SVM_SPOKE_ERROR__INVALID_DISPATCH_AUTHORITY]: `Invalid Across V5 Gateway dispatch authority!`,
148
+ [exports.SVM_SPOKE_ERROR__INVALID_EXCLUSIVE_RELAYER]: `Invalid exclusive relayer!`,
149
+ [exports.SVM_SPOKE_ERROR__INVALID_FILL_DEADLINE]: `Invalid fill deadline!`,
150
+ [exports.SVM_SPOKE_ERROR__INVALID_FILL_PAYER]: `Invalid Across V5 fill payer!`,
151
+ [exports.SVM_SPOKE_ERROR__INVALID_FILL_STATUS_ACCOUNT]: `Invalid Across V5 fill status account!`,
152
+ [exports.SVM_SPOKE_ERROR__INVALID_MERKLE_LEAF]: `Invalid Merkle leaf!`,
153
+ [exports.SVM_SPOKE_ERROR__INVALID_MERKLE_PROOF]: `Invalid Merkle proof!`,
62
154
  [exports.SVM_SPOKE_ERROR__INVALID_MINT]: `Invalid mint!`,
155
+ [exports.SVM_SPOKE_ERROR__INVALID_OUTPUT_TOKEN]: `Invalid output token!`,
156
+ [exports.SVM_SPOKE_ERROR__INVALID_PARAM_MODIFICATION_SIGNATURE]: `Invalid Across V5 parameter modification signature!`,
63
157
  [exports.SVM_SPOKE_ERROR__INVALID_PRODUCTION_SEED]: `Seed must be 0 in production!`,
158
+ [exports.SVM_SPOKE_ERROR__INVALID_QUOTE_TIMESTAMP]: `Invalid quote timestamp!`,
64
159
  [exports.SVM_SPOKE_ERROR__INVALID_REFUND]: `Invalid refund address!`,
65
160
  [exports.SVM_SPOKE_ERROR__INVALID_REFUND_TOKEN_ACCOUNT]: `Invalid refund token account!`,
66
- [exports.SVM_SPOKE_ERROR__INVALID_RELAY_HASH]: `Invalid relay hash!`,
67
161
  [exports.SVM_SPOKE_ERROR__INVALID_REMOTE_DOMAIN]: `Invalid remote domain!`,
68
162
  [exports.SVM_SPOKE_ERROR__INVALID_REMOTE_SENDER]: `Invalid remote sender!`,
163
+ [exports.SVM_SPOKE_ERROR__INVALID_SELECTOR]: `Invalid solidity selector`,
164
+ [exports.SVM_SPOKE_ERROR__INVALID_TOKEN_ACCOUNT]: `Invalid Across V5 token account!`,
165
+ [exports.SVM_SPOKE_ERROR__INVALID_UINT32]: `Invalid solidity uint32 argument`,
166
+ [exports.SVM_SPOKE_ERROR__INVALID_UINT64]: `Invalid solidity uint64 argument`,
167
+ [exports.SVM_SPOKE_ERROR__INVALID_WIRE_FORMAT]: `Malformed Across V5 wire data!`,
168
+ [exports.SVM_SPOKE_ERROR__MISSING_ACCOUNT]: `Missing required Across V5 account!`,
69
169
  [exports.SVM_SPOKE_ERROR__NON_ZERO_AMOUNT_TO_RETURN]: `Relayer refund leaf must not return tokens to HubPool!`,
70
170
  [exports.SVM_SPOKE_ERROR__NON_ZERO_REFUND_CLAIM]: `Cannot close non-zero relayer refund claim!`,
171
+ [exports.SVM_SPOKE_ERROR__NOT_EXCLUSIVE_RELAYER]: `Caller is not the exclusive relayer and exclusivity deadline has not passed!`,
71
172
  [exports.SVM_SPOKE_ERROR__NOT_OWNER]: `Only the owner can call this function!`,
72
173
  [exports.SVM_SPOKE_ERROR__NOT_RELAYER]: `The caller is not the relayer!`,
174
+ [exports.SVM_SPOKE_ERROR__PARAM_MODIFICATION_NOT_AN_IMPROVEMENT]: `Across V5 parameter modification is not an improvement!`,
73
175
  [exports.SVM_SPOKE_ERROR__PARAMS_WRITE_OVERFLOW]: `Overflow writing to parameters account!`,
176
+ [exports.SVM_SPOKE_ERROR__RELAY_FILLED]: `The relay has already been filled!`,
177
+ [exports.SVM_SPOKE_ERROR__RESOLVED_INPUT_AMOUNT_BELOW_COMMITTED]: `Resolved Across V5 input amount is below the committed floor!`,
178
+ [exports.SVM_SPOKE_ERROR__RETIRED_INVALID_SLOW_FILL_REQUEST]: `Slow fill requires status of Unfilled!`,
179
+ [exports.SVM_SPOKE_ERROR__RETIRED_NO_SLOW_FILLS_IN_EXCLUSIVITY_WINDOW]: `The Deposit is still within the exclusivity window!`,
180
+ [exports.SVM_SPOKE_ERROR__UNSUPPORTED_MODE]: `Across V5 adapter mode is not enabled!`,
181
+ [exports.SVM_SPOKE_ERROR__UNSUPPORTED_SELECTOR]: `Unsupported solidity selector`,
182
+ [exports.SVM_SPOKE_ERROR__UNSUPPORTED_TOKEN_EXTENSION]: `Unsupported Across V5 token extension!`,
74
183
  [exports.SVM_SPOKE_ERROR__ZERO_REFUND_CLAIM]: `Zero relayer refund claim!`,
75
184
  };
76
185
  }
@@ -0,0 +1,75 @@
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 AccountMeta, type Address, type Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array } from '@solana/kit';
9
+ import { SVM_SPOKE_PROGRAM_ADDRESS } from '../programs';
10
+ export declare const ADAPTER_EXECUTE_ACROSS_V5_DISCRIMINATOR: Uint8Array;
11
+ export declare function getAdapterExecuteAcrossV5DiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
12
+ export type AdapterExecuteAcrossV5Instruction<TProgram extends string = typeof SVM_SPOKE_PROGRAM_ADDRESS, TAccountDispatchAuthority extends string | AccountMeta<string> = string, TAccountState extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
13
+ TAccountDispatchAuthority extends string ? ReadonlyAccount<TAccountDispatchAuthority> : TAccountDispatchAuthority,
14
+ TAccountState extends string ? ReadonlyAccount<TAccountState> : TAccountState,
15
+ TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
16
+ TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
17
+ ...TRemainingAccounts
18
+ ]>;
19
+ export type AdapterExecuteAcrossV5InstructionData = {
20
+ discriminator: ReadonlyUint8Array;
21
+ stepId: ReadonlyUint8Array;
22
+ pathId: ReadonlyUint8Array;
23
+ submitter: Address;
24
+ input: ReadonlyUint8Array;
25
+ jitData: ReadonlyUint8Array;
26
+ };
27
+ export type AdapterExecuteAcrossV5InstructionDataArgs = {
28
+ stepId: ReadonlyUint8Array;
29
+ pathId: ReadonlyUint8Array;
30
+ submitter: Address;
31
+ input: ReadonlyUint8Array;
32
+ jitData: ReadonlyUint8Array;
33
+ };
34
+ export declare function getAdapterExecuteAcrossV5InstructionDataEncoder(): Encoder<AdapterExecuteAcrossV5InstructionDataArgs>;
35
+ export declare function getAdapterExecuteAcrossV5InstructionDataDecoder(): Decoder<AdapterExecuteAcrossV5InstructionData>;
36
+ export declare function getAdapterExecuteAcrossV5InstructionDataCodec(): Codec<AdapterExecuteAcrossV5InstructionDataArgs, AdapterExecuteAcrossV5InstructionData>;
37
+ export type AdapterExecuteAcrossV5AsyncInput<TAccountDispatchAuthority extends string = string, TAccountState extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
38
+ dispatchAuthority: Address<TAccountDispatchAuthority>;
39
+ state: Address<TAccountState>;
40
+ eventAuthority?: Address<TAccountEventAuthority>;
41
+ program: Address<TAccountProgram>;
42
+ stepId: AdapterExecuteAcrossV5InstructionDataArgs['stepId'];
43
+ pathId: AdapterExecuteAcrossV5InstructionDataArgs['pathId'];
44
+ submitter: AdapterExecuteAcrossV5InstructionDataArgs['submitter'];
45
+ input: AdapterExecuteAcrossV5InstructionDataArgs['input'];
46
+ jitData: AdapterExecuteAcrossV5InstructionDataArgs['jitData'];
47
+ };
48
+ export declare function getAdapterExecuteAcrossV5InstructionAsync<TAccountDispatchAuthority extends string, TAccountState extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof SVM_SPOKE_PROGRAM_ADDRESS>(input: AdapterExecuteAcrossV5AsyncInput<TAccountDispatchAuthority, TAccountState, TAccountEventAuthority, TAccountProgram>, config?: {
49
+ programAddress?: TProgramAddress;
50
+ }): Promise<AdapterExecuteAcrossV5Instruction<TProgramAddress, TAccountDispatchAuthority, TAccountState, TAccountEventAuthority, TAccountProgram>>;
51
+ export type AdapterExecuteAcrossV5Input<TAccountDispatchAuthority extends string = string, TAccountState extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
52
+ dispatchAuthority: Address<TAccountDispatchAuthority>;
53
+ state: Address<TAccountState>;
54
+ eventAuthority: Address<TAccountEventAuthority>;
55
+ program: Address<TAccountProgram>;
56
+ stepId: AdapterExecuteAcrossV5InstructionDataArgs['stepId'];
57
+ pathId: AdapterExecuteAcrossV5InstructionDataArgs['pathId'];
58
+ submitter: AdapterExecuteAcrossV5InstructionDataArgs['submitter'];
59
+ input: AdapterExecuteAcrossV5InstructionDataArgs['input'];
60
+ jitData: AdapterExecuteAcrossV5InstructionDataArgs['jitData'];
61
+ };
62
+ export declare function getAdapterExecuteAcrossV5Instruction<TAccountDispatchAuthority extends string, TAccountState extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof SVM_SPOKE_PROGRAM_ADDRESS>(input: AdapterExecuteAcrossV5Input<TAccountDispatchAuthority, TAccountState, TAccountEventAuthority, TAccountProgram>, config?: {
63
+ programAddress?: TProgramAddress;
64
+ }): AdapterExecuteAcrossV5Instruction<TProgramAddress, TAccountDispatchAuthority, TAccountState, TAccountEventAuthority, TAccountProgram>;
65
+ export type ParsedAdapterExecuteAcrossV5Instruction<TProgram extends string = typeof SVM_SPOKE_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
66
+ programAddress: Address<TProgram>;
67
+ accounts: {
68
+ dispatchAuthority: TAccountMetas[0];
69
+ state: TAccountMetas[1];
70
+ eventAuthority: TAccountMetas[2];
71
+ program: TAccountMetas[3];
72
+ };
73
+ data: AdapterExecuteAcrossV5InstructionData;
74
+ };
75
+ export declare function parseAdapterExecuteAcrossV5Instruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAdapterExecuteAcrossV5Instruction<TProgram, TAccountMetas>;
@@ -0,0 +1,144 @@
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.ADAPTER_EXECUTE_ACROSS_V5_DISCRIMINATOR = void 0;
11
+ exports.getAdapterExecuteAcrossV5DiscriminatorBytes = getAdapterExecuteAcrossV5DiscriminatorBytes;
12
+ exports.getAdapterExecuteAcrossV5InstructionDataEncoder = getAdapterExecuteAcrossV5InstructionDataEncoder;
13
+ exports.getAdapterExecuteAcrossV5InstructionDataDecoder = getAdapterExecuteAcrossV5InstructionDataDecoder;
14
+ exports.getAdapterExecuteAcrossV5InstructionDataCodec = getAdapterExecuteAcrossV5InstructionDataCodec;
15
+ exports.getAdapterExecuteAcrossV5InstructionAsync = getAdapterExecuteAcrossV5InstructionAsync;
16
+ exports.getAdapterExecuteAcrossV5Instruction = getAdapterExecuteAcrossV5Instruction;
17
+ exports.parseAdapterExecuteAcrossV5Instruction = parseAdapterExecuteAcrossV5Instruction;
18
+ const kit_1 = require("@solana/kit");
19
+ const programs_1 = require("../programs");
20
+ const shared_1 = require("../shared");
21
+ exports.ADAPTER_EXECUTE_ACROSS_V5_DISCRIMINATOR = new Uint8Array([
22
+ 23, 161, 69, 148, 150, 128, 173, 220,
23
+ ]);
24
+ function getAdapterExecuteAcrossV5DiscriminatorBytes() {
25
+ return (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(exports.ADAPTER_EXECUTE_ACROSS_V5_DISCRIMINATOR);
26
+ }
27
+ function getAdapterExecuteAcrossV5InstructionDataEncoder() {
28
+ return (0, kit_1.transformEncoder)((0, kit_1.getStructEncoder)([
29
+ ['discriminator', (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8)],
30
+ ['stepId', (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 32)],
31
+ ['pathId', (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 32)],
32
+ ['submitter', (0, kit_1.getAddressEncoder)()],
33
+ ['input', (0, kit_1.addEncoderSizePrefix)((0, kit_1.getBytesEncoder)(), (0, kit_1.getU32Encoder)())],
34
+ ['jitData', (0, kit_1.addEncoderSizePrefix)((0, kit_1.getBytesEncoder)(), (0, kit_1.getU32Encoder)())],
35
+ ]), (value) => ({
36
+ ...value,
37
+ discriminator: exports.ADAPTER_EXECUTE_ACROSS_V5_DISCRIMINATOR,
38
+ }));
39
+ }
40
+ function getAdapterExecuteAcrossV5InstructionDataDecoder() {
41
+ return (0, kit_1.getStructDecoder)([
42
+ ['discriminator', (0, kit_1.fixDecoderSize)((0, kit_1.getBytesDecoder)(), 8)],
43
+ ['stepId', (0, kit_1.fixDecoderSize)((0, kit_1.getBytesDecoder)(), 32)],
44
+ ['pathId', (0, kit_1.fixDecoderSize)((0, kit_1.getBytesDecoder)(), 32)],
45
+ ['submitter', (0, kit_1.getAddressDecoder)()],
46
+ ['input', (0, kit_1.addDecoderSizePrefix)((0, kit_1.getBytesDecoder)(), (0, kit_1.getU32Decoder)())],
47
+ ['jitData', (0, kit_1.addDecoderSizePrefix)((0, kit_1.getBytesDecoder)(), (0, kit_1.getU32Decoder)())],
48
+ ]);
49
+ }
50
+ function getAdapterExecuteAcrossV5InstructionDataCodec() {
51
+ return (0, kit_1.combineCodec)(getAdapterExecuteAcrossV5InstructionDataEncoder(), getAdapterExecuteAcrossV5InstructionDataDecoder());
52
+ }
53
+ async function getAdapterExecuteAcrossV5InstructionAsync(input, config) {
54
+ // Program address.
55
+ const programAddress = config?.programAddress ?? programs_1.SVM_SPOKE_PROGRAM_ADDRESS;
56
+ // Original accounts.
57
+ const originalAccounts = {
58
+ dispatchAuthority: {
59
+ value: input.dispatchAuthority ?? null,
60
+ isWritable: false,
61
+ },
62
+ state: { value: input.state ?? null, isWritable: false },
63
+ eventAuthority: { value: input.eventAuthority ?? null, isWritable: false },
64
+ program: { value: input.program ?? null, isWritable: false },
65
+ };
66
+ const accounts = originalAccounts;
67
+ // Original args.
68
+ const args = { ...input };
69
+ // Resolve default values.
70
+ if (!accounts.eventAuthority.value) {
71
+ accounts.eventAuthority.value = await (0, kit_1.getProgramDerivedAddress)({
72
+ programAddress,
73
+ seeds: [
74
+ (0, kit_1.getBytesEncoder)().encode(new Uint8Array([
75
+ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114,
76
+ 105, 116, 121,
77
+ ])),
78
+ ],
79
+ });
80
+ }
81
+ const getAccountMeta = (0, shared_1.getAccountMetaFactory)(programAddress, 'programId');
82
+ const instruction = {
83
+ accounts: [
84
+ getAccountMeta(accounts.dispatchAuthority),
85
+ getAccountMeta(accounts.state),
86
+ getAccountMeta(accounts.eventAuthority),
87
+ getAccountMeta(accounts.program),
88
+ ],
89
+ programAddress,
90
+ data: getAdapterExecuteAcrossV5InstructionDataEncoder().encode(args),
91
+ };
92
+ return instruction;
93
+ }
94
+ function getAdapterExecuteAcrossV5Instruction(input, config) {
95
+ // Program address.
96
+ const programAddress = config?.programAddress ?? programs_1.SVM_SPOKE_PROGRAM_ADDRESS;
97
+ // Original accounts.
98
+ const originalAccounts = {
99
+ dispatchAuthority: {
100
+ value: input.dispatchAuthority ?? null,
101
+ isWritable: false,
102
+ },
103
+ state: { value: input.state ?? null, isWritable: false },
104
+ eventAuthority: { value: input.eventAuthority ?? null, isWritable: false },
105
+ program: { value: input.program ?? null, isWritable: false },
106
+ };
107
+ const accounts = originalAccounts;
108
+ // Original args.
109
+ const args = { ...input };
110
+ const getAccountMeta = (0, shared_1.getAccountMetaFactory)(programAddress, 'programId');
111
+ const instruction = {
112
+ accounts: [
113
+ getAccountMeta(accounts.dispatchAuthority),
114
+ getAccountMeta(accounts.state),
115
+ getAccountMeta(accounts.eventAuthority),
116
+ getAccountMeta(accounts.program),
117
+ ],
118
+ programAddress,
119
+ data: getAdapterExecuteAcrossV5InstructionDataEncoder().encode(args),
120
+ };
121
+ return instruction;
122
+ }
123
+ function parseAdapterExecuteAcrossV5Instruction(instruction) {
124
+ if (instruction.accounts.length < 4) {
125
+ // TODO: Coded error.
126
+ throw new Error('Not enough accounts');
127
+ }
128
+ let accountIndex = 0;
129
+ const getNextAccount = () => {
130
+ const accountMeta = instruction.accounts[accountIndex];
131
+ accountIndex += 1;
132
+ return accountMeta;
133
+ };
134
+ return {
135
+ programAddress: instruction.programAddress,
136
+ accounts: {
137
+ dispatchAuthority: getNextAccount(),
138
+ state: getNextAccount(),
139
+ eventAuthority: getNextAccount(),
140
+ program: getNextAccount(),
141
+ },
142
+ data: getAdapterExecuteAcrossV5InstructionDataDecoder().decode(instruction.data),
143
+ };
144
+ }
@@ -5,12 +5,12 @@
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
8
- import { type AccountMeta, type AccountSignerMeta, type Address, type Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit';
8
+ import { type AccountMeta, type Address, type Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type WritableAccount } from '@solana/kit';
9
9
  import { SVM_SPOKE_PROGRAM_ADDRESS } from '../programs';
10
10
  export declare const CLOSE_FILL_PDA_DISCRIMINATOR: Uint8Array;
11
11
  export declare function getCloseFillPdaDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
12
- export type CloseFillPdaInstruction<TProgram extends string = typeof SVM_SPOKE_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountState extends string | AccountMeta<string> = string, TAccountFillStatus extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
13
- TAccountSigner extends string ? WritableSignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
12
+ export type CloseFillPdaInstruction<TProgram extends string = typeof SVM_SPOKE_PROGRAM_ADDRESS, TAccountRentRecipient extends string | AccountMeta<string> = string, TAccountState extends string | AccountMeta<string> = string, TAccountFillStatus extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
13
+ TAccountRentRecipient extends string ? WritableAccount<TAccountRentRecipient> : TAccountRentRecipient,
14
14
  TAccountState extends string ? ReadonlyAccount<TAccountState> : TAccountState,
15
15
  TAccountFillStatus extends string ? WritableAccount<TAccountFillStatus> : TAccountFillStatus,
16
16
  ...TRemainingAccounts
@@ -22,18 +22,26 @@ export type CloseFillPdaInstructionDataArgs = {};
22
22
  export declare function getCloseFillPdaInstructionDataEncoder(): Encoder<CloseFillPdaInstructionDataArgs>;
23
23
  export declare function getCloseFillPdaInstructionDataDecoder(): Decoder<CloseFillPdaInstructionData>;
24
24
  export declare function getCloseFillPdaInstructionDataCodec(): Codec<CloseFillPdaInstructionDataArgs, CloseFillPdaInstructionData>;
25
- export type CloseFillPdaInput<TAccountSigner extends string = string, TAccountState extends string = string, TAccountFillStatus extends string = string> = {
26
- signer: TransactionSigner<TAccountSigner>;
25
+ export type CloseFillPdaInput<TAccountRentRecipient extends string = string, TAccountState extends string = string, TAccountFillStatus extends string = string> = {
26
+ /**
27
+ * For V5 fills, supply the submitter's `["v5_fill_payer", submitter]` PDA recorded in
28
+ * `fill_status.rent_recipient`; legacy accounts retain the relayer or slow-fill requester address.
29
+ */
30
+ rentRecipient: Address<TAccountRentRecipient>;
27
31
  state: Address<TAccountState>;
28
32
  fillStatus: Address<TAccountFillStatus>;
29
33
  };
30
- export declare function getCloseFillPdaInstruction<TAccountSigner extends string, TAccountState extends string, TAccountFillStatus extends string, TProgramAddress extends Address = typeof SVM_SPOKE_PROGRAM_ADDRESS>(input: CloseFillPdaInput<TAccountSigner, TAccountState, TAccountFillStatus>, config?: {
34
+ export declare function getCloseFillPdaInstruction<TAccountRentRecipient extends string, TAccountState extends string, TAccountFillStatus extends string, TProgramAddress extends Address = typeof SVM_SPOKE_PROGRAM_ADDRESS>(input: CloseFillPdaInput<TAccountRentRecipient, TAccountState, TAccountFillStatus>, config?: {
31
35
  programAddress?: TProgramAddress;
32
- }): CloseFillPdaInstruction<TProgramAddress, TAccountSigner, TAccountState, TAccountFillStatus>;
36
+ }): CloseFillPdaInstruction<TProgramAddress, TAccountRentRecipient, TAccountState, TAccountFillStatus>;
33
37
  export type ParsedCloseFillPdaInstruction<TProgram extends string = typeof SVM_SPOKE_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
34
38
  programAddress: Address<TProgram>;
35
39
  accounts: {
36
- signer: TAccountMetas[0];
40
+ /**
41
+ * For V5 fills, supply the submitter's `["v5_fill_payer", submitter]` PDA recorded in
42
+ * `fill_status.rent_recipient`; legacy accounts retain the relayer or slow-fill requester address.
43
+ */
44
+ rentRecipient: TAccountMetas[0];
37
45
  state: TAccountMetas[1];
38
46
  fillStatus: TAccountMetas[2];
39
47
  };
@@ -39,7 +39,7 @@ function getCloseFillPdaInstruction(input, config) {
39
39
  const programAddress = config?.programAddress ?? programs_1.SVM_SPOKE_PROGRAM_ADDRESS;
40
40
  // Original accounts.
41
41
  const originalAccounts = {
42
- signer: { value: input.signer ?? null, isWritable: true },
42
+ rentRecipient: { value: input.rentRecipient ?? null, isWritable: true },
43
43
  state: { value: input.state ?? null, isWritable: false },
44
44
  fillStatus: { value: input.fillStatus ?? null, isWritable: true },
45
45
  };
@@ -47,7 +47,7 @@ function getCloseFillPdaInstruction(input, config) {
47
47
  const getAccountMeta = (0, shared_1.getAccountMetaFactory)(programAddress, 'programId');
48
48
  const instruction = {
49
49
  accounts: [
50
- getAccountMeta(accounts.signer),
50
+ getAccountMeta(accounts.rentRecipient),
51
51
  getAccountMeta(accounts.state),
52
52
  getAccountMeta(accounts.fillStatus),
53
53
  ],
@@ -70,7 +70,7 @@ function parseCloseFillPdaInstruction(instruction) {
70
70
  return {
71
71
  programAddress: instruction.programAddress,
72
72
  accounts: {
73
- signer: getNextAccount(),
73
+ rentRecipient: getNextAccount(),
74
74
  state: getNextAccount(),
75
75
  fillStatus: getNextAccount(),
76
76
  },
@@ -5,19 +5,15 @@
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
8
+ export * from './adapterExecuteAcrossV5';
8
9
  export * from './claimRelayerRefund';
9
10
  export * from './closeClaimAccount';
10
11
  export * from './closeFillPda';
11
12
  export * from './closeInstructionParams';
12
13
  export * from './createTokenAccounts';
13
- export * from './deposit';
14
- export * from './depositNow';
15
14
  export * from './emergencyDeleteRootBundle';
16
15
  export * from './executeRelayerRefundLeaf';
17
16
  export * from './executeRelayerRefundLeafDeferred';
18
- export * from './executeSlowRelayLeaf';
19
- export * from './fillRelay';
20
- export * from './getUnsafeDepositId';
21
17
  export * from './handleReceiveFinalizedMessage';
22
18
  export * from './initialize';
23
19
  export * from './initializeClaimAccount';
@@ -25,9 +21,8 @@ export * from './initializeInstructionParams';
25
21
  export * from './pauseDeposits';
26
22
  export * from './pauseFills';
27
23
  export * from './relayRootBundle';
28
- export * from './requestSlowFill';
29
24
  export * from './setCrossDomainAdmin';
30
25
  export * from './setCurrentTime';
31
26
  export * from './transferOwnership';
32
- export * from './unsafeDeposit';
27
+ export * from './withdrawV5FillPayer';
33
28
  export * from './writeInstructionParamsFragment';
@@ -21,19 +21,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
21
21
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
22
22
  };
23
23
  Object.defineProperty(exports, "__esModule", { value: true });
24
+ __exportStar(require("./adapterExecuteAcrossV5"), exports);
24
25
  __exportStar(require("./claimRelayerRefund"), exports);
25
26
  __exportStar(require("./closeClaimAccount"), exports);
26
27
  __exportStar(require("./closeFillPda"), exports);
27
28
  __exportStar(require("./closeInstructionParams"), exports);
28
29
  __exportStar(require("./createTokenAccounts"), exports);
29
- __exportStar(require("./deposit"), exports);
30
- __exportStar(require("./depositNow"), exports);
31
30
  __exportStar(require("./emergencyDeleteRootBundle"), exports);
32
31
  __exportStar(require("./executeRelayerRefundLeaf"), exports);
33
32
  __exportStar(require("./executeRelayerRefundLeafDeferred"), exports);
34
- __exportStar(require("./executeSlowRelayLeaf"), exports);
35
- __exportStar(require("./fillRelay"), exports);
36
- __exportStar(require("./getUnsafeDepositId"), exports);
37
33
  __exportStar(require("./handleReceiveFinalizedMessage"), exports);
38
34
  __exportStar(require("./initialize"), exports);
39
35
  __exportStar(require("./initializeClaimAccount"), exports);
@@ -41,9 +37,8 @@ __exportStar(require("./initializeInstructionParams"), exports);
41
37
  __exportStar(require("./pauseDeposits"), exports);
42
38
  __exportStar(require("./pauseFills"), exports);
43
39
  __exportStar(require("./relayRootBundle"), exports);
44
- __exportStar(require("./requestSlowFill"), exports);
45
40
  __exportStar(require("./setCrossDomainAdmin"), exports);
46
41
  __exportStar(require("./setCurrentTime"), exports);
47
42
  __exportStar(require("./transferOwnership"), exports);
48
- __exportStar(require("./unsafeDeposit"), exports);
43
+ __exportStar(require("./withdrawV5FillPayer"), exports);
49
44
  __exportStar(require("./writeInstructionParamsFragment"), exports);
@@ -0,0 +1,58 @@
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 AccountMeta, type AccountSignerMeta, type Address, type Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit';
9
+ import { SVM_SPOKE_PROGRAM_ADDRESS } from '../programs';
10
+ export declare const WITHDRAW_V5_FILL_PAYER_DISCRIMINATOR: Uint8Array;
11
+ export declare function getWithdrawV5FillPayerDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
12
+ export type WithdrawV5FillPayerInstruction<TProgram extends string = typeof SVM_SPOKE_PROGRAM_ADDRESS, TAccountSubmitter extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
13
+ TAccountSubmitter extends string ? WritableSignerAccount<TAccountSubmitter> & AccountSignerMeta<TAccountSubmitter> : TAccountSubmitter,
14
+ TAccountPayer extends string ? WritableAccount<TAccountPayer> : TAccountPayer,
15
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
16
+ ...TRemainingAccounts
17
+ ]>;
18
+ export type WithdrawV5FillPayerInstructionData = {
19
+ discriminator: ReadonlyUint8Array;
20
+ amount: bigint;
21
+ };
22
+ export type WithdrawV5FillPayerInstructionDataArgs = {
23
+ amount: number | bigint;
24
+ };
25
+ export declare function getWithdrawV5FillPayerInstructionDataEncoder(): Encoder<WithdrawV5FillPayerInstructionDataArgs>;
26
+ export declare function getWithdrawV5FillPayerInstructionDataDecoder(): Decoder<WithdrawV5FillPayerInstructionData>;
27
+ export declare function getWithdrawV5FillPayerInstructionDataCodec(): Codec<WithdrawV5FillPayerInstructionDataArgs, WithdrawV5FillPayerInstructionData>;
28
+ export type WithdrawV5FillPayerAsyncInput<TAccountSubmitter extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = {
29
+ /** The float owner and the only withdrawal destination. */
30
+ submitter: TransactionSigner<TAccountSubmitter>;
31
+ payer?: Address<TAccountPayer>;
32
+ systemProgram?: Address<TAccountSystemProgram>;
33
+ amount: WithdrawV5FillPayerInstructionDataArgs['amount'];
34
+ };
35
+ export declare function getWithdrawV5FillPayerInstructionAsync<TAccountSubmitter extends string, TAccountPayer extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SVM_SPOKE_PROGRAM_ADDRESS>(input: WithdrawV5FillPayerAsyncInput<TAccountSubmitter, TAccountPayer, TAccountSystemProgram>, config?: {
36
+ programAddress?: TProgramAddress;
37
+ }): Promise<WithdrawV5FillPayerInstruction<TProgramAddress, TAccountSubmitter, TAccountPayer, TAccountSystemProgram>>;
38
+ export type WithdrawV5FillPayerInput<TAccountSubmitter extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string> = {
39
+ /** The float owner and the only withdrawal destination. */
40
+ submitter: TransactionSigner<TAccountSubmitter>;
41
+ payer: Address<TAccountPayer>;
42
+ systemProgram?: Address<TAccountSystemProgram>;
43
+ amount: WithdrawV5FillPayerInstructionDataArgs['amount'];
44
+ };
45
+ export declare function getWithdrawV5FillPayerInstruction<TAccountSubmitter extends string, TAccountPayer extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SVM_SPOKE_PROGRAM_ADDRESS>(input: WithdrawV5FillPayerInput<TAccountSubmitter, TAccountPayer, TAccountSystemProgram>, config?: {
46
+ programAddress?: TProgramAddress;
47
+ }): WithdrawV5FillPayerInstruction<TProgramAddress, TAccountSubmitter, TAccountPayer, TAccountSystemProgram>;
48
+ export type ParsedWithdrawV5FillPayerInstruction<TProgram extends string = typeof SVM_SPOKE_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
49
+ programAddress: Address<TProgram>;
50
+ accounts: {
51
+ /** The float owner and the only withdrawal destination. */
52
+ submitter: TAccountMetas[0];
53
+ payer: TAccountMetas[1];
54
+ systemProgram: TAccountMetas[2];
55
+ };
56
+ data: WithdrawV5FillPayerInstructionData;
57
+ };
58
+ export declare function parseWithdrawV5FillPayerInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedWithdrawV5FillPayerInstruction<TProgram, TAccountMetas>;