@pendle/core-v2 6.3.2-swaphubtest → 6.3.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.
- package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.json +438 -220
- package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.json +436 -218
- package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.json +389 -171
- package/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol +116 -72
- package/contracts/cross-chain/swap-hub/SwapHubBase.sol +54 -84
- package/contracts/interfaces/IPCrossChainSwapHub.sol +49 -44
- package/package.json +1 -1
- package/typechain-types/IPCrossChainSwapHub.ts +323 -282
- package/typechain-types/PendleCrossChainSwapHub.ts +323 -282
- package/typechain-types/SwapHubBase.ts +323 -282
- package/typechain-types/factories/IPCrossChainSwapHub__factory.ts +388 -172
- package/typechain-types/factories/PendleCrossChainSwapHub__factory.ts +444 -228
- package/typechain-types/factories/SwapHubBase__factory.ts +443 -227
|
@@ -9,7 +9,7 @@ import type { SwapHubBase, SwapHubBaseInterface } from "../SwapHubBase";
|
|
|
9
9
|
const _abi = [
|
|
10
10
|
{
|
|
11
11
|
inputs: [],
|
|
12
|
-
name: "
|
|
12
|
+
name: "ActionExecuted",
|
|
13
13
|
type: "error",
|
|
14
14
|
},
|
|
15
15
|
{
|
|
@@ -17,21 +17,6 @@ const _abi = [
|
|
|
17
17
|
name: "InsufficientTokenReceived",
|
|
18
18
|
type: "error",
|
|
19
19
|
},
|
|
20
|
-
{
|
|
21
|
-
inputs: [],
|
|
22
|
-
name: "IntentExecuted",
|
|
23
|
-
type: "error",
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
inputs: [],
|
|
27
|
-
name: "IntentHashMismatch",
|
|
28
|
-
type: "error",
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
inputs: [],
|
|
32
|
-
name: "InvalidAmountIn",
|
|
33
|
-
type: "error",
|
|
34
|
-
},
|
|
35
20
|
{
|
|
36
21
|
inputs: [],
|
|
37
22
|
name: "InvalidNonce",
|
|
@@ -42,11 +27,6 @@ const _abi = [
|
|
|
42
27
|
name: "InvalidSignature",
|
|
43
28
|
type: "error",
|
|
44
29
|
},
|
|
45
|
-
{
|
|
46
|
-
inputs: [],
|
|
47
|
-
name: "InvalidValidator",
|
|
48
|
-
type: "error",
|
|
49
|
-
},
|
|
50
30
|
{
|
|
51
31
|
inputs: [],
|
|
52
32
|
name: "MessageExpired",
|
|
@@ -67,6 +47,12 @@ const _abi = [
|
|
|
67
47
|
name: "boxId",
|
|
68
48
|
type: "uint32",
|
|
69
49
|
},
|
|
50
|
+
{
|
|
51
|
+
indexed: false,
|
|
52
|
+
internalType: "bytes32",
|
|
53
|
+
name: "actionHash",
|
|
54
|
+
type: "bytes32",
|
|
55
|
+
},
|
|
70
56
|
{
|
|
71
57
|
indexed: false,
|
|
72
58
|
internalType: "address",
|
|
@@ -82,13 +68,13 @@ const _abi = [
|
|
|
82
68
|
{
|
|
83
69
|
indexed: false,
|
|
84
70
|
internalType: "uint256",
|
|
85
|
-
name: "
|
|
71
|
+
name: "amountBridge",
|
|
86
72
|
type: "uint256",
|
|
87
73
|
},
|
|
88
74
|
{
|
|
89
75
|
indexed: false,
|
|
90
76
|
internalType: "uint256",
|
|
91
|
-
name: "
|
|
77
|
+
name: "amountFee",
|
|
92
78
|
type: "uint256",
|
|
93
79
|
},
|
|
94
80
|
],
|
|
@@ -113,7 +99,7 @@ const _abi = [
|
|
|
113
99
|
{
|
|
114
100
|
indexed: false,
|
|
115
101
|
internalType: "bytes32",
|
|
116
|
-
name: "
|
|
102
|
+
name: "actionHash",
|
|
117
103
|
type: "bytes32",
|
|
118
104
|
},
|
|
119
105
|
{
|
|
@@ -128,16 +114,22 @@ const _abi = [
|
|
|
128
114
|
name: "amountSpent",
|
|
129
115
|
type: "uint256",
|
|
130
116
|
},
|
|
117
|
+
{
|
|
118
|
+
indexed: false,
|
|
119
|
+
internalType: "uint256",
|
|
120
|
+
name: "amountFee",
|
|
121
|
+
type: "uint256",
|
|
122
|
+
},
|
|
131
123
|
{
|
|
132
124
|
indexed: false,
|
|
133
125
|
internalType: "address",
|
|
134
|
-
name: "
|
|
126
|
+
name: "ptAdapter",
|
|
135
127
|
type: "address",
|
|
136
128
|
},
|
|
137
129
|
{
|
|
138
130
|
indexed: false,
|
|
139
131
|
internalType: "address",
|
|
140
|
-
name: "
|
|
132
|
+
name: "pt",
|
|
141
133
|
type: "address",
|
|
142
134
|
},
|
|
143
135
|
{
|
|
@@ -150,6 +142,43 @@ const _abi = [
|
|
|
150
142
|
name: "BuyCrossChainPt",
|
|
151
143
|
type: "event",
|
|
152
144
|
},
|
|
145
|
+
{
|
|
146
|
+
anonymous: false,
|
|
147
|
+
inputs: [
|
|
148
|
+
{
|
|
149
|
+
indexed: true,
|
|
150
|
+
internalType: "address",
|
|
151
|
+
name: "owner",
|
|
152
|
+
type: "address",
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
indexed: false,
|
|
156
|
+
internalType: "uint32",
|
|
157
|
+
name: "boxId",
|
|
158
|
+
type: "uint32",
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
indexed: false,
|
|
162
|
+
internalType: "bytes32",
|
|
163
|
+
name: "actionHash",
|
|
164
|
+
type: "bytes32",
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
indexed: false,
|
|
168
|
+
internalType: "address",
|
|
169
|
+
name: "token",
|
|
170
|
+
type: "address",
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
indexed: false,
|
|
174
|
+
internalType: "uint256",
|
|
175
|
+
name: "amount",
|
|
176
|
+
type: "uint256",
|
|
177
|
+
},
|
|
178
|
+
],
|
|
179
|
+
name: "ClaimFeeForFailedAction",
|
|
180
|
+
type: "event",
|
|
181
|
+
},
|
|
153
182
|
{
|
|
154
183
|
anonymous: false,
|
|
155
184
|
inputs: [],
|
|
@@ -207,25 +236,6 @@ const _abi = [
|
|
|
207
236
|
name: "SetExecutor",
|
|
208
237
|
type: "event",
|
|
209
238
|
},
|
|
210
|
-
{
|
|
211
|
-
anonymous: false,
|
|
212
|
-
inputs: [
|
|
213
|
-
{
|
|
214
|
-
indexed: true,
|
|
215
|
-
internalType: "address",
|
|
216
|
-
name: "validator",
|
|
217
|
-
type: "address",
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
indexed: false,
|
|
221
|
-
internalType: "bool",
|
|
222
|
-
name: "isValidator",
|
|
223
|
-
type: "bool",
|
|
224
|
-
},
|
|
225
|
-
],
|
|
226
|
-
name: "SetValidator",
|
|
227
|
-
type: "event",
|
|
228
|
-
},
|
|
229
239
|
{
|
|
230
240
|
anonymous: false,
|
|
231
241
|
inputs: [
|
|
@@ -241,6 +251,12 @@ const _abi = [
|
|
|
241
251
|
name: "boxId",
|
|
242
252
|
type: "uint32",
|
|
243
253
|
},
|
|
254
|
+
{
|
|
255
|
+
indexed: false,
|
|
256
|
+
internalType: "bytes32",
|
|
257
|
+
name: "actionHash",
|
|
258
|
+
type: "bytes32",
|
|
259
|
+
},
|
|
244
260
|
{
|
|
245
261
|
indexed: false,
|
|
246
262
|
internalType: "address",
|
|
@@ -253,6 +269,12 @@ const _abi = [
|
|
|
253
269
|
name: "amountSpent",
|
|
254
270
|
type: "uint256",
|
|
255
271
|
},
|
|
272
|
+
{
|
|
273
|
+
indexed: false,
|
|
274
|
+
internalType: "uint256",
|
|
275
|
+
name: "amountFee",
|
|
276
|
+
type: "uint256",
|
|
277
|
+
},
|
|
256
278
|
{
|
|
257
279
|
indexed: false,
|
|
258
280
|
internalType: "address",
|
|
@@ -284,6 +306,12 @@ const _abi = [
|
|
|
284
306
|
name: "boxId",
|
|
285
307
|
type: "uint32",
|
|
286
308
|
},
|
|
309
|
+
{
|
|
310
|
+
indexed: false,
|
|
311
|
+
internalType: "bytes32",
|
|
312
|
+
name: "actionHash",
|
|
313
|
+
type: "bytes32",
|
|
314
|
+
},
|
|
287
315
|
{
|
|
288
316
|
indexed: false,
|
|
289
317
|
internalType: "address",
|
|
@@ -299,13 +327,13 @@ const _abi = [
|
|
|
299
327
|
{
|
|
300
328
|
indexed: false,
|
|
301
329
|
internalType: "uint256",
|
|
302
|
-
name: "
|
|
330
|
+
name: "amountWithdraw",
|
|
303
331
|
type: "uint256",
|
|
304
332
|
},
|
|
305
333
|
{
|
|
306
334
|
indexed: false,
|
|
307
335
|
internalType: "uint256",
|
|
308
|
-
name: "
|
|
336
|
+
name: "amountFee",
|
|
309
337
|
type: "uint256",
|
|
310
338
|
},
|
|
311
339
|
],
|
|
@@ -334,21 +362,255 @@ const _abi = [
|
|
|
334
362
|
name: "",
|
|
335
363
|
type: "address",
|
|
336
364
|
},
|
|
337
|
-
],
|
|
338
|
-
stateMutability: "view",
|
|
339
|
-
type: "function",
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
inputs: [],
|
|
343
|
-
name: "DEPOSIT_BOX_CODE_HASH",
|
|
344
|
-
outputs: [
|
|
365
|
+
],
|
|
366
|
+
stateMutability: "view",
|
|
367
|
+
type: "function",
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
inputs: [],
|
|
371
|
+
name: "DEPOSIT_BOX_CODE_HASH",
|
|
372
|
+
outputs: [
|
|
373
|
+
{
|
|
374
|
+
internalType: "bytes32",
|
|
375
|
+
name: "",
|
|
376
|
+
type: "bytes32",
|
|
377
|
+
},
|
|
378
|
+
],
|
|
379
|
+
stateMutability: "view",
|
|
380
|
+
type: "function",
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
inputs: [
|
|
384
|
+
{
|
|
385
|
+
internalType: "bytes32",
|
|
386
|
+
name: "actionStatus",
|
|
387
|
+
type: "bytes32",
|
|
388
|
+
},
|
|
389
|
+
],
|
|
390
|
+
name: "actionStatus",
|
|
391
|
+
outputs: [
|
|
392
|
+
{
|
|
393
|
+
internalType: "enum IPCrossChainSwapHub.ActionStatus",
|
|
394
|
+
name: "",
|
|
395
|
+
type: "uint8",
|
|
396
|
+
},
|
|
397
|
+
],
|
|
398
|
+
stateMutability: "view",
|
|
399
|
+
type: "function",
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
inputs: [
|
|
403
|
+
{
|
|
404
|
+
components: [
|
|
405
|
+
{
|
|
406
|
+
internalType: "address",
|
|
407
|
+
name: "owner",
|
|
408
|
+
type: "address",
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
internalType: "uint32",
|
|
412
|
+
name: "boxId",
|
|
413
|
+
type: "uint32",
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
internalType: "uint256",
|
|
417
|
+
name: "expiry",
|
|
418
|
+
type: "uint256",
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
internalType: "uint256",
|
|
422
|
+
name: "nonce",
|
|
423
|
+
type: "uint256",
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
internalType: "address",
|
|
427
|
+
name: "token",
|
|
428
|
+
type: "address",
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
internalType: "uint256",
|
|
432
|
+
name: "amountBridge",
|
|
433
|
+
type: "uint256",
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
internalType: "uint256",
|
|
437
|
+
name: "amountFee",
|
|
438
|
+
type: "uint256",
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
internalType: "address",
|
|
442
|
+
name: "bridgeExtRouter",
|
|
443
|
+
type: "address",
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
internalType: "bytes",
|
|
447
|
+
name: "bridgeCalldata",
|
|
448
|
+
type: "bytes",
|
|
449
|
+
},
|
|
450
|
+
],
|
|
451
|
+
internalType: "struct IPCrossChainSwapHub.BridgeTokenMessage",
|
|
452
|
+
name: "message",
|
|
453
|
+
type: "tuple",
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
internalType: "bytes",
|
|
457
|
+
name: "signature",
|
|
458
|
+
type: "bytes",
|
|
459
|
+
},
|
|
460
|
+
],
|
|
461
|
+
name: "bridgeToken",
|
|
462
|
+
outputs: [],
|
|
463
|
+
stateMutability: "payable",
|
|
464
|
+
type: "function",
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
inputs: [
|
|
468
|
+
{
|
|
469
|
+
components: [
|
|
470
|
+
{
|
|
471
|
+
internalType: "address",
|
|
472
|
+
name: "owner",
|
|
473
|
+
type: "address",
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
internalType: "uint32",
|
|
477
|
+
name: "boxId",
|
|
478
|
+
type: "uint32",
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
internalType: "uint256",
|
|
482
|
+
name: "expiry",
|
|
483
|
+
type: "uint256",
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
internalType: "uint256",
|
|
487
|
+
name: "nonce",
|
|
488
|
+
type: "uint256",
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
internalType: "address",
|
|
492
|
+
name: "tokenSpent",
|
|
493
|
+
type: "address",
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
internalType: "uint256",
|
|
497
|
+
name: "amountSpent",
|
|
498
|
+
type: "uint256",
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
internalType: "uint256",
|
|
502
|
+
name: "amountFee",
|
|
503
|
+
type: "uint256",
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
internalType: "address",
|
|
507
|
+
name: "ptAdapter",
|
|
508
|
+
type: "address",
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
internalType: "uint256",
|
|
512
|
+
name: "minPtReceived",
|
|
513
|
+
type: "uint256",
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
internalType: "uint32",
|
|
517
|
+
name: "dstEid",
|
|
518
|
+
type: "uint32",
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
internalType: "bytes32",
|
|
522
|
+
name: "receiver",
|
|
523
|
+
type: "bytes32",
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
internalType: "address",
|
|
527
|
+
name: "swapExecutor",
|
|
528
|
+
type: "address",
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
internalType: "address",
|
|
532
|
+
name: "swapExtRouter",
|
|
533
|
+
type: "address",
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
internalType: "bytes",
|
|
537
|
+
name: "swapCalldata",
|
|
538
|
+
type: "bytes",
|
|
539
|
+
},
|
|
540
|
+
],
|
|
541
|
+
internalType: "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
|
|
542
|
+
name: "message",
|
|
543
|
+
type: "tuple",
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
internalType: "bytes",
|
|
547
|
+
name: "signature",
|
|
548
|
+
type: "bytes",
|
|
549
|
+
},
|
|
550
|
+
],
|
|
551
|
+
name: "buyCrossChainPt",
|
|
552
|
+
outputs: [],
|
|
553
|
+
stateMutability: "payable",
|
|
554
|
+
type: "function",
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
inputs: [
|
|
558
|
+
{
|
|
559
|
+
components: [
|
|
560
|
+
{
|
|
561
|
+
internalType: "address",
|
|
562
|
+
name: "owner",
|
|
563
|
+
type: "address",
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
internalType: "uint32",
|
|
567
|
+
name: "boxId",
|
|
568
|
+
type: "uint32",
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
internalType: "uint256",
|
|
572
|
+
name: "expiry",
|
|
573
|
+
type: "uint256",
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
internalType: "uint256",
|
|
577
|
+
name: "nonce",
|
|
578
|
+
type: "uint256",
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
internalType: "address",
|
|
582
|
+
name: "receiver",
|
|
583
|
+
type: "address",
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
internalType: "address",
|
|
587
|
+
name: "token",
|
|
588
|
+
type: "address",
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
internalType: "uint256",
|
|
592
|
+
name: "amountWithdraw",
|
|
593
|
+
type: "uint256",
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
internalType: "uint256",
|
|
597
|
+
name: "amountFee",
|
|
598
|
+
type: "uint256",
|
|
599
|
+
},
|
|
600
|
+
],
|
|
601
|
+
internalType: "struct IPCrossChainSwapHub.WithdrawTokenMessage",
|
|
602
|
+
name: "message",
|
|
603
|
+
type: "tuple",
|
|
604
|
+
},
|
|
345
605
|
{
|
|
346
|
-
internalType: "
|
|
347
|
-
name: "",
|
|
348
|
-
type: "
|
|
606
|
+
internalType: "bytes",
|
|
607
|
+
name: "signature",
|
|
608
|
+
type: "bytes",
|
|
349
609
|
},
|
|
350
610
|
],
|
|
351
|
-
|
|
611
|
+
name: "claimFee",
|
|
612
|
+
outputs: [],
|
|
613
|
+
stateMutability: "nonpayable",
|
|
352
614
|
type: "function",
|
|
353
615
|
},
|
|
354
616
|
{
|
|
@@ -382,12 +644,12 @@ const _abi = [
|
|
|
382
644
|
},
|
|
383
645
|
{
|
|
384
646
|
internalType: "uint256",
|
|
385
|
-
name: "
|
|
647
|
+
name: "amountBridge",
|
|
386
648
|
type: "uint256",
|
|
387
649
|
},
|
|
388
650
|
{
|
|
389
651
|
internalType: "uint256",
|
|
390
|
-
name: "
|
|
652
|
+
name: "amountFee",
|
|
391
653
|
type: "uint256",
|
|
392
654
|
},
|
|
393
655
|
{
|
|
@@ -411,9 +673,9 @@ const _abi = [
|
|
|
411
673
|
type: "bytes",
|
|
412
674
|
},
|
|
413
675
|
],
|
|
414
|
-
name: "
|
|
676
|
+
name: "claimFee",
|
|
415
677
|
outputs: [],
|
|
416
|
-
stateMutability: "
|
|
678
|
+
stateMutability: "nonpayable",
|
|
417
679
|
type: "function",
|
|
418
680
|
},
|
|
419
681
|
{
|
|
@@ -432,12 +694,12 @@ const _abi = [
|
|
|
432
694
|
},
|
|
433
695
|
{
|
|
434
696
|
internalType: "uint256",
|
|
435
|
-
name: "
|
|
697
|
+
name: "expiry",
|
|
436
698
|
type: "uint256",
|
|
437
699
|
},
|
|
438
700
|
{
|
|
439
701
|
internalType: "uint256",
|
|
440
|
-
name: "
|
|
702
|
+
name: "nonce",
|
|
441
703
|
type: "uint256",
|
|
442
704
|
},
|
|
443
705
|
{
|
|
@@ -447,13 +709,13 @@ const _abi = [
|
|
|
447
709
|
},
|
|
448
710
|
{
|
|
449
711
|
internalType: "uint256",
|
|
450
|
-
name: "
|
|
712
|
+
name: "amountSpent",
|
|
451
713
|
type: "uint256",
|
|
452
714
|
},
|
|
453
715
|
{
|
|
454
|
-
internalType: "
|
|
455
|
-
name: "
|
|
456
|
-
type: "
|
|
716
|
+
internalType: "uint256",
|
|
717
|
+
name: "amountFee",
|
|
718
|
+
type: "uint256",
|
|
457
719
|
},
|
|
458
720
|
{
|
|
459
721
|
internalType: "address",
|
|
@@ -467,7 +729,7 @@ const _abi = [
|
|
|
467
729
|
},
|
|
468
730
|
{
|
|
469
731
|
internalType: "uint32",
|
|
470
|
-
name: "
|
|
732
|
+
name: "dstEid",
|
|
471
733
|
type: "uint32",
|
|
472
734
|
},
|
|
473
735
|
{
|
|
@@ -475,27 +737,65 @@ const _abi = [
|
|
|
475
737
|
name: "receiver",
|
|
476
738
|
type: "bytes32",
|
|
477
739
|
},
|
|
740
|
+
{
|
|
741
|
+
internalType: "address",
|
|
742
|
+
name: "swapExecutor",
|
|
743
|
+
type: "address",
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
internalType: "address",
|
|
747
|
+
name: "swapExtRouter",
|
|
748
|
+
type: "address",
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
internalType: "bytes",
|
|
752
|
+
name: "swapCalldata",
|
|
753
|
+
type: "bytes",
|
|
754
|
+
},
|
|
478
755
|
],
|
|
479
|
-
internalType: "struct IPCrossChainSwapHub.
|
|
480
|
-
name: "
|
|
756
|
+
internalType: "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
|
|
757
|
+
name: "message",
|
|
481
758
|
type: "tuple",
|
|
482
759
|
},
|
|
483
760
|
{
|
|
484
761
|
internalType: "bytes",
|
|
485
|
-
name: "
|
|
762
|
+
name: "signature",
|
|
486
763
|
type: "bytes",
|
|
487
764
|
},
|
|
765
|
+
],
|
|
766
|
+
name: "claimFee",
|
|
767
|
+
outputs: [],
|
|
768
|
+
stateMutability: "nonpayable",
|
|
769
|
+
type: "function",
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
inputs: [
|
|
488
773
|
{
|
|
489
774
|
components: [
|
|
490
775
|
{
|
|
491
776
|
internalType: "address",
|
|
492
|
-
name: "
|
|
777
|
+
name: "owner",
|
|
493
778
|
type: "address",
|
|
494
779
|
},
|
|
495
780
|
{
|
|
496
|
-
internalType: "
|
|
497
|
-
name: "
|
|
498
|
-
type: "
|
|
781
|
+
internalType: "uint32",
|
|
782
|
+
name: "boxId",
|
|
783
|
+
type: "uint32",
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
internalType: "uint256",
|
|
787
|
+
name: "expiry",
|
|
788
|
+
type: "uint256",
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
internalType: "uint256",
|
|
792
|
+
name: "nonce",
|
|
793
|
+
type: "uint256",
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
internalType: "address",
|
|
797
|
+
name: "tokenSpent",
|
|
798
|
+
type: "address",
|
|
499
799
|
},
|
|
500
800
|
{
|
|
501
801
|
internalType: "uint256",
|
|
@@ -504,9 +804,24 @@ const _abi = [
|
|
|
504
804
|
},
|
|
505
805
|
{
|
|
506
806
|
internalType: "uint256",
|
|
507
|
-
name: "
|
|
807
|
+
name: "amountFee",
|
|
808
|
+
type: "uint256",
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
internalType: "address",
|
|
812
|
+
name: "tokenReceived",
|
|
813
|
+
type: "address",
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
internalType: "uint256",
|
|
817
|
+
name: "minReceived",
|
|
508
818
|
type: "uint256",
|
|
509
819
|
},
|
|
820
|
+
{
|
|
821
|
+
internalType: "address",
|
|
822
|
+
name: "receiver",
|
|
823
|
+
type: "address",
|
|
824
|
+
},
|
|
510
825
|
{
|
|
511
826
|
internalType: "address",
|
|
512
827
|
name: "swapExecutor",
|
|
@@ -522,26 +837,20 @@ const _abi = [
|
|
|
522
837
|
name: "swapCalldata",
|
|
523
838
|
type: "bytes",
|
|
524
839
|
},
|
|
525
|
-
{
|
|
526
|
-
internalType: "uint256",
|
|
527
|
-
name: "expiry",
|
|
528
|
-
type: "uint256",
|
|
529
|
-
},
|
|
530
840
|
],
|
|
531
|
-
internalType:
|
|
532
|
-
|
|
533
|
-
name: "execMsg",
|
|
841
|
+
internalType: "struct IPCrossChainSwapHub.SwapTokenMessage",
|
|
842
|
+
name: "message",
|
|
534
843
|
type: "tuple",
|
|
535
844
|
},
|
|
536
845
|
{
|
|
537
846
|
internalType: "bytes",
|
|
538
|
-
name: "
|
|
847
|
+
name: "signature",
|
|
539
848
|
type: "bytes",
|
|
540
849
|
},
|
|
541
850
|
],
|
|
542
|
-
name: "
|
|
851
|
+
name: "claimFee",
|
|
543
852
|
outputs: [],
|
|
544
|
-
stateMutability: "
|
|
853
|
+
stateMutability: "nonpayable",
|
|
545
854
|
type: "function",
|
|
546
855
|
},
|
|
547
856
|
{
|
|
@@ -657,76 +966,25 @@ const _abi = [
|
|
|
657
966
|
name: "amountSpent",
|
|
658
967
|
type: "uint256",
|
|
659
968
|
},
|
|
660
|
-
{
|
|
661
|
-
internalType: "address",
|
|
662
|
-
name: "tokenReceived",
|
|
663
|
-
type: "address",
|
|
664
|
-
},
|
|
665
|
-
{
|
|
666
|
-
internalType: "uint256",
|
|
667
|
-
name: "minReceived",
|
|
668
|
-
type: "uint256",
|
|
669
|
-
},
|
|
670
969
|
{
|
|
671
970
|
internalType: "uint256",
|
|
672
|
-
name: "
|
|
971
|
+
name: "amountFee",
|
|
673
972
|
type: "uint256",
|
|
674
973
|
},
|
|
675
974
|
{
|
|
676
975
|
internalType: "address",
|
|
677
|
-
name: "
|
|
678
|
-
type: "address",
|
|
679
|
-
},
|
|
680
|
-
{
|
|
681
|
-
internalType: "address",
|
|
682
|
-
name: "swapExtRouter",
|
|
683
|
-
type: "address",
|
|
684
|
-
},
|
|
685
|
-
{
|
|
686
|
-
internalType: "bytes",
|
|
687
|
-
name: "swapCalldata",
|
|
688
|
-
type: "bytes",
|
|
689
|
-
},
|
|
690
|
-
],
|
|
691
|
-
internalType: "struct IPCrossChainSwapHub.SwapTokenMessage",
|
|
692
|
-
name: "message",
|
|
693
|
-
type: "tuple",
|
|
694
|
-
},
|
|
695
|
-
],
|
|
696
|
-
name: "hashTypedData",
|
|
697
|
-
outputs: [
|
|
698
|
-
{
|
|
699
|
-
internalType: "bytes32",
|
|
700
|
-
name: "",
|
|
701
|
-
type: "bytes32",
|
|
702
|
-
},
|
|
703
|
-
],
|
|
704
|
-
stateMutability: "view",
|
|
705
|
-
type: "function",
|
|
706
|
-
},
|
|
707
|
-
{
|
|
708
|
-
inputs: [
|
|
709
|
-
{
|
|
710
|
-
components: [
|
|
711
|
-
{
|
|
712
|
-
internalType: "address",
|
|
713
|
-
name: "validator",
|
|
976
|
+
name: "tokenReceived",
|
|
714
977
|
type: "address",
|
|
715
978
|
},
|
|
716
|
-
{
|
|
717
|
-
internalType: "bytes32",
|
|
718
|
-
name: "intentHash",
|
|
719
|
-
type: "bytes32",
|
|
720
|
-
},
|
|
721
979
|
{
|
|
722
980
|
internalType: "uint256",
|
|
723
|
-
name: "
|
|
981
|
+
name: "minReceived",
|
|
724
982
|
type: "uint256",
|
|
725
983
|
},
|
|
726
984
|
{
|
|
727
|
-
internalType: "
|
|
728
|
-
name: "
|
|
729
|
-
type: "
|
|
985
|
+
internalType: "address",
|
|
986
|
+
name: "receiver",
|
|
987
|
+
type: "address",
|
|
730
988
|
},
|
|
731
989
|
{
|
|
732
990
|
internalType: "address",
|
|
@@ -743,14 +1001,8 @@ const _abi = [
|
|
|
743
1001
|
name: "swapCalldata",
|
|
744
1002
|
type: "bytes",
|
|
745
1003
|
},
|
|
746
|
-
{
|
|
747
|
-
internalType: "uint256",
|
|
748
|
-
name: "expiry",
|
|
749
|
-
type: "uint256",
|
|
750
|
-
},
|
|
751
1004
|
],
|
|
752
|
-
internalType:
|
|
753
|
-
"struct IPCrossChainSwapHub.ExecuteBuyCrossChainPtMessage",
|
|
1005
|
+
internalType: "struct IPCrossChainSwapHub.SwapTokenMessage",
|
|
754
1006
|
name: "message",
|
|
755
1007
|
type: "tuple",
|
|
756
1008
|
},
|
|
@@ -782,12 +1034,12 @@ const _abi = [
|
|
|
782
1034
|
},
|
|
783
1035
|
{
|
|
784
1036
|
internalType: "uint256",
|
|
785
|
-
name: "
|
|
1037
|
+
name: "expiry",
|
|
786
1038
|
type: "uint256",
|
|
787
1039
|
},
|
|
788
1040
|
{
|
|
789
1041
|
internalType: "uint256",
|
|
790
|
-
name: "
|
|
1042
|
+
name: "nonce",
|
|
791
1043
|
type: "uint256",
|
|
792
1044
|
},
|
|
793
1045
|
{
|
|
@@ -797,13 +1049,13 @@ const _abi = [
|
|
|
797
1049
|
},
|
|
798
1050
|
{
|
|
799
1051
|
internalType: "uint256",
|
|
800
|
-
name: "
|
|
1052
|
+
name: "amountSpent",
|
|
801
1053
|
type: "uint256",
|
|
802
1054
|
},
|
|
803
1055
|
{
|
|
804
|
-
internalType: "
|
|
805
|
-
name: "
|
|
806
|
-
type: "
|
|
1056
|
+
internalType: "uint256",
|
|
1057
|
+
name: "amountFee",
|
|
1058
|
+
type: "uint256",
|
|
807
1059
|
},
|
|
808
1060
|
{
|
|
809
1061
|
internalType: "address",
|
|
@@ -817,7 +1069,7 @@ const _abi = [
|
|
|
817
1069
|
},
|
|
818
1070
|
{
|
|
819
1071
|
internalType: "uint32",
|
|
820
|
-
name: "
|
|
1072
|
+
name: "dstEid",
|
|
821
1073
|
type: "uint32",
|
|
822
1074
|
},
|
|
823
1075
|
{
|
|
@@ -825,9 +1077,24 @@ const _abi = [
|
|
|
825
1077
|
name: "receiver",
|
|
826
1078
|
type: "bytes32",
|
|
827
1079
|
},
|
|
1080
|
+
{
|
|
1081
|
+
internalType: "address",
|
|
1082
|
+
name: "swapExecutor",
|
|
1083
|
+
type: "address",
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
internalType: "address",
|
|
1087
|
+
name: "swapExtRouter",
|
|
1088
|
+
type: "address",
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
internalType: "bytes",
|
|
1092
|
+
name: "swapCalldata",
|
|
1093
|
+
type: "bytes",
|
|
1094
|
+
},
|
|
828
1095
|
],
|
|
829
|
-
internalType: "struct IPCrossChainSwapHub.
|
|
830
|
-
name: "
|
|
1096
|
+
internalType: "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
|
|
1097
|
+
name: "message",
|
|
831
1098
|
type: "tuple",
|
|
832
1099
|
},
|
|
833
1100
|
],
|
|
@@ -873,12 +1140,12 @@ const _abi = [
|
|
|
873
1140
|
},
|
|
874
1141
|
{
|
|
875
1142
|
internalType: "uint256",
|
|
876
|
-
name: "
|
|
1143
|
+
name: "amountBridge",
|
|
877
1144
|
type: "uint256",
|
|
878
1145
|
},
|
|
879
1146
|
{
|
|
880
1147
|
internalType: "uint256",
|
|
881
|
-
name: "
|
|
1148
|
+
name: "amountFee",
|
|
882
1149
|
type: "uint256",
|
|
883
1150
|
},
|
|
884
1151
|
{
|
|
@@ -944,12 +1211,12 @@ const _abi = [
|
|
|
944
1211
|
},
|
|
945
1212
|
{
|
|
946
1213
|
internalType: "uint256",
|
|
947
|
-
name: "
|
|
1214
|
+
name: "amountWithdraw",
|
|
948
1215
|
type: "uint256",
|
|
949
1216
|
},
|
|
950
1217
|
{
|
|
951
1218
|
internalType: "uint256",
|
|
952
|
-
name: "
|
|
1219
|
+
name: "amountFee",
|
|
953
1220
|
type: "uint256",
|
|
954
1221
|
},
|
|
955
1222
|
],
|
|
@@ -988,44 +1255,6 @@ const _abi = [
|
|
|
988
1255
|
stateMutability: "view",
|
|
989
1256
|
type: "function",
|
|
990
1257
|
},
|
|
991
|
-
{
|
|
992
|
-
inputs: [
|
|
993
|
-
{
|
|
994
|
-
internalType: "bytes32",
|
|
995
|
-
name: "intentHash",
|
|
996
|
-
type: "bytes32",
|
|
997
|
-
},
|
|
998
|
-
],
|
|
999
|
-
name: "isIntentExecuted",
|
|
1000
|
-
outputs: [
|
|
1001
|
-
{
|
|
1002
|
-
internalType: "bool",
|
|
1003
|
-
name: "",
|
|
1004
|
-
type: "bool",
|
|
1005
|
-
},
|
|
1006
|
-
],
|
|
1007
|
-
stateMutability: "view",
|
|
1008
|
-
type: "function",
|
|
1009
|
-
},
|
|
1010
|
-
{
|
|
1011
|
-
inputs: [
|
|
1012
|
-
{
|
|
1013
|
-
internalType: "address",
|
|
1014
|
-
name: "validator",
|
|
1015
|
-
type: "address",
|
|
1016
|
-
},
|
|
1017
|
-
],
|
|
1018
|
-
name: "isValidator",
|
|
1019
|
-
outputs: [
|
|
1020
|
-
{
|
|
1021
|
-
internalType: "bool",
|
|
1022
|
-
name: "",
|
|
1023
|
-
type: "bool",
|
|
1024
|
-
},
|
|
1025
|
-
],
|
|
1026
|
-
stateMutability: "view",
|
|
1027
|
-
type: "function",
|
|
1028
|
-
},
|
|
1029
1258
|
{
|
|
1030
1259
|
inputs: [],
|
|
1031
1260
|
name: "owner",
|
|
@@ -1089,24 +1318,6 @@ const _abi = [
|
|
|
1089
1318
|
stateMutability: "nonpayable",
|
|
1090
1319
|
type: "function",
|
|
1091
1320
|
},
|
|
1092
|
-
{
|
|
1093
|
-
inputs: [
|
|
1094
|
-
{
|
|
1095
|
-
internalType: "address",
|
|
1096
|
-
name: "validator",
|
|
1097
|
-
type: "address",
|
|
1098
|
-
},
|
|
1099
|
-
{
|
|
1100
|
-
internalType: "bool",
|
|
1101
|
-
name: "isValidator_",
|
|
1102
|
-
type: "bool",
|
|
1103
|
-
},
|
|
1104
|
-
],
|
|
1105
|
-
name: "setValidator",
|
|
1106
|
-
outputs: [],
|
|
1107
|
-
stateMutability: "nonpayable",
|
|
1108
|
-
type: "function",
|
|
1109
|
-
},
|
|
1110
1321
|
{
|
|
1111
1322
|
inputs: [
|
|
1112
1323
|
{
|
|
@@ -1141,6 +1352,11 @@ const _abi = [
|
|
|
1141
1352
|
name: "amountSpent",
|
|
1142
1353
|
type: "uint256",
|
|
1143
1354
|
},
|
|
1355
|
+
{
|
|
1356
|
+
internalType: "uint256",
|
|
1357
|
+
name: "amountFee",
|
|
1358
|
+
type: "uint256",
|
|
1359
|
+
},
|
|
1144
1360
|
{
|
|
1145
1361
|
internalType: "address",
|
|
1146
1362
|
name: "tokenReceived",
|
|
@@ -1152,9 +1368,9 @@ const _abi = [
|
|
|
1152
1368
|
type: "uint256",
|
|
1153
1369
|
},
|
|
1154
1370
|
{
|
|
1155
|
-
internalType: "
|
|
1156
|
-
name: "
|
|
1157
|
-
type: "
|
|
1371
|
+
internalType: "address",
|
|
1372
|
+
name: "receiver",
|
|
1373
|
+
type: "address",
|
|
1158
1374
|
},
|
|
1159
1375
|
{
|
|
1160
1376
|
internalType: "address",
|
|
@@ -1246,12 +1462,12 @@ const _abi = [
|
|
|
1246
1462
|
},
|
|
1247
1463
|
{
|
|
1248
1464
|
internalType: "uint256",
|
|
1249
|
-
name: "
|
|
1465
|
+
name: "amountWithdraw",
|
|
1250
1466
|
type: "uint256",
|
|
1251
1467
|
},
|
|
1252
1468
|
{
|
|
1253
1469
|
internalType: "uint256",
|
|
1254
|
-
name: "
|
|
1470
|
+
name: "amountFee",
|
|
1255
1471
|
type: "uint256",
|
|
1256
1472
|
},
|
|
1257
1473
|
],
|