@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
@@ -32,7 +32,19 @@
32
32
  "anonymous": false,
33
33
  "inputs": [
34
34
  {
35
- "indexed": true,
35
+ "indexed": false,
36
+ "internalType": "uint256",
37
+ "name": "requestId",
38
+ "type": "uint256"
39
+ },
40
+ {
41
+ "indexed": false,
42
+ "internalType": "uint256",
43
+ "name": "nonce",
44
+ "type": "uint256"
45
+ },
46
+ {
47
+ "indexed": false,
36
48
  "internalType": "address",
37
49
  "name": "owner",
38
50
  "type": "address"
@@ -66,12 +78,6 @@
66
78
  "internalType": "uint256",
67
79
  "name": "amountFee",
68
80
  "type": "uint256"
69
- },
70
- {
71
- "indexed": false,
72
- "internalType": "bool",
73
- "name": "pullFromOwner",
74
- "type": "bool"
75
81
  }
76
82
  ],
77
83
  "name": "BridgeToken",
@@ -83,59 +89,17 @@
83
89
  {
84
90
  "indexed": true,
85
91
  "internalType": "address",
86
- "name": "owner",
87
- "type": "address"
88
- },
89
- {
90
- "indexed": false,
91
- "internalType": "uint32",
92
- "name": "boxId",
93
- "type": "uint32"
94
- },
95
- {
96
- "indexed": false,
97
- "internalType": "address",
98
- "name": "tokenSpent",
99
- "type": "address"
100
- },
101
- {
102
- "indexed": false,
103
- "internalType": "uint256",
104
- "name": "amountSpent",
105
- "type": "uint256"
106
- },
107
- {
108
- "indexed": false,
109
- "internalType": "uint256",
110
- "name": "amountFee",
111
- "type": "uint256"
112
- },
113
- {
114
- "indexed": false,
115
- "internalType": "address",
116
- "name": "ptAdapter",
117
- "type": "address"
118
- },
119
- {
120
- "indexed": false,
121
- "internalType": "address",
122
- "name": "pt",
92
+ "name": "executor",
123
93
  "type": "address"
124
94
  },
125
- {
126
- "indexed": false,
127
- "internalType": "uint256",
128
- "name": "netPtReceived",
129
- "type": "uint256"
130
- },
131
95
  {
132
96
  "indexed": false,
133
97
  "internalType": "bool",
134
- "name": "pullFromOwner",
98
+ "name": "isExecutor",
135
99
  "type": "bool"
136
100
  }
137
101
  ],
138
- "name": "BuyCrossChainPt",
102
+ "name": "SetExecutor",
139
103
  "type": "event"
140
104
  },
141
105
  {
@@ -144,24 +108,36 @@
144
108
  {
145
109
  "indexed": true,
146
110
  "internalType": "address",
147
- "name": "executor",
111
+ "name": "proposer",
148
112
  "type": "address"
149
113
  },
150
114
  {
151
115
  "indexed": false,
152
116
  "internalType": "bool",
153
- "name": "isExecutor",
117
+ "name": "isProposer",
154
118
  "type": "bool"
155
119
  }
156
120
  ],
157
- "name": "SetExecutor",
121
+ "name": "SetProposer",
158
122
  "type": "event"
159
123
  },
160
124
  {
161
125
  "anonymous": false,
162
126
  "inputs": [
163
127
  {
164
- "indexed": true,
128
+ "indexed": false,
129
+ "internalType": "uint256",
130
+ "name": "requestId",
131
+ "type": "uint256"
132
+ },
133
+ {
134
+ "indexed": false,
135
+ "internalType": "uint256",
136
+ "name": "nonce",
137
+ "type": "uint256"
138
+ },
139
+ {
140
+ "indexed": false,
165
141
  "internalType": "address",
166
142
  "name": "owner",
167
143
  "type": "address"
@@ -184,12 +160,6 @@
184
160
  "name": "amountSpent",
185
161
  "type": "uint256"
186
162
  },
187
- {
188
- "indexed": false,
189
- "internalType": "uint256",
190
- "name": "amountFee",
191
- "type": "uint256"
192
- },
193
163
  {
194
164
  "indexed": false,
195
165
  "internalType": "address",
@@ -201,18 +171,6 @@
201
171
  "internalType": "uint256",
202
172
  "name": "netTokenReceived",
203
173
  "type": "uint256"
204
- },
205
- {
206
- "indexed": false,
207
- "internalType": "bool",
208
- "name": "pullFromOwner",
209
- "type": "bool"
210
- },
211
- {
212
- "indexed": false,
213
- "internalType": "bool",
214
- "name": "sendToOwner",
215
- "type": "bool"
216
174
  }
217
175
  ],
218
176
  "name": "SwapToken",
@@ -222,7 +180,19 @@
222
180
  "anonymous": false,
223
181
  "inputs": [
224
182
  {
225
- "indexed": true,
183
+ "indexed": false,
184
+ "internalType": "uint256",
185
+ "name": "requestId",
186
+ "type": "uint256"
187
+ },
188
+ {
189
+ "indexed": false,
190
+ "internalType": "uint256",
191
+ "name": "nonce",
192
+ "type": "uint256"
193
+ },
194
+ {
195
+ "indexed": false,
226
196
  "internalType": "address",
227
197
  "name": "owner",
228
198
  "type": "address"
@@ -255,62 +225,23 @@
255
225
  "name": "WithdrawToken",
256
226
  "type": "event"
257
227
  },
258
- {
259
- "inputs": [],
260
- "name": "BEACON_PROXY_CODE_CONTRACT",
261
- "outputs": [
262
- {
263
- "internalType": "address",
264
- "name": "",
265
- "type": "address"
266
- }
267
- ],
268
- "stateMutability": "view",
269
- "type": "function"
270
- },
271
- {
272
- "inputs": [],
273
- "name": "DEPOSIT_BOX_BEACON",
274
- "outputs": [
275
- {
276
- "internalType": "address",
277
- "name": "",
278
- "type": "address"
279
- }
280
- ],
281
- "stateMutability": "view",
282
- "type": "function"
283
- },
284
- {
285
- "inputs": [],
286
- "name": "DEPOSIT_BOX_CODE_HASH",
287
- "outputs": [
288
- {
289
- "internalType": "bytes32",
290
- "name": "",
291
- "type": "bytes32"
292
- }
293
- ],
294
- "stateMutability": "view",
295
- "type": "function"
296
- },
297
228
  {
298
229
  "inputs": [
299
230
  {
300
231
  "components": [
301
232
  {
302
233
  "internalType": "address",
303
- "name": "owner",
234
+ "name": "proposer",
304
235
  "type": "address"
305
236
  },
306
237
  {
307
- "internalType": "uint32",
308
- "name": "boxId",
309
- "type": "uint32"
238
+ "internalType": "uint256",
239
+ "name": "expiry",
240
+ "type": "uint256"
310
241
  },
311
242
  {
312
243
  "internalType": "uint256",
313
- "name": "expiry",
244
+ "name": "requestId",
314
245
  "type": "uint256"
315
246
  },
316
247
  {
@@ -318,6 +249,16 @@
318
249
  "name": "nonce",
319
250
  "type": "uint256"
320
251
  },
252
+ {
253
+ "internalType": "address",
254
+ "name": "owner",
255
+ "type": "address"
256
+ },
257
+ {
258
+ "internalType": "uint32",
259
+ "name": "boxId",
260
+ "type": "uint32"
261
+ },
321
262
  {
322
263
  "internalType": "address",
323
264
  "name": "token",
@@ -333,11 +274,6 @@
333
274
  "name": "amountFee",
334
275
  "type": "uint256"
335
276
  },
336
- {
337
- "internalType": "bool",
338
- "name": "pullFromOwner",
339
- "type": "bool"
340
- },
341
277
  {
342
278
  "internalType": "address",
343
279
  "name": "bridgeExtRouter",
@@ -375,14 +311,9 @@
375
311
  "components": [
376
312
  {
377
313
  "internalType": "address",
378
- "name": "owner",
314
+ "name": "proposer",
379
315
  "type": "address"
380
316
  },
381
- {
382
- "internalType": "uint32",
383
- "name": "boxId",
384
- "type": "uint32"
385
- },
386
317
  {
387
318
  "internalType": "uint256",
388
319
  "name": "expiry",
@@ -390,118 +321,14 @@
390
321
  },
391
322
  {
392
323
  "internalType": "uint256",
393
- "name": "nonce",
324
+ "name": "requestId",
394
325
  "type": "uint256"
395
326
  },
396
- {
397
- "internalType": "address",
398
- "name": "tokenSpent",
399
- "type": "address"
400
- },
401
327
  {
402
328
  "internalType": "uint256",
403
- "name": "amountSpent",
404
- "type": "uint256"
405
- },
406
- {
407
- "internalType": "uint256",
408
- "name": "amountFee",
409
- "type": "uint256"
410
- },
411
- {
412
- "internalType": "address",
413
- "name": "ptAdapter",
414
- "type": "address"
415
- },
416
- {
417
- "internalType": "uint256",
418
- "name": "minPtReceived",
329
+ "name": "nonce",
419
330
  "type": "uint256"
420
331
  },
421
- {
422
- "internalType": "uint32",
423
- "name": "dstEid",
424
- "type": "uint32"
425
- },
426
- {
427
- "internalType": "bytes32",
428
- "name": "receiver",
429
- "type": "bytes32"
430
- },
431
- {
432
- "internalType": "bool",
433
- "name": "pullFromOwner",
434
- "type": "bool"
435
- },
436
- {
437
- "internalType": "address",
438
- "name": "swapExtRouter",
439
- "type": "address"
440
- },
441
- {
442
- "internalType": "address",
443
- "name": "swapApprove",
444
- "type": "address"
445
- },
446
- {
447
- "internalType": "bytes",
448
- "name": "swapCalldata",
449
- "type": "bytes"
450
- }
451
- ],
452
- "internalType": "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
453
- "name": "message",
454
- "type": "tuple"
455
- },
456
- {
457
- "internalType": "bytes",
458
- "name": "signature",
459
- "type": "bytes"
460
- }
461
- ],
462
- "name": "buyCrossChainPt",
463
- "outputs": [],
464
- "stateMutability": "payable",
465
- "type": "function"
466
- },
467
- {
468
- "inputs": [
469
- {
470
- "internalType": "address",
471
- "name": "owner",
472
- "type": "address"
473
- },
474
- {
475
- "internalType": "uint32",
476
- "name": "boxId",
477
- "type": "uint32"
478
- }
479
- ],
480
- "name": "computeDepositBox",
481
- "outputs": [
482
- {
483
- "internalType": "address",
484
- "name": "box",
485
- "type": "address"
486
- },
487
- {
488
- "internalType": "bytes32",
489
- "name": "salt",
490
- "type": "bytes32"
491
- },
492
- {
493
- "internalType": "bool",
494
- "name": "deployed",
495
- "type": "bool"
496
- }
497
- ],
498
- "stateMutability": "view",
499
- "type": "function"
500
- },
501
- {
502
- "inputs": [
503
- {
504
- "components": [
505
332
  {
506
333
  "internalType": "address",
507
334
  "name": "owner",
@@ -512,24 +339,14 @@
512
339
  "name": "boxId",
513
340
  "type": "uint32"
514
341
  },
515
- {
516
- "internalType": "uint256",
517
- "name": "expiry",
518
- "type": "uint256"
519
- },
520
- {
521
- "internalType": "uint256",
522
- "name": "nonce",
523
- "type": "uint256"
524
- },
525
342
  {
526
343
  "internalType": "address",
527
- "name": "tokenSpent",
344
+ "name": "token",
528
345
  "type": "address"
529
346
  },
530
347
  {
531
348
  "internalType": "uint256",
532
- "name": "amountSpent",
349
+ "name": "amountBridge",
533
350
  "type": "uint256"
534
351
  },
535
352
  {
@@ -539,41 +356,21 @@
539
356
  },
540
357
  {
541
358
  "internalType": "address",
542
- "name": "tokenReceived",
543
- "type": "address"
544
- },
545
- {
546
- "internalType": "uint256",
547
- "name": "minReceived",
548
- "type": "uint256"
549
- },
550
- {
551
- "internalType": "bool",
552
- "name": "pullFromOwner",
553
- "type": "bool"
554
- },
555
- {
556
- "internalType": "bool",
557
- "name": "sendToOwner",
558
- "type": "bool"
559
- },
560
- {
561
- "internalType": "address",
562
- "name": "swapExtRouter",
359
+ "name": "bridgeExtRouter",
563
360
  "type": "address"
564
361
  },
565
362
  {
566
363
  "internalType": "address",
567
- "name": "swapApprove",
364
+ "name": "bridgeApprove",
568
365
  "type": "address"
569
366
  },
570
367
  {
571
368
  "internalType": "bytes",
572
- "name": "swapCalldata",
369
+ "name": "bridgeCalldata",
573
370
  "type": "bytes"
574
371
  }
575
372
  ],
576
- "internalType": "struct IPCrossChainSwapHub.SwapTokenMessage",
373
+ "internalType": "struct IPCrossChainSwapHub.BridgeTokenMessage",
577
374
  "name": "message",
578
375
  "type": "tuple"
579
376
  }
@@ -595,14 +392,9 @@
595
392
  "components": [
596
393
  {
597
394
  "internalType": "address",
598
- "name": "owner",
395
+ "name": "proposer",
599
396
  "type": "address"
600
397
  },
601
- {
602
- "internalType": "uint32",
603
- "name": "boxId",
604
- "type": "uint32"
605
- },
606
398
  {
607
399
  "internalType": "uint256",
608
400
  "name": "expiry",
@@ -610,45 +402,14 @@
610
402
  },
611
403
  {
612
404
  "internalType": "uint256",
613
- "name": "nonce",
405
+ "name": "requestId",
614
406
  "type": "uint256"
615
407
  },
616
- {
617
- "internalType": "address",
618
- "name": "token",
619
- "type": "address"
620
- },
621
408
  {
622
409
  "internalType": "uint256",
623
- "name": "amountWithdraw",
410
+ "name": "nonce",
624
411
  "type": "uint256"
625
412
  },
626
- {
627
- "internalType": "uint256",
628
- "name": "amountFee",
629
- "type": "uint256"
630
- }
631
- ],
632
- "internalType": "struct IPCrossChainSwapHub.WithdrawTokenMessage",
633
- "name": "message",
634
- "type": "tuple"
635
- }
636
- ],
637
- "name": "hashTypedData",
638
- "outputs": [
639
- {
640
- "internalType": "bytes32",
641
- "name": "",
642
- "type": "bytes32"
643
- }
644
- ],
645
- "stateMutability": "view",
646
- "type": "function"
647
- },
648
- {
649
- "inputs": [
650
- {
651
- "components": [
652
413
  {
653
414
  "internalType": "address",
654
415
  "name": "owner",
@@ -659,16 +420,6 @@
659
420
  "name": "boxId",
660
421
  "type": "uint32"
661
422
  },
662
- {
663
- "internalType": "uint256",
664
- "name": "expiry",
665
- "type": "uint256"
666
- },
667
- {
668
- "internalType": "uint256",
669
- "name": "nonce",
670
- "type": "uint256"
671
- },
672
423
  {
673
424
  "internalType": "address",
674
425
  "name": "tokenSpent",
@@ -679,36 +430,16 @@
679
430
  "name": "amountSpent",
680
431
  "type": "uint256"
681
432
  },
682
- {
683
- "internalType": "uint256",
684
- "name": "amountFee",
685
- "type": "uint256"
686
- },
687
433
  {
688
434
  "internalType": "address",
689
- "name": "ptAdapter",
435
+ "name": "tokenReceived",
690
436
  "type": "address"
691
437
  },
692
438
  {
693
439
  "internalType": "uint256",
694
- "name": "minPtReceived",
440
+ "name": "minReceived",
695
441
  "type": "uint256"
696
442
  },
697
- {
698
- "internalType": "uint32",
699
- "name": "dstEid",
700
- "type": "uint32"
701
- },
702
- {
703
- "internalType": "bytes32",
704
- "name": "receiver",
705
- "type": "bytes32"
706
- },
707
- {
708
- "internalType": "bool",
709
- "name": "pullFromOwner",
710
- "type": "bool"
711
- },
712
443
  {
713
444
  "internalType": "address",
714
445
  "name": "swapExtRouter",
@@ -725,7 +456,7 @@
725
456
  "type": "bytes"
726
457
  }
727
458
  ],
728
- "internalType": "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
459
+ "internalType": "struct IPCrossChainSwapHub.SwapTokenMessage",
729
460
  "name": "message",
730
461
  "type": "tuple"
731
462
  }
@@ -747,14 +478,9 @@
747
478
  "components": [
748
479
  {
749
480
  "internalType": "address",
750
- "name": "owner",
481
+ "name": "proposer",
751
482
  "type": "address"
752
483
  },
753
- {
754
- "internalType": "uint32",
755
- "name": "boxId",
756
- "type": "uint32"
757
- },
758
484
  {
759
485
  "internalType": "uint256",
760
486
  "name": "expiry",
@@ -762,46 +488,41 @@
762
488
  },
763
489
  {
764
490
  "internalType": "uint256",
765
- "name": "nonce",
491
+ "name": "requestId",
766
492
  "type": "uint256"
767
493
  },
768
- {
769
- "internalType": "address",
770
- "name": "token",
771
- "type": "address"
772
- },
773
494
  {
774
495
  "internalType": "uint256",
775
- "name": "amountBridge",
496
+ "name": "nonce",
776
497
  "type": "uint256"
777
498
  },
778
499
  {
779
- "internalType": "uint256",
780
- "name": "amountFee",
781
- "type": "uint256"
500
+ "internalType": "address",
501
+ "name": "owner",
502
+ "type": "address"
782
503
  },
783
504
  {
784
- "internalType": "bool",
785
- "name": "pullFromOwner",
786
- "type": "bool"
505
+ "internalType": "uint32",
506
+ "name": "boxId",
507
+ "type": "uint32"
787
508
  },
788
509
  {
789
510
  "internalType": "address",
790
- "name": "bridgeExtRouter",
511
+ "name": "token",
791
512
  "type": "address"
792
513
  },
793
514
  {
794
- "internalType": "address",
795
- "name": "bridgeApprove",
796
- "type": "address"
515
+ "internalType": "uint256",
516
+ "name": "amountWithdraw",
517
+ "type": "uint256"
797
518
  },
798
519
  {
799
- "internalType": "bytes",
800
- "name": "bridgeCalldata",
801
- "type": "bytes"
520
+ "internalType": "uint256",
521
+ "name": "amountFee",
522
+ "type": "uint256"
802
523
  }
803
524
  ],
804
- "internalType": "struct IPCrossChainSwapHub.BridgeTokenMessage",
525
+ "internalType": "struct IPCrossChainSwapHub.WithdrawTokenMessage",
805
526
  "name": "message",
806
527
  "type": "tuple"
807
528
  }
@@ -840,11 +561,30 @@
840
561
  "inputs": [
841
562
  {
842
563
  "internalType": "address",
843
- "name": "owner",
564
+ "name": "proposer",
844
565
  "type": "address"
845
566
  }
846
567
  ],
847
- "name": "ownerNonce",
568
+ "name": "isProposer",
569
+ "outputs": [
570
+ {
571
+ "internalType": "bool",
572
+ "name": "",
573
+ "type": "bool"
574
+ }
575
+ ],
576
+ "stateMutability": "view",
577
+ "type": "function"
578
+ },
579
+ {
580
+ "inputs": [
581
+ {
582
+ "internalType": "uint256",
583
+ "name": "requestId",
584
+ "type": "uint256"
585
+ }
586
+ ],
587
+ "name": "requestNonce",
848
588
  "outputs": [
849
589
  {
850
590
  "internalType": "uint256",
@@ -873,23 +613,41 @@
873
613
  "stateMutability": "nonpayable",
874
614
  "type": "function"
875
615
  },
616
+ {
617
+ "inputs": [
618
+ {
619
+ "internalType": "address",
620
+ "name": "proposer",
621
+ "type": "address"
622
+ },
623
+ {
624
+ "internalType": "bool",
625
+ "name": "isProposer",
626
+ "type": "bool"
627
+ }
628
+ ],
629
+ "name": "setProposer",
630
+ "outputs": [],
631
+ "stateMutability": "nonpayable",
632
+ "type": "function"
633
+ },
876
634
  {
877
635
  "inputs": [
878
636
  {
879
637
  "components": [
880
638
  {
881
639
  "internalType": "address",
882
- "name": "owner",
640
+ "name": "proposer",
883
641
  "type": "address"
884
642
  },
885
643
  {
886
- "internalType": "uint32",
887
- "name": "boxId",
888
- "type": "uint32"
644
+ "internalType": "uint256",
645
+ "name": "expiry",
646
+ "type": "uint256"
889
647
  },
890
648
  {
891
649
  "internalType": "uint256",
892
- "name": "expiry",
650
+ "name": "requestId",
893
651
  "type": "uint256"
894
652
  },
895
653
  {
@@ -899,17 +657,22 @@
899
657
  },
900
658
  {
901
659
  "internalType": "address",
902
- "name": "tokenSpent",
660
+ "name": "owner",
903
661
  "type": "address"
904
662
  },
905
663
  {
906
- "internalType": "uint256",
907
- "name": "amountSpent",
908
- "type": "uint256"
664
+ "internalType": "uint32",
665
+ "name": "boxId",
666
+ "type": "uint32"
667
+ },
668
+ {
669
+ "internalType": "address",
670
+ "name": "tokenSpent",
671
+ "type": "address"
909
672
  },
910
673
  {
911
674
  "internalType": "uint256",
912
- "name": "amountFee",
675
+ "name": "amountSpent",
913
676
  "type": "uint256"
914
677
  },
915
678
  {
@@ -922,16 +685,6 @@
922
685
  "name": "minReceived",
923
686
  "type": "uint256"
924
687
  },
925
- {
926
- "internalType": "bool",
927
- "name": "pullFromOwner",
928
- "type": "bool"
929
- },
930
- {
931
- "internalType": "bool",
932
- "name": "sendToOwner",
933
- "type": "bool"
934
- },
935
688
  {
936
689
  "internalType": "address",
937
690
  "name": "swapExtRouter",
@@ -969,17 +722,17 @@
969
722
  "components": [
970
723
  {
971
724
  "internalType": "address",
972
- "name": "owner",
725
+ "name": "proposer",
973
726
  "type": "address"
974
727
  },
975
728
  {
976
- "internalType": "uint32",
977
- "name": "boxId",
978
- "type": "uint32"
729
+ "internalType": "uint256",
730
+ "name": "expiry",
731
+ "type": "uint256"
979
732
  },
980
733
  {
981
734
  "internalType": "uint256",
982
- "name": "expiry",
735
+ "name": "requestId",
983
736
  "type": "uint256"
984
737
  },
985
738
  {
@@ -987,6 +740,16 @@
987
740
  "name": "nonce",
988
741
  "type": "uint256"
989
742
  },
743
+ {
744
+ "internalType": "address",
745
+ "name": "owner",
746
+ "type": "address"
747
+ },
748
+ {
749
+ "internalType": "uint32",
750
+ "name": "boxId",
751
+ "type": "uint32"
752
+ },
990
753
  {
991
754
  "internalType": "address",
992
755
  "name": "token",