@across-protocol/contracts 4.0.1 → 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 (74) hide show
  1. package/dist/deploy/consts.d.ts +1 -1
  2. package/dist/deploy/consts.js +9 -13
  3. package/dist/deployments/deployments.json +24 -1
  4. package/dist/hardhat.config.js +17 -1
  5. package/dist/scripts/svm/fakeFillWithRandomDistribution.js +2 -2
  6. package/dist/scripts/svm/queryEvents.js +1 -1
  7. package/dist/scripts/svm/simpleDeposit.js +3 -3
  8. package/dist/scripts/svm/simpleFakeRelayerRepayment.js +1 -1
  9. package/dist/scripts/svm/simpleFill.js +19 -6
  10. package/dist/src/svm/assets/idl/svm_spoke.json +388 -388
  11. package/dist/src/svm/assets/svm_spoke.d.ts +388 -388
  12. package/dist/src/svm/clients/SvmSpoke/accounts/executeSlowRelayLeafParams.d.ts +31 -0
  13. package/dist/src/svm/clients/SvmSpoke/accounts/executeSlowRelayLeafParams.js +70 -0
  14. package/dist/src/svm/clients/SvmSpoke/accounts/fillRelayParams.d.ts +31 -0
  15. package/dist/src/svm/clients/SvmSpoke/accounts/fillRelayParams.js +67 -0
  16. package/dist/src/svm/clients/SvmSpoke/accounts/index.d.ts +3 -3
  17. package/dist/src/svm/clients/SvmSpoke/accounts/index.js +3 -3
  18. package/dist/src/svm/clients/SvmSpoke/accounts/requestSlowFillParams.d.ts +27 -0
  19. package/dist/src/svm/clients/SvmSpoke/accounts/requestSlowFillParams.js +66 -0
  20. package/dist/src/svm/clients/SvmSpoke/instructions/deposit.d.ts +123 -0
  21. package/dist/src/svm/clients/SvmSpoke/instructions/{depositV3.js → deposit.js} +23 -23
  22. package/dist/src/svm/clients/SvmSpoke/instructions/depositNow.d.ts +119 -0
  23. package/dist/src/svm/clients/SvmSpoke/instructions/{depositV3Now.js → depositNow.js} +23 -23
  24. package/dist/src/svm/clients/SvmSpoke/instructions/executeSlowRelayLeaf.d.ts +104 -0
  25. package/dist/src/svm/clients/SvmSpoke/instructions/{executeV3SlowRelayLeaf.js → executeSlowRelayLeaf.js} +26 -26
  26. package/dist/src/svm/clients/SvmSpoke/instructions/fillRelay.d.ts +104 -0
  27. package/dist/src/svm/clients/SvmSpoke/instructions/{fillV3Relay.js → fillRelay.js} +26 -26
  28. package/dist/src/svm/clients/SvmSpoke/instructions/index.d.ts +6 -6
  29. package/dist/src/svm/clients/SvmSpoke/instructions/index.js +6 -6
  30. package/dist/src/svm/clients/SvmSpoke/instructions/requestSlowFill.d.ts +76 -0
  31. package/dist/src/svm/clients/SvmSpoke/instructions/{requestV3SlowFill.js → requestSlowFill.js} +25 -25
  32. package/dist/src/svm/clients/SvmSpoke/instructions/unsafeDeposit.d.ts +127 -0
  33. package/dist/src/svm/clients/SvmSpoke/instructions/{unsafeDepositV3.js → unsafeDeposit.js} +23 -23
  34. package/dist/src/svm/clients/SvmSpoke/programs/svmSpoke.d.ts +23 -23
  35. package/dist/src/svm/clients/SvmSpoke/programs/svmSpoke.js +29 -29
  36. package/dist/src/svm/clients/SvmSpoke/types/{filledV3Relay.d.ts → filledRelay.d.ts} +8 -8
  37. package/dist/src/svm/clients/SvmSpoke/types/{filledV3Relay.js → filledRelay.js} +9 -9
  38. package/dist/src/svm/clients/SvmSpoke/types/{v3FundsDeposited.d.ts → fundsDeposited.d.ts} +5 -5
  39. package/dist/src/svm/clients/SvmSpoke/types/{v3FundsDeposited.js → fundsDeposited.js} +7 -7
  40. package/dist/src/svm/clients/SvmSpoke/types/index.d.ts +6 -6
  41. package/dist/src/svm/clients/SvmSpoke/types/index.js +6 -6
  42. package/dist/src/svm/clients/SvmSpoke/types/{v3RelayData.d.ts → relayData.d.ts} +5 -5
  43. package/dist/src/svm/clients/SvmSpoke/types/{v3RelayData.js → relayData.js} +7 -7
  44. package/dist/src/svm/clients/SvmSpoke/types/{v3RelayExecutionEventInfo.d.ts → relayExecutionEventInfo.d.ts} +5 -5
  45. package/dist/src/svm/clients/SvmSpoke/types/{v3RelayExecutionEventInfo.js → relayExecutionEventInfo.js} +7 -7
  46. package/dist/src/svm/clients/SvmSpoke/types/{requestedV3SlowFill.d.ts → requestedSlowFill.d.ts} +5 -5
  47. package/dist/src/svm/clients/SvmSpoke/types/{requestedV3SlowFill.js → requestedSlowFill.js} +7 -7
  48. package/dist/src/svm/clients/SvmSpoke/types/{v3SlowFill.d.ts → slowFill.d.ts} +8 -8
  49. package/dist/src/svm/clients/SvmSpoke/types/{v3SlowFill.js → slowFill.js} +9 -9
  50. package/dist/src/svm/web3-v1/instructionParamsUtils.d.ts +8 -8
  51. package/dist/src/svm/web3-v1/instructionParamsUtils.js +16 -16
  52. package/dist/src/types/svm.d.ts +6 -6
  53. package/dist/target/types/svm_spoke.d.ts +388 -388
  54. package/dist/tasks/enableL1TokenAcrossEcosystem.js +14 -10
  55. package/dist/test/svm/SvmSpoke.Deposit.js +48 -47
  56. package/dist/test/svm/SvmSpoke.Fill.AcrossPlus.js +2 -2
  57. package/dist/test/svm/SvmSpoke.Fill.js +28 -56
  58. package/dist/test/svm/SvmSpoke.SlowFill.AcrossPlus.js +13 -13
  59. package/dist/test/svm/SvmSpoke.SlowFill.js +40 -40
  60. package/dist/utils/constants.d.ts +1 -1
  61. package/dist/utils/constants.js +3 -1
  62. package/package.json +2 -2
  63. package/dist/src/svm/clients/SvmSpoke/accounts/executeV3SlowRelayLeafParams.d.ts +0 -31
  64. package/dist/src/svm/clients/SvmSpoke/accounts/executeV3SlowRelayLeafParams.js +0 -70
  65. package/dist/src/svm/clients/SvmSpoke/accounts/fillV3RelayParams.d.ts +0 -31
  66. package/dist/src/svm/clients/SvmSpoke/accounts/fillV3RelayParams.js +0 -67
  67. package/dist/src/svm/clients/SvmSpoke/accounts/requestV3SlowFillParams.d.ts +0 -27
  68. package/dist/src/svm/clients/SvmSpoke/accounts/requestV3SlowFillParams.js +0 -66
  69. package/dist/src/svm/clients/SvmSpoke/instructions/depositV3.d.ts +0 -123
  70. package/dist/src/svm/clients/SvmSpoke/instructions/depositV3Now.d.ts +0 -119
  71. package/dist/src/svm/clients/SvmSpoke/instructions/executeV3SlowRelayLeaf.d.ts +0 -104
  72. package/dist/src/svm/clients/SvmSpoke/instructions/fillV3Relay.d.ts +0 -104
  73. package/dist/src/svm/clients/SvmSpoke/instructions/requestV3SlowFill.d.ts +0 -76
  74. package/dist/src/svm/clients/SvmSpoke/instructions/unsafeDepositV3.d.ts +0 -127
@@ -710,7 +710,7 @@
710
710
  "args": []
711
711
  },
712
712
  {
713
- "name": "deposit_v3",
713
+ "name": "deposit",
714
714
  "docs": [
715
715
  "Request to bridge input_token to a target chain and receive output_token.",
716
716
  "",
@@ -754,7 +754,7 @@
754
754
  "- quote_timestamp: The HubPool timestamp that is used to determine the system fee paid by the depositor. This",
755
755
  "must be set to some time between [currentTime - depositQuoteTimeBuffer, currentTime].",
756
756
  "- fill_deadline: The deadline for the relayer to fill the deposit. After this destination chain timestamp, the",
757
- "fill will revert on the destination chain. Must be set between [currentTime,currentTime+fillDeadlineBuffer].",
757
+ "fill will revert on the destination chain. Must be set before currentTime + fillDeadlineBuffer.",
758
758
  "- exclusivity_parameter: Sets the exclusivity deadline timestamp for the exclusiveRelayer to fill the deposit.",
759
759
  "1. If 0, no exclusivity period.",
760
760
  "2. If less than MAX_EXCLUSIVITY_PERIOD_SECONDS, adds this value to the current block timestamp.",
@@ -763,14 +763,14 @@
763
763
  "If not empty, the recipient contract must implement handleV3AcrossMessage() or the fill will revert."
764
764
  ],
765
765
  "discriminator": [
766
- 143,
767
- 121,
768
- 102,
769
- 14,
770
- 14,
771
- 12,
772
- 216,
773
- 226
766
+ 242,
767
+ 35,
768
+ 198,
769
+ 137,
770
+ 82,
771
+ 225,
772
+ 242,
773
+ 182
774
774
  ],
775
775
  "accounts": [
776
776
  {
@@ -1036,20 +1036,20 @@
1036
1036
  ]
1037
1037
  },
1038
1038
  {
1039
- "name": "deposit_v3_now",
1039
+ "name": "deposit_now",
1040
1040
  "docs": [
1041
- "Equivalent to deposit_v3 except quote_timestamp is set to the current time.",
1041
+ "Equivalent to deposit except quote_timestamp is set to the current time.",
1042
1042
  "The deposit `fill_deadline` is calculated as the current time plus `fill_deadline_offset`."
1043
1043
  ],
1044
1044
  "discriminator": [
1045
- 139,
1046
- 2,
1047
- 230,
1048
- 236,
1049
- 252,
1050
- 188,
1051
- 136,
1052
- 68
1045
+ 75,
1046
+ 228,
1047
+ 135,
1048
+ 221,
1049
+ 200,
1050
+ 25,
1051
+ 148,
1052
+ 26
1053
1053
  ],
1054
1054
  "accounts": [
1055
1055
  {
@@ -1975,13 +1975,13 @@
1975
1975
  "args": []
1976
1976
  },
1977
1977
  {
1978
- "name": "execute_v3_slow_relay_leaf",
1978
+ "name": "execute_slow_relay_leaf",
1979
1979
  "docs": [
1980
1980
  "Executes a slow relay leaf stored as part of a root bundle relayed by the HubPool.",
1981
1981
  "",
1982
1982
  "Executing a slow fill leaf is equivalent to filling the relayData, so this function cannot be used to",
1983
1983
  "double fill a recipient. The relayData that is filled is included in the slowFillLeaf and is hashed",
1984
- "like any other fill sent through fillV3Relay(). There is no relayer credited with filling this relay since funds",
1984
+ "like any other fill sent through fillRelay(). There is no relayer credited with filling this relay since funds",
1985
1985
  "are sent directly out of this program's vault.",
1986
1986
  "",
1987
1987
  "### Required Accounts:",
@@ -2003,7 +2003,7 @@
2003
2003
  "- _relay_hash: The hash identifying the deposit to be filled. Used to identify the deposit to be filled.",
2004
2004
  "- slow_fill_leaf: Contains all data necessary to uniquely verify the slow fill. This struct contains:",
2005
2005
  "- relayData: Struct containing all the data needed to identify the original deposit to be slow filled. Same",
2006
- "as the relay_data struct in fill_v3_relay().",
2006
+ "as the relay_data struct in fill_relay().",
2007
2007
  "- chainId: Chain identifier where slow fill leaf should be executed. If this doesn't match this chain's",
2008
2008
  "chainId, then this function will revert.",
2009
2009
  "- updatedOutputAmount: Amount to be sent to recipient out of this contract's balance. Can be set differently",
@@ -2015,14 +2015,14 @@
2015
2015
  "the caller must load them via the instruction_params account."
2016
2016
  ],
2017
2017
  "discriminator": [
2018
- 198,
2019
- 223,
2020
- 194,
2021
- 60,
2022
- 138,
2023
- 154,
2024
- 62,
2025
- 53
2018
+ 26,
2019
+ 207,
2020
+ 3,
2021
+ 168,
2022
+ 193,
2023
+ 252,
2024
+ 59,
2025
+ 127
2026
2026
  ],
2027
2027
  "accounts": [
2028
2028
  {
@@ -2313,7 +2313,7 @@
2313
2313
  "type": {
2314
2314
  "option": {
2315
2315
  "defined": {
2316
- "name": "V3SlowFill"
2316
+ "name": "SlowFill"
2317
2317
  }
2318
2318
  }
2319
2319
  }
@@ -2340,14 +2340,14 @@
2340
2340
  ]
2341
2341
  },
2342
2342
  {
2343
- "name": "fill_v3_relay",
2343
+ "name": "fill_relay",
2344
2344
  "docs": [
2345
2345
  "Fulfill request to bridge cross chain by sending specified output tokens to recipient.",
2346
2346
  "",
2347
2347
  "Relayer & system fee is captured in the spread between input and output amounts. This fee accounts for tx costs,",
2348
2348
  "relayer's capital opportunity cost, and a system fee. The relay_data hash uniquely identifies the deposit to",
2349
2349
  "fill, ensuring relayers are refunded only for deposits matching the original hash from the origin SpokePool.",
2350
- "This hash includes all parameters from deposit_v3() and must match the destination_chain_id. Note the relayer",
2350
+ "This hash includes all parameters from deposit() and must match the destination_chain_id. Note the relayer",
2351
2351
  "creates an ATA in calling this method to store the fill_status. This should be closed once the deposit has",
2352
2352
  "expired to let the relayer re-claim their rent. Cannot fill more than once. Partial fills are not supported.",
2353
2353
  "",
@@ -2373,7 +2373,7 @@
2373
2373
  "- _relay_hash: The hash identifying the deposit to be filled. Caller must pass this in. Computed as hash of",
2374
2374
  "the flattened relay_data & destination_chain_id.",
2375
2375
  "- relay_data: Struct containing all the data needed to identify the deposit to be filled. Should match",
2376
- "all the same-named parameters emitted in the origin chain V3FundsDeposited event.",
2376
+ "all the same-named parameters emitted in the origin chain FundsDeposited event.",
2377
2377
  "- depositor: The account credited with the deposit.",
2378
2378
  "- recipient: The account receiving funds on this chain.",
2379
2379
  "- input_token: The token pulled from the caller's account to initiate the deposit. The equivalent of this",
@@ -2389,7 +2389,7 @@
2389
2389
  "- exclusivity_deadline: The deadline for the exclusive relayer to fill the deposit. After this timestamp,",
2390
2390
  "anyone can fill this deposit.",
2391
2391
  "- message: The message to send to the recipient if the recipient is a contract that implements a",
2392
- "handle_v3_across_message() public function.",
2392
+ "handle_across_message() public function.",
2393
2393
  "- repayment_chain_id: Chain of SpokePool where relayer wants to be refunded after the challenge window has",
2394
2394
  "passed. Will receive input_amount of the equivalent token to input_token on the repayment chain.",
2395
2395
  "- repayment_address: The address of the recipient on the repayment chain that they want to be refunded to.",
@@ -2397,14 +2397,14 @@
2397
2397
  "is passed, the caller must load them via the instruction_params account."
2398
2398
  ],
2399
2399
  "discriminator": [
2400
- 178,
2401
- 52,
2402
- 228,
2403
- 191,
2404
- 48,
2405
- 254,
2406
- 230,
2407
- 50
2400
+ 100,
2401
+ 84,
2402
+ 222,
2403
+ 90,
2404
+ 106,
2405
+ 209,
2406
+ 58,
2407
+ 222
2408
2408
  ],
2409
2409
  "accounts": [
2410
2410
  {
@@ -2615,7 +2615,7 @@
2615
2615
  "type": {
2616
2616
  "option": {
2617
2617
  "defined": {
2618
- "name": "V3RelayData"
2618
+ "name": "RelayData"
2619
2619
  }
2620
2620
  }
2621
2621
  }
@@ -3483,7 +3483,7 @@
3483
3483
  ]
3484
3484
  },
3485
3485
  {
3486
- "name": "request_v3_slow_fill",
3486
+ "name": "request_slow_fill",
3487
3487
  "docs": [
3488
3488
  "Requests Across to send LP funds to this program to fulfill a slow fill.",
3489
3489
  "",
@@ -3491,7 +3491,7 @@
3491
3491
  "token via PoolRebalanceRoutes. Slow fills are created by inserting slow fill objects into a Merkle tree that is",
3492
3492
  "included in the next HubPool \"root bundle\". Once the optimistic challenge window has passed, the HubPool will",
3493
3493
  "relay the slow root to this chain via relayRootBundle(). Once the slow root is relayed, the slow fill can be",
3494
- "executed by anyone who calls executeV3SlowRelayLeaf(). Cant request a slow fill if the fill deadline has",
3494
+ "executed by anyone who calls executeSlowRelayLeaf(). Cant request a slow fill if the fill deadline has",
3495
3495
  "passed. Cant request a slow fill if the relay has already been filled or a slow fill has already been requested.",
3496
3496
  "",
3497
3497
  "### Required Accounts:",
@@ -3509,19 +3509,19 @@
3509
3509
  "the flattened relay_data & destination_chain_id.",
3510
3510
  "- relay_data: Struct containing all the data needed to identify the deposit that should be slow filled. If any",
3511
3511
  "of the params are missing or different from the origin chain deposit, then Across will not include a slow",
3512
- "fill for the intended deposit. See fill_v3_relay & V3RelayData struct for more details.",
3512
+ "fill for the intended deposit. See fill_relay & RelayData struct for more details.",
3513
3513
  "Note: relay_data is optional parameter. If None for it is passed, the caller must load it via the",
3514
3514
  "instruction_params account."
3515
3515
  ],
3516
3516
  "discriminator": [
3517
- 31,
3518
- 152,
3519
- 13,
3520
- 30,
3521
- 27,
3522
- 122,
3523
- 29,
3524
- 97
3517
+ 39,
3518
+ 157,
3519
+ 165,
3520
+ 187,
3521
+ 88,
3522
+ 217,
3523
+ 207,
3524
+ 98
3525
3525
  ],
3526
3526
  "accounts": [
3527
3527
  {
@@ -3661,7 +3661,7 @@
3661
3661
  "type": {
3662
3662
  "option": {
3663
3663
  "defined": {
3664
- "name": "V3RelayData"
3664
+ "name": "RelayData"
3665
3665
  }
3666
3666
  }
3667
3667
  }
@@ -4115,9 +4115,9 @@
4115
4115
  ]
4116
4116
  },
4117
4117
  {
4118
- "name": "unsafe_deposit_v3",
4118
+ "name": "unsafe_deposit",
4119
4119
  "docs": [
4120
- "Equivalent to deposit_v3, except that it doesn't use the global `number_of_deposits` counter as the deposit",
4120
+ "Equivalent to deposit, except that it doesn't use the global `number_of_deposits` counter as the deposit",
4121
4121
  "nonce. Instead, it allows the caller to pass a `deposit_nonce`. This function is designed for anyone who",
4122
4122
  "wants to pre-compute their resultant deposit ID, which can be useful for filling a deposit faster and",
4123
4123
  "avoiding the risk of a deposit ID unexpectedly changing due to another deposit front-running this one and",
@@ -4125,14 +4125,14 @@
4125
4125
  "deterministic for the depositor. The computed `depositID` is the keccak256 hash of [signer, depositor, deposit_nonce]."
4126
4126
  ],
4127
4127
  "discriminator": [
4128
- 53,
4129
- 27,
4130
- 226,
4131
- 193,
4132
- 54,
4133
- 134,
4134
- 223,
4135
- 89
4128
+ 196,
4129
+ 187,
4130
+ 166,
4131
+ 179,
4132
+ 3,
4133
+ 146,
4134
+ 150,
4135
+ 246
4136
4136
  ],
4137
4137
  "accounts": [
4138
4138
  {
@@ -4513,16 +4513,29 @@
4513
4513
  ]
4514
4514
  },
4515
4515
  {
4516
- "name": "ExecuteV3SlowRelayLeafParams",
4516
+ "name": "ExecuteSlowRelayLeafParams",
4517
4517
  "discriminator": [
4518
- 190,
4519
- 110,
4520
- 37,
4521
- 249,
4522
- 117,
4523
- 253,
4524
- 160,
4525
- 111
4518
+ 135,
4519
+ 208,
4520
+ 119,
4521
+ 251,
4522
+ 14,
4523
+ 222,
4524
+ 66,
4525
+ 155
4526
+ ]
4527
+ },
4528
+ {
4529
+ "name": "FillRelayParams",
4530
+ "discriminator": [
4531
+ 50,
4532
+ 243,
4533
+ 51,
4534
+ 185,
4535
+ 89,
4536
+ 60,
4537
+ 43,
4538
+ 202
4526
4539
  ]
4527
4540
  },
4528
4541
  {
@@ -4539,29 +4552,16 @@
4539
4552
  ]
4540
4553
  },
4541
4554
  {
4542
- "name": "FillV3RelayParams",
4543
- "discriminator": [
4544
- 45,
4545
- 184,
4546
- 9,
4547
- 102,
4548
- 46,
4549
- 87,
4550
- 53,
4551
- 8
4552
- ]
4553
- },
4554
- {
4555
- "name": "RequestV3SlowFillParams",
4555
+ "name": "RequestSlowFillParams",
4556
4556
  "discriminator": [
4557
- 62,
4558
- 245,
4559
- 2,
4560
- 87,
4561
- 82,
4562
- 84,
4563
- 51,
4564
- 225
4557
+ 5,
4558
+ 54,
4559
+ 214,
4560
+ 89,
4561
+ 197,
4562
+ 37,
4563
+ 118,
4564
+ 28
4565
4565
  ]
4566
4566
  },
4567
4567
  {
@@ -4684,16 +4684,29 @@
4684
4684
  ]
4685
4685
  },
4686
4686
  {
4687
- "name": "FilledV3Relay",
4687
+ "name": "FilledRelay",
4688
4688
  "discriminator": [
4689
- 49,
4690
- 94,
4691
- 16,
4692
- 27,
4693
- 139,
4694
- 89,
4695
- 112,
4696
- 246
4689
+ 25,
4690
+ 58,
4691
+ 182,
4692
+ 0,
4693
+ 50,
4694
+ 99,
4695
+ 160,
4696
+ 117
4697
+ ]
4698
+ },
4699
+ {
4700
+ "name": "FundsDeposited",
4701
+ "discriminator": [
4702
+ 157,
4703
+ 209,
4704
+ 100,
4705
+ 95,
4706
+ 59,
4707
+ 100,
4708
+ 3,
4709
+ 68
4697
4710
  ]
4698
4711
  },
4699
4712
  {
@@ -4736,16 +4749,16 @@
4736
4749
  ]
4737
4750
  },
4738
4751
  {
4739
- "name": "RequestedV3SlowFill",
4752
+ "name": "RequestedSlowFill",
4740
4753
  "discriminator": [
4741
- 190,
4754
+ 221,
4755
+ 123,
4756
+ 11,
4757
+ 14,
4742
4758
  71,
4743
- 44,
4744
- 1,
4745
- 74,
4746
- 222,
4747
- 254,
4748
- 129
4759
+ 37,
4760
+ 178,
4761
+ 167
4749
4762
  ]
4750
4763
  },
4751
4764
  {
@@ -4786,19 +4799,6 @@
4786
4799
  21,
4787
4800
  117
4788
4801
  ]
4789
- },
4790
- {
4791
- "name": "V3FundsDeposited",
4792
- "discriminator": [
4793
- 224,
4794
- 136,
4795
- 127,
4796
- 43,
4797
- 200,
4798
- 41,
4799
- 47,
4800
- 142
4801
- ]
4802
4802
  }
4803
4803
  ],
4804
4804
  "errors": [
@@ -5005,7 +5005,7 @@
5005
5005
  }
5006
5006
  },
5007
5007
  {
5008
- "name": "ExecuteV3SlowRelayLeafParams",
5008
+ "name": "ExecuteSlowRelayLeafParams",
5009
5009
  "type": {
5010
5010
  "kind": "struct",
5011
5011
  "fields": [
@@ -5013,7 +5013,7 @@
5013
5013
  "name": "slow_fill_leaf",
5014
5014
  "type": {
5015
5015
  "defined": {
5016
- "name": "V3SlowFill"
5016
+ "name": "SlowFill"
5017
5017
  }
5018
5018
  }
5019
5019
  },
@@ -5083,6 +5083,30 @@
5083
5083
  ]
5084
5084
  }
5085
5085
  },
5086
+ {
5087
+ "name": "FillRelayParams",
5088
+ "type": {
5089
+ "kind": "struct",
5090
+ "fields": [
5091
+ {
5092
+ "name": "relay_data",
5093
+ "type": {
5094
+ "defined": {
5095
+ "name": "RelayData"
5096
+ }
5097
+ }
5098
+ },
5099
+ {
5100
+ "name": "repayment_chain_id",
5101
+ "type": "u64"
5102
+ },
5103
+ {
5104
+ "name": "repayment_address",
5105
+ "type": "pubkey"
5106
+ }
5107
+ ]
5108
+ }
5109
+ },
5086
5110
  {
5087
5111
  "name": "FillStatus",
5088
5112
  "type": {
@@ -5142,31 +5166,7 @@
5142
5166
  }
5143
5167
  },
5144
5168
  {
5145
- "name": "FillV3RelayParams",
5146
- "type": {
5147
- "kind": "struct",
5148
- "fields": [
5149
- {
5150
- "name": "relay_data",
5151
- "type": {
5152
- "defined": {
5153
- "name": "V3RelayData"
5154
- }
5155
- }
5156
- },
5157
- {
5158
- "name": "repayment_chain_id",
5159
- "type": "u64"
5160
- },
5161
- {
5162
- "name": "repayment_address",
5163
- "type": "pubkey"
5164
- }
5165
- ]
5166
- }
5167
- },
5168
- {
5169
- "name": "FilledV3Relay",
5169
+ "name": "FilledRelay",
5170
5170
  "type": {
5171
5171
  "kind": "struct",
5172
5172
  "fields": [
@@ -5240,7 +5240,7 @@
5240
5240
  "name": "relay_execution_info",
5241
5241
  "type": {
5242
5242
  "defined": {
5243
- "name": "V3RelayExecutionEventInfo"
5243
+ "name": "RelayExecutionEventInfo"
5244
5244
  }
5245
5245
  }
5246
5246
  }
@@ -5248,64 +5248,32 @@
5248
5248
  }
5249
5249
  },
5250
5250
  {
5251
- "name": "HandleReceiveMessageParams",
5251
+ "name": "FundsDeposited",
5252
5252
  "type": {
5253
5253
  "kind": "struct",
5254
5254
  "fields": [
5255
5255
  {
5256
- "name": "remote_domain",
5257
- "type": "u32"
5256
+ "name": "input_token",
5257
+ "type": "pubkey"
5258
5258
  },
5259
5259
  {
5260
- "name": "sender",
5260
+ "name": "output_token",
5261
5261
  "type": "pubkey"
5262
5262
  },
5263
5263
  {
5264
- "name": "message_body",
5265
- "type": "bytes"
5264
+ "name": "input_amount",
5265
+ "type": "u64"
5266
5266
  },
5267
5267
  {
5268
- "name": "authority_bump",
5269
- "type": "u8"
5270
- }
5271
- ]
5272
- }
5273
- },
5274
- {
5275
- "name": "PausedDeposits",
5276
- "type": {
5277
- "kind": "struct",
5278
- "fields": [
5279
- {
5280
- "name": "is_paused",
5281
- "type": "bool"
5282
- }
5283
- ]
5284
- }
5285
- },
5286
- {
5287
- "name": "PausedFills",
5288
- "type": {
5289
- "kind": "struct",
5290
- "fields": [
5291
- {
5292
- "name": "is_paused",
5293
- "type": "bool"
5294
- }
5295
- ]
5296
- }
5297
- },
5298
- {
5299
- "name": "RelayedRootBundle",
5300
- "type": {
5301
- "kind": "struct",
5302
- "fields": [
5268
+ "name": "output_amount",
5269
+ "type": "u64"
5270
+ },
5303
5271
  {
5304
- "name": "root_bundle_id",
5305
- "type": "u32"
5272
+ "name": "destination_chain_id",
5273
+ "type": "u64"
5306
5274
  },
5307
5275
  {
5308
- "name": "relayer_refund_root",
5276
+ "name": "deposit_id",
5309
5277
  "type": {
5310
5278
  "array": [
5311
5279
  "u8",
@@ -5314,8 +5282,199 @@
5314
5282
  }
5315
5283
  },
5316
5284
  {
5317
- "name": "slow_relay_root",
5318
- "type": {
5285
+ "name": "quote_timestamp",
5286
+ "type": "u32"
5287
+ },
5288
+ {
5289
+ "name": "fill_deadline",
5290
+ "type": "u32"
5291
+ },
5292
+ {
5293
+ "name": "exclusivity_deadline",
5294
+ "type": "u32"
5295
+ },
5296
+ {
5297
+ "name": "depositor",
5298
+ "type": "pubkey"
5299
+ },
5300
+ {
5301
+ "name": "recipient",
5302
+ "type": "pubkey"
5303
+ },
5304
+ {
5305
+ "name": "exclusive_relayer",
5306
+ "type": "pubkey"
5307
+ },
5308
+ {
5309
+ "name": "message",
5310
+ "type": "bytes"
5311
+ }
5312
+ ]
5313
+ }
5314
+ },
5315
+ {
5316
+ "name": "HandleReceiveMessageParams",
5317
+ "type": {
5318
+ "kind": "struct",
5319
+ "fields": [
5320
+ {
5321
+ "name": "remote_domain",
5322
+ "type": "u32"
5323
+ },
5324
+ {
5325
+ "name": "sender",
5326
+ "type": "pubkey"
5327
+ },
5328
+ {
5329
+ "name": "message_body",
5330
+ "type": "bytes"
5331
+ },
5332
+ {
5333
+ "name": "authority_bump",
5334
+ "type": "u8"
5335
+ }
5336
+ ]
5337
+ }
5338
+ },
5339
+ {
5340
+ "name": "PausedDeposits",
5341
+ "type": {
5342
+ "kind": "struct",
5343
+ "fields": [
5344
+ {
5345
+ "name": "is_paused",
5346
+ "type": "bool"
5347
+ }
5348
+ ]
5349
+ }
5350
+ },
5351
+ {
5352
+ "name": "PausedFills",
5353
+ "type": {
5354
+ "kind": "struct",
5355
+ "fields": [
5356
+ {
5357
+ "name": "is_paused",
5358
+ "type": "bool"
5359
+ }
5360
+ ]
5361
+ }
5362
+ },
5363
+ {
5364
+ "name": "RelayData",
5365
+ "type": {
5366
+ "kind": "struct",
5367
+ "fields": [
5368
+ {
5369
+ "name": "depositor",
5370
+ "type": "pubkey"
5371
+ },
5372
+ {
5373
+ "name": "recipient",
5374
+ "type": "pubkey"
5375
+ },
5376
+ {
5377
+ "name": "exclusive_relayer",
5378
+ "type": "pubkey"
5379
+ },
5380
+ {
5381
+ "name": "input_token",
5382
+ "type": "pubkey"
5383
+ },
5384
+ {
5385
+ "name": "output_token",
5386
+ "type": "pubkey"
5387
+ },
5388
+ {
5389
+ "name": "input_amount",
5390
+ "type": "u64"
5391
+ },
5392
+ {
5393
+ "name": "output_amount",
5394
+ "type": "u64"
5395
+ },
5396
+ {
5397
+ "name": "origin_chain_id",
5398
+ "type": "u64"
5399
+ },
5400
+ {
5401
+ "name": "deposit_id",
5402
+ "type": {
5403
+ "array": [
5404
+ "u8",
5405
+ 32
5406
+ ]
5407
+ }
5408
+ },
5409
+ {
5410
+ "name": "fill_deadline",
5411
+ "type": "u32"
5412
+ },
5413
+ {
5414
+ "name": "exclusivity_deadline",
5415
+ "type": "u32"
5416
+ },
5417
+ {
5418
+ "name": "message",
5419
+ "type": "bytes"
5420
+ }
5421
+ ]
5422
+ }
5423
+ },
5424
+ {
5425
+ "name": "RelayExecutionEventInfo",
5426
+ "type": {
5427
+ "kind": "struct",
5428
+ "fields": [
5429
+ {
5430
+ "name": "updated_recipient",
5431
+ "type": "pubkey"
5432
+ },
5433
+ {
5434
+ "name": "updated_message_hash",
5435
+ "type": {
5436
+ "array": [
5437
+ "u8",
5438
+ 32
5439
+ ]
5440
+ }
5441
+ },
5442
+ {
5443
+ "name": "updated_output_amount",
5444
+ "type": "u64"
5445
+ },
5446
+ {
5447
+ "name": "fill_type",
5448
+ "type": {
5449
+ "defined": {
5450
+ "name": "FillType"
5451
+ }
5452
+ }
5453
+ }
5454
+ ]
5455
+ }
5456
+ },
5457
+ {
5458
+ "name": "RelayedRootBundle",
5459
+ "type": {
5460
+ "kind": "struct",
5461
+ "fields": [
5462
+ {
5463
+ "name": "root_bundle_id",
5464
+ "type": "u32"
5465
+ },
5466
+ {
5467
+ "name": "relayer_refund_root",
5468
+ "type": {
5469
+ "array": [
5470
+ "u8",
5471
+ 32
5472
+ ]
5473
+ }
5474
+ },
5475
+ {
5476
+ "name": "slow_relay_root",
5477
+ "type": {
5319
5478
  "array": [
5320
5479
  "u8",
5321
5480
  32
@@ -5362,7 +5521,7 @@
5362
5521
  }
5363
5522
  },
5364
5523
  {
5365
- "name": "RequestV3SlowFillParams",
5524
+ "name": "RequestSlowFillParams",
5366
5525
  "type": {
5367
5526
  "kind": "struct",
5368
5527
  "fields": [
@@ -5370,7 +5529,7 @@
5370
5529
  "name": "relay_data",
5371
5530
  "type": {
5372
5531
  "defined": {
5373
- "name": "V3RelayData"
5532
+ "name": "RelayData"
5374
5533
  }
5375
5534
  }
5376
5535
  }
@@ -5378,7 +5537,7 @@
5378
5537
  }
5379
5538
  },
5380
5539
  {
5381
- "name": "RequestedV3SlowFill",
5540
+ "name": "RequestedSlowFill",
5382
5541
  "type": {
5383
5542
  "kind": "struct",
5384
5543
  "fields": [
@@ -5497,6 +5656,30 @@
5497
5656
  ]
5498
5657
  }
5499
5658
  },
5659
+ {
5660
+ "name": "SlowFill",
5661
+ "type": {
5662
+ "kind": "struct",
5663
+ "fields": [
5664
+ {
5665
+ "name": "relay_data",
5666
+ "type": {
5667
+ "defined": {
5668
+ "name": "RelayData"
5669
+ }
5670
+ }
5671
+ },
5672
+ {
5673
+ "name": "chain_id",
5674
+ "type": "u64"
5675
+ },
5676
+ {
5677
+ "name": "updated_output_amount",
5678
+ "type": "u64"
5679
+ }
5680
+ ]
5681
+ }
5682
+ },
5500
5683
  {
5501
5684
  "name": "State",
5502
5685
  "type": {
@@ -5604,189 +5787,6 @@
5604
5787
  }
5605
5788
  ]
5606
5789
  }
5607
- },
5608
- {
5609
- "name": "V3FundsDeposited",
5610
- "type": {
5611
- "kind": "struct",
5612
- "fields": [
5613
- {
5614
- "name": "input_token",
5615
- "type": "pubkey"
5616
- },
5617
- {
5618
- "name": "output_token",
5619
- "type": "pubkey"
5620
- },
5621
- {
5622
- "name": "input_amount",
5623
- "type": "u64"
5624
- },
5625
- {
5626
- "name": "output_amount",
5627
- "type": "u64"
5628
- },
5629
- {
5630
- "name": "destination_chain_id",
5631
- "type": "u64"
5632
- },
5633
- {
5634
- "name": "deposit_id",
5635
- "type": {
5636
- "array": [
5637
- "u8",
5638
- 32
5639
- ]
5640
- }
5641
- },
5642
- {
5643
- "name": "quote_timestamp",
5644
- "type": "u32"
5645
- },
5646
- {
5647
- "name": "fill_deadline",
5648
- "type": "u32"
5649
- },
5650
- {
5651
- "name": "exclusivity_deadline",
5652
- "type": "u32"
5653
- },
5654
- {
5655
- "name": "depositor",
5656
- "type": "pubkey"
5657
- },
5658
- {
5659
- "name": "recipient",
5660
- "type": "pubkey"
5661
- },
5662
- {
5663
- "name": "exclusive_relayer",
5664
- "type": "pubkey"
5665
- },
5666
- {
5667
- "name": "message",
5668
- "type": "bytes"
5669
- }
5670
- ]
5671
- }
5672
- },
5673
- {
5674
- "name": "V3RelayData",
5675
- "type": {
5676
- "kind": "struct",
5677
- "fields": [
5678
- {
5679
- "name": "depositor",
5680
- "type": "pubkey"
5681
- },
5682
- {
5683
- "name": "recipient",
5684
- "type": "pubkey"
5685
- },
5686
- {
5687
- "name": "exclusive_relayer",
5688
- "type": "pubkey"
5689
- },
5690
- {
5691
- "name": "input_token",
5692
- "type": "pubkey"
5693
- },
5694
- {
5695
- "name": "output_token",
5696
- "type": "pubkey"
5697
- },
5698
- {
5699
- "name": "input_amount",
5700
- "type": "u64"
5701
- },
5702
- {
5703
- "name": "output_amount",
5704
- "type": "u64"
5705
- },
5706
- {
5707
- "name": "origin_chain_id",
5708
- "type": "u64"
5709
- },
5710
- {
5711
- "name": "deposit_id",
5712
- "type": {
5713
- "array": [
5714
- "u8",
5715
- 32
5716
- ]
5717
- }
5718
- },
5719
- {
5720
- "name": "fill_deadline",
5721
- "type": "u32"
5722
- },
5723
- {
5724
- "name": "exclusivity_deadline",
5725
- "type": "u32"
5726
- },
5727
- {
5728
- "name": "message",
5729
- "type": "bytes"
5730
- }
5731
- ]
5732
- }
5733
- },
5734
- {
5735
- "name": "V3RelayExecutionEventInfo",
5736
- "type": {
5737
- "kind": "struct",
5738
- "fields": [
5739
- {
5740
- "name": "updated_recipient",
5741
- "type": "pubkey"
5742
- },
5743
- {
5744
- "name": "updated_message_hash",
5745
- "type": {
5746
- "array": [
5747
- "u8",
5748
- 32
5749
- ]
5750
- }
5751
- },
5752
- {
5753
- "name": "updated_output_amount",
5754
- "type": "u64"
5755
- },
5756
- {
5757
- "name": "fill_type",
5758
- "type": {
5759
- "defined": {
5760
- "name": "FillType"
5761
- }
5762
- }
5763
- }
5764
- ]
5765
- }
5766
- },
5767
- {
5768
- "name": "V3SlowFill",
5769
- "type": {
5770
- "kind": "struct",
5771
- "fields": [
5772
- {
5773
- "name": "relay_data",
5774
- "type": {
5775
- "defined": {
5776
- "name": "V3RelayData"
5777
- }
5778
- }
5779
- },
5780
- {
5781
- "name": "chain_id",
5782
- "type": "u64"
5783
- },
5784
- {
5785
- "name": "updated_output_amount",
5786
- "type": "u64"
5787
- }
5788
- ]
5789
- }
5790
5790
  }
5791
5791
  ]
5792
5792
  }