@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
@@ -382,7 +382,7 @@ export type TokenMessengerMinterV2 = {
382
382
  },
383
383
  {
384
384
  "kind": "account";
385
- "path": "local_token.mint";
385
+ "path": "localToken.mint";
386
386
  "account": "localToken";
387
387
  }
388
388
  ];
@@ -407,7 +407,7 @@ export type TokenMessengerMinterV2 = {
407
407
  },
408
408
  {
409
409
  "kind": "account";
410
- "path": "local_token.mint";
410
+ "path": "localToken.mint";
411
411
  "account": "localToken";
412
412
  }
413
413
  ];
@@ -1139,7 +1139,7 @@ export type TokenMessengerMinterV2 = {
1139
1139
  },
1140
1140
  {
1141
1141
  "kind": "account";
1142
- "path": "local_token.mint";
1142
+ "path": "localToken.mint";
1143
1143
  "account": "localToken";
1144
1144
  }
1145
1145
  ];
@@ -1155,7 +1155,7 @@ export type TokenMessengerMinterV2 = {
1155
1155
  "seeds": [
1156
1156
  {
1157
1157
  "kind": "account";
1158
- "path": "token_messenger.fee_recipient";
1158
+ "path": "tokenMessenger.feeRecipient";
1159
1159
  "account": "tokenMessenger";
1160
1160
  },
1161
1161
  {
@@ -1197,7 +1197,7 @@ export type TokenMessengerMinterV2 = {
1197
1197
  },
1198
1198
  {
1199
1199
  "kind": "account";
1200
- "path": "local_token.mint";
1200
+ "path": "localToken.mint";
1201
1201
  "account": "localToken";
1202
1202
  }
1203
1203
  ];
@@ -1263,7 +1263,7 @@ export type TokenMessengerMinterV2 = {
1263
1263
  },
1264
1264
  {
1265
1265
  "kind": "account";
1266
- "path": "local_token.mint";
1266
+ "path": "localToken.mint";
1267
1267
  "account": "localToken";
1268
1268
  }
1269
1269
  ];
@@ -1478,7 +1478,7 @@ export type TokenMessengerMinterV2 = {
1478
1478
  },
1479
1479
  {
1480
1480
  "kind": "account";
1481
- "path": "local_token.mint";
1481
+ "path": "localToken.mint";
1482
1482
  "account": "localToken";
1483
1483
  }
1484
1484
  ];
@@ -1494,7 +1494,7 @@ export type TokenMessengerMinterV2 = {
1494
1494
  "seeds": [
1495
1495
  {
1496
1496
  "kind": "account";
1497
- "path": "token_messenger.fee_recipient";
1497
+ "path": "tokenMessenger.feeRecipient";
1498
1498
  "account": "tokenMessenger";
1499
1499
  },
1500
1500
  {
@@ -1536,7 +1536,7 @@ export type TokenMessengerMinterV2 = {
1536
1536
  },
1537
1537
  {
1538
1538
  "kind": "account";
1539
- "path": "local_token.mint";
1539
+ "path": "localToken.mint";
1540
1540
  "account": "localToken";
1541
1541
  }
1542
1542
  ];
@@ -1602,7 +1602,7 @@ export type TokenMessengerMinterV2 = {
1602
1602
  },
1603
1603
  {
1604
1604
  "kind": "account";
1605
- "path": "local_token.mint";
1605
+ "path": "localToken.mint";
1606
1606
  "account": "localToken";
1607
1607
  }
1608
1608
  ];
@@ -1864,11 +1864,11 @@ export type TokenMessengerMinterV2 = {
1864
1864
  },
1865
1865
  {
1866
1866
  "kind": "arg";
1867
- "path": "params.remote_domain";
1867
+ "path": "params.remoteDomain";
1868
1868
  },
1869
1869
  {
1870
1870
  "kind": "arg";
1871
- "path": "params.remote_token";
1871
+ "path": "params.remoteToken";
1872
1872
  }
1873
1873
  ];
1874
1874
  };
@@ -2040,7 +2040,7 @@ export type TokenMessengerMinterV2 = {
2040
2040
  },
2041
2041
  {
2042
2042
  "kind": "account";
2043
- "path": "local_token.mint";
2043
+ "path": "localToken.mint";
2044
2044
  "account": "localToken";
2045
2045
  }
2046
2046
  ];
@@ -2065,7 +2065,7 @@ export type TokenMessengerMinterV2 = {
2065
2065
  },
2066
2066
  {
2067
2067
  "kind": "account";
2068
- "path": "local_token.mint";
2068
+ "path": "localToken.mint";
2069
2069
  "account": "localToken";
2070
2070
  }
2071
2071
  ];
@@ -2185,7 +2185,7 @@ export type TokenMessengerMinterV2 = {
2185
2185
  },
2186
2186
  {
2187
2187
  "kind": "account";
2188
- "path": "remote_token_messenger.domain";
2188
+ "path": "remoteTokenMessenger.domain";
2189
2189
  "account": "remoteTokenMessenger";
2190
2190
  }
2191
2191
  ];
@@ -2349,7 +2349,7 @@ export type TokenMessengerMinterV2 = {
2349
2349
  },
2350
2350
  {
2351
2351
  "kind": "account";
2352
- "path": "local_token.mint";
2352
+ "path": "localToken.mint";
2353
2353
  "account": "localToken";
2354
2354
  }
2355
2355
  ];
@@ -2833,12 +2833,12 @@ export type TokenMessengerMinterV2 = {
2833
2833
  },
2834
2834
  {
2835
2835
  "kind": "account";
2836
- "path": "token_pair.remote_domain";
2836
+ "path": "tokenPair.remoteDomain";
2837
2837
  "account": "tokenPair";
2838
2838
  },
2839
2839
  {
2840
2840
  "kind": "account";
2841
- "path": "token_pair.remote_token";
2841
+ "path": "tokenPair.remoteToken";
2842
2842
  "account": "tokenPair";
2843
2843
  }
2844
2844
  ];
@@ -5,7 +5,6 @@
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
8
- export * from './messageSent';
9
8
  export * from './minimumDeposit';
10
9
  export * from './rentClaim';
11
10
  export * from './state';
@@ -21,7 +21,6 @@ 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("./messageSent"), exports);
25
24
  __exportStar(require("./minimumDeposit"), exports);
26
25
  __exportStar(require("./rentClaim"), exports);
27
26
  __exportStar(require("./state"), exports);
@@ -6,29 +6,41 @@
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
8
8
  import { type Address, type SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, type SolanaError } from '@solana/kit';
9
+ /** InvalidSignature: Invalid quote signature */
10
+ export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_SIGNATURE = 6000;
11
+ /** InvalidDeadline: Invalid quote deadline */
12
+ export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_DEADLINE = 6001;
13
+ /** InvalidSourceDomain: Invalid source domain */
14
+ export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_SOURCE_DOMAIN = 6002;
9
15
  /** NotUpgradeAuthority: Only the upgrade authority can call this instruction */
10
- export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__NOT_UPGRADE_AUTHORITY = 6000;
16
+ export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__NOT_UPGRADE_AUTHORITY = 7000;
11
17
  /** InvalidProgramData: Invalid program data account */
12
- export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_PROGRAM_DATA = 6001;
18
+ export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_PROGRAM_DATA = 7001;
13
19
  /** CannotSetCurrentTime: Cannot set time if not in test mode */
14
- export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__CANNOT_SET_CURRENT_TIME = 6002;
20
+ export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__CANNOT_SET_CURRENT_TIME = 7002;
15
21
  /** InvalidBurnToken: Invalid burn_token key */
16
- export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_BURN_TOKEN = 6003;
22
+ export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_BURN_TOKEN = 7003;
17
23
  /** AmountNotPositive: Amount must be greater than 0 */
18
- export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__AMOUNT_NOT_POSITIVE = 6004;
24
+ export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__AMOUNT_NOT_POSITIVE = 7004;
19
25
  /** QuoteDeadlineNotPassed: The quote deadline has not passed! */
20
- export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__QUOTE_DEADLINE_NOT_PASSED = 6005;
26
+ export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__QUOTE_DEADLINE_NOT_PASSED = 7005;
21
27
  /** SignerUnchanged: New signer unchanged */
22
- export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__SIGNER_UNCHANGED = 6006;
28
+ export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__SIGNER_UNCHANGED = 7006;
23
29
  /** DepositAmountBelowMinimum: Deposit amount below minimum */
24
- export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__DEPOSIT_AMOUNT_BELOW_MINIMUM = 6007;
30
+ export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__DEPOSIT_AMOUNT_BELOW_MINIMUM = 7007;
25
31
  /** MissingRentClaimAccount: Missing rent claim account */
26
- export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__MISSING_RENT_CLAIM_ACCOUNT = 6008;
32
+ export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__MISSING_RENT_CLAIM_ACCOUNT = 7008;
27
33
  /** RentClaimOverflow: Rent claim amount overflow */
28
- export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__RENT_CLAIM_OVERFLOW = 6009;
34
+ export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__RENT_CLAIM_OVERFLOW = 7009;
29
35
  /** InvalidRecipientKey: Invalid recipient key */
30
- export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_RECIPIENT_KEY = 6010;
31
- export type SponsoredCctpSrcPeripheryError = typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__AMOUNT_NOT_POSITIVE | typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__CANNOT_SET_CURRENT_TIME | typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__DEPOSIT_AMOUNT_BELOW_MINIMUM | typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_BURN_TOKEN | typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_PROGRAM_DATA | typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_RECIPIENT_KEY | typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__MISSING_RENT_CLAIM_ACCOUNT | typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__NOT_UPGRADE_AUTHORITY | typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__QUOTE_DEADLINE_NOT_PASSED | typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__RENT_CLAIM_OVERFLOW | typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__SIGNER_UNCHANGED;
36
+ export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_RECIPIENT_KEY = 7010;
37
+ /** MalformedMessage: Malformed V2 burn message */
38
+ export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__MALFORMED_MESSAGE = 8000;
39
+ /** InvalidMessageVersion: Invalid message version */
40
+ export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_MESSAGE_VERSION = 8001;
41
+ /** InvalidMessageBodyVersion: Invalid message body version */
42
+ export declare const SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_MESSAGE_BODY_VERSION = 8002;
43
+ export type SponsoredCctpSrcPeripheryError = typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__AMOUNT_NOT_POSITIVE | typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__CANNOT_SET_CURRENT_TIME | typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__DEPOSIT_AMOUNT_BELOW_MINIMUM | typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_BURN_TOKEN | typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_DEADLINE | typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_MESSAGE_BODY_VERSION | typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_MESSAGE_VERSION | typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_PROGRAM_DATA | typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_RECIPIENT_KEY | typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_SIGNATURE | typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_SOURCE_DOMAIN | typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__MALFORMED_MESSAGE | typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__MISSING_RENT_CLAIM_ACCOUNT | typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__NOT_UPGRADE_AUTHORITY | typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__QUOTE_DEADLINE_NOT_PASSED | typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__RENT_CLAIM_OVERFLOW | typeof SPONSORED_CCTP_SRC_PERIPHERY_ERROR__SIGNER_UNCHANGED;
32
44
  export declare function getSponsoredCctpSrcPeripheryErrorMessage(code: SponsoredCctpSrcPeripheryError): string;
33
45
  export declare function isSponsoredCctpSrcPeripheryError<TProgramErrorCode extends SponsoredCctpSrcPeripheryError>(error: unknown, transactionMessage: {
34
46
  instructions: Record<number, {
@@ -7,33 +7,45 @@
7
7
  * @see https://github.com/codama-idl/codama
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_RECIPIENT_KEY = exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__RENT_CLAIM_OVERFLOW = exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__MISSING_RENT_CLAIM_ACCOUNT = exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__DEPOSIT_AMOUNT_BELOW_MINIMUM = exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__SIGNER_UNCHANGED = exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__QUOTE_DEADLINE_NOT_PASSED = exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__AMOUNT_NOT_POSITIVE = exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_BURN_TOKEN = exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__CANNOT_SET_CURRENT_TIME = exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_PROGRAM_DATA = exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__NOT_UPGRADE_AUTHORITY = void 0;
10
+ exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_MESSAGE_BODY_VERSION = exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_MESSAGE_VERSION = exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__MALFORMED_MESSAGE = exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_RECIPIENT_KEY = exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__RENT_CLAIM_OVERFLOW = exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__MISSING_RENT_CLAIM_ACCOUNT = exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__DEPOSIT_AMOUNT_BELOW_MINIMUM = exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__SIGNER_UNCHANGED = exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__QUOTE_DEADLINE_NOT_PASSED = exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__AMOUNT_NOT_POSITIVE = exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_BURN_TOKEN = exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__CANNOT_SET_CURRENT_TIME = exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_PROGRAM_DATA = exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__NOT_UPGRADE_AUTHORITY = exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_SOURCE_DOMAIN = exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_DEADLINE = exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_SIGNATURE = void 0;
11
11
  exports.getSponsoredCctpSrcPeripheryErrorMessage = getSponsoredCctpSrcPeripheryErrorMessage;
12
12
  exports.isSponsoredCctpSrcPeripheryError = isSponsoredCctpSrcPeripheryError;
13
13
  const kit_1 = require("@solana/kit");
14
14
  const programs_1 = require("../programs");
15
+ /** InvalidSignature: Invalid quote signature */
16
+ exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_SIGNATURE = 0x1770; // 6000
17
+ /** InvalidDeadline: Invalid quote deadline */
18
+ exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_DEADLINE = 0x1771; // 6001
19
+ /** InvalidSourceDomain: Invalid source domain */
20
+ exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_SOURCE_DOMAIN = 0x1772; // 6002
15
21
  /** NotUpgradeAuthority: Only the upgrade authority can call this instruction */
16
- exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__NOT_UPGRADE_AUTHORITY = 0x1770; // 6000
22
+ exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__NOT_UPGRADE_AUTHORITY = 0x1b58; // 7000
17
23
  /** InvalidProgramData: Invalid program data account */
18
- exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_PROGRAM_DATA = 0x1771; // 6001
24
+ exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_PROGRAM_DATA = 0x1b59; // 7001
19
25
  /** CannotSetCurrentTime: Cannot set time if not in test mode */
20
- exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__CANNOT_SET_CURRENT_TIME = 0x1772; // 6002
26
+ exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__CANNOT_SET_CURRENT_TIME = 0x1b5a; // 7002
21
27
  /** InvalidBurnToken: Invalid burn_token key */
22
- exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_BURN_TOKEN = 0x1773; // 6003
28
+ exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_BURN_TOKEN = 0x1b5b; // 7003
23
29
  /** AmountNotPositive: Amount must be greater than 0 */
24
- exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__AMOUNT_NOT_POSITIVE = 0x1774; // 6004
30
+ exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__AMOUNT_NOT_POSITIVE = 0x1b5c; // 7004
25
31
  /** QuoteDeadlineNotPassed: The quote deadline has not passed! */
26
- exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__QUOTE_DEADLINE_NOT_PASSED = 0x1775; // 6005
32
+ exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__QUOTE_DEADLINE_NOT_PASSED = 0x1b5d; // 7005
27
33
  /** SignerUnchanged: New signer unchanged */
28
- exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__SIGNER_UNCHANGED = 0x1776; // 6006
34
+ exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__SIGNER_UNCHANGED = 0x1b5e; // 7006
29
35
  /** DepositAmountBelowMinimum: Deposit amount below minimum */
30
- exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__DEPOSIT_AMOUNT_BELOW_MINIMUM = 0x1777; // 6007
36
+ exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__DEPOSIT_AMOUNT_BELOW_MINIMUM = 0x1b5f; // 7007
31
37
  /** MissingRentClaimAccount: Missing rent claim account */
32
- exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__MISSING_RENT_CLAIM_ACCOUNT = 0x1778; // 6008
38
+ exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__MISSING_RENT_CLAIM_ACCOUNT = 0x1b60; // 7008
33
39
  /** RentClaimOverflow: Rent claim amount overflow */
34
- exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__RENT_CLAIM_OVERFLOW = 0x1779; // 6009
40
+ exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__RENT_CLAIM_OVERFLOW = 0x1b61; // 7009
35
41
  /** InvalidRecipientKey: Invalid recipient key */
36
- exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_RECIPIENT_KEY = 0x177a; // 6010
42
+ exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_RECIPIENT_KEY = 0x1b62; // 7010
43
+ /** MalformedMessage: Malformed V2 burn message */
44
+ exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__MALFORMED_MESSAGE = 0x1f40; // 8000
45
+ /** InvalidMessageVersion: Invalid message version */
46
+ exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_MESSAGE_VERSION = 0x1f41; // 8001
47
+ /** InvalidMessageBodyVersion: Invalid message body version */
48
+ exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_MESSAGE_BODY_VERSION = 0x1f42; // 8002
37
49
  let sponsoredCctpSrcPeripheryErrorMessages;
38
50
  if (process.env.NODE_ENV !== 'production') {
39
51
  sponsoredCctpSrcPeripheryErrorMessages = {
@@ -41,8 +53,14 @@ if (process.env.NODE_ENV !== 'production') {
41
53
  [exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__CANNOT_SET_CURRENT_TIME]: `Cannot set time if not in test mode`,
42
54
  [exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__DEPOSIT_AMOUNT_BELOW_MINIMUM]: `Deposit amount below minimum`,
43
55
  [exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_BURN_TOKEN]: `Invalid burn_token key`,
56
+ [exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_DEADLINE]: `Invalid quote deadline`,
57
+ [exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_MESSAGE_BODY_VERSION]: `Invalid message body version`,
58
+ [exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_MESSAGE_VERSION]: `Invalid message version`,
44
59
  [exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_PROGRAM_DATA]: `Invalid program data account`,
45
60
  [exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_RECIPIENT_KEY]: `Invalid recipient key`,
61
+ [exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_SIGNATURE]: `Invalid quote signature`,
62
+ [exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__INVALID_SOURCE_DOMAIN]: `Invalid source domain`,
63
+ [exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__MALFORMED_MESSAGE]: `Malformed V2 burn message`,
46
64
  [exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__MISSING_RENT_CLAIM_ACCOUNT]: `Missing rent claim account`,
47
65
  [exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__NOT_UPGRADE_AUTHORITY]: `Only the upgrade authority can call this instruction`,
48
66
  [exports.SPONSORED_CCTP_SRC_PERIPHERY_ERROR__QUOTE_DEADLINE_NOT_PASSED]: `The quote deadline has not passed!`,
@@ -9,11 +9,10 @@ import { type Address, type ReadonlyUint8Array } from '@solana/kit';
9
9
  import { type ParsedDepositForBurnInstruction, type ParsedGetUsedNonceCloseInfoInstruction, type ParsedInitializeInstruction, type ParsedReclaimEventAccountInstruction, type ParsedReclaimUsedNonceAccountInstruction, type ParsedRepayRentFundDebtInstruction, type ParsedSetCurrentTimeInstruction, type ParsedSetMinimumDepositAmountInstruction, type ParsedSetSignerInstruction, type ParsedWithdrawRentFundInstruction } from '../instructions';
10
10
  export declare const SPONSORED_CCTP_SRC_PERIPHERY_PROGRAM_ADDRESS: Address<"FsD4uqAyXiAcQapVTokNvdz1ZC5hMHjY6a93nYmEqZQS">;
11
11
  export declare enum SponsoredCctpSrcPeripheryAccount {
12
- MessageSent = 0,
13
- MinimumDeposit = 1,
14
- RentClaim = 2,
15
- State = 3,
16
- UsedNonce = 4
12
+ MinimumDeposit = 0,
13
+ RentClaim = 1,
14
+ State = 2,
15
+ UsedNonce = 3
17
16
  }
18
17
  export declare function identifySponsoredCctpSrcPeripheryAccount(account: {
19
18
  data: ReadonlyUint8Array;
@@ -14,17 +14,13 @@ const kit_1 = require("@solana/kit");
14
14
  exports.SPONSORED_CCTP_SRC_PERIPHERY_PROGRAM_ADDRESS = 'FsD4uqAyXiAcQapVTokNvdz1ZC5hMHjY6a93nYmEqZQS';
15
15
  var SponsoredCctpSrcPeripheryAccount;
16
16
  (function (SponsoredCctpSrcPeripheryAccount) {
17
- SponsoredCctpSrcPeripheryAccount[SponsoredCctpSrcPeripheryAccount["MessageSent"] = 0] = "MessageSent";
18
- SponsoredCctpSrcPeripheryAccount[SponsoredCctpSrcPeripheryAccount["MinimumDeposit"] = 1] = "MinimumDeposit";
19
- SponsoredCctpSrcPeripheryAccount[SponsoredCctpSrcPeripheryAccount["RentClaim"] = 2] = "RentClaim";
20
- SponsoredCctpSrcPeripheryAccount[SponsoredCctpSrcPeripheryAccount["State"] = 3] = "State";
21
- SponsoredCctpSrcPeripheryAccount[SponsoredCctpSrcPeripheryAccount["UsedNonce"] = 4] = "UsedNonce";
17
+ SponsoredCctpSrcPeripheryAccount[SponsoredCctpSrcPeripheryAccount["MinimumDeposit"] = 0] = "MinimumDeposit";
18
+ SponsoredCctpSrcPeripheryAccount[SponsoredCctpSrcPeripheryAccount["RentClaim"] = 1] = "RentClaim";
19
+ SponsoredCctpSrcPeripheryAccount[SponsoredCctpSrcPeripheryAccount["State"] = 2] = "State";
20
+ SponsoredCctpSrcPeripheryAccount[SponsoredCctpSrcPeripheryAccount["UsedNonce"] = 3] = "UsedNonce";
22
21
  })(SponsoredCctpSrcPeripheryAccount || (exports.SponsoredCctpSrcPeripheryAccount = SponsoredCctpSrcPeripheryAccount = {}));
23
22
  function identifySponsoredCctpSrcPeripheryAccount(account) {
24
23
  const data = 'data' in account ? account.data : account;
25
- if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([131, 100, 133, 56, 166, 225, 151, 60])), 0)) {
26
- return SponsoredCctpSrcPeripheryAccount.MessageSent;
27
- }
28
24
  if ((0, kit_1.containsBytes)(data, (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(new Uint8Array([218, 139, 120, 202, 3, 12, 233, 65])), 0)) {
29
25
  return SponsoredCctpSrcPeripheryAccount.MinimumDeposit;
30
26
  }
@@ -7,6 +7,7 @@
7
7
  */
8
8
  export * from './accruedRentFundLiability';
9
9
  export * from './createdEventAccount';
10
+ export * from './messageSent';
10
11
  export * from './minimumDepositAmountSet';
11
12
  export * from './reclaimedEventAccount';
12
13
  export * from './reclaimedUsedNonceAccount';
@@ -23,6 +23,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
23
23
  Object.defineProperty(exports, "__esModule", { value: true });
24
24
  __exportStar(require("./accruedRentFundLiability"), exports);
25
25
  __exportStar(require("./createdEventAccount"), exports);
26
+ __exportStar(require("./messageSent"), exports);
26
27
  __exportStar(require("./minimumDepositAmountSet"), exports);
27
28
  __exportStar(require("./reclaimedEventAccount"), exports);
28
29
  __exportStar(require("./reclaimedUsedNonceAccount"), exports);
@@ -0,0 +1,21 @@
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
+ export type MessageSent = {
10
+ rentPayer: Address;
11
+ createdAt: bigint;
12
+ message: ReadonlyUint8Array;
13
+ };
14
+ export type MessageSentArgs = {
15
+ rentPayer: Address;
16
+ createdAt: number | bigint;
17
+ message: ReadonlyUint8Array;
18
+ };
19
+ export declare function getMessageSentEncoder(): Encoder<MessageSentArgs>;
20
+ export declare function getMessageSentDecoder(): Decoder<MessageSent>;
21
+ export declare function getMessageSentCodec(): Codec<MessageSentArgs, MessageSent>;
@@ -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.getMessageSentEncoder = getMessageSentEncoder;
11
+ exports.getMessageSentDecoder = getMessageSentDecoder;
12
+ exports.getMessageSentCodec = getMessageSentCodec;
13
+ const kit_1 = require("@solana/kit");
14
+ function getMessageSentEncoder() {
15
+ return (0, kit_1.getStructEncoder)([
16
+ ['rentPayer', (0, kit_1.getAddressEncoder)()],
17
+ ['createdAt', (0, kit_1.getI64Encoder)()],
18
+ ['message', (0, kit_1.addEncoderSizePrefix)((0, kit_1.getBytesEncoder)(), (0, kit_1.getU32Encoder)())],
19
+ ]);
20
+ }
21
+ function getMessageSentDecoder() {
22
+ return (0, kit_1.getStructDecoder)([
23
+ ['rentPayer', (0, kit_1.getAddressDecoder)()],
24
+ ['createdAt', (0, kit_1.getI64Decoder)()],
25
+ ['message', (0, kit_1.addDecoderSizePrefix)((0, kit_1.getBytesDecoder)(), (0, kit_1.getU32Decoder)())],
26
+ ]);
27
+ }
28
+ function getMessageSentCodec() {
29
+ return (0, kit_1.combineCodec)(getMessageSentEncoder(), getMessageSentDecoder());
30
+ }
@@ -12,12 +12,12 @@ export declare function getFillStatusAccountDiscriminatorBytes(): ReadonlyUint8A
12
12
  export type FillStatusAccount = {
13
13
  discriminator: ReadonlyUint8Array;
14
14
  status: FillStatus;
15
- relayer: Address;
15
+ rentRecipient: Address;
16
16
  fillDeadline: number;
17
17
  };
18
18
  export type FillStatusAccountArgs = {
19
19
  status: FillStatusArgs;
20
- relayer: Address;
20
+ rentRecipient: Address;
21
21
  fillDeadline: number;
22
22
  };
23
23
  export declare function getFillStatusAccountEncoder(): Encoder<FillStatusAccountArgs>;
@@ -30,7 +30,7 @@ function getFillStatusAccountEncoder() {
30
30
  return (0, kit_1.transformEncoder)((0, kit_1.getStructEncoder)([
31
31
  ['discriminator', (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8)],
32
32
  ['status', (0, types_1.getFillStatusEncoder)()],
33
- ['relayer', (0, kit_1.getAddressEncoder)()],
33
+ ['rentRecipient', (0, kit_1.getAddressEncoder)()],
34
34
  ['fillDeadline', (0, kit_1.getU32Encoder)()],
35
35
  ]), (value) => ({ ...value, discriminator: exports.FILL_STATUS_ACCOUNT_DISCRIMINATOR }));
36
36
  }
@@ -38,7 +38,7 @@ function getFillStatusAccountDecoder() {
38
38
  return (0, kit_1.getStructDecoder)([
39
39
  ['discriminator', (0, kit_1.fixDecoderSize)((0, kit_1.getBytesDecoder)(), 8)],
40
40
  ['status', (0, types_1.getFillStatusDecoder)()],
41
- ['relayer', (0, kit_1.getAddressDecoder)()],
41
+ ['rentRecipient', (0, kit_1.getAddressDecoder)()],
42
42
  ['fillDeadline', (0, kit_1.getU32Decoder)()],
43
43
  ]);
44
44
  }
@@ -7,9 +7,6 @@
7
7
  */
8
8
  export * from './claimAccount';
9
9
  export * from './executeRelayerRefundLeafParams';
10
- export * from './executeSlowRelayLeafParams';
11
- export * from './fillRelayParams';
12
10
  export * from './fillStatusAccount';
13
- export * from './requestSlowFillParams';
14
11
  export * from './rootBundle';
15
12
  export * from './state';
@@ -23,9 +23,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
23
23
  Object.defineProperty(exports, "__esModule", { value: true });
24
24
  __exportStar(require("./claimAccount"), exports);
25
25
  __exportStar(require("./executeRelayerRefundLeafParams"), exports);
26
- __exportStar(require("./executeSlowRelayLeafParams"), exports);
27
- __exportStar(require("./fillRelayParams"), exports);
28
26
  __exportStar(require("./fillStatusAccount"), exports);
29
- __exportStar(require("./requestSlowFillParams"), exports);
30
27
  __exportStar(require("./rootBundle"), exports);
31
28
  __exportStar(require("./state"), exports);
@@ -6,45 +6,117 @@
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
8
8
  import { type Address, type SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, type SolanaError } from '@solana/kit';
9
+ /** InvalidQuoteTimestamp: Invalid quote timestamp! */
10
+ export declare const SVM_SPOKE_ERROR__INVALID_QUOTE_TIMESTAMP = 6000;
11
+ /** InvalidFillDeadline: Invalid fill deadline! */
12
+ export declare const SVM_SPOKE_ERROR__INVALID_FILL_DEADLINE = 6001;
13
+ /** NotExclusiveRelayer: Caller is not the exclusive relayer and exclusivity deadline has not passed! */
14
+ export declare const SVM_SPOKE_ERROR__NOT_EXCLUSIVE_RELAYER = 6002;
15
+ /** RetiredNoSlowFillsInExclusivityWindow: The Deposit is still within the exclusivity window! */
16
+ export declare const SVM_SPOKE_ERROR__RETIRED_NO_SLOW_FILLS_IN_EXCLUSIVITY_WINDOW = 6003;
17
+ /** RelayFilled: The relay has already been filled! */
18
+ export declare const SVM_SPOKE_ERROR__RELAY_FILLED = 6004;
19
+ /** RetiredInvalidSlowFillRequest: Slow fill requires status of Unfilled! */
20
+ export declare const SVM_SPOKE_ERROR__RETIRED_INVALID_SLOW_FILL_REQUEST = 6005;
21
+ /** ExpiredFillDeadline: The fill deadline has passed! */
22
+ export declare const SVM_SPOKE_ERROR__EXPIRED_FILL_DEADLINE = 6006;
23
+ /** InvalidMerkleProof: Invalid Merkle proof! */
24
+ export declare const SVM_SPOKE_ERROR__INVALID_MERKLE_PROOF = 6007;
25
+ /** InvalidChainId: Invalid chain id! */
26
+ export declare const SVM_SPOKE_ERROR__INVALID_CHAIN_ID = 6008;
27
+ /** InvalidMerkleLeaf: Invalid Merkle leaf! */
28
+ export declare const SVM_SPOKE_ERROR__INVALID_MERKLE_LEAF = 6009;
29
+ /** ClaimedMerkleLeaf: Leaf already claimed! */
30
+ export declare const SVM_SPOKE_ERROR__CLAIMED_MERKLE_LEAF = 6010;
31
+ /** DepositsArePaused: Deposits are currently paused! */
32
+ export declare const SVM_SPOKE_ERROR__DEPOSITS_ARE_PAUSED = 6011;
33
+ /** FillsArePaused: Fills are currently paused! */
34
+ export declare const SVM_SPOKE_ERROR__FILLS_ARE_PAUSED = 6012;
35
+ /** InsufficientSpokePoolBalanceToExecuteLeaf: Insufficient spoke pool balance to execute leaf */
36
+ export declare const SVM_SPOKE_ERROR__INSUFFICIENT_SPOKE_POOL_BALANCE_TO_EXECUTE_LEAF = 6013;
37
+ /** InvalidExclusiveRelayer: Invalid exclusive relayer! */
38
+ export declare const SVM_SPOKE_ERROR__INVALID_EXCLUSIVE_RELAYER = 6014;
39
+ /** InvalidOutputToken: Invalid output token! */
40
+ export declare const SVM_SPOKE_ERROR__INVALID_OUTPUT_TOKEN = 6015;
9
41
  /** NotOwner: Only the owner can call this function! */
10
- export declare const SVM_SPOKE_ERROR__NOT_OWNER = 6000;
11
- /** InvalidRelayHash: Invalid relay hash! */
12
- export declare const SVM_SPOKE_ERROR__INVALID_RELAY_HASH = 6001;
42
+ export declare const SVM_SPOKE_ERROR__NOT_OWNER = 7000;
13
43
  /** CanOnlyCloseFillStatusPdaIfFillDeadlinePassed: The fill deadline has not passed! */
14
- export declare const SVM_SPOKE_ERROR__CAN_ONLY_CLOSE_FILL_STATUS_PDA_IF_FILL_DEADLINE_PASSED = 6002;
44
+ export declare const SVM_SPOKE_ERROR__CAN_ONLY_CLOSE_FILL_STATUS_PDA_IF_FILL_DEADLINE_PASSED = 7001;
15
45
  /** NotRelayer: The caller is not the relayer! */
16
- export declare const SVM_SPOKE_ERROR__NOT_RELAYER = 6003;
46
+ export declare const SVM_SPOKE_ERROR__NOT_RELAYER = 7002;
17
47
  /** CannotSetCurrentTime: Cannot set time if not in test mode! */
18
- export declare const SVM_SPOKE_ERROR__CANNOT_SET_CURRENT_TIME = 6004;
48
+ export declare const SVM_SPOKE_ERROR__CANNOT_SET_CURRENT_TIME = 7003;
19
49
  /** InvalidRemoteDomain: Invalid remote domain! */
20
- export declare const SVM_SPOKE_ERROR__INVALID_REMOTE_DOMAIN = 6005;
50
+ export declare const SVM_SPOKE_ERROR__INVALID_REMOTE_DOMAIN = 7004;
21
51
  /** InvalidRemoteSender: Invalid remote sender! */
22
- export declare const SVM_SPOKE_ERROR__INVALID_REMOTE_SENDER = 6006;
52
+ export declare const SVM_SPOKE_ERROR__INVALID_REMOTE_SENDER = 7005;
23
53
  /** InvalidMint: Invalid mint! */
24
- export declare const SVM_SPOKE_ERROR__INVALID_MINT = 6007;
54
+ export declare const SVM_SPOKE_ERROR__INVALID_MINT = 7006;
25
55
  /** NonZeroAmountToReturn: Relayer refund leaf must not return tokens to HubPool! */
26
- export declare const SVM_SPOKE_ERROR__NON_ZERO_AMOUNT_TO_RETURN = 6008;
56
+ export declare const SVM_SPOKE_ERROR__NON_ZERO_AMOUNT_TO_RETURN = 7007;
27
57
  /** ParamsWriteOverflow: Overflow writing to parameters account! */
28
- export declare const SVM_SPOKE_ERROR__PARAMS_WRITE_OVERFLOW = 6009;
58
+ export declare const SVM_SPOKE_ERROR__PARAMS_WRITE_OVERFLOW = 7008;
29
59
  /** InvalidRefund: Invalid refund address! */
30
- export declare const SVM_SPOKE_ERROR__INVALID_REFUND = 6010;
60
+ export declare const SVM_SPOKE_ERROR__INVALID_REFUND = 7009;
31
61
  /** ZeroRefundClaim: Zero relayer refund claim! */
32
- export declare const SVM_SPOKE_ERROR__ZERO_REFUND_CLAIM = 6011;
62
+ export declare const SVM_SPOKE_ERROR__ZERO_REFUND_CLAIM = 7010;
33
63
  /** NonZeroRefundClaim: Cannot close non-zero relayer refund claim! */
34
- export declare const SVM_SPOKE_ERROR__NON_ZERO_REFUND_CLAIM = 6012;
64
+ export declare const SVM_SPOKE_ERROR__NON_ZERO_REFUND_CLAIM = 7011;
35
65
  /** InvalidClaimInitializer: Invalid claim initializer! */
36
- export declare const SVM_SPOKE_ERROR__INVALID_CLAIM_INITIALIZER = 6013;
66
+ export declare const SVM_SPOKE_ERROR__INVALID_CLAIM_INITIALIZER = 7012;
37
67
  /** InvalidRefundTokenAccount: Invalid refund token account! */
38
- export declare const SVM_SPOKE_ERROR__INVALID_REFUND_TOKEN_ACCOUNT = 6014;
68
+ export declare const SVM_SPOKE_ERROR__INVALID_REFUND_TOKEN_ACCOUNT = 7013;
39
69
  /** InvalidProductionSeed: Seed must be 0 in production! */
40
- export declare const SVM_SPOKE_ERROR__INVALID_PRODUCTION_SEED = 6015;
70
+ export declare const SVM_SPOKE_ERROR__INVALID_PRODUCTION_SEED = 7014;
41
71
  /** InvalidATACreationAccounts: Invalid remaining accounts for ATA creation! */
42
- export declare const SVM_SPOKE_ERROR__INVALID_A_T_A_CREATION_ACCOUNTS = 6016;
72
+ export declare const SVM_SPOKE_ERROR__INVALID_A_T_A_CREATION_ACCOUNTS = 7015;
43
73
  /** InvalidDelegatePda: Invalid delegate PDA! */
44
- export declare const SVM_SPOKE_ERROR__INVALID_DELEGATE_PDA = 6017;
45
- /** InconsistentOptionalParameters: Inconsistent optional parameters! */
46
- export declare const SVM_SPOKE_ERROR__INCONSISTENT_OPTIONAL_PARAMETERS = 6018;
47
- export type SvmSpokeError = typeof SVM_SPOKE_ERROR__CANNOT_SET_CURRENT_TIME | typeof SVM_SPOKE_ERROR__CAN_ONLY_CLOSE_FILL_STATUS_PDA_IF_FILL_DEADLINE_PASSED | typeof SVM_SPOKE_ERROR__INCONSISTENT_OPTIONAL_PARAMETERS | typeof SVM_SPOKE_ERROR__INVALID_A_T_A_CREATION_ACCOUNTS | typeof SVM_SPOKE_ERROR__INVALID_CLAIM_INITIALIZER | typeof SVM_SPOKE_ERROR__INVALID_DELEGATE_PDA | typeof SVM_SPOKE_ERROR__INVALID_MINT | typeof SVM_SPOKE_ERROR__INVALID_PRODUCTION_SEED | typeof SVM_SPOKE_ERROR__INVALID_REFUND | typeof SVM_SPOKE_ERROR__INVALID_REFUND_TOKEN_ACCOUNT | typeof SVM_SPOKE_ERROR__INVALID_RELAY_HASH | typeof SVM_SPOKE_ERROR__INVALID_REMOTE_DOMAIN | typeof SVM_SPOKE_ERROR__INVALID_REMOTE_SENDER | typeof SVM_SPOKE_ERROR__NON_ZERO_AMOUNT_TO_RETURN | typeof SVM_SPOKE_ERROR__NON_ZERO_REFUND_CLAIM | typeof SVM_SPOKE_ERROR__NOT_OWNER | typeof SVM_SPOKE_ERROR__NOT_RELAYER | typeof SVM_SPOKE_ERROR__PARAMS_WRITE_OVERFLOW | typeof SVM_SPOKE_ERROR__ZERO_REFUND_CLAIM;
74
+ export declare const SVM_SPOKE_ERROR__INVALID_DELEGATE_PDA = 7016;
75
+ /** InvalidWireFormat: Malformed Across V5 wire data! */
76
+ export declare const SVM_SPOKE_ERROR__INVALID_WIRE_FORMAT = 8000;
77
+ /** InvalidParamModificationSignature: Invalid Across V5 parameter modification signature! */
78
+ export declare const SVM_SPOKE_ERROR__INVALID_PARAM_MODIFICATION_SIGNATURE = 8001;
79
+ /** MissingAccount: Missing required Across V5 account! */
80
+ export declare const SVM_SPOKE_ERROR__MISSING_ACCOUNT = 8002;
81
+ /** InvalidDispatchAuthority: Invalid Across V5 Gateway dispatch authority! */
82
+ export declare const SVM_SPOKE_ERROR__INVALID_DISPATCH_AUTHORITY = 8003;
83
+ /** InvalidAccountMutability: Across V5 account must be writable! */
84
+ export declare const SVM_SPOKE_ERROR__INVALID_ACCOUNT_MUTABILITY = 8004;
85
+ /** ResolvedInputAmountBelowCommitted: Resolved Across V5 input amount is below the committed floor! */
86
+ export declare const SVM_SPOKE_ERROR__RESOLVED_INPUT_AMOUNT_BELOW_COMMITTED = 8005;
87
+ /** ParamModificationNotAnImprovement: Across V5 parameter modification is not an improvement! */
88
+ export declare const SVM_SPOKE_ERROR__PARAM_MODIFICATION_NOT_AN_IMPROVEMENT = 8006;
89
+ /** InvalidAmountBips: Across V5 input amount bips exceed the denominator! */
90
+ export declare const SVM_SPOKE_ERROR__INVALID_AMOUNT_BIPS = 8007;
91
+ /** UnsupportedMode: Across V5 adapter mode is not enabled! */
92
+ export declare const SVM_SPOKE_ERROR__UNSUPPORTED_MODE = 8008;
93
+ /** InvalidTokenAccount: Invalid Across V5 token account! */
94
+ export declare const SVM_SPOKE_ERROR__INVALID_TOKEN_ACCOUNT = 8009;
95
+ /** UnsupportedTokenExtension: Unsupported Across V5 token extension! */
96
+ export declare const SVM_SPOKE_ERROR__UNSUPPORTED_TOKEN_EXTENSION = 8010;
97
+ /** InvalidFillPayer: Invalid Across V5 fill payer! */
98
+ export declare const SVM_SPOKE_ERROR__INVALID_FILL_PAYER = 8011;
99
+ /** InvalidFillStatusAccount: Invalid Across V5 fill status account! */
100
+ export declare const SVM_SPOKE_ERROR__INVALID_FILL_STATUS_ACCOUNT = 8012;
101
+ /** FillCommitmentMismatch: Across V5 fill data does not match the committed input! */
102
+ export declare const SVM_SPOKE_ERROR__FILL_COMMITMENT_MISMATCH = 8013;
103
+ /** FillOutputAmountTooLow: Across V5 fill output amount is below the committed floor! */
104
+ export declare const SVM_SPOKE_ERROR__FILL_OUTPUT_AMOUNT_TOO_LOW = 8014;
105
+ /** InvalidSelector: Invalid solidity selector */
106
+ export declare const SVM_SPOKE_ERROR__INVALID_SELECTOR = 9000;
107
+ /** InvalidArgument: Invalid solidity argument */
108
+ export declare const SVM_SPOKE_ERROR__INVALID_ARGUMENT = 9001;
109
+ /** InvalidBool: Invalid solidity bool argument */
110
+ export declare const SVM_SPOKE_ERROR__INVALID_BOOL = 9002;
111
+ /** InvalidAddress: Invalid solidity address argument */
112
+ export declare const SVM_SPOKE_ERROR__INVALID_ADDRESS = 9003;
113
+ /** InvalidUint32: Invalid solidity uint32 argument */
114
+ export declare const SVM_SPOKE_ERROR__INVALID_UINT32 = 9004;
115
+ /** InvalidUint64: Invalid solidity uint64 argument */
116
+ export declare const SVM_SPOKE_ERROR__INVALID_UINT64 = 9005;
117
+ /** UnsupportedSelector: Unsupported solidity selector */
118
+ export declare const SVM_SPOKE_ERROR__UNSUPPORTED_SELECTOR = 9006;
119
+ export type SvmSpokeError = typeof SVM_SPOKE_ERROR__CANNOT_SET_CURRENT_TIME | typeof SVM_SPOKE_ERROR__CAN_ONLY_CLOSE_FILL_STATUS_PDA_IF_FILL_DEADLINE_PASSED | typeof SVM_SPOKE_ERROR__CLAIMED_MERKLE_LEAF | typeof SVM_SPOKE_ERROR__DEPOSITS_ARE_PAUSED | typeof SVM_SPOKE_ERROR__EXPIRED_FILL_DEADLINE | typeof SVM_SPOKE_ERROR__FILL_COMMITMENT_MISMATCH | typeof SVM_SPOKE_ERROR__FILL_OUTPUT_AMOUNT_TOO_LOW | typeof SVM_SPOKE_ERROR__FILLS_ARE_PAUSED | typeof SVM_SPOKE_ERROR__INSUFFICIENT_SPOKE_POOL_BALANCE_TO_EXECUTE_LEAF | typeof SVM_SPOKE_ERROR__INVALID_ACCOUNT_MUTABILITY | typeof SVM_SPOKE_ERROR__INVALID_ADDRESS | typeof SVM_SPOKE_ERROR__INVALID_AMOUNT_BIPS | typeof SVM_SPOKE_ERROR__INVALID_ARGUMENT | typeof SVM_SPOKE_ERROR__INVALID_A_T_A_CREATION_ACCOUNTS | typeof SVM_SPOKE_ERROR__INVALID_BOOL | typeof SVM_SPOKE_ERROR__INVALID_CHAIN_ID | typeof SVM_SPOKE_ERROR__INVALID_CLAIM_INITIALIZER | typeof SVM_SPOKE_ERROR__INVALID_DELEGATE_PDA | typeof SVM_SPOKE_ERROR__INVALID_DISPATCH_AUTHORITY | typeof SVM_SPOKE_ERROR__INVALID_EXCLUSIVE_RELAYER | typeof SVM_SPOKE_ERROR__INVALID_FILL_DEADLINE | typeof SVM_SPOKE_ERROR__INVALID_FILL_PAYER | typeof SVM_SPOKE_ERROR__INVALID_FILL_STATUS_ACCOUNT | typeof SVM_SPOKE_ERROR__INVALID_MERKLE_LEAF | typeof SVM_SPOKE_ERROR__INVALID_MERKLE_PROOF | typeof SVM_SPOKE_ERROR__INVALID_MINT | typeof SVM_SPOKE_ERROR__INVALID_OUTPUT_TOKEN | typeof SVM_SPOKE_ERROR__INVALID_PARAM_MODIFICATION_SIGNATURE | typeof SVM_SPOKE_ERROR__INVALID_PRODUCTION_SEED | typeof SVM_SPOKE_ERROR__INVALID_QUOTE_TIMESTAMP | typeof SVM_SPOKE_ERROR__INVALID_REFUND | typeof SVM_SPOKE_ERROR__INVALID_REFUND_TOKEN_ACCOUNT | typeof SVM_SPOKE_ERROR__INVALID_REMOTE_DOMAIN | typeof SVM_SPOKE_ERROR__INVALID_REMOTE_SENDER | typeof SVM_SPOKE_ERROR__INVALID_SELECTOR | typeof SVM_SPOKE_ERROR__INVALID_TOKEN_ACCOUNT | typeof SVM_SPOKE_ERROR__INVALID_UINT32 | typeof SVM_SPOKE_ERROR__INVALID_UINT64 | typeof SVM_SPOKE_ERROR__INVALID_WIRE_FORMAT | typeof SVM_SPOKE_ERROR__MISSING_ACCOUNT | typeof SVM_SPOKE_ERROR__NON_ZERO_AMOUNT_TO_RETURN | typeof SVM_SPOKE_ERROR__NON_ZERO_REFUND_CLAIM | typeof SVM_SPOKE_ERROR__NOT_EXCLUSIVE_RELAYER | typeof SVM_SPOKE_ERROR__NOT_OWNER | typeof SVM_SPOKE_ERROR__NOT_RELAYER | typeof SVM_SPOKE_ERROR__PARAM_MODIFICATION_NOT_AN_IMPROVEMENT | typeof SVM_SPOKE_ERROR__PARAMS_WRITE_OVERFLOW | typeof SVM_SPOKE_ERROR__RELAY_FILLED | typeof SVM_SPOKE_ERROR__RESOLVED_INPUT_AMOUNT_BELOW_COMMITTED | typeof SVM_SPOKE_ERROR__RETIRED_INVALID_SLOW_FILL_REQUEST | typeof SVM_SPOKE_ERROR__RETIRED_NO_SLOW_FILLS_IN_EXCLUSIVITY_WINDOW | typeof SVM_SPOKE_ERROR__UNSUPPORTED_MODE | typeof SVM_SPOKE_ERROR__UNSUPPORTED_SELECTOR | typeof SVM_SPOKE_ERROR__UNSUPPORTED_TOKEN_EXTENSION | typeof SVM_SPOKE_ERROR__ZERO_REFUND_CLAIM;
48
120
  export declare function getSvmSpokeErrorMessage(code: SvmSpokeError): string;
49
121
  export declare function isSvmSpokeError<TProgramErrorCode extends SvmSpokeError>(error: unknown, transactionMessage: {
50
122
  instructions: Record<number, {