@pendle/core-v2 6.4.2-swaphubtest → 6.4.2-swaphubtest2

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 (131) hide show
  1. package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.json +2 -2
  3. package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.json +2 -2
  5. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  6. package/build/artifacts/contracts/core/Market/PendleMarketV6.sol/PendleMarketV6.dbg.json +1 -1
  7. package/build/artifacts/contracts/core/Market/PendleMarketV6.sol/PendleMarketV6.json +2 -2
  8. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  9. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  10. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  11. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactoryUpg.sol/PendleYieldContractFactoryUpg.dbg.json +1 -1
  12. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactoryUpg.sol/PendleYieldContractFactoryUpg.json +2 -2
  13. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  14. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  15. package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
  16. package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.dbg.json +1 -1
  17. package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.json +2 -2
  18. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBox.sol/DepositBox.dbg.json +4 -0
  19. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBox.sol/DepositBox.json +170 -0
  20. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBoxFactory.sol/DepositBoxFactory.dbg.json +4 -0
  21. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBoxFactory.sol/DepositBoxFactory.json +124 -0
  22. package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.dbg.json +1 -1
  23. package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.json +200 -433
  24. package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.dbg.json +1 -1
  25. package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.json +199 -423
  26. package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
  27. package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.json +2 -2
  28. package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.dbg.json +1 -1
  29. package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.json +161 -398
  30. package/build/artifacts/contracts/interfaces/IPDepositBoxFactory.sol/IPDepositBoxFactory.dbg.json +4 -0
  31. package/build/artifacts/contracts/interfaces/IPDepositBoxFactory.sol/IPDepositBoxFactory.json +108 -0
  32. package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
  33. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
  34. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +2 -2
  35. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +1 -1
  36. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.json +2 -2
  37. package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.dbg.json +1 -1
  38. package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.json +2 -2
  39. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.dbg.json +1 -1
  40. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.json +2 -2
  41. package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.dbg.json +1 -1
  42. package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.json +2 -2
  43. package/build/artifacts/contracts/offchain-helpers/PendleAPIFeeDepositor.sol/PendleAPIFeeDepositor.dbg.json +1 -1
  44. package/build/artifacts/contracts/offchain-helpers/PendleAPIFeeDepositor.sol/PendleAPIFeeDepositor.json +2 -2
  45. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapper.sol/PendleLPWrapper.dbg.json +1 -1
  46. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapper.sol/PendleLPWrapper.json +2 -2
  47. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.dbg.json +1 -1
  48. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.json +2 -2
  49. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +1 -1
  50. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.json +2 -2
  51. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  52. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
  53. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +1 -1
  54. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.json +2 -2
  55. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  56. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
  57. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.dbg.json +1 -1
  58. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.json +2 -2
  59. package/build/artifacts/contracts/router/ActionCrossChain.sol/ActionCrossChain.dbg.json +1 -1
  60. package/build/artifacts/contracts/router/ActionCrossChain.sol/ActionCrossChain.json +2 -2
  61. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  62. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
  63. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
  64. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
  65. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  66. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
  67. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  68. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
  69. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  70. package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
  71. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  72. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  73. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
  74. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
  75. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +1 -1
  76. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  77. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
  78. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  79. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -2
  80. package/contracts/core/libraries/TokenHelper.sol +5 -1
  81. package/contracts/cross-chain/deposit-box/DepositBoxFactory.sol +44 -0
  82. package/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol +14 -102
  83. package/contracts/cross-chain/swap-hub/SwapHubBase.sol +73 -150
  84. package/contracts/interfaces/IPCrossChainSwapHub.sol +35 -66
  85. package/contracts/interfaces/IPDepositBoxFactory.sol +19 -0
  86. package/deployments/130-core.json +2 -1
  87. package/deployments/9745-core.json +3 -2
  88. package/package.json +1 -1
  89. package/typechain-types/DepositBoxFactory.ts +226 -0
  90. package/typechain-types/IPCrossChainSwapHub.ts +192 -383
  91. package/typechain-types/IPDepositBoxFactory.ts +226 -0
  92. package/typechain-types/PendleCrossChainSwapHub.ts +217 -390
  93. package/typechain-types/SwapHubBase.ts +216 -389
  94. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
  95. package/typechain-types/factories/ActionCallbackV3__factory.ts +1 -1
  96. package/typechain-types/factories/ActionCrossChain__factory.ts +1 -1
  97. package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
  98. package/typechain-types/factories/ActionSimple__factory.ts +1 -1
  99. package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
  100. package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
  101. package/typechain-types/factories/Broadcaster__factory.ts +1 -1
  102. package/typechain-types/factories/DepositBoxFactory__factory.ts +189 -0
  103. package/typechain-types/factories/DepositBox__factory.ts +1 -1
  104. package/typechain-types/factories/ExpiredLpPtRedeemer__factory.ts +1 -1
  105. package/typechain-types/factories/FixedPricePTAMM__factory.ts +1 -1
  106. package/typechain-types/factories/IPCrossChainSwapHub__factory.ts +161 -398
  107. package/typechain-types/factories/IPDepositBoxFactory__factory.ts +123 -0
  108. package/typechain-types/factories/LimitBackendHelperV2__factory.ts +1 -1
  109. package/typechain-types/factories/MarketSweed__factory.ts +1 -1
  110. package/typechain-types/factories/PendleAPIFeeDepositor__factory.ts +1 -1
  111. package/typechain-types/factories/PendleCommonPoolDeployHelperV2__factory.ts +1 -1
  112. package/typechain-types/factories/PendleCrossChainSwapHub__factory.ts +203 -440
  113. package/typechain-types/factories/PendleFeeDistributorV2__factory.ts +1 -1
  114. package/typechain-types/factories/PendleLPWrapperFactory__factory.ts +1 -1
  115. package/typechain-types/factories/PendleLPWrapper__factory.ts +1 -1
  116. package/typechain-types/factories/PendleLimitRouter__factory.ts +1 -1
  117. package/typechain-types/factories/PendleMarketV6__factory.ts +1 -1
  118. package/typechain-types/factories/PendleMerkleDistributor__factory.ts +1 -1
  119. package/typechain-types/factories/PendleMultiTokenMerkleDistributor__factory.ts +1 -1
  120. package/typechain-types/factories/PendlePoolDeployHelperV2__factory.ts +1 -1
  121. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
  122. package/typechain-types/factories/PendleSwap__factory.ts +1 -1
  123. package/typechain-types/factories/PendleYieldContractFactoryUpg__factory.ts +1 -1
  124. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  125. package/typechain-types/factories/Reflector__factory.ts +1 -1
  126. package/typechain-types/factories/SwapHubBase__factory.ts +199 -423
  127. package/typechain-types/hardhat.d.ts +27 -9
  128. package/typechain-types/index.ts +6 -2
  129. package/build/artifacts/contracts/cross-chain/swap-hub/DepositBox.sol/DepositBox.dbg.json +0 -4
  130. package/build/artifacts/contracts/cross-chain/swap-hub/DepositBox.sol/DepositBox.json +0 -170
  131. /package/contracts/cross-chain/{swap-hub → deposit-box}/DepositBox.sol +0 -0
@@ -39,7 +39,19 @@ const _abi = [
39
39
  anonymous: false,
40
40
  inputs: [
41
41
  {
42
- indexed: true,
42
+ indexed: false,
43
+ internalType: "uint256",
44
+ name: "requestId",
45
+ type: "uint256",
46
+ },
47
+ {
48
+ indexed: false,
49
+ internalType: "uint256",
50
+ name: "nonce",
51
+ type: "uint256",
52
+ },
53
+ {
54
+ indexed: false,
43
55
  internalType: "address",
44
56
  name: "owner",
45
57
  type: "address",
@@ -74,12 +86,6 @@ const _abi = [
74
86
  name: "amountFee",
75
87
  type: "uint256",
76
88
  },
77
- {
78
- indexed: false,
79
- internalType: "bool",
80
- name: "pullFromOwner",
81
- type: "bool",
82
- },
83
89
  ],
84
90
  name: "BridgeToken",
85
91
  type: "event",
@@ -90,59 +96,17 @@ const _abi = [
90
96
  {
91
97
  indexed: true,
92
98
  internalType: "address",
93
- name: "owner",
94
- type: "address",
95
- },
96
- {
97
- indexed: false,
98
- internalType: "uint32",
99
- name: "boxId",
100
- type: "uint32",
101
- },
102
- {
103
- indexed: false,
104
- internalType: "address",
105
- name: "tokenSpent",
106
- type: "address",
107
- },
108
- {
109
- indexed: false,
110
- internalType: "uint256",
111
- name: "amountSpent",
112
- type: "uint256",
113
- },
114
- {
115
- indexed: false,
116
- internalType: "uint256",
117
- name: "amountFee",
118
- type: "uint256",
119
- },
120
- {
121
- indexed: false,
122
- internalType: "address",
123
- name: "ptAdapter",
124
- type: "address",
125
- },
126
- {
127
- indexed: false,
128
- internalType: "address",
129
- name: "pt",
99
+ name: "executor",
130
100
  type: "address",
131
101
  },
132
- {
133
- indexed: false,
134
- internalType: "uint256",
135
- name: "netPtReceived",
136
- type: "uint256",
137
- },
138
102
  {
139
103
  indexed: false,
140
104
  internalType: "bool",
141
- name: "pullFromOwner",
105
+ name: "isExecutor",
142
106
  type: "bool",
143
107
  },
144
108
  ],
145
- name: "BuyCrossChainPt",
109
+ name: "SetExecutor",
146
110
  type: "event",
147
111
  },
148
112
  {
@@ -151,24 +115,36 @@ const _abi = [
151
115
  {
152
116
  indexed: true,
153
117
  internalType: "address",
154
- name: "executor",
118
+ name: "proposer",
155
119
  type: "address",
156
120
  },
157
121
  {
158
122
  indexed: false,
159
123
  internalType: "bool",
160
- name: "isExecutor",
124
+ name: "isProposer",
161
125
  type: "bool",
162
126
  },
163
127
  ],
164
- name: "SetExecutor",
128
+ name: "SetProposer",
165
129
  type: "event",
166
130
  },
167
131
  {
168
132
  anonymous: false,
169
133
  inputs: [
170
134
  {
171
- indexed: true,
135
+ indexed: false,
136
+ internalType: "uint256",
137
+ name: "requestId",
138
+ type: "uint256",
139
+ },
140
+ {
141
+ indexed: false,
142
+ internalType: "uint256",
143
+ name: "nonce",
144
+ type: "uint256",
145
+ },
146
+ {
147
+ indexed: false,
172
148
  internalType: "address",
173
149
  name: "owner",
174
150
  type: "address",
@@ -191,12 +167,6 @@ const _abi = [
191
167
  name: "amountSpent",
192
168
  type: "uint256",
193
169
  },
194
- {
195
- indexed: false,
196
- internalType: "uint256",
197
- name: "amountFee",
198
- type: "uint256",
199
- },
200
170
  {
201
171
  indexed: false,
202
172
  internalType: "address",
@@ -209,18 +179,6 @@ const _abi = [
209
179
  name: "netTokenReceived",
210
180
  type: "uint256",
211
181
  },
212
- {
213
- indexed: false,
214
- internalType: "bool",
215
- name: "pullFromOwner",
216
- type: "bool",
217
- },
218
- {
219
- indexed: false,
220
- internalType: "bool",
221
- name: "sendToOwner",
222
- type: "bool",
223
- },
224
182
  ],
225
183
  name: "SwapToken",
226
184
  type: "event",
@@ -229,7 +187,19 @@ const _abi = [
229
187
  anonymous: false,
230
188
  inputs: [
231
189
  {
232
- indexed: true,
190
+ indexed: false,
191
+ internalType: "uint256",
192
+ name: "requestId",
193
+ type: "uint256",
194
+ },
195
+ {
196
+ indexed: false,
197
+ internalType: "uint256",
198
+ name: "nonce",
199
+ type: "uint256",
200
+ },
201
+ {
202
+ indexed: false,
233
203
  internalType: "address",
234
204
  name: "owner",
235
205
  type: "address",
@@ -262,62 +232,23 @@ const _abi = [
262
232
  name: "WithdrawToken",
263
233
  type: "event",
264
234
  },
265
- {
266
- inputs: [],
267
- name: "BEACON_PROXY_CODE_CONTRACT",
268
- outputs: [
269
- {
270
- internalType: "address",
271
- name: "",
272
- type: "address",
273
- },
274
- ],
275
- stateMutability: "view",
276
- type: "function",
277
- },
278
- {
279
- inputs: [],
280
- name: "DEPOSIT_BOX_BEACON",
281
- outputs: [
282
- {
283
- internalType: "address",
284
- name: "",
285
- type: "address",
286
- },
287
- ],
288
- stateMutability: "view",
289
- type: "function",
290
- },
291
- {
292
- inputs: [],
293
- name: "DEPOSIT_BOX_CODE_HASH",
294
- outputs: [
295
- {
296
- internalType: "bytes32",
297
- name: "",
298
- type: "bytes32",
299
- },
300
- ],
301
- stateMutability: "view",
302
- type: "function",
303
- },
304
235
  {
305
236
  inputs: [
306
237
  {
307
238
  components: [
308
239
  {
309
240
  internalType: "address",
310
- name: "owner",
241
+ name: "proposer",
311
242
  type: "address",
312
243
  },
313
244
  {
314
- internalType: "uint32",
315
- name: "boxId",
316
- type: "uint32",
245
+ internalType: "uint256",
246
+ name: "expiry",
247
+ type: "uint256",
317
248
  },
318
249
  {
319
250
  internalType: "uint256",
320
- name: "expiry",
251
+ name: "requestId",
321
252
  type: "uint256",
322
253
  },
323
254
  {
@@ -325,6 +256,16 @@ const _abi = [
325
256
  name: "nonce",
326
257
  type: "uint256",
327
258
  },
259
+ {
260
+ internalType: "address",
261
+ name: "owner",
262
+ type: "address",
263
+ },
264
+ {
265
+ internalType: "uint32",
266
+ name: "boxId",
267
+ type: "uint32",
268
+ },
328
269
  {
329
270
  internalType: "address",
330
271
  name: "token",
@@ -340,11 +281,6 @@ const _abi = [
340
281
  name: "amountFee",
341
282
  type: "uint256",
342
283
  },
343
- {
344
- internalType: "bool",
345
- name: "pullFromOwner",
346
- type: "bool",
347
- },
348
284
  {
349
285
  internalType: "address",
350
286
  name: "bridgeExtRouter",
@@ -382,14 +318,9 @@ const _abi = [
382
318
  components: [
383
319
  {
384
320
  internalType: "address",
385
- name: "owner",
321
+ name: "proposer",
386
322
  type: "address",
387
323
  },
388
- {
389
- internalType: "uint32",
390
- name: "boxId",
391
- type: "uint32",
392
- },
393
324
  {
394
325
  internalType: "uint256",
395
326
  name: "expiry",
@@ -397,118 +328,14 @@ const _abi = [
397
328
  },
398
329
  {
399
330
  internalType: "uint256",
400
- name: "nonce",
331
+ name: "requestId",
401
332
  type: "uint256",
402
333
  },
403
- {
404
- internalType: "address",
405
- name: "tokenSpent",
406
- type: "address",
407
- },
408
334
  {
409
335
  internalType: "uint256",
410
- name: "amountSpent",
411
- type: "uint256",
412
- },
413
- {
414
- internalType: "uint256",
415
- name: "amountFee",
416
- type: "uint256",
417
- },
418
- {
419
- internalType: "address",
420
- name: "ptAdapter",
421
- type: "address",
422
- },
423
- {
424
- internalType: "uint256",
425
- name: "minPtReceived",
336
+ name: "nonce",
426
337
  type: "uint256",
427
338
  },
428
- {
429
- internalType: "uint32",
430
- name: "dstEid",
431
- type: "uint32",
432
- },
433
- {
434
- internalType: "bytes32",
435
- name: "receiver",
436
- type: "bytes32",
437
- },
438
- {
439
- internalType: "bool",
440
- name: "pullFromOwner",
441
- type: "bool",
442
- },
443
- {
444
- internalType: "address",
445
- name: "swapExtRouter",
446
- type: "address",
447
- },
448
- {
449
- internalType: "address",
450
- name: "swapApprove",
451
- type: "address",
452
- },
453
- {
454
- internalType: "bytes",
455
- name: "swapCalldata",
456
- type: "bytes",
457
- },
458
- ],
459
- internalType: "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
460
- name: "message",
461
- type: "tuple",
462
- },
463
- {
464
- internalType: "bytes",
465
- name: "signature",
466
- type: "bytes",
467
- },
468
- ],
469
- name: "buyCrossChainPt",
470
- outputs: [],
471
- stateMutability: "payable",
472
- type: "function",
473
- },
474
- {
475
- inputs: [
476
- {
477
- internalType: "address",
478
- name: "owner",
479
- type: "address",
480
- },
481
- {
482
- internalType: "uint32",
483
- name: "boxId",
484
- type: "uint32",
485
- },
486
- ],
487
- name: "computeDepositBox",
488
- outputs: [
489
- {
490
- internalType: "address",
491
- name: "box",
492
- type: "address",
493
- },
494
- {
495
- internalType: "bytes32",
496
- name: "salt",
497
- type: "bytes32",
498
- },
499
- {
500
- internalType: "bool",
501
- name: "deployed",
502
- type: "bool",
503
- },
504
- ],
505
- stateMutability: "view",
506
- type: "function",
507
- },
508
- {
509
- inputs: [
510
- {
511
- components: [
512
339
  {
513
340
  internalType: "address",
514
341
  name: "owner",
@@ -519,24 +346,14 @@ const _abi = [
519
346
  name: "boxId",
520
347
  type: "uint32",
521
348
  },
522
- {
523
- internalType: "uint256",
524
- name: "expiry",
525
- type: "uint256",
526
- },
527
- {
528
- internalType: "uint256",
529
- name: "nonce",
530
- type: "uint256",
531
- },
532
349
  {
533
350
  internalType: "address",
534
- name: "tokenSpent",
351
+ name: "token",
535
352
  type: "address",
536
353
  },
537
354
  {
538
355
  internalType: "uint256",
539
- name: "amountSpent",
356
+ name: "amountBridge",
540
357
  type: "uint256",
541
358
  },
542
359
  {
@@ -546,41 +363,21 @@ const _abi = [
546
363
  },
547
364
  {
548
365
  internalType: "address",
549
- name: "tokenReceived",
550
- type: "address",
551
- },
552
- {
553
- internalType: "uint256",
554
- name: "minReceived",
555
- type: "uint256",
556
- },
557
- {
558
- internalType: "bool",
559
- name: "pullFromOwner",
560
- type: "bool",
561
- },
562
- {
563
- internalType: "bool",
564
- name: "sendToOwner",
565
- type: "bool",
566
- },
567
- {
568
- internalType: "address",
569
- name: "swapExtRouter",
366
+ name: "bridgeExtRouter",
570
367
  type: "address",
571
368
  },
572
369
  {
573
370
  internalType: "address",
574
- name: "swapApprove",
371
+ name: "bridgeApprove",
575
372
  type: "address",
576
373
  },
577
374
  {
578
375
  internalType: "bytes",
579
- name: "swapCalldata",
376
+ name: "bridgeCalldata",
580
377
  type: "bytes",
581
378
  },
582
379
  ],
583
- internalType: "struct IPCrossChainSwapHub.SwapTokenMessage",
380
+ internalType: "struct IPCrossChainSwapHub.BridgeTokenMessage",
584
381
  name: "message",
585
382
  type: "tuple",
586
383
  },
@@ -602,14 +399,9 @@ const _abi = [
602
399
  components: [
603
400
  {
604
401
  internalType: "address",
605
- name: "owner",
402
+ name: "proposer",
606
403
  type: "address",
607
404
  },
608
- {
609
- internalType: "uint32",
610
- name: "boxId",
611
- type: "uint32",
612
- },
613
405
  {
614
406
  internalType: "uint256",
615
407
  name: "expiry",
@@ -617,45 +409,14 @@ const _abi = [
617
409
  },
618
410
  {
619
411
  internalType: "uint256",
620
- name: "nonce",
412
+ name: "requestId",
621
413
  type: "uint256",
622
414
  },
623
- {
624
- internalType: "address",
625
- name: "token",
626
- type: "address",
627
- },
628
415
  {
629
416
  internalType: "uint256",
630
- name: "amountWithdraw",
417
+ name: "nonce",
631
418
  type: "uint256",
632
419
  },
633
- {
634
- internalType: "uint256",
635
- name: "amountFee",
636
- type: "uint256",
637
- },
638
- ],
639
- internalType: "struct IPCrossChainSwapHub.WithdrawTokenMessage",
640
- name: "message",
641
- type: "tuple",
642
- },
643
- ],
644
- name: "hashTypedData",
645
- outputs: [
646
- {
647
- internalType: "bytes32",
648
- name: "",
649
- type: "bytes32",
650
- },
651
- ],
652
- stateMutability: "view",
653
- type: "function",
654
- },
655
- {
656
- inputs: [
657
- {
658
- components: [
659
420
  {
660
421
  internalType: "address",
661
422
  name: "owner",
@@ -666,16 +427,6 @@ const _abi = [
666
427
  name: "boxId",
667
428
  type: "uint32",
668
429
  },
669
- {
670
- internalType: "uint256",
671
- name: "expiry",
672
- type: "uint256",
673
- },
674
- {
675
- internalType: "uint256",
676
- name: "nonce",
677
- type: "uint256",
678
- },
679
430
  {
680
431
  internalType: "address",
681
432
  name: "tokenSpent",
@@ -686,36 +437,16 @@ const _abi = [
686
437
  name: "amountSpent",
687
438
  type: "uint256",
688
439
  },
689
- {
690
- internalType: "uint256",
691
- name: "amountFee",
692
- type: "uint256",
693
- },
694
440
  {
695
441
  internalType: "address",
696
- name: "ptAdapter",
442
+ name: "tokenReceived",
697
443
  type: "address",
698
444
  },
699
445
  {
700
446
  internalType: "uint256",
701
- name: "minPtReceived",
447
+ name: "minReceived",
702
448
  type: "uint256",
703
449
  },
704
- {
705
- internalType: "uint32",
706
- name: "dstEid",
707
- type: "uint32",
708
- },
709
- {
710
- internalType: "bytes32",
711
- name: "receiver",
712
- type: "bytes32",
713
- },
714
- {
715
- internalType: "bool",
716
- name: "pullFromOwner",
717
- type: "bool",
718
- },
719
450
  {
720
451
  internalType: "address",
721
452
  name: "swapExtRouter",
@@ -732,7 +463,7 @@ const _abi = [
732
463
  type: "bytes",
733
464
  },
734
465
  ],
735
- internalType: "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
466
+ internalType: "struct IPCrossChainSwapHub.SwapTokenMessage",
736
467
  name: "message",
737
468
  type: "tuple",
738
469
  },
@@ -754,14 +485,9 @@ const _abi = [
754
485
  components: [
755
486
  {
756
487
  internalType: "address",
757
- name: "owner",
488
+ name: "proposer",
758
489
  type: "address",
759
490
  },
760
- {
761
- internalType: "uint32",
762
- name: "boxId",
763
- type: "uint32",
764
- },
765
491
  {
766
492
  internalType: "uint256",
767
493
  name: "expiry",
@@ -769,46 +495,41 @@ const _abi = [
769
495
  },
770
496
  {
771
497
  internalType: "uint256",
772
- name: "nonce",
498
+ name: "requestId",
773
499
  type: "uint256",
774
500
  },
775
- {
776
- internalType: "address",
777
- name: "token",
778
- type: "address",
779
- },
780
501
  {
781
502
  internalType: "uint256",
782
- name: "amountBridge",
503
+ name: "nonce",
783
504
  type: "uint256",
784
505
  },
785
506
  {
786
- internalType: "uint256",
787
- name: "amountFee",
788
- type: "uint256",
507
+ internalType: "address",
508
+ name: "owner",
509
+ type: "address",
789
510
  },
790
511
  {
791
- internalType: "bool",
792
- name: "pullFromOwner",
793
- type: "bool",
512
+ internalType: "uint32",
513
+ name: "boxId",
514
+ type: "uint32",
794
515
  },
795
516
  {
796
517
  internalType: "address",
797
- name: "bridgeExtRouter",
518
+ name: "token",
798
519
  type: "address",
799
520
  },
800
521
  {
801
- internalType: "address",
802
- name: "bridgeApprove",
803
- type: "address",
522
+ internalType: "uint256",
523
+ name: "amountWithdraw",
524
+ type: "uint256",
804
525
  },
805
526
  {
806
- internalType: "bytes",
807
- name: "bridgeCalldata",
808
- type: "bytes",
527
+ internalType: "uint256",
528
+ name: "amountFee",
529
+ type: "uint256",
809
530
  },
810
531
  ],
811
- internalType: "struct IPCrossChainSwapHub.BridgeTokenMessage",
532
+ internalType: "struct IPCrossChainSwapHub.WithdrawTokenMessage",
812
533
  name: "message",
813
534
  type: "tuple",
814
535
  },
@@ -847,11 +568,30 @@ const _abi = [
847
568
  inputs: [
848
569
  {
849
570
  internalType: "address",
850
- name: "owner",
571
+ name: "proposer",
851
572
  type: "address",
852
573
  },
853
574
  ],
854
- name: "ownerNonce",
575
+ name: "isProposer",
576
+ outputs: [
577
+ {
578
+ internalType: "bool",
579
+ name: "",
580
+ type: "bool",
581
+ },
582
+ ],
583
+ stateMutability: "view",
584
+ type: "function",
585
+ },
586
+ {
587
+ inputs: [
588
+ {
589
+ internalType: "uint256",
590
+ name: "requestId",
591
+ type: "uint256",
592
+ },
593
+ ],
594
+ name: "requestNonce",
855
595
  outputs: [
856
596
  {
857
597
  internalType: "uint256",
@@ -880,23 +620,41 @@ const _abi = [
880
620
  stateMutability: "nonpayable",
881
621
  type: "function",
882
622
  },
623
+ {
624
+ inputs: [
625
+ {
626
+ internalType: "address",
627
+ name: "proposer",
628
+ type: "address",
629
+ },
630
+ {
631
+ internalType: "bool",
632
+ name: "isProposer",
633
+ type: "bool",
634
+ },
635
+ ],
636
+ name: "setProposer",
637
+ outputs: [],
638
+ stateMutability: "nonpayable",
639
+ type: "function",
640
+ },
883
641
  {
884
642
  inputs: [
885
643
  {
886
644
  components: [
887
645
  {
888
646
  internalType: "address",
889
- name: "owner",
647
+ name: "proposer",
890
648
  type: "address",
891
649
  },
892
650
  {
893
- internalType: "uint32",
894
- name: "boxId",
895
- type: "uint32",
651
+ internalType: "uint256",
652
+ name: "expiry",
653
+ type: "uint256",
896
654
  },
897
655
  {
898
656
  internalType: "uint256",
899
- name: "expiry",
657
+ name: "requestId",
900
658
  type: "uint256",
901
659
  },
902
660
  {
@@ -906,17 +664,22 @@ const _abi = [
906
664
  },
907
665
  {
908
666
  internalType: "address",
909
- name: "tokenSpent",
667
+ name: "owner",
910
668
  type: "address",
911
669
  },
912
670
  {
913
- internalType: "uint256",
914
- name: "amountSpent",
915
- type: "uint256",
671
+ internalType: "uint32",
672
+ name: "boxId",
673
+ type: "uint32",
674
+ },
675
+ {
676
+ internalType: "address",
677
+ name: "tokenSpent",
678
+ type: "address",
916
679
  },
917
680
  {
918
681
  internalType: "uint256",
919
- name: "amountFee",
682
+ name: "amountSpent",
920
683
  type: "uint256",
921
684
  },
922
685
  {
@@ -929,16 +692,6 @@ const _abi = [
929
692
  name: "minReceived",
930
693
  type: "uint256",
931
694
  },
932
- {
933
- internalType: "bool",
934
- name: "pullFromOwner",
935
- type: "bool",
936
- },
937
- {
938
- internalType: "bool",
939
- name: "sendToOwner",
940
- type: "bool",
941
- },
942
695
  {
943
696
  internalType: "address",
944
697
  name: "swapExtRouter",
@@ -976,17 +729,17 @@ const _abi = [
976
729
  components: [
977
730
  {
978
731
  internalType: "address",
979
- name: "owner",
732
+ name: "proposer",
980
733
  type: "address",
981
734
  },
982
735
  {
983
- internalType: "uint32",
984
- name: "boxId",
985
- type: "uint32",
736
+ internalType: "uint256",
737
+ name: "expiry",
738
+ type: "uint256",
986
739
  },
987
740
  {
988
741
  internalType: "uint256",
989
- name: "expiry",
742
+ name: "requestId",
990
743
  type: "uint256",
991
744
  },
992
745
  {
@@ -994,6 +747,16 @@ const _abi = [
994
747
  name: "nonce",
995
748
  type: "uint256",
996
749
  },
750
+ {
751
+ internalType: "address",
752
+ name: "owner",
753
+ type: "address",
754
+ },
755
+ {
756
+ internalType: "uint32",
757
+ name: "boxId",
758
+ type: "uint32",
759
+ },
997
760
  {
998
761
  internalType: "address",
999
762
  name: "token",