@across-protocol/contracts 4.0.2 → 4.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/dist/deploy/consts.d.ts +1 -1
  2. package/dist/deploy/consts.js +1 -15
  3. package/dist/deployments/deployments.json +18 -0
  4. package/dist/scripts/svm/fakeFillWithRandomDistribution.js +2 -2
  5. package/dist/scripts/svm/queryEvents.js +1 -1
  6. package/dist/scripts/svm/simpleDeposit.js +3 -3
  7. package/dist/scripts/svm/simpleFakeRelayerRepayment.js +1 -1
  8. package/dist/scripts/svm/simpleFill.js +19 -6
  9. package/dist/src/svm/assets/idl/svm_spoke.json +435 -385
  10. package/dist/src/svm/assets/svm_spoke.d.ts +435 -385
  11. package/dist/src/svm/clients/SvmSpoke/accounts/executeSlowRelayLeafParams.d.ts +31 -0
  12. package/dist/src/svm/clients/SvmSpoke/accounts/executeSlowRelayLeafParams.js +70 -0
  13. package/dist/src/svm/clients/SvmSpoke/accounts/fillRelayParams.d.ts +31 -0
  14. package/dist/src/svm/clients/SvmSpoke/accounts/fillRelayParams.js +67 -0
  15. package/dist/src/svm/clients/SvmSpoke/accounts/index.d.ts +3 -3
  16. package/dist/src/svm/clients/SvmSpoke/accounts/index.js +3 -3
  17. package/dist/src/svm/clients/SvmSpoke/accounts/requestSlowFillParams.d.ts +27 -0
  18. package/dist/src/svm/clients/SvmSpoke/accounts/requestSlowFillParams.js +66 -0
  19. package/dist/src/svm/clients/SvmSpoke/errors/svmSpoke.d.ts +35 -15
  20. package/dist/src/svm/clients/SvmSpoke/errors/svmSpoke.js +52 -22
  21. package/dist/src/svm/clients/SvmSpoke/instructions/deposit.d.ts +123 -0
  22. package/dist/src/svm/clients/SvmSpoke/instructions/{depositV3.js → deposit.js} +23 -23
  23. package/dist/src/svm/clients/SvmSpoke/instructions/depositNow.d.ts +119 -0
  24. package/dist/src/svm/clients/SvmSpoke/instructions/{depositV3Now.js → depositNow.js} +23 -23
  25. package/dist/src/svm/clients/SvmSpoke/instructions/executeSlowRelayLeaf.d.ts +104 -0
  26. package/dist/src/svm/clients/SvmSpoke/instructions/{executeV3SlowRelayLeaf.js → executeSlowRelayLeaf.js} +26 -26
  27. package/dist/src/svm/clients/SvmSpoke/instructions/fillRelay.d.ts +104 -0
  28. package/dist/src/svm/clients/SvmSpoke/instructions/{fillV3Relay.js → fillRelay.js} +26 -26
  29. package/dist/src/svm/clients/SvmSpoke/instructions/index.d.ts +6 -6
  30. package/dist/src/svm/clients/SvmSpoke/instructions/index.js +6 -6
  31. package/dist/src/svm/clients/SvmSpoke/instructions/requestSlowFill.d.ts +76 -0
  32. package/dist/src/svm/clients/SvmSpoke/instructions/{requestV3SlowFill.js → requestSlowFill.js} +25 -25
  33. package/dist/src/svm/clients/SvmSpoke/instructions/unsafeDeposit.d.ts +127 -0
  34. package/dist/src/svm/clients/SvmSpoke/instructions/{unsafeDepositV3.js → unsafeDeposit.js} +23 -23
  35. package/dist/src/svm/clients/SvmSpoke/programs/svmSpoke.d.ts +23 -23
  36. package/dist/src/svm/clients/SvmSpoke/programs/svmSpoke.js +29 -29
  37. package/dist/src/svm/clients/SvmSpoke/types/{filledV3Relay.d.ts → filledRelay.d.ts} +8 -8
  38. package/dist/src/svm/clients/SvmSpoke/types/{filledV3Relay.js → filledRelay.js} +9 -9
  39. package/dist/src/svm/clients/SvmSpoke/types/{v3FundsDeposited.d.ts → fundsDeposited.d.ts} +5 -5
  40. package/dist/src/svm/clients/SvmSpoke/types/{v3FundsDeposited.js → fundsDeposited.js} +7 -7
  41. package/dist/src/svm/clients/SvmSpoke/types/index.d.ts +6 -6
  42. package/dist/src/svm/clients/SvmSpoke/types/index.js +6 -6
  43. package/dist/src/svm/clients/SvmSpoke/types/{v3RelayData.d.ts → relayData.d.ts} +5 -5
  44. package/dist/src/svm/clients/SvmSpoke/types/{v3RelayData.js → relayData.js} +7 -7
  45. package/dist/src/svm/clients/SvmSpoke/types/{v3RelayExecutionEventInfo.d.ts → relayExecutionEventInfo.d.ts} +5 -5
  46. package/dist/src/svm/clients/SvmSpoke/types/{v3RelayExecutionEventInfo.js → relayExecutionEventInfo.js} +7 -7
  47. package/dist/src/svm/clients/SvmSpoke/types/{requestedV3SlowFill.d.ts → requestedSlowFill.d.ts} +5 -5
  48. package/dist/src/svm/clients/SvmSpoke/types/{requestedV3SlowFill.js → requestedSlowFill.js} +7 -7
  49. package/dist/src/svm/clients/SvmSpoke/types/{v3SlowFill.d.ts → slowFill.d.ts} +8 -8
  50. package/dist/src/svm/clients/SvmSpoke/types/{v3SlowFill.js → slowFill.js} +9 -9
  51. package/dist/src/svm/web3-v1/instructionParamsUtils.d.ts +8 -8
  52. package/dist/src/svm/web3-v1/instructionParamsUtils.js +16 -16
  53. package/dist/src/types/svm.d.ts +6 -6
  54. package/dist/target/types/svm_spoke.d.ts +435 -385
  55. package/dist/tasks/enableL1TokenAcrossEcosystem.js +14 -10
  56. package/dist/test/svm/SvmSpoke.Deposit.js +48 -47
  57. package/dist/test/svm/SvmSpoke.Fill.AcrossPlus.js +2 -2
  58. package/dist/test/svm/SvmSpoke.Fill.js +28 -56
  59. package/dist/test/svm/SvmSpoke.SlowFill.AcrossPlus.js +13 -13
  60. package/dist/test/svm/SvmSpoke.SlowFill.js +40 -40
  61. package/dist/utils/constants.d.ts +1 -1
  62. package/dist/utils/constants.js +3 -1
  63. package/package.json +2 -2
  64. package/dist/src/svm/clients/SvmSpoke/accounts/executeV3SlowRelayLeafParams.d.ts +0 -31
  65. package/dist/src/svm/clients/SvmSpoke/accounts/executeV3SlowRelayLeafParams.js +0 -70
  66. package/dist/src/svm/clients/SvmSpoke/accounts/fillV3RelayParams.d.ts +0 -31
  67. package/dist/src/svm/clients/SvmSpoke/accounts/fillV3RelayParams.js +0 -67
  68. package/dist/src/svm/clients/SvmSpoke/accounts/requestV3SlowFillParams.d.ts +0 -27
  69. package/dist/src/svm/clients/SvmSpoke/accounts/requestV3SlowFillParams.js +0 -66
  70. package/dist/src/svm/clients/SvmSpoke/instructions/depositV3.d.ts +0 -123
  71. package/dist/src/svm/clients/SvmSpoke/instructions/depositV3Now.d.ts +0 -119
  72. package/dist/src/svm/clients/SvmSpoke/instructions/executeV3SlowRelayLeaf.d.ts +0 -104
  73. package/dist/src/svm/clients/SvmSpoke/instructions/fillV3Relay.d.ts +0 -104
  74. package/dist/src/svm/clients/SvmSpoke/instructions/requestV3SlowFill.d.ts +0 -76
  75. package/dist/src/svm/clients/SvmSpoke/instructions/unsafeDepositV3.d.ts +0 -127
@@ -716,7 +716,7 @@ export type SvmSpoke = {
716
716
  "args": [];
717
717
  },
718
718
  {
719
- "name": "depositV3";
719
+ "name": "deposit";
720
720
  "docs": [
721
721
  "Request to bridge input_token to a target chain and receive output_token.",
722
722
  "",
@@ -760,7 +760,7 @@ export type SvmSpoke = {
760
760
  "- quote_timestamp: The HubPool timestamp that is used to determine the system fee paid by the depositor. This",
761
761
  "must be set to some time between [currentTime - depositQuoteTimeBuffer, currentTime].",
762
762
  "- fill_deadline: The deadline for the relayer to fill the deposit. After this destination chain timestamp, the",
763
- "fill will revert on the destination chain. Must be set between [currentTime,currentTime+fillDeadlineBuffer].",
763
+ "fill will revert on the destination chain. Must be set before currentTime + fillDeadlineBuffer.",
764
764
  "- exclusivity_parameter: Sets the exclusivity deadline timestamp for the exclusiveRelayer to fill the deposit.",
765
765
  "1. If 0, no exclusivity period.",
766
766
  "2. If less than MAX_EXCLUSIVITY_PERIOD_SECONDS, adds this value to the current block timestamp.",
@@ -769,14 +769,14 @@ export type SvmSpoke = {
769
769
  "If not empty, the recipient contract must implement handleV3AcrossMessage() or the fill will revert."
770
770
  ];
771
771
  "discriminator": [
772
- 143,
773
- 121,
774
- 102,
775
- 14,
776
- 14,
777
- 12,
778
- 216,
779
- 226
772
+ 242,
773
+ 35,
774
+ 198,
775
+ 137,
776
+ 82,
777
+ 225,
778
+ 242,
779
+ 182
780
780
  ];
781
781
  "accounts": [
782
782
  {
@@ -1042,20 +1042,20 @@ export type SvmSpoke = {
1042
1042
  ];
1043
1043
  },
1044
1044
  {
1045
- "name": "depositV3Now";
1045
+ "name": "depositNow";
1046
1046
  "docs": [
1047
- "Equivalent to deposit_v3 except quote_timestamp is set to the current time.",
1047
+ "Equivalent to deposit except quote_timestamp is set to the current time.",
1048
1048
  "The deposit `fill_deadline` is calculated as the current time plus `fill_deadline_offset`."
1049
1049
  ];
1050
1050
  "discriminator": [
1051
- 139,
1052
- 2,
1053
- 230,
1054
- 236,
1055
- 252,
1056
- 188,
1057
- 136,
1058
- 68
1051
+ 75,
1052
+ 228,
1053
+ 135,
1054
+ 221,
1055
+ 200,
1056
+ 25,
1057
+ 148,
1058
+ 26
1059
1059
  ];
1060
1060
  "accounts": [
1061
1061
  {
@@ -1981,13 +1981,13 @@ export type SvmSpoke = {
1981
1981
  "args": [];
1982
1982
  },
1983
1983
  {
1984
- "name": "executeV3SlowRelayLeaf";
1984
+ "name": "executeSlowRelayLeaf";
1985
1985
  "docs": [
1986
1986
  "Executes a slow relay leaf stored as part of a root bundle relayed by the HubPool.",
1987
1987
  "",
1988
1988
  "Executing a slow fill leaf is equivalent to filling the relayData, so this function cannot be used to",
1989
1989
  "double fill a recipient. The relayData that is filled is included in the slowFillLeaf and is hashed",
1990
- "like any other fill sent through fillV3Relay(). There is no relayer credited with filling this relay since funds",
1990
+ "like any other fill sent through fillRelay(). There is no relayer credited with filling this relay since funds",
1991
1991
  "are sent directly out of this program's vault.",
1992
1992
  "",
1993
1993
  "### Required Accounts:",
@@ -2009,7 +2009,7 @@ export type SvmSpoke = {
2009
2009
  "- _relay_hash: The hash identifying the deposit to be filled. Used to identify the deposit to be filled.",
2010
2010
  "- slow_fill_leaf: Contains all data necessary to uniquely verify the slow fill. This struct contains:",
2011
2011
  "- relayData: Struct containing all the data needed to identify the original deposit to be slow filled. Same",
2012
- "as the relay_data struct in fill_v3_relay().",
2012
+ "as the relay_data struct in fill_relay().",
2013
2013
  "- chainId: Chain identifier where slow fill leaf should be executed. If this doesn't match this chain's",
2014
2014
  "chainId, then this function will revert.",
2015
2015
  "- updatedOutputAmount: Amount to be sent to recipient out of this contract's balance. Can be set differently",
@@ -2021,14 +2021,14 @@ export type SvmSpoke = {
2021
2021
  "the caller must load them via the instruction_params account."
2022
2022
  ];
2023
2023
  "discriminator": [
2024
- 198,
2025
- 223,
2026
- 194,
2027
- 60,
2028
- 138,
2029
- 154,
2030
- 62,
2031
- 53
2024
+ 26,
2025
+ 207,
2026
+ 3,
2027
+ 168,
2028
+ 193,
2029
+ 252,
2030
+ 59,
2031
+ 127
2032
2032
  ];
2033
2033
  "accounts": [
2034
2034
  {
@@ -2319,7 +2319,7 @@ export type SvmSpoke = {
2319
2319
  "type": {
2320
2320
  "option": {
2321
2321
  "defined": {
2322
- "name": "v3SlowFill";
2322
+ "name": "slowFill";
2323
2323
  };
2324
2324
  };
2325
2325
  };
@@ -2346,14 +2346,14 @@ export type SvmSpoke = {
2346
2346
  ];
2347
2347
  },
2348
2348
  {
2349
- "name": "fillV3Relay";
2349
+ "name": "fillRelay";
2350
2350
  "docs": [
2351
2351
  "Fulfill request to bridge cross chain by sending specified output tokens to recipient.",
2352
2352
  "",
2353
2353
  "Relayer & system fee is captured in the spread between input and output amounts. This fee accounts for tx costs,",
2354
2354
  "relayer's capital opportunity cost, and a system fee. The relay_data hash uniquely identifies the deposit to",
2355
2355
  "fill, ensuring relayers are refunded only for deposits matching the original hash from the origin SpokePool.",
2356
- "This hash includes all parameters from deposit_v3() and must match the destination_chain_id. Note the relayer",
2356
+ "This hash includes all parameters from deposit() and must match the destination_chain_id. Note the relayer",
2357
2357
  "creates an ATA in calling this method to store the fill_status. This should be closed once the deposit has",
2358
2358
  "expired to let the relayer re-claim their rent. Cannot fill more than once. Partial fills are not supported.",
2359
2359
  "",
@@ -2379,7 +2379,7 @@ export type SvmSpoke = {
2379
2379
  "- _relay_hash: The hash identifying the deposit to be filled. Caller must pass this in. Computed as hash of",
2380
2380
  "the flattened relay_data & destination_chain_id.",
2381
2381
  "- relay_data: Struct containing all the data needed to identify the deposit to be filled. Should match",
2382
- "all the same-named parameters emitted in the origin chain V3FundsDeposited event.",
2382
+ "all the same-named parameters emitted in the origin chain FundsDeposited event.",
2383
2383
  "- depositor: The account credited with the deposit.",
2384
2384
  "- recipient: The account receiving funds on this chain.",
2385
2385
  "- input_token: The token pulled from the caller's account to initiate the deposit. The equivalent of this",
@@ -2395,7 +2395,7 @@ export type SvmSpoke = {
2395
2395
  "- exclusivity_deadline: The deadline for the exclusive relayer to fill the deposit. After this timestamp,",
2396
2396
  "anyone can fill this deposit.",
2397
2397
  "- message: The message to send to the recipient if the recipient is a contract that implements a",
2398
- "handle_v3_across_message() public function.",
2398
+ "handle_across_message() public function.",
2399
2399
  "- repayment_chain_id: Chain of SpokePool where relayer wants to be refunded after the challenge window has",
2400
2400
  "passed. Will receive input_amount of the equivalent token to input_token on the repayment chain.",
2401
2401
  "- repayment_address: The address of the recipient on the repayment chain that they want to be refunded to.",
@@ -2403,14 +2403,14 @@ export type SvmSpoke = {
2403
2403
  "is passed, the caller must load them via the instruction_params account."
2404
2404
  ];
2405
2405
  "discriminator": [
2406
- 178,
2407
- 52,
2408
- 228,
2409
- 191,
2410
- 48,
2411
- 254,
2412
- 230,
2413
- 50
2406
+ 100,
2407
+ 84,
2408
+ 222,
2409
+ 90,
2410
+ 106,
2411
+ 209,
2412
+ 58,
2413
+ 222
2414
2414
  ];
2415
2415
  "accounts": [
2416
2416
  {
@@ -2621,7 +2621,7 @@ export type SvmSpoke = {
2621
2621
  "type": {
2622
2622
  "option": {
2623
2623
  "defined": {
2624
- "name": "v3RelayData";
2624
+ "name": "relayData";
2625
2625
  };
2626
2626
  };
2627
2627
  };
@@ -3489,7 +3489,7 @@ export type SvmSpoke = {
3489
3489
  ];
3490
3490
  },
3491
3491
  {
3492
- "name": "requestV3SlowFill";
3492
+ "name": "requestSlowFill";
3493
3493
  "docs": [
3494
3494
  "Requests Across to send LP funds to this program to fulfill a slow fill.",
3495
3495
  "",
@@ -3497,7 +3497,7 @@ export type SvmSpoke = {
3497
3497
  "token via PoolRebalanceRoutes. Slow fills are created by inserting slow fill objects into a Merkle tree that is",
3498
3498
  "included in the next HubPool \"root bundle\". Once the optimistic challenge window has passed, the HubPool will",
3499
3499
  "relay the slow root to this chain via relayRootBundle(). Once the slow root is relayed, the slow fill can be",
3500
- "executed by anyone who calls executeV3SlowRelayLeaf(). Cant request a slow fill if the fill deadline has",
3500
+ "executed by anyone who calls executeSlowRelayLeaf(). Cant request a slow fill if the fill deadline has",
3501
3501
  "passed. Cant request a slow fill if the relay has already been filled or a slow fill has already been requested.",
3502
3502
  "",
3503
3503
  "### Required Accounts:",
@@ -3515,19 +3515,19 @@ export type SvmSpoke = {
3515
3515
  "the flattened relay_data & destination_chain_id.",
3516
3516
  "- relay_data: Struct containing all the data needed to identify the deposit that should be slow filled. If any",
3517
3517
  "of the params are missing or different from the origin chain deposit, then Across will not include a slow",
3518
- "fill for the intended deposit. See fill_v3_relay & V3RelayData struct for more details.",
3518
+ "fill for the intended deposit. See fill_relay & RelayData struct for more details.",
3519
3519
  "Note: relay_data is optional parameter. If None for it is passed, the caller must load it via the",
3520
3520
  "instruction_params account."
3521
3521
  ];
3522
3522
  "discriminator": [
3523
- 31,
3524
- 152,
3525
- 13,
3526
- 30,
3527
- 27,
3528
- 122,
3529
- 29,
3530
- 97
3523
+ 39,
3524
+ 157,
3525
+ 165,
3526
+ 187,
3527
+ 88,
3528
+ 217,
3529
+ 207,
3530
+ 98
3531
3531
  ];
3532
3532
  "accounts": [
3533
3533
  {
@@ -3667,7 +3667,7 @@ export type SvmSpoke = {
3667
3667
  "type": {
3668
3668
  "option": {
3669
3669
  "defined": {
3670
- "name": "v3RelayData";
3670
+ "name": "relayData";
3671
3671
  };
3672
3672
  };
3673
3673
  };
@@ -4121,9 +4121,9 @@ export type SvmSpoke = {
4121
4121
  ];
4122
4122
  },
4123
4123
  {
4124
- "name": "unsafeDepositV3";
4124
+ "name": "unsafeDeposit";
4125
4125
  "docs": [
4126
- "Equivalent to deposit_v3, except that it doesn't use the global `number_of_deposits` counter as the deposit",
4126
+ "Equivalent to deposit, except that it doesn't use the global `number_of_deposits` counter as the deposit",
4127
4127
  "nonce. Instead, it allows the caller to pass a `deposit_nonce`. This function is designed for anyone who",
4128
4128
  "wants to pre-compute their resultant deposit ID, which can be useful for filling a deposit faster and",
4129
4129
  "avoiding the risk of a deposit ID unexpectedly changing due to another deposit front-running this one and",
@@ -4131,14 +4131,14 @@ export type SvmSpoke = {
4131
4131
  "deterministic for the depositor. The computed `depositID` is the keccak256 hash of [signer, depositor, deposit_nonce]."
4132
4132
  ];
4133
4133
  "discriminator": [
4134
- 53,
4135
- 27,
4136
- 226,
4137
- 193,
4138
- 54,
4139
- 134,
4140
- 223,
4141
- 89
4134
+ 196,
4135
+ 187,
4136
+ 166,
4137
+ 179,
4138
+ 3,
4139
+ 146,
4140
+ 150,
4141
+ 246
4142
4142
  ];
4143
4143
  "accounts": [
4144
4144
  {
@@ -4519,16 +4519,29 @@ export type SvmSpoke = {
4519
4519
  ];
4520
4520
  },
4521
4521
  {
4522
- "name": "executeV3SlowRelayLeafParams";
4522
+ "name": "executeSlowRelayLeafParams";
4523
4523
  "discriminator": [
4524
- 190,
4525
- 110,
4526
- 37,
4527
- 249,
4528
- 117,
4529
- 253,
4530
- 160,
4531
- 111
4524
+ 135,
4525
+ 208,
4526
+ 119,
4527
+ 251,
4528
+ 14,
4529
+ 222,
4530
+ 66,
4531
+ 155
4532
+ ];
4533
+ },
4534
+ {
4535
+ "name": "fillRelayParams";
4536
+ "discriminator": [
4537
+ 50,
4538
+ 243,
4539
+ 51,
4540
+ 185,
4541
+ 89,
4542
+ 60,
4543
+ 43,
4544
+ 202
4532
4545
  ];
4533
4546
  },
4534
4547
  {
@@ -4545,29 +4558,16 @@ export type SvmSpoke = {
4545
4558
  ];
4546
4559
  },
4547
4560
  {
4548
- "name": "fillV3RelayParams";
4549
- "discriminator": [
4550
- 45,
4551
- 184,
4552
- 9,
4553
- 102,
4554
- 46,
4555
- 87,
4556
- 53,
4557
- 8
4558
- ];
4559
- },
4560
- {
4561
- "name": "requestV3SlowFillParams";
4561
+ "name": "requestSlowFillParams";
4562
4562
  "discriminator": [
4563
- 62,
4564
- 245,
4565
- 2,
4566
- 87,
4567
- 82,
4568
- 84,
4569
- 51,
4570
- 225
4563
+ 5,
4564
+ 54,
4565
+ 214,
4566
+ 89,
4567
+ 197,
4568
+ 37,
4569
+ 118,
4570
+ 28
4571
4571
  ];
4572
4572
  },
4573
4573
  {
@@ -4690,16 +4690,29 @@ export type SvmSpoke = {
4690
4690
  ];
4691
4691
  },
4692
4692
  {
4693
- "name": "filledV3Relay";
4693
+ "name": "filledRelay";
4694
4694
  "discriminator": [
4695
- 49,
4696
- 94,
4697
- 16,
4698
- 27,
4699
- 139,
4700
- 89,
4701
- 112,
4702
- 246
4695
+ 25,
4696
+ 58,
4697
+ 182,
4698
+ 0,
4699
+ 50,
4700
+ 99,
4701
+ 160,
4702
+ 117
4703
+ ];
4704
+ },
4705
+ {
4706
+ "name": "fundsDeposited";
4707
+ "discriminator": [
4708
+ 157,
4709
+ 209,
4710
+ 100,
4711
+ 95,
4712
+ 59,
4713
+ 100,
4714
+ 3,
4715
+ 68
4703
4716
  ];
4704
4717
  },
4705
4718
  {
@@ -4742,16 +4755,16 @@ export type SvmSpoke = {
4742
4755
  ];
4743
4756
  },
4744
4757
  {
4745
- "name": "requestedV3SlowFill";
4758
+ "name": "requestedSlowFill";
4746
4759
  "discriminator": [
4747
- 190,
4760
+ 221,
4761
+ 123,
4762
+ 11,
4763
+ 14,
4748
4764
  71,
4749
- 44,
4750
- 1,
4751
- 74,
4752
- 222,
4753
- 254,
4754
- 129
4765
+ 37,
4766
+ 178,
4767
+ 167
4755
4768
  ];
4756
4769
  },
4757
4770
  {
@@ -4792,56 +4805,93 @@ export type SvmSpoke = {
4792
4805
  21,
4793
4806
  117
4794
4807
  ];
4795
- },
4796
- {
4797
- "name": "v3FundsDeposited";
4798
- "discriminator": [
4799
- 224,
4800
- 136,
4801
- 127,
4802
- 43,
4803
- 200,
4804
- 41,
4805
- 47,
4806
- 142
4807
- ];
4808
4808
  }
4809
4809
  ];
4810
4810
  "errors": [
4811
4811
  {
4812
4812
  "code": 6000;
4813
- "name": "invalidSelector";
4814
- "msg": "Invalid solidity selector";
4813
+ "name": "notOwner";
4814
+ "msg": "Only the owner can call this function!";
4815
4815
  },
4816
4816
  {
4817
4817
  "code": 6001;
4818
- "name": "invalidArgument";
4819
- "msg": "Invalid solidity argument";
4818
+ "name": "invalidRelayHash";
4819
+ "msg": "Invalid relay hash!";
4820
4820
  },
4821
4821
  {
4822
4822
  "code": 6002;
4823
- "name": "invalidBool";
4824
- "msg": "Invalid solidity bool argument";
4823
+ "name": "canOnlyCloseFillStatusPdaIfFillDeadlinePassed";
4824
+ "msg": "The fill deadline has not passed!";
4825
4825
  },
4826
4826
  {
4827
4827
  "code": 6003;
4828
- "name": "invalidAddress";
4829
- "msg": "Invalid solidity address argument";
4828
+ "name": "notRelayer";
4829
+ "msg": "The caller is not the relayer!";
4830
4830
  },
4831
4831
  {
4832
4832
  "code": 6004;
4833
- "name": "invalidUint32";
4834
- "msg": "Invalid solidity uint32 argument";
4833
+ "name": "cannotSetCurrentTime";
4834
+ "msg": "Cannot set time if not in test mode!";
4835
4835
  },
4836
4836
  {
4837
4837
  "code": 6005;
4838
- "name": "invalidUint64";
4839
- "msg": "Invalid solidity uint64 argument";
4838
+ "name": "invalidRemoteDomain";
4839
+ "msg": "Invalid remote domain!";
4840
4840
  },
4841
4841
  {
4842
4842
  "code": 6006;
4843
- "name": "unsupportedSelector";
4844
- "msg": "Unsupported solidity selector";
4843
+ "name": "invalidRemoteSender";
4844
+ "msg": "Invalid remote sender!";
4845
+ },
4846
+ {
4847
+ "code": 6007;
4848
+ "name": "invalidMint";
4849
+ "msg": "Invalid mint!";
4850
+ },
4851
+ {
4852
+ "code": 6008;
4853
+ "name": "exceededPendingBridgeAmount";
4854
+ "msg": "Exceeded pending bridge amount to HubPool!";
4855
+ },
4856
+ {
4857
+ "code": 6009;
4858
+ "name": "paramsWriteOverflow";
4859
+ "msg": "Overflow writing to parameters account!";
4860
+ },
4861
+ {
4862
+ "code": 6010;
4863
+ "name": "invalidRefund";
4864
+ "msg": "Invalid refund address!";
4865
+ },
4866
+ {
4867
+ "code": 6011;
4868
+ "name": "zeroRefundClaim";
4869
+ "msg": "Zero relayer refund claim!";
4870
+ },
4871
+ {
4872
+ "code": 6012;
4873
+ "name": "nonZeroRefundClaim";
4874
+ "msg": "Cannot close non-zero relayer refund claim!";
4875
+ },
4876
+ {
4877
+ "code": 6013;
4878
+ "name": "invalidClaimInitializer";
4879
+ "msg": "Invalid claim initializer!";
4880
+ },
4881
+ {
4882
+ "code": 6014;
4883
+ "name": "invalidRefundTokenAccount";
4884
+ "msg": "Invalid refund token account!";
4885
+ },
4886
+ {
4887
+ "code": 6015;
4888
+ "name": "invalidProductionSeed";
4889
+ "msg": "Seed must be 0 in production!";
4890
+ },
4891
+ {
4892
+ "code": 6016;
4893
+ "name": "invalidAtaCreationAccounts";
4894
+ "msg": "Invalid remaining accounts for ATA creation!";
4845
4895
  }
4846
4896
  ];
4847
4897
  "types": [
@@ -4961,7 +5011,7 @@ export type SvmSpoke = {
4961
5011
  };
4962
5012
  },
4963
5013
  {
4964
- "name": "executeV3SlowRelayLeafParams";
5014
+ "name": "executeSlowRelayLeafParams";
4965
5015
  "type": {
4966
5016
  "kind": "struct";
4967
5017
  "fields": [
@@ -4969,7 +5019,7 @@ export type SvmSpoke = {
4969
5019
  "name": "slowFillLeaf";
4970
5020
  "type": {
4971
5021
  "defined": {
4972
- "name": "v3SlowFill";
5022
+ "name": "slowFill";
4973
5023
  };
4974
5024
  };
4975
5025
  },
@@ -5039,6 +5089,30 @@ export type SvmSpoke = {
5039
5089
  ];
5040
5090
  };
5041
5091
  },
5092
+ {
5093
+ "name": "fillRelayParams";
5094
+ "type": {
5095
+ "kind": "struct";
5096
+ "fields": [
5097
+ {
5098
+ "name": "relayData";
5099
+ "type": {
5100
+ "defined": {
5101
+ "name": "relayData";
5102
+ };
5103
+ };
5104
+ },
5105
+ {
5106
+ "name": "repaymentChainId";
5107
+ "type": "u64";
5108
+ },
5109
+ {
5110
+ "name": "repaymentAddress";
5111
+ "type": "pubkey";
5112
+ }
5113
+ ];
5114
+ };
5115
+ },
5042
5116
  {
5043
5117
  "name": "fillStatus";
5044
5118
  "type": {
@@ -5098,31 +5172,7 @@ export type SvmSpoke = {
5098
5172
  };
5099
5173
  },
5100
5174
  {
5101
- "name": "fillV3RelayParams";
5102
- "type": {
5103
- "kind": "struct";
5104
- "fields": [
5105
- {
5106
- "name": "relayData";
5107
- "type": {
5108
- "defined": {
5109
- "name": "v3RelayData";
5110
- };
5111
- };
5112
- },
5113
- {
5114
- "name": "repaymentChainId";
5115
- "type": "u64";
5116
- },
5117
- {
5118
- "name": "repaymentAddress";
5119
- "type": "pubkey";
5120
- }
5121
- ];
5122
- };
5123
- },
5124
- {
5125
- "name": "filledV3Relay";
5175
+ "name": "filledRelay";
5126
5176
  "type": {
5127
5177
  "kind": "struct";
5128
5178
  "fields": [
@@ -5196,7 +5246,7 @@ export type SvmSpoke = {
5196
5246
  "name": "relayExecutionInfo";
5197
5247
  "type": {
5198
5248
  "defined": {
5199
- "name": "v3RelayExecutionEventInfo";
5249
+ "name": "relayExecutionEventInfo";
5200
5250
  };
5201
5251
  };
5202
5252
  }
@@ -5204,46 +5254,99 @@ export type SvmSpoke = {
5204
5254
  };
5205
5255
  },
5206
5256
  {
5207
- "name": "handleReceiveMessageParams";
5257
+ "name": "fundsDeposited";
5208
5258
  "type": {
5209
5259
  "kind": "struct";
5210
5260
  "fields": [
5211
5261
  {
5212
- "name": "remoteDomain";
5213
- "type": "u32";
5262
+ "name": "inputToken";
5263
+ "type": "pubkey";
5214
5264
  },
5215
5265
  {
5216
- "name": "sender";
5266
+ "name": "outputToken";
5217
5267
  "type": "pubkey";
5218
5268
  },
5219
5269
  {
5220
- "name": "messageBody";
5221
- "type": "bytes";
5270
+ "name": "inputAmount";
5271
+ "type": "u64";
5222
5272
  },
5223
5273
  {
5224
- "name": "authorityBump";
5225
- "type": "u8";
5226
- }
5227
- ];
5228
- };
5229
- },
5230
- {
5231
- "name": "pausedDeposits";
5232
- "type": {
5233
- "kind": "struct";
5234
- "fields": [
5235
- {
5236
- "name": "isPaused";
5237
- "type": "bool";
5238
- }
5239
- ];
5240
- };
5241
- },
5242
- {
5243
- "name": "pausedFills";
5244
- "type": {
5245
- "kind": "struct";
5246
- "fields": [
5274
+ "name": "outputAmount";
5275
+ "type": "u64";
5276
+ },
5277
+ {
5278
+ "name": "destinationChainId";
5279
+ "type": "u64";
5280
+ },
5281
+ {
5282
+ "name": "depositId";
5283
+ "type": {
5284
+ "array": [
5285
+ "u8",
5286
+ 32
5287
+ ];
5288
+ };
5289
+ },
5290
+ {
5291
+ "name": "quoteTimestamp";
5292
+ "type": "u32";
5293
+ },
5294
+ {
5295
+ "name": "fillDeadline";
5296
+ "type": "u32";
5297
+ },
5298
+ {
5299
+ "name": "exclusivityDeadline";
5300
+ "type": "u32";
5301
+ },
5302
+ {
5303
+ "name": "depositor";
5304
+ "type": "pubkey";
5305
+ },
5306
+ {
5307
+ "name": "recipient";
5308
+ "type": "pubkey";
5309
+ },
5310
+ {
5311
+ "name": "exclusiveRelayer";
5312
+ "type": "pubkey";
5313
+ },
5314
+ {
5315
+ "name": "message";
5316
+ "type": "bytes";
5317
+ }
5318
+ ];
5319
+ };
5320
+ },
5321
+ {
5322
+ "name": "handleReceiveMessageParams";
5323
+ "type": {
5324
+ "kind": "struct";
5325
+ "fields": [
5326
+ {
5327
+ "name": "remoteDomain";
5328
+ "type": "u32";
5329
+ },
5330
+ {
5331
+ "name": "sender";
5332
+ "type": "pubkey";
5333
+ },
5334
+ {
5335
+ "name": "messageBody";
5336
+ "type": "bytes";
5337
+ },
5338
+ {
5339
+ "name": "authorityBump";
5340
+ "type": "u8";
5341
+ }
5342
+ ];
5343
+ };
5344
+ },
5345
+ {
5346
+ "name": "pausedDeposits";
5347
+ "type": {
5348
+ "kind": "struct";
5349
+ "fields": [
5247
5350
  {
5248
5351
  "name": "isPaused";
5249
5352
  "type": "bool";
@@ -5251,6 +5354,112 @@ export type SvmSpoke = {
5251
5354
  ];
5252
5355
  };
5253
5356
  },
5357
+ {
5358
+ "name": "pausedFills";
5359
+ "type": {
5360
+ "kind": "struct";
5361
+ "fields": [
5362
+ {
5363
+ "name": "isPaused";
5364
+ "type": "bool";
5365
+ }
5366
+ ];
5367
+ };
5368
+ },
5369
+ {
5370
+ "name": "relayData";
5371
+ "type": {
5372
+ "kind": "struct";
5373
+ "fields": [
5374
+ {
5375
+ "name": "depositor";
5376
+ "type": "pubkey";
5377
+ },
5378
+ {
5379
+ "name": "recipient";
5380
+ "type": "pubkey";
5381
+ },
5382
+ {
5383
+ "name": "exclusiveRelayer";
5384
+ "type": "pubkey";
5385
+ },
5386
+ {
5387
+ "name": "inputToken";
5388
+ "type": "pubkey";
5389
+ },
5390
+ {
5391
+ "name": "outputToken";
5392
+ "type": "pubkey";
5393
+ },
5394
+ {
5395
+ "name": "inputAmount";
5396
+ "type": "u64";
5397
+ },
5398
+ {
5399
+ "name": "outputAmount";
5400
+ "type": "u64";
5401
+ },
5402
+ {
5403
+ "name": "originChainId";
5404
+ "type": "u64";
5405
+ },
5406
+ {
5407
+ "name": "depositId";
5408
+ "type": {
5409
+ "array": [
5410
+ "u8",
5411
+ 32
5412
+ ];
5413
+ };
5414
+ },
5415
+ {
5416
+ "name": "fillDeadline";
5417
+ "type": "u32";
5418
+ },
5419
+ {
5420
+ "name": "exclusivityDeadline";
5421
+ "type": "u32";
5422
+ },
5423
+ {
5424
+ "name": "message";
5425
+ "type": "bytes";
5426
+ }
5427
+ ];
5428
+ };
5429
+ },
5430
+ {
5431
+ "name": "relayExecutionEventInfo";
5432
+ "type": {
5433
+ "kind": "struct";
5434
+ "fields": [
5435
+ {
5436
+ "name": "updatedRecipient";
5437
+ "type": "pubkey";
5438
+ },
5439
+ {
5440
+ "name": "updatedMessageHash";
5441
+ "type": {
5442
+ "array": [
5443
+ "u8",
5444
+ 32
5445
+ ];
5446
+ };
5447
+ },
5448
+ {
5449
+ "name": "updatedOutputAmount";
5450
+ "type": "u64";
5451
+ },
5452
+ {
5453
+ "name": "fillType";
5454
+ "type": {
5455
+ "defined": {
5456
+ "name": "fillType";
5457
+ };
5458
+ };
5459
+ }
5460
+ ];
5461
+ };
5462
+ },
5254
5463
  {
5255
5464
  "name": "relayedRootBundle";
5256
5465
  "type": {
@@ -5318,7 +5527,7 @@ export type SvmSpoke = {
5318
5527
  };
5319
5528
  },
5320
5529
  {
5321
- "name": "requestV3SlowFillParams";
5530
+ "name": "requestSlowFillParams";
5322
5531
  "type": {
5323
5532
  "kind": "struct";
5324
5533
  "fields": [
@@ -5326,7 +5535,7 @@ export type SvmSpoke = {
5326
5535
  "name": "relayData";
5327
5536
  "type": {
5328
5537
  "defined": {
5329
- "name": "v3RelayData";
5538
+ "name": "relayData";
5330
5539
  };
5331
5540
  };
5332
5541
  }
@@ -5334,7 +5543,7 @@ export type SvmSpoke = {
5334
5543
  };
5335
5544
  },
5336
5545
  {
5337
- "name": "requestedV3SlowFill";
5546
+ "name": "requestedSlowFill";
5338
5547
  "type": {
5339
5548
  "kind": "struct";
5340
5549
  "fields": [
@@ -5453,6 +5662,30 @@ export type SvmSpoke = {
5453
5662
  ];
5454
5663
  };
5455
5664
  },
5665
+ {
5666
+ "name": "slowFill";
5667
+ "type": {
5668
+ "kind": "struct";
5669
+ "fields": [
5670
+ {
5671
+ "name": "relayData";
5672
+ "type": {
5673
+ "defined": {
5674
+ "name": "relayData";
5675
+ };
5676
+ };
5677
+ },
5678
+ {
5679
+ "name": "chainId";
5680
+ "type": "u64";
5681
+ },
5682
+ {
5683
+ "name": "updatedOutputAmount";
5684
+ "type": "u64";
5685
+ }
5686
+ ];
5687
+ };
5688
+ },
5456
5689
  {
5457
5690
  "name": "state";
5458
5691
  "type": {
@@ -5560,189 +5793,6 @@ export type SvmSpoke = {
5560
5793
  }
5561
5794
  ];
5562
5795
  };
5563
- },
5564
- {
5565
- "name": "v3FundsDeposited";
5566
- "type": {
5567
- "kind": "struct";
5568
- "fields": [
5569
- {
5570
- "name": "inputToken";
5571
- "type": "pubkey";
5572
- },
5573
- {
5574
- "name": "outputToken";
5575
- "type": "pubkey";
5576
- },
5577
- {
5578
- "name": "inputAmount";
5579
- "type": "u64";
5580
- },
5581
- {
5582
- "name": "outputAmount";
5583
- "type": "u64";
5584
- },
5585
- {
5586
- "name": "destinationChainId";
5587
- "type": "u64";
5588
- },
5589
- {
5590
- "name": "depositId";
5591
- "type": {
5592
- "array": [
5593
- "u8",
5594
- 32
5595
- ];
5596
- };
5597
- },
5598
- {
5599
- "name": "quoteTimestamp";
5600
- "type": "u32";
5601
- },
5602
- {
5603
- "name": "fillDeadline";
5604
- "type": "u32";
5605
- },
5606
- {
5607
- "name": "exclusivityDeadline";
5608
- "type": "u32";
5609
- },
5610
- {
5611
- "name": "depositor";
5612
- "type": "pubkey";
5613
- },
5614
- {
5615
- "name": "recipient";
5616
- "type": "pubkey";
5617
- },
5618
- {
5619
- "name": "exclusiveRelayer";
5620
- "type": "pubkey";
5621
- },
5622
- {
5623
- "name": "message";
5624
- "type": "bytes";
5625
- }
5626
- ];
5627
- };
5628
- },
5629
- {
5630
- "name": "v3RelayData";
5631
- "type": {
5632
- "kind": "struct";
5633
- "fields": [
5634
- {
5635
- "name": "depositor";
5636
- "type": "pubkey";
5637
- },
5638
- {
5639
- "name": "recipient";
5640
- "type": "pubkey";
5641
- },
5642
- {
5643
- "name": "exclusiveRelayer";
5644
- "type": "pubkey";
5645
- },
5646
- {
5647
- "name": "inputToken";
5648
- "type": "pubkey";
5649
- },
5650
- {
5651
- "name": "outputToken";
5652
- "type": "pubkey";
5653
- },
5654
- {
5655
- "name": "inputAmount";
5656
- "type": "u64";
5657
- },
5658
- {
5659
- "name": "outputAmount";
5660
- "type": "u64";
5661
- },
5662
- {
5663
- "name": "originChainId";
5664
- "type": "u64";
5665
- },
5666
- {
5667
- "name": "depositId";
5668
- "type": {
5669
- "array": [
5670
- "u8",
5671
- 32
5672
- ];
5673
- };
5674
- },
5675
- {
5676
- "name": "fillDeadline";
5677
- "type": "u32";
5678
- },
5679
- {
5680
- "name": "exclusivityDeadline";
5681
- "type": "u32";
5682
- },
5683
- {
5684
- "name": "message";
5685
- "type": "bytes";
5686
- }
5687
- ];
5688
- };
5689
- },
5690
- {
5691
- "name": "v3RelayExecutionEventInfo";
5692
- "type": {
5693
- "kind": "struct";
5694
- "fields": [
5695
- {
5696
- "name": "updatedRecipient";
5697
- "type": "pubkey";
5698
- },
5699
- {
5700
- "name": "updatedMessageHash";
5701
- "type": {
5702
- "array": [
5703
- "u8",
5704
- 32
5705
- ];
5706
- };
5707
- },
5708
- {
5709
- "name": "updatedOutputAmount";
5710
- "type": "u64";
5711
- },
5712
- {
5713
- "name": "fillType";
5714
- "type": {
5715
- "defined": {
5716
- "name": "fillType";
5717
- };
5718
- };
5719
- }
5720
- ];
5721
- };
5722
- },
5723
- {
5724
- "name": "v3SlowFill";
5725
- "type": {
5726
- "kind": "struct";
5727
- "fields": [
5728
- {
5729
- "name": "relayData";
5730
- "type": {
5731
- "defined": {
5732
- "name": "v3RelayData";
5733
- };
5734
- };
5735
- },
5736
- {
5737
- "name": "chainId";
5738
- "type": "u64";
5739
- },
5740
- {
5741
- "name": "updatedOutputAmount";
5742
- "type": "u64";
5743
- }
5744
- ];
5745
- };
5746
5796
  }
5747
5797
  ];
5748
5798
  };