@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
@@ -35,57 +35,20 @@ const _abi = [
35
35
  {
36
36
  anonymous: false,
37
37
  inputs: [
38
- {
39
- indexed: true,
40
- internalType: "address",
41
- name: "owner",
42
- type: "address",
43
- },
44
- {
45
- indexed: false,
46
- internalType: "uint32",
47
- name: "boxId",
48
- type: "uint32",
49
- },
50
- {
51
- indexed: false,
52
- internalType: "address",
53
- name: "bridgeExtRouter",
54
- type: "address",
55
- },
56
- {
57
- indexed: false,
58
- internalType: "address",
59
- name: "token",
60
- type: "address",
61
- },
62
38
  {
63
39
  indexed: false,
64
40
  internalType: "uint256",
65
- name: "amountBridge",
41
+ name: "requestId",
66
42
  type: "uint256",
67
43
  },
68
44
  {
69
45
  indexed: false,
70
46
  internalType: "uint256",
71
- name: "amountFee",
47
+ name: "nonce",
72
48
  type: "uint256",
73
49
  },
74
50
  {
75
51
  indexed: false,
76
- internalType: "bool",
77
- name: "pullFromOwner",
78
- type: "bool",
79
- },
80
- ],
81
- name: "BridgeToken",
82
- type: "event",
83
- },
84
- {
85
- anonymous: false,
86
- inputs: [
87
- {
88
- indexed: true,
89
52
  internalType: "address",
90
53
  name: "owner",
91
54
  type: "address",
@@ -99,47 +62,29 @@ const _abi = [
99
62
  {
100
63
  indexed: false,
101
64
  internalType: "address",
102
- name: "tokenSpent",
103
- type: "address",
104
- },
105
- {
106
- indexed: false,
107
- internalType: "uint256",
108
- name: "amountSpent",
109
- type: "uint256",
110
- },
111
- {
112
- indexed: false,
113
- internalType: "uint256",
114
- name: "amountFee",
115
- type: "uint256",
116
- },
117
- {
118
- indexed: false,
119
- internalType: "address",
120
- name: "ptAdapter",
65
+ name: "bridgeExtRouter",
121
66
  type: "address",
122
67
  },
123
68
  {
124
69
  indexed: false,
125
70
  internalType: "address",
126
- name: "pt",
71
+ name: "token",
127
72
  type: "address",
128
73
  },
129
74
  {
130
75
  indexed: false,
131
76
  internalType: "uint256",
132
- name: "netPtReceived",
77
+ name: "amountBridge",
133
78
  type: "uint256",
134
79
  },
135
80
  {
136
81
  indexed: false,
137
- internalType: "bool",
138
- name: "pullFromOwner",
139
- type: "bool",
82
+ internalType: "uint256",
83
+ name: "amountFee",
84
+ type: "uint256",
140
85
  },
141
86
  ],
142
- name: "BuyCrossChainPt",
87
+ name: "BridgeToken",
143
88
  type: "event",
144
89
  },
145
90
  {
@@ -205,6 +150,37 @@ const _abi = [
205
150
  {
206
151
  indexed: true,
207
152
  internalType: "address",
153
+ name: "proposer",
154
+ type: "address",
155
+ },
156
+ {
157
+ indexed: false,
158
+ internalType: "bool",
159
+ name: "isProposer",
160
+ type: "bool",
161
+ },
162
+ ],
163
+ name: "SetProposer",
164
+ type: "event",
165
+ },
166
+ {
167
+ anonymous: false,
168
+ inputs: [
169
+ {
170
+ indexed: false,
171
+ internalType: "uint256",
172
+ name: "requestId",
173
+ type: "uint256",
174
+ },
175
+ {
176
+ indexed: false,
177
+ internalType: "uint256",
178
+ name: "nonce",
179
+ type: "uint256",
180
+ },
181
+ {
182
+ indexed: false,
183
+ internalType: "address",
208
184
  name: "owner",
209
185
  type: "address",
210
186
  },
@@ -226,12 +202,6 @@ const _abi = [
226
202
  name: "amountSpent",
227
203
  type: "uint256",
228
204
  },
229
- {
230
- indexed: false,
231
- internalType: "uint256",
232
- name: "amountFee",
233
- type: "uint256",
234
- },
235
205
  {
236
206
  indexed: false,
237
207
  internalType: "address",
@@ -244,18 +214,6 @@ const _abi = [
244
214
  name: "netTokenReceived",
245
215
  type: "uint256",
246
216
  },
247
- {
248
- indexed: false,
249
- internalType: "bool",
250
- name: "pullFromOwner",
251
- type: "bool",
252
- },
253
- {
254
- indexed: false,
255
- internalType: "bool",
256
- name: "sendToOwner",
257
- type: "bool",
258
- },
259
217
  ],
260
218
  name: "SwapToken",
261
219
  type: "event",
@@ -264,7 +222,19 @@ const _abi = [
264
222
  anonymous: false,
265
223
  inputs: [
266
224
  {
267
- indexed: true,
225
+ indexed: false,
226
+ internalType: "uint256",
227
+ name: "requestId",
228
+ type: "uint256",
229
+ },
230
+ {
231
+ indexed: false,
232
+ internalType: "uint256",
233
+ name: "nonce",
234
+ type: "uint256",
235
+ },
236
+ {
237
+ indexed: false,
268
238
  internalType: "address",
269
239
  name: "owner",
270
240
  type: "address",
@@ -299,10 +269,10 @@ const _abi = [
299
269
  },
300
270
  {
301
271
  inputs: [],
302
- name: "BEACON_PROXY_CODE_CONTRACT",
272
+ name: "DEPOSIT_BOX_FACTORY",
303
273
  outputs: [
304
274
  {
305
- internalType: "address",
275
+ internalType: "contract IPDepositBoxFactory",
306
276
  name: "",
307
277
  type: "address",
308
278
  },
@@ -310,32 +280,6 @@ const _abi = [
310
280
  stateMutability: "view",
311
281
  type: "function",
312
282
  },
313
- {
314
- inputs: [],
315
- name: "DEPOSIT_BOX_BEACON",
316
- outputs: [
317
- {
318
- internalType: "address",
319
- name: "",
320
- type: "address",
321
- },
322
- ],
323
- stateMutability: "view",
324
- type: "function",
325
- },
326
- {
327
- inputs: [],
328
- name: "DEPOSIT_BOX_CODE_HASH",
329
- outputs: [
330
- {
331
- internalType: "bytes32",
332
- name: "",
333
- type: "bytes32",
334
- },
335
- ],
336
- stateMutability: "view",
337
- type: "function",
338
- },
339
283
  {
340
284
  inputs: [],
341
285
  name: "TREASURY",
@@ -355,14 +299,9 @@ const _abi = [
355
299
  components: [
356
300
  {
357
301
  internalType: "address",
358
- name: "owner",
302
+ name: "proposer",
359
303
  type: "address",
360
304
  },
361
- {
362
- internalType: "uint32",
363
- name: "boxId",
364
- type: "uint32",
365
- },
366
305
  {
367
306
  internalType: "uint256",
368
307
  name: "expiry",
@@ -370,64 +309,14 @@ const _abi = [
370
309
  },
371
310
  {
372
311
  internalType: "uint256",
373
- name: "nonce",
374
- type: "uint256",
375
- },
376
- {
377
- internalType: "address",
378
- name: "token",
379
- type: "address",
380
- },
381
- {
382
- internalType: "uint256",
383
- name: "amountBridge",
312
+ name: "requestId",
384
313
  type: "uint256",
385
314
  },
386
315
  {
387
316
  internalType: "uint256",
388
- name: "amountFee",
317
+ name: "nonce",
389
318
  type: "uint256",
390
319
  },
391
- {
392
- internalType: "bool",
393
- name: "pullFromOwner",
394
- type: "bool",
395
- },
396
- {
397
- internalType: "address",
398
- name: "bridgeExtRouter",
399
- type: "address",
400
- },
401
- {
402
- internalType: "address",
403
- name: "bridgeApprove",
404
- type: "address",
405
- },
406
- {
407
- internalType: "bytes",
408
- name: "bridgeCalldata",
409
- type: "bytes",
410
- },
411
- ],
412
- internalType: "struct IPCrossChainSwapHub.BridgeTokenMessage",
413
- name: "message",
414
- type: "tuple",
415
- },
416
- {
417
- internalType: "bytes",
418
- name: "signature",
419
- type: "bytes",
420
- },
421
- ],
422
- name: "bridgeToken",
423
- outputs: [],
424
- stateMutability: "payable",
425
- type: "function",
426
- },
427
- {
428
- inputs: [
429
- {
430
- components: [
431
320
  {
432
321
  internalType: "address",
433
322
  name: "owner",
@@ -438,24 +327,14 @@ const _abi = [
438
327
  name: "boxId",
439
328
  type: "uint32",
440
329
  },
441
- {
442
- internalType: "uint256",
443
- name: "expiry",
444
- type: "uint256",
445
- },
446
- {
447
- internalType: "uint256",
448
- name: "nonce",
449
- type: "uint256",
450
- },
451
330
  {
452
331
  internalType: "address",
453
- name: "tokenSpent",
332
+ name: "token",
454
333
  type: "address",
455
334
  },
456
335
  {
457
336
  internalType: "uint256",
458
- name: "amountSpent",
337
+ name: "amountBridge",
459
338
  type: "uint256",
460
339
  },
461
340
  {
@@ -465,99 +344,40 @@ const _abi = [
465
344
  },
466
345
  {
467
346
  internalType: "address",
468
- name: "ptAdapter",
469
- type: "address",
470
- },
471
- {
472
- internalType: "uint256",
473
- name: "minPtReceived",
474
- type: "uint256",
475
- },
476
- {
477
- internalType: "uint32",
478
- name: "dstEid",
479
- type: "uint32",
480
- },
481
- {
482
- internalType: "bytes32",
483
- name: "receiver",
484
- type: "bytes32",
485
- },
486
- {
487
- internalType: "bool",
488
- name: "pullFromOwner",
489
- type: "bool",
490
- },
491
- {
492
- internalType: "address",
493
- name: "swapExtRouter",
347
+ name: "bridgeExtRouter",
494
348
  type: "address",
495
349
  },
496
350
  {
497
351
  internalType: "address",
498
- name: "swapApprove",
352
+ name: "bridgeApprove",
499
353
  type: "address",
500
354
  },
501
355
  {
502
356
  internalType: "bytes",
503
- name: "swapCalldata",
357
+ name: "bridgeCalldata",
504
358
  type: "bytes",
505
359
  },
506
360
  ],
507
- internalType: "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
361
+ internalType: "struct IPCrossChainSwapHub.BridgeTokenMessage",
508
362
  name: "message",
509
363
  type: "tuple",
510
364
  },
511
365
  {
512
- internalType: "bytes",
513
- name: "signature",
514
- type: "bytes",
515
- },
516
- ],
517
- name: "buyCrossChainPt",
518
- outputs: [],
519
- stateMutability: "payable",
520
- type: "function",
521
- },
522
- {
523
- inputs: [],
524
- name: "claimOwnership",
525
- outputs: [],
526
- stateMutability: "nonpayable",
527
- type: "function",
528
- },
529
- {
530
- inputs: [
531
- {
532
- internalType: "address",
533
- name: "owner",
534
- type: "address",
535
- },
536
- {
537
- internalType: "uint32",
538
- name: "boxId",
539
- type: "uint32",
540
- },
541
- ],
542
- name: "computeDepositBox",
543
- outputs: [
544
- {
545
- internalType: "address",
546
- name: "box",
547
- type: "address",
548
- },
549
- {
550
- internalType: "bytes32",
551
- name: "salt",
552
- type: "bytes32",
553
- },
554
- {
555
- internalType: "bool",
556
- name: "deployed",
557
- type: "bool",
366
+ internalType: "bytes",
367
+ name: "signature",
368
+ type: "bytes",
558
369
  },
559
370
  ],
560
- stateMutability: "view",
371
+ name: "bridgeToken",
372
+ outputs: [],
373
+ stateMutability: "payable",
374
+ type: "function",
375
+ },
376
+ {
377
+ inputs: [],
378
+ name: "claimOwnership",
379
+ outputs: [],
380
+ stateMutability: "nonpayable",
561
381
  type: "function",
562
382
  },
563
383
  {
@@ -609,17 +429,17 @@ const _abi = [
609
429
  components: [
610
430
  {
611
431
  internalType: "address",
612
- name: "owner",
432
+ name: "proposer",
613
433
  type: "address",
614
434
  },
615
435
  {
616
- internalType: "uint32",
617
- name: "boxId",
618
- type: "uint32",
436
+ internalType: "uint256",
437
+ name: "expiry",
438
+ type: "uint256",
619
439
  },
620
440
  {
621
441
  internalType: "uint256",
622
- name: "expiry",
442
+ name: "requestId",
623
443
  type: "uint256",
624
444
  },
625
445
  {
@@ -629,57 +449,47 @@ const _abi = [
629
449
  },
630
450
  {
631
451
  internalType: "address",
632
- name: "tokenSpent",
452
+ name: "owner",
633
453
  type: "address",
634
454
  },
635
455
  {
636
- internalType: "uint256",
637
- name: "amountSpent",
638
- type: "uint256",
639
- },
640
- {
641
- internalType: "uint256",
642
- name: "amountFee",
643
- type: "uint256",
456
+ internalType: "uint32",
457
+ name: "boxId",
458
+ type: "uint32",
644
459
  },
645
460
  {
646
461
  internalType: "address",
647
- name: "tokenReceived",
462
+ name: "token",
648
463
  type: "address",
649
464
  },
650
465
  {
651
466
  internalType: "uint256",
652
- name: "minReceived",
467
+ name: "amountBridge",
653
468
  type: "uint256",
654
469
  },
655
470
  {
656
- internalType: "bool",
657
- name: "pullFromOwner",
658
- type: "bool",
659
- },
660
- {
661
- internalType: "bool",
662
- name: "sendToOwner",
663
- type: "bool",
471
+ internalType: "uint256",
472
+ name: "amountFee",
473
+ type: "uint256",
664
474
  },
665
475
  {
666
476
  internalType: "address",
667
- name: "swapExtRouter",
477
+ name: "bridgeExtRouter",
668
478
  type: "address",
669
479
  },
670
480
  {
671
481
  internalType: "address",
672
- name: "swapApprove",
482
+ name: "bridgeApprove",
673
483
  type: "address",
674
484
  },
675
485
  {
676
486
  internalType: "bytes",
677
- name: "swapCalldata",
487
+ name: "bridgeCalldata",
678
488
  type: "bytes",
679
489
  },
680
490
  ],
681
- internalType: "struct IPCrossChainSwapHub.SwapTokenMessage",
682
- name: "message",
491
+ internalType: "struct IPCrossChainSwapHub.BridgeTokenMessage",
492
+ name: "ms",
683
493
  type: "tuple",
684
494
  },
685
495
  ],
@@ -700,14 +510,9 @@ const _abi = [
700
510
  components: [
701
511
  {
702
512
  internalType: "address",
703
- name: "owner",
513
+ name: "proposer",
704
514
  type: "address",
705
515
  },
706
- {
707
- internalType: "uint32",
708
- name: "boxId",
709
- type: "uint32",
710
- },
711
516
  {
712
517
  internalType: "uint256",
713
518
  name: "expiry",
@@ -715,45 +520,14 @@ const _abi = [
715
520
  },
716
521
  {
717
522
  internalType: "uint256",
718
- name: "nonce",
719
- type: "uint256",
720
- },
721
- {
722
- internalType: "address",
723
- name: "token",
724
- type: "address",
725
- },
726
- {
727
- internalType: "uint256",
728
- name: "amountWithdraw",
523
+ name: "requestId",
729
524
  type: "uint256",
730
525
  },
731
526
  {
732
527
  internalType: "uint256",
733
- name: "amountFee",
528
+ name: "nonce",
734
529
  type: "uint256",
735
530
  },
736
- ],
737
- internalType: "struct IPCrossChainSwapHub.WithdrawTokenMessage",
738
- name: "message",
739
- type: "tuple",
740
- },
741
- ],
742
- name: "hashTypedData",
743
- outputs: [
744
- {
745
- internalType: "bytes32",
746
- name: "",
747
- type: "bytes32",
748
- },
749
- ],
750
- stateMutability: "view",
751
- type: "function",
752
- },
753
- {
754
- inputs: [
755
- {
756
- components: [
757
531
  {
758
532
  internalType: "address",
759
533
  name: "owner",
@@ -764,16 +538,6 @@ const _abi = [
764
538
  name: "boxId",
765
539
  type: "uint32",
766
540
  },
767
- {
768
- internalType: "uint256",
769
- name: "expiry",
770
- type: "uint256",
771
- },
772
- {
773
- internalType: "uint256",
774
- name: "nonce",
775
- type: "uint256",
776
- },
777
541
  {
778
542
  internalType: "address",
779
543
  name: "tokenSpent",
@@ -784,36 +548,16 @@ const _abi = [
784
548
  name: "amountSpent",
785
549
  type: "uint256",
786
550
  },
787
- {
788
- internalType: "uint256",
789
- name: "amountFee",
790
- type: "uint256",
791
- },
792
551
  {
793
552
  internalType: "address",
794
- name: "ptAdapter",
553
+ name: "tokenReceived",
795
554
  type: "address",
796
555
  },
797
556
  {
798
557
  internalType: "uint256",
799
- name: "minPtReceived",
558
+ name: "minReceived",
800
559
  type: "uint256",
801
560
  },
802
- {
803
- internalType: "uint32",
804
- name: "dstEid",
805
- type: "uint32",
806
- },
807
- {
808
- internalType: "bytes32",
809
- name: "receiver",
810
- type: "bytes32",
811
- },
812
- {
813
- internalType: "bool",
814
- name: "pullFromOwner",
815
- type: "bool",
816
- },
817
561
  {
818
562
  internalType: "address",
819
563
  name: "swapExtRouter",
@@ -830,8 +574,8 @@ const _abi = [
830
574
  type: "bytes",
831
575
  },
832
576
  ],
833
- internalType: "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
834
- name: "message",
577
+ internalType: "struct IPCrossChainSwapHub.SwapTokenMessage",
578
+ name: "ms",
835
579
  type: "tuple",
836
580
  },
837
581
  ],
@@ -852,14 +596,9 @@ const _abi = [
852
596
  components: [
853
597
  {
854
598
  internalType: "address",
855
- name: "owner",
599
+ name: "proposer",
856
600
  type: "address",
857
601
  },
858
- {
859
- internalType: "uint32",
860
- name: "boxId",
861
- type: "uint32",
862
- },
863
602
  {
864
603
  internalType: "uint256",
865
604
  name: "expiry",
@@ -867,47 +606,42 @@ const _abi = [
867
606
  },
868
607
  {
869
608
  internalType: "uint256",
870
- name: "nonce",
609
+ name: "requestId",
871
610
  type: "uint256",
872
611
  },
873
- {
874
- internalType: "address",
875
- name: "token",
876
- type: "address",
877
- },
878
612
  {
879
613
  internalType: "uint256",
880
- name: "amountBridge",
614
+ name: "nonce",
881
615
  type: "uint256",
882
616
  },
883
617
  {
884
- internalType: "uint256",
885
- name: "amountFee",
886
- type: "uint256",
618
+ internalType: "address",
619
+ name: "owner",
620
+ type: "address",
887
621
  },
888
622
  {
889
- internalType: "bool",
890
- name: "pullFromOwner",
891
- type: "bool",
623
+ internalType: "uint32",
624
+ name: "boxId",
625
+ type: "uint32",
892
626
  },
893
627
  {
894
628
  internalType: "address",
895
- name: "bridgeExtRouter",
629
+ name: "token",
896
630
  type: "address",
897
631
  },
898
632
  {
899
- internalType: "address",
900
- name: "bridgeApprove",
901
- type: "address",
633
+ internalType: "uint256",
634
+ name: "amountWithdraw",
635
+ type: "uint256",
902
636
  },
903
637
  {
904
- internalType: "bytes",
905
- name: "bridgeCalldata",
906
- type: "bytes",
638
+ internalType: "uint256",
639
+ name: "amountFee",
640
+ type: "uint256",
907
641
  },
908
642
  ],
909
- internalType: "struct IPCrossChainSwapHub.BridgeTokenMessage",
910
- name: "message",
643
+ internalType: "struct IPCrossChainSwapHub.WithdrawTokenMessage",
644
+ name: "ms",
911
645
  type: "tuple",
912
646
  },
913
647
  ],
@@ -941,6 +675,25 @@ const _abi = [
941
675
  stateMutability: "view",
942
676
  type: "function",
943
677
  },
678
+ {
679
+ inputs: [
680
+ {
681
+ internalType: "address",
682
+ name: "proposer",
683
+ type: "address",
684
+ },
685
+ ],
686
+ name: "isProposer",
687
+ outputs: [
688
+ {
689
+ internalType: "bool",
690
+ name: "",
691
+ type: "bool",
692
+ },
693
+ ],
694
+ stateMutability: "view",
695
+ type: "function",
696
+ },
944
697
  {
945
698
  inputs: [],
946
699
  name: "owner",
@@ -955,14 +708,27 @@ const _abi = [
955
708
  type: "function",
956
709
  },
957
710
  {
958
- inputs: [
711
+ inputs: [],
712
+ name: "pendingOwner",
713
+ outputs: [
959
714
  {
960
715
  internalType: "address",
961
- name: "owner",
716
+ name: "",
962
717
  type: "address",
963
718
  },
964
719
  ],
965
- name: "ownerNonce",
720
+ stateMutability: "view",
721
+ type: "function",
722
+ },
723
+ {
724
+ inputs: [
725
+ {
726
+ internalType: "uint256",
727
+ name: "requestId",
728
+ type: "uint256",
729
+ },
730
+ ],
731
+ name: "requestNonce",
966
732
  outputs: [
967
733
  {
968
734
  internalType: "uint256",
@@ -974,32 +740,37 @@ const _abi = [
974
740
  type: "function",
975
741
  },
976
742
  {
977
- inputs: [],
978
- name: "pendingOwner",
979
- outputs: [
743
+ inputs: [
980
744
  {
981
745
  internalType: "address",
982
- name: "",
746
+ name: "executor",
983
747
  type: "address",
984
748
  },
749
+ {
750
+ internalType: "bool",
751
+ name: "isExecutor_",
752
+ type: "bool",
753
+ },
985
754
  ],
986
- stateMutability: "view",
755
+ name: "setExecutor",
756
+ outputs: [],
757
+ stateMutability: "nonpayable",
987
758
  type: "function",
988
759
  },
989
760
  {
990
761
  inputs: [
991
762
  {
992
763
  internalType: "address",
993
- name: "executor",
764
+ name: "proposer",
994
765
  type: "address",
995
766
  },
996
767
  {
997
768
  internalType: "bool",
998
- name: "isExecutor_",
769
+ name: "isProposer_",
999
770
  type: "bool",
1000
771
  },
1001
772
  ],
1002
- name: "setExecutor",
773
+ name: "setProposer",
1003
774
  outputs: [],
1004
775
  stateMutability: "nonpayable",
1005
776
  type: "function",
@@ -1010,17 +781,17 @@ const _abi = [
1010
781
  components: [
1011
782
  {
1012
783
  internalType: "address",
1013
- name: "owner",
784
+ name: "proposer",
1014
785
  type: "address",
1015
786
  },
1016
787
  {
1017
- internalType: "uint32",
1018
- name: "boxId",
1019
- type: "uint32",
788
+ internalType: "uint256",
789
+ name: "expiry",
790
+ type: "uint256",
1020
791
  },
1021
792
  {
1022
793
  internalType: "uint256",
1023
- name: "expiry",
794
+ name: "requestId",
1024
795
  type: "uint256",
1025
796
  },
1026
797
  {
@@ -1030,17 +801,22 @@ const _abi = [
1030
801
  },
1031
802
  {
1032
803
  internalType: "address",
1033
- name: "tokenSpent",
804
+ name: "owner",
1034
805
  type: "address",
1035
806
  },
1036
807
  {
1037
- internalType: "uint256",
1038
- name: "amountSpent",
1039
- type: "uint256",
808
+ internalType: "uint32",
809
+ name: "boxId",
810
+ type: "uint32",
811
+ },
812
+ {
813
+ internalType: "address",
814
+ name: "tokenSpent",
815
+ type: "address",
1040
816
  },
1041
817
  {
1042
818
  internalType: "uint256",
1043
- name: "amountFee",
819
+ name: "amountSpent",
1044
820
  type: "uint256",
1045
821
  },
1046
822
  {
@@ -1053,16 +829,6 @@ const _abi = [
1053
829
  name: "minReceived",
1054
830
  type: "uint256",
1055
831
  },
1056
- {
1057
- internalType: "bool",
1058
- name: "pullFromOwner",
1059
- type: "bool",
1060
- },
1061
- {
1062
- internalType: "bool",
1063
- name: "sendToOwner",
1064
- type: "bool",
1065
- },
1066
832
  {
1067
833
  internalType: "address",
1068
834
  name: "swapExtRouter",
@@ -1123,17 +889,17 @@ const _abi = [
1123
889
  components: [
1124
890
  {
1125
891
  internalType: "address",
1126
- name: "owner",
892
+ name: "proposer",
1127
893
  type: "address",
1128
894
  },
1129
895
  {
1130
- internalType: "uint32",
1131
- name: "boxId",
1132
- type: "uint32",
896
+ internalType: "uint256",
897
+ name: "expiry",
898
+ type: "uint256",
1133
899
  },
1134
900
  {
1135
901
  internalType: "uint256",
1136
- name: "expiry",
902
+ name: "requestId",
1137
903
  type: "uint256",
1138
904
  },
1139
905
  {
@@ -1141,6 +907,16 @@ const _abi = [
1141
907
  name: "nonce",
1142
908
  type: "uint256",
1143
909
  },
910
+ {
911
+ internalType: "address",
912
+ name: "owner",
913
+ type: "address",
914
+ },
915
+ {
916
+ internalType: "uint32",
917
+ name: "boxId",
918
+ type: "uint32",
919
+ },
1144
920
  {
1145
921
  internalType: "address",
1146
922
  name: "token",