@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
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"abi": [
|
|
6
6
|
{
|
|
7
7
|
"inputs": [],
|
|
8
|
-
"name": "
|
|
8
|
+
"name": "ActionExecuted",
|
|
9
9
|
"type": "error"
|
|
10
10
|
},
|
|
11
11
|
{
|
|
@@ -13,21 +13,6 @@
|
|
|
13
13
|
"name": "InsufficientTokenReceived",
|
|
14
14
|
"type": "error"
|
|
15
15
|
},
|
|
16
|
-
{
|
|
17
|
-
"inputs": [],
|
|
18
|
-
"name": "IntentExecuted",
|
|
19
|
-
"type": "error"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"inputs": [],
|
|
23
|
-
"name": "IntentHashMismatch",
|
|
24
|
-
"type": "error"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"inputs": [],
|
|
28
|
-
"name": "InvalidAmountIn",
|
|
29
|
-
"type": "error"
|
|
30
|
-
},
|
|
31
16
|
{
|
|
32
17
|
"inputs": [],
|
|
33
18
|
"name": "InvalidNonce",
|
|
@@ -38,11 +23,6 @@
|
|
|
38
23
|
"name": "InvalidSignature",
|
|
39
24
|
"type": "error"
|
|
40
25
|
},
|
|
41
|
-
{
|
|
42
|
-
"inputs": [],
|
|
43
|
-
"name": "InvalidValidator",
|
|
44
|
-
"type": "error"
|
|
45
|
-
},
|
|
46
26
|
{
|
|
47
27
|
"inputs": [],
|
|
48
28
|
"name": "MessageExpired",
|
|
@@ -63,6 +43,12 @@
|
|
|
63
43
|
"name": "boxId",
|
|
64
44
|
"type": "uint32"
|
|
65
45
|
},
|
|
46
|
+
{
|
|
47
|
+
"indexed": false,
|
|
48
|
+
"internalType": "bytes32",
|
|
49
|
+
"name": "actionHash",
|
|
50
|
+
"type": "bytes32"
|
|
51
|
+
},
|
|
66
52
|
{
|
|
67
53
|
"indexed": false,
|
|
68
54
|
"internalType": "address",
|
|
@@ -78,13 +64,13 @@
|
|
|
78
64
|
{
|
|
79
65
|
"indexed": false,
|
|
80
66
|
"internalType": "uint256",
|
|
81
|
-
"name": "
|
|
67
|
+
"name": "amountBridge",
|
|
82
68
|
"type": "uint256"
|
|
83
69
|
},
|
|
84
70
|
{
|
|
85
71
|
"indexed": false,
|
|
86
72
|
"internalType": "uint256",
|
|
87
|
-
"name": "
|
|
73
|
+
"name": "amountFee",
|
|
88
74
|
"type": "uint256"
|
|
89
75
|
}
|
|
90
76
|
],
|
|
@@ -109,7 +95,7 @@
|
|
|
109
95
|
{
|
|
110
96
|
"indexed": false,
|
|
111
97
|
"internalType": "bytes32",
|
|
112
|
-
"name": "
|
|
98
|
+
"name": "actionHash",
|
|
113
99
|
"type": "bytes32"
|
|
114
100
|
},
|
|
115
101
|
{
|
|
@@ -124,16 +110,22 @@
|
|
|
124
110
|
"name": "amountSpent",
|
|
125
111
|
"type": "uint256"
|
|
126
112
|
},
|
|
113
|
+
{
|
|
114
|
+
"indexed": false,
|
|
115
|
+
"internalType": "uint256",
|
|
116
|
+
"name": "amountFee",
|
|
117
|
+
"type": "uint256"
|
|
118
|
+
},
|
|
127
119
|
{
|
|
128
120
|
"indexed": false,
|
|
129
121
|
"internalType": "address",
|
|
130
|
-
"name": "
|
|
122
|
+
"name": "ptAdapter",
|
|
131
123
|
"type": "address"
|
|
132
124
|
},
|
|
133
125
|
{
|
|
134
126
|
"indexed": false,
|
|
135
127
|
"internalType": "address",
|
|
136
|
-
"name": "
|
|
128
|
+
"name": "pt",
|
|
137
129
|
"type": "address"
|
|
138
130
|
},
|
|
139
131
|
{
|
|
@@ -146,6 +138,43 @@
|
|
|
146
138
|
"name": "BuyCrossChainPt",
|
|
147
139
|
"type": "event"
|
|
148
140
|
},
|
|
141
|
+
{
|
|
142
|
+
"anonymous": false,
|
|
143
|
+
"inputs": [
|
|
144
|
+
{
|
|
145
|
+
"indexed": true,
|
|
146
|
+
"internalType": "address",
|
|
147
|
+
"name": "owner",
|
|
148
|
+
"type": "address"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"indexed": false,
|
|
152
|
+
"internalType": "uint32",
|
|
153
|
+
"name": "boxId",
|
|
154
|
+
"type": "uint32"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"indexed": false,
|
|
158
|
+
"internalType": "bytes32",
|
|
159
|
+
"name": "actionHash",
|
|
160
|
+
"type": "bytes32"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"indexed": false,
|
|
164
|
+
"internalType": "address",
|
|
165
|
+
"name": "token",
|
|
166
|
+
"type": "address"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"indexed": false,
|
|
170
|
+
"internalType": "uint256",
|
|
171
|
+
"name": "amount",
|
|
172
|
+
"type": "uint256"
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
"name": "ClaimFeeForFailedAction",
|
|
176
|
+
"type": "event"
|
|
177
|
+
},
|
|
149
178
|
{
|
|
150
179
|
"anonymous": false,
|
|
151
180
|
"inputs": [],
|
|
@@ -203,25 +232,6 @@
|
|
|
203
232
|
"name": "SetExecutor",
|
|
204
233
|
"type": "event"
|
|
205
234
|
},
|
|
206
|
-
{
|
|
207
|
-
"anonymous": false,
|
|
208
|
-
"inputs": [
|
|
209
|
-
{
|
|
210
|
-
"indexed": true,
|
|
211
|
-
"internalType": "address",
|
|
212
|
-
"name": "validator",
|
|
213
|
-
"type": "address"
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
"indexed": false,
|
|
217
|
-
"internalType": "bool",
|
|
218
|
-
"name": "isValidator",
|
|
219
|
-
"type": "bool"
|
|
220
|
-
}
|
|
221
|
-
],
|
|
222
|
-
"name": "SetValidator",
|
|
223
|
-
"type": "event"
|
|
224
|
-
},
|
|
225
235
|
{
|
|
226
236
|
"anonymous": false,
|
|
227
237
|
"inputs": [
|
|
@@ -237,6 +247,12 @@
|
|
|
237
247
|
"name": "boxId",
|
|
238
248
|
"type": "uint32"
|
|
239
249
|
},
|
|
250
|
+
{
|
|
251
|
+
"indexed": false,
|
|
252
|
+
"internalType": "bytes32",
|
|
253
|
+
"name": "actionHash",
|
|
254
|
+
"type": "bytes32"
|
|
255
|
+
},
|
|
240
256
|
{
|
|
241
257
|
"indexed": false,
|
|
242
258
|
"internalType": "address",
|
|
@@ -249,6 +265,12 @@
|
|
|
249
265
|
"name": "amountSpent",
|
|
250
266
|
"type": "uint256"
|
|
251
267
|
},
|
|
268
|
+
{
|
|
269
|
+
"indexed": false,
|
|
270
|
+
"internalType": "uint256",
|
|
271
|
+
"name": "amountFee",
|
|
272
|
+
"type": "uint256"
|
|
273
|
+
},
|
|
252
274
|
{
|
|
253
275
|
"indexed": false,
|
|
254
276
|
"internalType": "address",
|
|
@@ -280,6 +302,12 @@
|
|
|
280
302
|
"name": "boxId",
|
|
281
303
|
"type": "uint32"
|
|
282
304
|
},
|
|
305
|
+
{
|
|
306
|
+
"indexed": false,
|
|
307
|
+
"internalType": "bytes32",
|
|
308
|
+
"name": "actionHash",
|
|
309
|
+
"type": "bytes32"
|
|
310
|
+
},
|
|
283
311
|
{
|
|
284
312
|
"indexed": false,
|
|
285
313
|
"internalType": "address",
|
|
@@ -295,13 +323,13 @@
|
|
|
295
323
|
{
|
|
296
324
|
"indexed": false,
|
|
297
325
|
"internalType": "uint256",
|
|
298
|
-
"name": "
|
|
326
|
+
"name": "amountWithdraw",
|
|
299
327
|
"type": "uint256"
|
|
300
328
|
},
|
|
301
329
|
{
|
|
302
330
|
"indexed": false,
|
|
303
331
|
"internalType": "uint256",
|
|
304
|
-
"name": "
|
|
332
|
+
"name": "amountFee",
|
|
305
333
|
"type": "uint256"
|
|
306
334
|
}
|
|
307
335
|
],
|
|
@@ -339,12 +367,246 @@
|
|
|
339
367
|
"name": "DEPOSIT_BOX_CODE_HASH",
|
|
340
368
|
"outputs": [
|
|
341
369
|
{
|
|
342
|
-
"internalType": "bytes32",
|
|
343
|
-
"name": "",
|
|
344
|
-
"type": "bytes32"
|
|
370
|
+
"internalType": "bytes32",
|
|
371
|
+
"name": "",
|
|
372
|
+
"type": "bytes32"
|
|
373
|
+
}
|
|
374
|
+
],
|
|
375
|
+
"stateMutability": "view",
|
|
376
|
+
"type": "function"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"inputs": [
|
|
380
|
+
{
|
|
381
|
+
"internalType": "bytes32",
|
|
382
|
+
"name": "actionStatus",
|
|
383
|
+
"type": "bytes32"
|
|
384
|
+
}
|
|
385
|
+
],
|
|
386
|
+
"name": "actionStatus",
|
|
387
|
+
"outputs": [
|
|
388
|
+
{
|
|
389
|
+
"internalType": "enum IPCrossChainSwapHub.ActionStatus",
|
|
390
|
+
"name": "",
|
|
391
|
+
"type": "uint8"
|
|
392
|
+
}
|
|
393
|
+
],
|
|
394
|
+
"stateMutability": "view",
|
|
395
|
+
"type": "function"
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"inputs": [
|
|
399
|
+
{
|
|
400
|
+
"components": [
|
|
401
|
+
{
|
|
402
|
+
"internalType": "address",
|
|
403
|
+
"name": "owner",
|
|
404
|
+
"type": "address"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"internalType": "uint32",
|
|
408
|
+
"name": "boxId",
|
|
409
|
+
"type": "uint32"
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"internalType": "uint256",
|
|
413
|
+
"name": "expiry",
|
|
414
|
+
"type": "uint256"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"internalType": "uint256",
|
|
418
|
+
"name": "nonce",
|
|
419
|
+
"type": "uint256"
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"internalType": "address",
|
|
423
|
+
"name": "token",
|
|
424
|
+
"type": "address"
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"internalType": "uint256",
|
|
428
|
+
"name": "amountBridge",
|
|
429
|
+
"type": "uint256"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"internalType": "uint256",
|
|
433
|
+
"name": "amountFee",
|
|
434
|
+
"type": "uint256"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"internalType": "address",
|
|
438
|
+
"name": "bridgeExtRouter",
|
|
439
|
+
"type": "address"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"internalType": "bytes",
|
|
443
|
+
"name": "bridgeCalldata",
|
|
444
|
+
"type": "bytes"
|
|
445
|
+
}
|
|
446
|
+
],
|
|
447
|
+
"internalType": "struct IPCrossChainSwapHub.BridgeTokenMessage",
|
|
448
|
+
"name": "message",
|
|
449
|
+
"type": "tuple"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"internalType": "bytes",
|
|
453
|
+
"name": "signature",
|
|
454
|
+
"type": "bytes"
|
|
455
|
+
}
|
|
456
|
+
],
|
|
457
|
+
"name": "bridgeToken",
|
|
458
|
+
"outputs": [],
|
|
459
|
+
"stateMutability": "payable",
|
|
460
|
+
"type": "function"
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"inputs": [
|
|
464
|
+
{
|
|
465
|
+
"components": [
|
|
466
|
+
{
|
|
467
|
+
"internalType": "address",
|
|
468
|
+
"name": "owner",
|
|
469
|
+
"type": "address"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"internalType": "uint32",
|
|
473
|
+
"name": "boxId",
|
|
474
|
+
"type": "uint32"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"internalType": "uint256",
|
|
478
|
+
"name": "expiry",
|
|
479
|
+
"type": "uint256"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"internalType": "uint256",
|
|
483
|
+
"name": "nonce",
|
|
484
|
+
"type": "uint256"
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"internalType": "address",
|
|
488
|
+
"name": "tokenSpent",
|
|
489
|
+
"type": "address"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"internalType": "uint256",
|
|
493
|
+
"name": "amountSpent",
|
|
494
|
+
"type": "uint256"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"internalType": "uint256",
|
|
498
|
+
"name": "amountFee",
|
|
499
|
+
"type": "uint256"
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"internalType": "address",
|
|
503
|
+
"name": "ptAdapter",
|
|
504
|
+
"type": "address"
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"internalType": "uint256",
|
|
508
|
+
"name": "minPtReceived",
|
|
509
|
+
"type": "uint256"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"internalType": "uint32",
|
|
513
|
+
"name": "dstEid",
|
|
514
|
+
"type": "uint32"
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"internalType": "bytes32",
|
|
518
|
+
"name": "receiver",
|
|
519
|
+
"type": "bytes32"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"internalType": "address",
|
|
523
|
+
"name": "swapExecutor",
|
|
524
|
+
"type": "address"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"internalType": "address",
|
|
528
|
+
"name": "swapExtRouter",
|
|
529
|
+
"type": "address"
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"internalType": "bytes",
|
|
533
|
+
"name": "swapCalldata",
|
|
534
|
+
"type": "bytes"
|
|
535
|
+
}
|
|
536
|
+
],
|
|
537
|
+
"internalType": "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
|
|
538
|
+
"name": "message",
|
|
539
|
+
"type": "tuple"
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"internalType": "bytes",
|
|
543
|
+
"name": "signature",
|
|
544
|
+
"type": "bytes"
|
|
545
|
+
}
|
|
546
|
+
],
|
|
547
|
+
"name": "buyCrossChainPt",
|
|
548
|
+
"outputs": [],
|
|
549
|
+
"stateMutability": "payable",
|
|
550
|
+
"type": "function"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"inputs": [
|
|
554
|
+
{
|
|
555
|
+
"components": [
|
|
556
|
+
{
|
|
557
|
+
"internalType": "address",
|
|
558
|
+
"name": "owner",
|
|
559
|
+
"type": "address"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"internalType": "uint32",
|
|
563
|
+
"name": "boxId",
|
|
564
|
+
"type": "uint32"
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"internalType": "uint256",
|
|
568
|
+
"name": "expiry",
|
|
569
|
+
"type": "uint256"
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"internalType": "uint256",
|
|
573
|
+
"name": "nonce",
|
|
574
|
+
"type": "uint256"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"internalType": "address",
|
|
578
|
+
"name": "receiver",
|
|
579
|
+
"type": "address"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"internalType": "address",
|
|
583
|
+
"name": "token",
|
|
584
|
+
"type": "address"
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"internalType": "uint256",
|
|
588
|
+
"name": "amountWithdraw",
|
|
589
|
+
"type": "uint256"
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"internalType": "uint256",
|
|
593
|
+
"name": "amountFee",
|
|
594
|
+
"type": "uint256"
|
|
595
|
+
}
|
|
596
|
+
],
|
|
597
|
+
"internalType": "struct IPCrossChainSwapHub.WithdrawTokenMessage",
|
|
598
|
+
"name": "message",
|
|
599
|
+
"type": "tuple"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"internalType": "bytes",
|
|
603
|
+
"name": "signature",
|
|
604
|
+
"type": "bytes"
|
|
345
605
|
}
|
|
346
606
|
],
|
|
347
|
-
"
|
|
607
|
+
"name": "claimFee",
|
|
608
|
+
"outputs": [],
|
|
609
|
+
"stateMutability": "nonpayable",
|
|
348
610
|
"type": "function"
|
|
349
611
|
},
|
|
350
612
|
{
|
|
@@ -378,12 +640,12 @@
|
|
|
378
640
|
},
|
|
379
641
|
{
|
|
380
642
|
"internalType": "uint256",
|
|
381
|
-
"name": "
|
|
643
|
+
"name": "amountBridge",
|
|
382
644
|
"type": "uint256"
|
|
383
645
|
},
|
|
384
646
|
{
|
|
385
647
|
"internalType": "uint256",
|
|
386
|
-
"name": "
|
|
648
|
+
"name": "amountFee",
|
|
387
649
|
"type": "uint256"
|
|
388
650
|
},
|
|
389
651
|
{
|
|
@@ -407,9 +669,9 @@
|
|
|
407
669
|
"type": "bytes"
|
|
408
670
|
}
|
|
409
671
|
],
|
|
410
|
-
"name": "
|
|
672
|
+
"name": "claimFee",
|
|
411
673
|
"outputs": [],
|
|
412
|
-
"stateMutability": "
|
|
674
|
+
"stateMutability": "nonpayable",
|
|
413
675
|
"type": "function"
|
|
414
676
|
},
|
|
415
677
|
{
|
|
@@ -428,12 +690,12 @@
|
|
|
428
690
|
},
|
|
429
691
|
{
|
|
430
692
|
"internalType": "uint256",
|
|
431
|
-
"name": "
|
|
693
|
+
"name": "expiry",
|
|
432
694
|
"type": "uint256"
|
|
433
695
|
},
|
|
434
696
|
{
|
|
435
697
|
"internalType": "uint256",
|
|
436
|
-
"name": "
|
|
698
|
+
"name": "nonce",
|
|
437
699
|
"type": "uint256"
|
|
438
700
|
},
|
|
439
701
|
{
|
|
@@ -443,13 +705,13 @@
|
|
|
443
705
|
},
|
|
444
706
|
{
|
|
445
707
|
"internalType": "uint256",
|
|
446
|
-
"name": "
|
|
708
|
+
"name": "amountSpent",
|
|
447
709
|
"type": "uint256"
|
|
448
710
|
},
|
|
449
711
|
{
|
|
450
|
-
"internalType": "
|
|
451
|
-
"name": "
|
|
452
|
-
"type": "
|
|
712
|
+
"internalType": "uint256",
|
|
713
|
+
"name": "amountFee",
|
|
714
|
+
"type": "uint256"
|
|
453
715
|
},
|
|
454
716
|
{
|
|
455
717
|
"internalType": "address",
|
|
@@ -463,35 +725,73 @@
|
|
|
463
725
|
},
|
|
464
726
|
{
|
|
465
727
|
"internalType": "uint32",
|
|
466
|
-
"name": "
|
|
728
|
+
"name": "dstEid",
|
|
467
729
|
"type": "uint32"
|
|
468
730
|
},
|
|
469
731
|
{
|
|
470
732
|
"internalType": "bytes32",
|
|
471
733
|
"name": "receiver",
|
|
472
734
|
"type": "bytes32"
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
"internalType": "address",
|
|
738
|
+
"name": "swapExecutor",
|
|
739
|
+
"type": "address"
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"internalType": "address",
|
|
743
|
+
"name": "swapExtRouter",
|
|
744
|
+
"type": "address"
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
"internalType": "bytes",
|
|
748
|
+
"name": "swapCalldata",
|
|
749
|
+
"type": "bytes"
|
|
473
750
|
}
|
|
474
751
|
],
|
|
475
|
-
"internalType": "struct IPCrossChainSwapHub.
|
|
476
|
-
"name": "
|
|
752
|
+
"internalType": "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
|
|
753
|
+
"name": "message",
|
|
477
754
|
"type": "tuple"
|
|
478
755
|
},
|
|
479
756
|
{
|
|
480
757
|
"internalType": "bytes",
|
|
481
|
-
"name": "
|
|
758
|
+
"name": "signature",
|
|
482
759
|
"type": "bytes"
|
|
483
|
-
}
|
|
760
|
+
}
|
|
761
|
+
],
|
|
762
|
+
"name": "claimFee",
|
|
763
|
+
"outputs": [],
|
|
764
|
+
"stateMutability": "nonpayable",
|
|
765
|
+
"type": "function"
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"inputs": [
|
|
484
769
|
{
|
|
485
770
|
"components": [
|
|
486
771
|
{
|
|
487
772
|
"internalType": "address",
|
|
488
|
-
"name": "
|
|
773
|
+
"name": "owner",
|
|
489
774
|
"type": "address"
|
|
490
775
|
},
|
|
491
776
|
{
|
|
492
|
-
"internalType": "
|
|
493
|
-
"name": "
|
|
494
|
-
"type": "
|
|
777
|
+
"internalType": "uint32",
|
|
778
|
+
"name": "boxId",
|
|
779
|
+
"type": "uint32"
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
"internalType": "uint256",
|
|
783
|
+
"name": "expiry",
|
|
784
|
+
"type": "uint256"
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
"internalType": "uint256",
|
|
788
|
+
"name": "nonce",
|
|
789
|
+
"type": "uint256"
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
"internalType": "address",
|
|
793
|
+
"name": "tokenSpent",
|
|
794
|
+
"type": "address"
|
|
495
795
|
},
|
|
496
796
|
{
|
|
497
797
|
"internalType": "uint256",
|
|
@@ -500,9 +800,24 @@
|
|
|
500
800
|
},
|
|
501
801
|
{
|
|
502
802
|
"internalType": "uint256",
|
|
503
|
-
"name": "
|
|
803
|
+
"name": "amountFee",
|
|
804
|
+
"type": "uint256"
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
"internalType": "address",
|
|
808
|
+
"name": "tokenReceived",
|
|
809
|
+
"type": "address"
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
"internalType": "uint256",
|
|
813
|
+
"name": "minReceived",
|
|
504
814
|
"type": "uint256"
|
|
505
815
|
},
|
|
816
|
+
{
|
|
817
|
+
"internalType": "address",
|
|
818
|
+
"name": "receiver",
|
|
819
|
+
"type": "address"
|
|
820
|
+
},
|
|
506
821
|
{
|
|
507
822
|
"internalType": "address",
|
|
508
823
|
"name": "swapExecutor",
|
|
@@ -517,26 +832,21 @@
|
|
|
517
832
|
"internalType": "bytes",
|
|
518
833
|
"name": "swapCalldata",
|
|
519
834
|
"type": "bytes"
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
"internalType": "uint256",
|
|
523
|
-
"name": "expiry",
|
|
524
|
-
"type": "uint256"
|
|
525
835
|
}
|
|
526
836
|
],
|
|
527
|
-
"internalType": "struct IPCrossChainSwapHub.
|
|
528
|
-
"name": "
|
|
837
|
+
"internalType": "struct IPCrossChainSwapHub.SwapTokenMessage",
|
|
838
|
+
"name": "message",
|
|
529
839
|
"type": "tuple"
|
|
530
840
|
},
|
|
531
841
|
{
|
|
532
842
|
"internalType": "bytes",
|
|
533
|
-
"name": "
|
|
843
|
+
"name": "signature",
|
|
534
844
|
"type": "bytes"
|
|
535
845
|
}
|
|
536
846
|
],
|
|
537
|
-
"name": "
|
|
847
|
+
"name": "claimFee",
|
|
538
848
|
"outputs": [],
|
|
539
|
-
"stateMutability": "
|
|
849
|
+
"stateMutability": "nonpayable",
|
|
540
850
|
"type": "function"
|
|
541
851
|
},
|
|
542
852
|
{
|
|
@@ -652,76 +962,25 @@
|
|
|
652
962
|
"name": "amountSpent",
|
|
653
963
|
"type": "uint256"
|
|
654
964
|
},
|
|
655
|
-
{
|
|
656
|
-
"internalType": "address",
|
|
657
|
-
"name": "tokenReceived",
|
|
658
|
-
"type": "address"
|
|
659
|
-
},
|
|
660
|
-
{
|
|
661
|
-
"internalType": "uint256",
|
|
662
|
-
"name": "minReceived",
|
|
663
|
-
"type": "uint256"
|
|
664
|
-
},
|
|
665
965
|
{
|
|
666
966
|
"internalType": "uint256",
|
|
667
|
-
"name": "
|
|
967
|
+
"name": "amountFee",
|
|
668
968
|
"type": "uint256"
|
|
669
969
|
},
|
|
670
970
|
{
|
|
671
971
|
"internalType": "address",
|
|
672
|
-
"name": "
|
|
673
|
-
"type": "address"
|
|
674
|
-
},
|
|
675
|
-
{
|
|
676
|
-
"internalType": "address",
|
|
677
|
-
"name": "swapExtRouter",
|
|
678
|
-
"type": "address"
|
|
679
|
-
},
|
|
680
|
-
{
|
|
681
|
-
"internalType": "bytes",
|
|
682
|
-
"name": "swapCalldata",
|
|
683
|
-
"type": "bytes"
|
|
684
|
-
}
|
|
685
|
-
],
|
|
686
|
-
"internalType": "struct IPCrossChainSwapHub.SwapTokenMessage",
|
|
687
|
-
"name": "message",
|
|
688
|
-
"type": "tuple"
|
|
689
|
-
}
|
|
690
|
-
],
|
|
691
|
-
"name": "hashTypedData",
|
|
692
|
-
"outputs": [
|
|
693
|
-
{
|
|
694
|
-
"internalType": "bytes32",
|
|
695
|
-
"name": "",
|
|
696
|
-
"type": "bytes32"
|
|
697
|
-
}
|
|
698
|
-
],
|
|
699
|
-
"stateMutability": "view",
|
|
700
|
-
"type": "function"
|
|
701
|
-
},
|
|
702
|
-
{
|
|
703
|
-
"inputs": [
|
|
704
|
-
{
|
|
705
|
-
"components": [
|
|
706
|
-
{
|
|
707
|
-
"internalType": "address",
|
|
708
|
-
"name": "validator",
|
|
972
|
+
"name": "tokenReceived",
|
|
709
973
|
"type": "address"
|
|
710
974
|
},
|
|
711
|
-
{
|
|
712
|
-
"internalType": "bytes32",
|
|
713
|
-
"name": "intentHash",
|
|
714
|
-
"type": "bytes32"
|
|
715
|
-
},
|
|
716
975
|
{
|
|
717
976
|
"internalType": "uint256",
|
|
718
|
-
"name": "
|
|
977
|
+
"name": "minReceived",
|
|
719
978
|
"type": "uint256"
|
|
720
979
|
},
|
|
721
980
|
{
|
|
722
|
-
"internalType": "
|
|
723
|
-
"name": "
|
|
724
|
-
"type": "
|
|
981
|
+
"internalType": "address",
|
|
982
|
+
"name": "receiver",
|
|
983
|
+
"type": "address"
|
|
725
984
|
},
|
|
726
985
|
{
|
|
727
986
|
"internalType": "address",
|
|
@@ -737,14 +996,9 @@
|
|
|
737
996
|
"internalType": "bytes",
|
|
738
997
|
"name": "swapCalldata",
|
|
739
998
|
"type": "bytes"
|
|
740
|
-
},
|
|
741
|
-
{
|
|
742
|
-
"internalType": "uint256",
|
|
743
|
-
"name": "expiry",
|
|
744
|
-
"type": "uint256"
|
|
745
999
|
}
|
|
746
1000
|
],
|
|
747
|
-
"internalType": "struct IPCrossChainSwapHub.
|
|
1001
|
+
"internalType": "struct IPCrossChainSwapHub.SwapTokenMessage",
|
|
748
1002
|
"name": "message",
|
|
749
1003
|
"type": "tuple"
|
|
750
1004
|
}
|
|
@@ -776,12 +1030,12 @@
|
|
|
776
1030
|
},
|
|
777
1031
|
{
|
|
778
1032
|
"internalType": "uint256",
|
|
779
|
-
"name": "
|
|
1033
|
+
"name": "expiry",
|
|
780
1034
|
"type": "uint256"
|
|
781
1035
|
},
|
|
782
1036
|
{
|
|
783
1037
|
"internalType": "uint256",
|
|
784
|
-
"name": "
|
|
1038
|
+
"name": "nonce",
|
|
785
1039
|
"type": "uint256"
|
|
786
1040
|
},
|
|
787
1041
|
{
|
|
@@ -791,13 +1045,13 @@
|
|
|
791
1045
|
},
|
|
792
1046
|
{
|
|
793
1047
|
"internalType": "uint256",
|
|
794
|
-
"name": "
|
|
1048
|
+
"name": "amountSpent",
|
|
795
1049
|
"type": "uint256"
|
|
796
1050
|
},
|
|
797
1051
|
{
|
|
798
|
-
"internalType": "
|
|
799
|
-
"name": "
|
|
800
|
-
"type": "
|
|
1052
|
+
"internalType": "uint256",
|
|
1053
|
+
"name": "amountFee",
|
|
1054
|
+
"type": "uint256"
|
|
801
1055
|
},
|
|
802
1056
|
{
|
|
803
1057
|
"internalType": "address",
|
|
@@ -811,17 +1065,32 @@
|
|
|
811
1065
|
},
|
|
812
1066
|
{
|
|
813
1067
|
"internalType": "uint32",
|
|
814
|
-
"name": "
|
|
1068
|
+
"name": "dstEid",
|
|
815
1069
|
"type": "uint32"
|
|
816
1070
|
},
|
|
817
1071
|
{
|
|
818
1072
|
"internalType": "bytes32",
|
|
819
1073
|
"name": "receiver",
|
|
820
1074
|
"type": "bytes32"
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
"internalType": "address",
|
|
1078
|
+
"name": "swapExecutor",
|
|
1079
|
+
"type": "address"
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
"internalType": "address",
|
|
1083
|
+
"name": "swapExtRouter",
|
|
1084
|
+
"type": "address"
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
"internalType": "bytes",
|
|
1088
|
+
"name": "swapCalldata",
|
|
1089
|
+
"type": "bytes"
|
|
821
1090
|
}
|
|
822
1091
|
],
|
|
823
|
-
"internalType": "struct IPCrossChainSwapHub.
|
|
824
|
-
"name": "
|
|
1092
|
+
"internalType": "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
|
|
1093
|
+
"name": "message",
|
|
825
1094
|
"type": "tuple"
|
|
826
1095
|
}
|
|
827
1096
|
],
|
|
@@ -867,12 +1136,12 @@
|
|
|
867
1136
|
},
|
|
868
1137
|
{
|
|
869
1138
|
"internalType": "uint256",
|
|
870
|
-
"name": "
|
|
1139
|
+
"name": "amountBridge",
|
|
871
1140
|
"type": "uint256"
|
|
872
1141
|
},
|
|
873
1142
|
{
|
|
874
1143
|
"internalType": "uint256",
|
|
875
|
-
"name": "
|
|
1144
|
+
"name": "amountFee",
|
|
876
1145
|
"type": "uint256"
|
|
877
1146
|
},
|
|
878
1147
|
{
|
|
@@ -938,12 +1207,12 @@
|
|
|
938
1207
|
},
|
|
939
1208
|
{
|
|
940
1209
|
"internalType": "uint256",
|
|
941
|
-
"name": "
|
|
1210
|
+
"name": "amountWithdraw",
|
|
942
1211
|
"type": "uint256"
|
|
943
1212
|
},
|
|
944
1213
|
{
|
|
945
1214
|
"internalType": "uint256",
|
|
946
|
-
"name": "
|
|
1215
|
+
"name": "amountFee",
|
|
947
1216
|
"type": "uint256"
|
|
948
1217
|
}
|
|
949
1218
|
],
|
|
@@ -982,44 +1251,6 @@
|
|
|
982
1251
|
"stateMutability": "view",
|
|
983
1252
|
"type": "function"
|
|
984
1253
|
},
|
|
985
|
-
{
|
|
986
|
-
"inputs": [
|
|
987
|
-
{
|
|
988
|
-
"internalType": "bytes32",
|
|
989
|
-
"name": "intentHash",
|
|
990
|
-
"type": "bytes32"
|
|
991
|
-
}
|
|
992
|
-
],
|
|
993
|
-
"name": "isIntentExecuted",
|
|
994
|
-
"outputs": [
|
|
995
|
-
{
|
|
996
|
-
"internalType": "bool",
|
|
997
|
-
"name": "",
|
|
998
|
-
"type": "bool"
|
|
999
|
-
}
|
|
1000
|
-
],
|
|
1001
|
-
"stateMutability": "view",
|
|
1002
|
-
"type": "function"
|
|
1003
|
-
},
|
|
1004
|
-
{
|
|
1005
|
-
"inputs": [
|
|
1006
|
-
{
|
|
1007
|
-
"internalType": "address",
|
|
1008
|
-
"name": "validator",
|
|
1009
|
-
"type": "address"
|
|
1010
|
-
}
|
|
1011
|
-
],
|
|
1012
|
-
"name": "isValidator",
|
|
1013
|
-
"outputs": [
|
|
1014
|
-
{
|
|
1015
|
-
"internalType": "bool",
|
|
1016
|
-
"name": "",
|
|
1017
|
-
"type": "bool"
|
|
1018
|
-
}
|
|
1019
|
-
],
|
|
1020
|
-
"stateMutability": "view",
|
|
1021
|
-
"type": "function"
|
|
1022
|
-
},
|
|
1023
1254
|
{
|
|
1024
1255
|
"inputs": [],
|
|
1025
1256
|
"name": "owner",
|
|
@@ -1083,24 +1314,6 @@
|
|
|
1083
1314
|
"stateMutability": "nonpayable",
|
|
1084
1315
|
"type": "function"
|
|
1085
1316
|
},
|
|
1086
|
-
{
|
|
1087
|
-
"inputs": [
|
|
1088
|
-
{
|
|
1089
|
-
"internalType": "address",
|
|
1090
|
-
"name": "validator",
|
|
1091
|
-
"type": "address"
|
|
1092
|
-
},
|
|
1093
|
-
{
|
|
1094
|
-
"internalType": "bool",
|
|
1095
|
-
"name": "isValidator_",
|
|
1096
|
-
"type": "bool"
|
|
1097
|
-
}
|
|
1098
|
-
],
|
|
1099
|
-
"name": "setValidator",
|
|
1100
|
-
"outputs": [],
|
|
1101
|
-
"stateMutability": "nonpayable",
|
|
1102
|
-
"type": "function"
|
|
1103
|
-
},
|
|
1104
1317
|
{
|
|
1105
1318
|
"inputs": [
|
|
1106
1319
|
{
|
|
@@ -1135,6 +1348,11 @@
|
|
|
1135
1348
|
"name": "amountSpent",
|
|
1136
1349
|
"type": "uint256"
|
|
1137
1350
|
},
|
|
1351
|
+
{
|
|
1352
|
+
"internalType": "uint256",
|
|
1353
|
+
"name": "amountFee",
|
|
1354
|
+
"type": "uint256"
|
|
1355
|
+
},
|
|
1138
1356
|
{
|
|
1139
1357
|
"internalType": "address",
|
|
1140
1358
|
"name": "tokenReceived",
|
|
@@ -1146,9 +1364,9 @@
|
|
|
1146
1364
|
"type": "uint256"
|
|
1147
1365
|
},
|
|
1148
1366
|
{
|
|
1149
|
-
"internalType": "
|
|
1150
|
-
"name": "
|
|
1151
|
-
"type": "
|
|
1367
|
+
"internalType": "address",
|
|
1368
|
+
"name": "receiver",
|
|
1369
|
+
"type": "address"
|
|
1152
1370
|
},
|
|
1153
1371
|
{
|
|
1154
1372
|
"internalType": "address",
|
|
@@ -1240,12 +1458,12 @@
|
|
|
1240
1458
|
},
|
|
1241
1459
|
{
|
|
1242
1460
|
"internalType": "uint256",
|
|
1243
|
-
"name": "
|
|
1461
|
+
"name": "amountWithdraw",
|
|
1244
1462
|
"type": "uint256"
|
|
1245
1463
|
},
|
|
1246
1464
|
{
|
|
1247
1465
|
"internalType": "uint256",
|
|
1248
|
-
"name": "
|
|
1466
|
+
"name": "amountFee",
|
|
1249
1467
|
"type": "uint256"
|
|
1250
1468
|
}
|
|
1251
1469
|
],
|