@pendle/sdk-boros 1.1.44 → 1.1.45-parsebungeev2-20260324055437

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @pendle/sdk-boros
2
2
 
3
+ ## 1.1.45-parsebungeev2-20260324055437
4
+
5
+ ### Patch Changes
6
+
7
+ - 18877d3: Add Bungee calldata validation for deposit security
8
+
3
9
  ## 1.1.44
4
10
 
5
11
  ### Patch Changes
@@ -0,0 +1,756 @@
1
+ export declare const iBungeeInboxAbi: readonly [{
2
+ readonly inputs: readonly [{
3
+ readonly internalType: "address";
4
+ readonly name: "_owner";
5
+ readonly type: "address";
6
+ }, {
7
+ readonly internalType: "address";
8
+ readonly name: "_permit2";
9
+ readonly type: "address";
10
+ }, {
11
+ readonly internalType: "address";
12
+ readonly name: "_bungeeGateway";
13
+ readonly type: "address";
14
+ }, {
15
+ readonly internalType: "address payable";
16
+ readonly name: "_wrappedNativeToken";
17
+ readonly type: "address";
18
+ }];
19
+ readonly stateMutability: "nonpayable";
20
+ readonly type: "constructor";
21
+ }, {
22
+ readonly inputs: readonly [];
23
+ readonly name: "InvalidChainId";
24
+ readonly type: "error";
25
+ }, {
26
+ readonly inputs: readonly [];
27
+ readonly name: "InvalidMsgValue";
28
+ readonly type: "error";
29
+ }, {
30
+ readonly inputs: readonly [];
31
+ readonly name: "InvalidNonce";
32
+ readonly type: "error";
33
+ }, {
34
+ readonly inputs: readonly [];
35
+ readonly name: "InvalidReceiver";
36
+ readonly type: "error";
37
+ }, {
38
+ readonly inputs: readonly [];
39
+ readonly name: "InvalidSender";
40
+ readonly type: "error";
41
+ }, {
42
+ readonly inputs: readonly [];
43
+ readonly name: "InvalidTokenAddress";
44
+ readonly type: "error";
45
+ }, {
46
+ readonly inputs: readonly [{
47
+ readonly internalType: "bytes32";
48
+ readonly name: "role";
49
+ readonly type: "bytes32";
50
+ }];
51
+ readonly name: "NoPermit";
52
+ readonly type: "error";
53
+ }, {
54
+ readonly inputs: readonly [];
55
+ readonly name: "OnlyNominee";
56
+ readonly type: "error";
57
+ }, {
58
+ readonly inputs: readonly [];
59
+ readonly name: "OnlyOwner";
60
+ readonly type: "error";
61
+ }, {
62
+ readonly inputs: readonly [];
63
+ readonly name: "RequestAlreadyFulfilled";
64
+ readonly type: "error";
65
+ }, {
66
+ readonly inputs: readonly [];
67
+ readonly name: "RequestAlreadyWithdraw";
68
+ readonly type: "error";
69
+ }, {
70
+ readonly inputs: readonly [];
71
+ readonly name: "RequestDoesNotExist";
72
+ readonly type: "error";
73
+ }, {
74
+ readonly inputs: readonly [];
75
+ readonly name: "RequestNotWithdrawn";
76
+ readonly type: "error";
77
+ }, {
78
+ readonly inputs: readonly [];
79
+ readonly name: "TransferFailed";
80
+ readonly type: "error";
81
+ }, {
82
+ readonly inputs: readonly [];
83
+ readonly name: "TransferFailed";
84
+ readonly type: "error";
85
+ }, {
86
+ readonly inputs: readonly [];
87
+ readonly name: "WrongAffiliateFeeLength";
88
+ readonly type: "error";
89
+ }, {
90
+ readonly inputs: readonly [];
91
+ readonly name: "ZeroAddress";
92
+ readonly type: "error";
93
+ }, {
94
+ readonly anonymous: false;
95
+ readonly inputs: readonly [{
96
+ readonly indexed: true;
97
+ readonly internalType: "address";
98
+ readonly name: "claimer";
99
+ readonly type: "address";
100
+ }];
101
+ readonly name: "OwnerClaimed";
102
+ readonly type: "event";
103
+ }, {
104
+ readonly anonymous: false;
105
+ readonly inputs: readonly [{
106
+ readonly indexed: true;
107
+ readonly internalType: "address";
108
+ readonly name: "nominee";
109
+ readonly type: "address";
110
+ }];
111
+ readonly name: "OwnerNominated";
112
+ readonly type: "event";
113
+ }, {
114
+ readonly anonymous: false;
115
+ readonly inputs: readonly [{
116
+ readonly indexed: true;
117
+ readonly internalType: "bytes32";
118
+ readonly name: "role";
119
+ readonly type: "bytes32";
120
+ }, {
121
+ readonly indexed: true;
122
+ readonly internalType: "address";
123
+ readonly name: "grantee";
124
+ readonly type: "address";
125
+ }];
126
+ readonly name: "RoleGranted";
127
+ readonly type: "event";
128
+ }, {
129
+ readonly anonymous: false;
130
+ readonly inputs: readonly [{
131
+ readonly indexed: true;
132
+ readonly internalType: "bytes32";
133
+ readonly name: "role";
134
+ readonly type: "bytes32";
135
+ }, {
136
+ readonly indexed: true;
137
+ readonly internalType: "address";
138
+ readonly name: "revokee";
139
+ readonly type: "address";
140
+ }];
141
+ readonly name: "RoleRevoked";
142
+ readonly type: "event";
143
+ }, {
144
+ readonly anonymous: false;
145
+ readonly inputs: readonly [{
146
+ readonly indexed: true;
147
+ readonly internalType: "bytes32";
148
+ readonly name: "requestHash";
149
+ readonly type: "bytes32";
150
+ }, {
151
+ readonly indexed: false;
152
+ readonly internalType: "address";
153
+ readonly name: "refundAddress";
154
+ readonly type: "address";
155
+ }, {
156
+ readonly indexed: false;
157
+ readonly internalType: "bytes";
158
+ readonly name: "request";
159
+ readonly type: "bytes";
160
+ }];
161
+ readonly name: "SingleOutputRequestCreated";
162
+ readonly type: "event";
163
+ }, {
164
+ readonly anonymous: false;
165
+ readonly inputs: readonly [{
166
+ readonly indexed: true;
167
+ readonly internalType: "bytes32";
168
+ readonly name: "requestHash";
169
+ readonly type: "bytes32";
170
+ }];
171
+ readonly name: "SingleOutputRequestWithdrawn";
172
+ readonly type: "event";
173
+ }, {
174
+ readonly anonymous: false;
175
+ readonly inputs: readonly [{
176
+ readonly indexed: true;
177
+ readonly internalType: "bytes32";
178
+ readonly name: "requestHash";
179
+ readonly type: "bytes32";
180
+ }, {
181
+ readonly indexed: false;
182
+ readonly internalType: "address";
183
+ readonly name: "refundAddress";
184
+ readonly type: "address";
185
+ }, {
186
+ readonly indexed: false;
187
+ readonly internalType: "bytes";
188
+ readonly name: "request";
189
+ readonly type: "bytes";
190
+ }];
191
+ readonly name: "SwapRequestCreated";
192
+ readonly type: "event";
193
+ }, {
194
+ readonly anonymous: false;
195
+ readonly inputs: readonly [{
196
+ readonly indexed: true;
197
+ readonly internalType: "bytes32";
198
+ readonly name: "requestHash";
199
+ readonly type: "bytes32";
200
+ }];
201
+ readonly name: "SwapRequestWithdrawn";
202
+ readonly type: "event";
203
+ }, {
204
+ readonly inputs: readonly [];
205
+ readonly name: "BUNGEE_GATEWAY";
206
+ readonly outputs: readonly [{
207
+ readonly internalType: "contract IBungeeGateway";
208
+ readonly name: "";
209
+ readonly type: "address";
210
+ }];
211
+ readonly stateMutability: "view";
212
+ readonly type: "function";
213
+ }, {
214
+ readonly inputs: readonly [];
215
+ readonly name: "NATIVE_TOKEN_ADDRESS";
216
+ readonly outputs: readonly [{
217
+ readonly internalType: "address";
218
+ readonly name: "";
219
+ readonly type: "address";
220
+ }];
221
+ readonly stateMutability: "view";
222
+ readonly type: "function";
223
+ }, {
224
+ readonly inputs: readonly [];
225
+ readonly name: "PERMIT2";
226
+ readonly outputs: readonly [{
227
+ readonly internalType: "contract IPermit2";
228
+ readonly name: "";
229
+ readonly type: "address";
230
+ }];
231
+ readonly stateMutability: "view";
232
+ readonly type: "function";
233
+ }, {
234
+ readonly inputs: readonly [];
235
+ readonly name: "WRAPPED_NATIVE_TOKEN";
236
+ readonly outputs: readonly [{
237
+ readonly internalType: "contract WETH";
238
+ readonly name: "";
239
+ readonly type: "address";
240
+ }];
241
+ readonly stateMutability: "view";
242
+ readonly type: "function";
243
+ }, {
244
+ readonly inputs: readonly [];
245
+ readonly name: "claimOwner";
246
+ readonly outputs: readonly [];
247
+ readonly stateMutability: "nonpayable";
248
+ readonly type: "function";
249
+ }, {
250
+ readonly inputs: readonly [{
251
+ readonly components: readonly [{
252
+ readonly components: readonly [{
253
+ readonly internalType: "uint256";
254
+ readonly name: "originChainId";
255
+ readonly type: "uint256";
256
+ }, {
257
+ readonly internalType: "uint256";
258
+ readonly name: "destinationChainId";
259
+ readonly type: "uint256";
260
+ }, {
261
+ readonly internalType: "uint256";
262
+ readonly name: "deadline";
263
+ readonly type: "uint256";
264
+ }, {
265
+ readonly internalType: "uint256";
266
+ readonly name: "nonce";
267
+ readonly type: "uint256";
268
+ }, {
269
+ readonly internalType: "address";
270
+ readonly name: "sender";
271
+ readonly type: "address";
272
+ }, {
273
+ readonly internalType: "address";
274
+ readonly name: "receiver";
275
+ readonly type: "address";
276
+ }, {
277
+ readonly internalType: "address";
278
+ readonly name: "delegate";
279
+ readonly type: "address";
280
+ }, {
281
+ readonly internalType: "address";
282
+ readonly name: "bungeeGateway";
283
+ readonly type: "address";
284
+ }, {
285
+ readonly internalType: "uint32";
286
+ readonly name: "switchboardId";
287
+ readonly type: "uint32";
288
+ }, {
289
+ readonly internalType: "address";
290
+ readonly name: "inputToken";
291
+ readonly type: "address";
292
+ }, {
293
+ readonly internalType: "uint256";
294
+ readonly name: "inputAmount";
295
+ readonly type: "uint256";
296
+ }, {
297
+ readonly internalType: "address";
298
+ readonly name: "outputToken";
299
+ readonly type: "address";
300
+ }, {
301
+ readonly internalType: "uint256";
302
+ readonly name: "minOutputAmount";
303
+ readonly type: "uint256";
304
+ }, {
305
+ readonly internalType: "uint256";
306
+ readonly name: "refuelAmount";
307
+ readonly type: "uint256";
308
+ }];
309
+ readonly internalType: "struct BasicRequest";
310
+ readonly name: "basicReq";
311
+ readonly type: "tuple";
312
+ }, {
313
+ readonly internalType: "address";
314
+ readonly name: "swapOutputToken";
315
+ readonly type: "address";
316
+ }, {
317
+ readonly internalType: "uint256";
318
+ readonly name: "minSwapOutput";
319
+ readonly type: "uint256";
320
+ }, {
321
+ readonly internalType: "bytes32";
322
+ readonly name: "metadata";
323
+ readonly type: "bytes32";
324
+ }, {
325
+ readonly internalType: "bytes";
326
+ readonly name: "affiliateFees";
327
+ readonly type: "bytes";
328
+ }, {
329
+ readonly internalType: "uint256";
330
+ readonly name: "minDestGas";
331
+ readonly type: "uint256";
332
+ }, {
333
+ readonly internalType: "bytes";
334
+ readonly name: "destinationPayload";
335
+ readonly type: "bytes";
336
+ }, {
337
+ readonly internalType: "address";
338
+ readonly name: "exclusiveTransmitter";
339
+ readonly type: "address";
340
+ }];
341
+ readonly internalType: "struct Request";
342
+ readonly name: "singleOutputRequest";
343
+ readonly type: "tuple";
344
+ }, {
345
+ readonly internalType: "address";
346
+ readonly name: "refundAddress";
347
+ readonly type: "address";
348
+ }];
349
+ readonly name: "createRequest";
350
+ readonly outputs: readonly [];
351
+ readonly stateMutability: "payable";
352
+ readonly type: "function";
353
+ }, {
354
+ readonly inputs: readonly [{
355
+ readonly components: readonly [{
356
+ readonly components: readonly [{
357
+ readonly internalType: "uint256";
358
+ readonly name: "chainId";
359
+ readonly type: "uint256";
360
+ }, {
361
+ readonly internalType: "uint256";
362
+ readonly name: "deadline";
363
+ readonly type: "uint256";
364
+ }, {
365
+ readonly internalType: "uint256";
366
+ readonly name: "nonce";
367
+ readonly type: "uint256";
368
+ }, {
369
+ readonly internalType: "address";
370
+ readonly name: "sender";
371
+ readonly type: "address";
372
+ }, {
373
+ readonly internalType: "address";
374
+ readonly name: "receiver";
375
+ readonly type: "address";
376
+ }, {
377
+ readonly internalType: "address";
378
+ readonly name: "bungeeGateway";
379
+ readonly type: "address";
380
+ }, {
381
+ readonly internalType: "address";
382
+ readonly name: "inputToken";
383
+ readonly type: "address";
384
+ }, {
385
+ readonly internalType: "uint256";
386
+ readonly name: "inputAmount";
387
+ readonly type: "uint256";
388
+ }, {
389
+ readonly internalType: "address";
390
+ readonly name: "outputToken";
391
+ readonly type: "address";
392
+ }, {
393
+ readonly internalType: "uint256";
394
+ readonly name: "minOutputAmount";
395
+ readonly type: "uint256";
396
+ }];
397
+ readonly internalType: "struct BasicRequest";
398
+ readonly name: "basicReq";
399
+ readonly type: "tuple";
400
+ }, {
401
+ readonly internalType: "bytes32";
402
+ readonly name: "metadata";
403
+ readonly type: "bytes32";
404
+ }, {
405
+ readonly internalType: "bytes";
406
+ readonly name: "affiliateFees";
407
+ readonly type: "bytes";
408
+ }, {
409
+ readonly internalType: "uint256";
410
+ readonly name: "minDestGas";
411
+ readonly type: "uint256";
412
+ }, {
413
+ readonly internalType: "bytes";
414
+ readonly name: "destinationPayload";
415
+ readonly type: "bytes";
416
+ }, {
417
+ readonly internalType: "address";
418
+ readonly name: "exclusiveTransmitter";
419
+ readonly type: "address";
420
+ }];
421
+ readonly internalType: "struct Request";
422
+ readonly name: "swapRequest";
423
+ readonly type: "tuple";
424
+ }, {
425
+ readonly internalType: "address";
426
+ readonly name: "refundAddress";
427
+ readonly type: "address";
428
+ }];
429
+ readonly name: "createRequest";
430
+ readonly outputs: readonly [];
431
+ readonly stateMutability: "payable";
432
+ readonly type: "function";
433
+ }, {
434
+ readonly inputs: readonly [{
435
+ readonly internalType: "bytes32";
436
+ readonly name: "role_";
437
+ readonly type: "bytes32";
438
+ }, {
439
+ readonly internalType: "address";
440
+ readonly name: "grantee_";
441
+ readonly type: "address";
442
+ }];
443
+ readonly name: "grantRole";
444
+ readonly outputs: readonly [];
445
+ readonly stateMutability: "nonpayable";
446
+ readonly type: "function";
447
+ }, {
448
+ readonly inputs: readonly [{
449
+ readonly internalType: "bytes32";
450
+ readonly name: "role_";
451
+ readonly type: "bytes32";
452
+ }, {
453
+ readonly internalType: "address";
454
+ readonly name: "address_";
455
+ readonly type: "address";
456
+ }];
457
+ readonly name: "hasRole";
458
+ readonly outputs: readonly [{
459
+ readonly internalType: "bool";
460
+ readonly name: "";
461
+ readonly type: "bool";
462
+ }];
463
+ readonly stateMutability: "view";
464
+ readonly type: "function";
465
+ }, {
466
+ readonly inputs: readonly [{
467
+ readonly internalType: "bytes32";
468
+ readonly name: "_hash";
469
+ readonly type: "bytes32";
470
+ }, {
471
+ readonly internalType: "bytes";
472
+ readonly name: "_signature";
473
+ readonly type: "bytes";
474
+ }];
475
+ readonly name: "isValidSignature";
476
+ readonly outputs: readonly [{
477
+ readonly internalType: "bytes4";
478
+ readonly name: "magicValue";
479
+ readonly type: "bytes4";
480
+ }];
481
+ readonly stateMutability: "view";
482
+ readonly type: "function";
483
+ }, {
484
+ readonly inputs: readonly [{
485
+ readonly internalType: "address";
486
+ readonly name: "nominee_";
487
+ readonly type: "address";
488
+ }];
489
+ readonly name: "nominateOwner";
490
+ readonly outputs: readonly [];
491
+ readonly stateMutability: "nonpayable";
492
+ readonly type: "function";
493
+ }, {
494
+ readonly inputs: readonly [];
495
+ readonly name: "nominee";
496
+ readonly outputs: readonly [{
497
+ readonly internalType: "address";
498
+ readonly name: "";
499
+ readonly type: "address";
500
+ }];
501
+ readonly stateMutability: "view";
502
+ readonly type: "function";
503
+ }, {
504
+ readonly inputs: readonly [];
505
+ readonly name: "owner";
506
+ readonly outputs: readonly [{
507
+ readonly internalType: "address";
508
+ readonly name: "";
509
+ readonly type: "address";
510
+ }];
511
+ readonly stateMutability: "view";
512
+ readonly type: "function";
513
+ }, {
514
+ readonly inputs: readonly [{
515
+ readonly internalType: "uint256";
516
+ readonly name: "nonce";
517
+ readonly type: "uint256";
518
+ }];
519
+ readonly name: "requestInbox";
520
+ readonly outputs: readonly [{
521
+ readonly internalType: "address";
522
+ readonly name: "refundAddress";
523
+ readonly type: "address";
524
+ }, {
525
+ readonly internalType: "bytes32";
526
+ readonly name: "typedDataHash";
527
+ readonly type: "bytes32";
528
+ }];
529
+ readonly stateMutability: "view";
530
+ readonly type: "function";
531
+ }, {
532
+ readonly inputs: readonly [{
533
+ readonly internalType: "address";
534
+ readonly name: "token";
535
+ readonly type: "address";
536
+ }, {
537
+ readonly internalType: "address";
538
+ readonly name: "to";
539
+ readonly type: "address";
540
+ }, {
541
+ readonly internalType: "uint256";
542
+ readonly name: "amount";
543
+ readonly type: "uint256";
544
+ }];
545
+ readonly name: "rescue";
546
+ readonly outputs: readonly [];
547
+ readonly stateMutability: "nonpayable";
548
+ readonly type: "function";
549
+ }, {
550
+ readonly inputs: readonly [{
551
+ readonly internalType: "bytes32";
552
+ readonly name: "role_";
553
+ readonly type: "bytes32";
554
+ }, {
555
+ readonly internalType: "address";
556
+ readonly name: "revokee_";
557
+ readonly type: "address";
558
+ }];
559
+ readonly name: "revokeRole";
560
+ readonly outputs: readonly [];
561
+ readonly stateMutability: "nonpayable";
562
+ readonly type: "function";
563
+ }, {
564
+ readonly inputs: readonly [{
565
+ readonly components: readonly [{
566
+ readonly components: readonly [{
567
+ readonly internalType: "uint256";
568
+ readonly name: "chainId";
569
+ readonly type: "uint256";
570
+ }, {
571
+ readonly internalType: "uint256";
572
+ readonly name: "deadline";
573
+ readonly type: "uint256";
574
+ }, {
575
+ readonly internalType: "uint256";
576
+ readonly name: "nonce";
577
+ readonly type: "uint256";
578
+ }, {
579
+ readonly internalType: "address";
580
+ readonly name: "sender";
581
+ readonly type: "address";
582
+ }, {
583
+ readonly internalType: "address";
584
+ readonly name: "receiver";
585
+ readonly type: "address";
586
+ }, {
587
+ readonly internalType: "address";
588
+ readonly name: "bungeeGateway";
589
+ readonly type: "address";
590
+ }, {
591
+ readonly internalType: "address";
592
+ readonly name: "inputToken";
593
+ readonly type: "address";
594
+ }, {
595
+ readonly internalType: "uint256";
596
+ readonly name: "inputAmount";
597
+ readonly type: "uint256";
598
+ }, {
599
+ readonly internalType: "address";
600
+ readonly name: "outputToken";
601
+ readonly type: "address";
602
+ }, {
603
+ readonly internalType: "uint256";
604
+ readonly name: "minOutputAmount";
605
+ readonly type: "uint256";
606
+ }];
607
+ readonly internalType: "struct BasicRequest";
608
+ readonly name: "basicReq";
609
+ readonly type: "tuple";
610
+ }, {
611
+ readonly internalType: "bytes32";
612
+ readonly name: "metadata";
613
+ readonly type: "bytes32";
614
+ }, {
615
+ readonly internalType: "bytes";
616
+ readonly name: "affiliateFees";
617
+ readonly type: "bytes";
618
+ }, {
619
+ readonly internalType: "uint256";
620
+ readonly name: "minDestGas";
621
+ readonly type: "uint256";
622
+ }, {
623
+ readonly internalType: "bytes";
624
+ readonly name: "destinationPayload";
625
+ readonly type: "bytes";
626
+ }, {
627
+ readonly internalType: "address";
628
+ readonly name: "exclusiveTransmitter";
629
+ readonly type: "address";
630
+ }];
631
+ readonly internalType: "struct Request";
632
+ readonly name: "swapRequest";
633
+ readonly type: "tuple";
634
+ }];
635
+ readonly name: "withdrawFunds";
636
+ readonly outputs: readonly [];
637
+ readonly stateMutability: "nonpayable";
638
+ readonly type: "function";
639
+ }, {
640
+ readonly inputs: readonly [{
641
+ readonly components: readonly [{
642
+ readonly components: readonly [{
643
+ readonly internalType: "uint256";
644
+ readonly name: "originChainId";
645
+ readonly type: "uint256";
646
+ }, {
647
+ readonly internalType: "uint256";
648
+ readonly name: "destinationChainId";
649
+ readonly type: "uint256";
650
+ }, {
651
+ readonly internalType: "uint256";
652
+ readonly name: "deadline";
653
+ readonly type: "uint256";
654
+ }, {
655
+ readonly internalType: "uint256";
656
+ readonly name: "nonce";
657
+ readonly type: "uint256";
658
+ }, {
659
+ readonly internalType: "address";
660
+ readonly name: "sender";
661
+ readonly type: "address";
662
+ }, {
663
+ readonly internalType: "address";
664
+ readonly name: "receiver";
665
+ readonly type: "address";
666
+ }, {
667
+ readonly internalType: "address";
668
+ readonly name: "delegate";
669
+ readonly type: "address";
670
+ }, {
671
+ readonly internalType: "address";
672
+ readonly name: "bungeeGateway";
673
+ readonly type: "address";
674
+ }, {
675
+ readonly internalType: "uint32";
676
+ readonly name: "switchboardId";
677
+ readonly type: "uint32";
678
+ }, {
679
+ readonly internalType: "address";
680
+ readonly name: "inputToken";
681
+ readonly type: "address";
682
+ }, {
683
+ readonly internalType: "uint256";
684
+ readonly name: "inputAmount";
685
+ readonly type: "uint256";
686
+ }, {
687
+ readonly internalType: "address";
688
+ readonly name: "outputToken";
689
+ readonly type: "address";
690
+ }, {
691
+ readonly internalType: "uint256";
692
+ readonly name: "minOutputAmount";
693
+ readonly type: "uint256";
694
+ }, {
695
+ readonly internalType: "uint256";
696
+ readonly name: "refuelAmount";
697
+ readonly type: "uint256";
698
+ }];
699
+ readonly internalType: "struct BasicRequest";
700
+ readonly name: "basicReq";
701
+ readonly type: "tuple";
702
+ }, {
703
+ readonly internalType: "address";
704
+ readonly name: "swapOutputToken";
705
+ readonly type: "address";
706
+ }, {
707
+ readonly internalType: "uint256";
708
+ readonly name: "minSwapOutput";
709
+ readonly type: "uint256";
710
+ }, {
711
+ readonly internalType: "bytes32";
712
+ readonly name: "metadata";
713
+ readonly type: "bytes32";
714
+ }, {
715
+ readonly internalType: "bytes";
716
+ readonly name: "affiliateFees";
717
+ readonly type: "bytes";
718
+ }, {
719
+ readonly internalType: "uint256";
720
+ readonly name: "minDestGas";
721
+ readonly type: "uint256";
722
+ }, {
723
+ readonly internalType: "bytes";
724
+ readonly name: "destinationPayload";
725
+ readonly type: "bytes";
726
+ }, {
727
+ readonly internalType: "address";
728
+ readonly name: "exclusiveTransmitter";
729
+ readonly type: "address";
730
+ }];
731
+ readonly internalType: "struct Request";
732
+ readonly name: "singleOutputRequest";
733
+ readonly type: "tuple";
734
+ }];
735
+ readonly name: "withdrawFunds";
736
+ readonly outputs: readonly [];
737
+ readonly stateMutability: "nonpayable";
738
+ readonly type: "function";
739
+ }, {
740
+ readonly inputs: readonly [{
741
+ readonly internalType: "bytes32";
742
+ readonly name: "typedDataHash";
743
+ readonly type: "bytes32";
744
+ }];
745
+ readonly name: "withdrawnInbox";
746
+ readonly outputs: readonly [{
747
+ readonly internalType: "bool";
748
+ readonly name: "withdrawn";
749
+ readonly type: "bool";
750
+ }];
751
+ readonly stateMutability: "view";
752
+ readonly type: "function";
753
+ }, {
754
+ readonly stateMutability: "payable";
755
+ readonly type: "receive";
756
+ }];
@@ -0,0 +1,376 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.iBungeeInboxAbi = void 0;
4
+ exports.iBungeeInboxAbi = [
5
+ {
6
+ inputs: [
7
+ { internalType: 'address', name: '_owner', type: 'address' },
8
+ { internalType: 'address', name: '_permit2', type: 'address' },
9
+ { internalType: 'address', name: '_bungeeGateway', type: 'address' },
10
+ { internalType: 'address payable', name: '_wrappedNativeToken', type: 'address' },
11
+ ],
12
+ stateMutability: 'nonpayable',
13
+ type: 'constructor',
14
+ },
15
+ { inputs: [], name: 'InvalidChainId', type: 'error' },
16
+ { inputs: [], name: 'InvalidMsgValue', type: 'error' },
17
+ { inputs: [], name: 'InvalidNonce', type: 'error' },
18
+ { inputs: [], name: 'InvalidReceiver', type: 'error' },
19
+ { inputs: [], name: 'InvalidSender', type: 'error' },
20
+ { inputs: [], name: 'InvalidTokenAddress', type: 'error' },
21
+ { inputs: [{ internalType: 'bytes32', name: 'role', type: 'bytes32' }], name: 'NoPermit', type: 'error' },
22
+ { inputs: [], name: 'OnlyNominee', type: 'error' },
23
+ { inputs: [], name: 'OnlyOwner', type: 'error' },
24
+ { inputs: [], name: 'RequestAlreadyFulfilled', type: 'error' },
25
+ { inputs: [], name: 'RequestAlreadyWithdraw', type: 'error' },
26
+ { inputs: [], name: 'RequestDoesNotExist', type: 'error' },
27
+ { inputs: [], name: 'RequestNotWithdrawn', type: 'error' },
28
+ { inputs: [], name: 'TransferFailed', type: 'error' },
29
+ { inputs: [], name: 'TransferFailed', type: 'error' },
30
+ { inputs: [], name: 'WrongAffiliateFeeLength', type: 'error' },
31
+ { inputs: [], name: 'ZeroAddress', type: 'error' },
32
+ {
33
+ anonymous: false,
34
+ inputs: [{ indexed: true, internalType: 'address', name: 'claimer', type: 'address' }],
35
+ name: 'OwnerClaimed',
36
+ type: 'event',
37
+ },
38
+ {
39
+ anonymous: false,
40
+ inputs: [{ indexed: true, internalType: 'address', name: 'nominee', type: 'address' }],
41
+ name: 'OwnerNominated',
42
+ type: 'event',
43
+ },
44
+ {
45
+ anonymous: false,
46
+ inputs: [
47
+ { indexed: true, internalType: 'bytes32', name: 'role', type: 'bytes32' },
48
+ { indexed: true, internalType: 'address', name: 'grantee', type: 'address' },
49
+ ],
50
+ name: 'RoleGranted',
51
+ type: 'event',
52
+ },
53
+ {
54
+ anonymous: false,
55
+ inputs: [
56
+ { indexed: true, internalType: 'bytes32', name: 'role', type: 'bytes32' },
57
+ { indexed: true, internalType: 'address', name: 'revokee', type: 'address' },
58
+ ],
59
+ name: 'RoleRevoked',
60
+ type: 'event',
61
+ },
62
+ {
63
+ anonymous: false,
64
+ inputs: [
65
+ { indexed: true, internalType: 'bytes32', name: 'requestHash', type: 'bytes32' },
66
+ { indexed: false, internalType: 'address', name: 'refundAddress', type: 'address' },
67
+ { indexed: false, internalType: 'bytes', name: 'request', type: 'bytes' },
68
+ ],
69
+ name: 'SingleOutputRequestCreated',
70
+ type: 'event',
71
+ },
72
+ {
73
+ anonymous: false,
74
+ inputs: [{ indexed: true, internalType: 'bytes32', name: 'requestHash', type: 'bytes32' }],
75
+ name: 'SingleOutputRequestWithdrawn',
76
+ type: 'event',
77
+ },
78
+ {
79
+ anonymous: false,
80
+ inputs: [
81
+ { indexed: true, internalType: 'bytes32', name: 'requestHash', type: 'bytes32' },
82
+ { indexed: false, internalType: 'address', name: 'refundAddress', type: 'address' },
83
+ { indexed: false, internalType: 'bytes', name: 'request', type: 'bytes' },
84
+ ],
85
+ name: 'SwapRequestCreated',
86
+ type: 'event',
87
+ },
88
+ {
89
+ anonymous: false,
90
+ inputs: [{ indexed: true, internalType: 'bytes32', name: 'requestHash', type: 'bytes32' }],
91
+ name: 'SwapRequestWithdrawn',
92
+ type: 'event',
93
+ },
94
+ {
95
+ inputs: [],
96
+ name: 'BUNGEE_GATEWAY',
97
+ outputs: [{ internalType: 'contract IBungeeGateway', name: '', type: 'address' }],
98
+ stateMutability: 'view',
99
+ type: 'function',
100
+ },
101
+ {
102
+ inputs: [],
103
+ name: 'NATIVE_TOKEN_ADDRESS',
104
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
105
+ stateMutability: 'view',
106
+ type: 'function',
107
+ },
108
+ {
109
+ inputs: [],
110
+ name: 'PERMIT2',
111
+ outputs: [{ internalType: 'contract IPermit2', name: '', type: 'address' }],
112
+ stateMutability: 'view',
113
+ type: 'function',
114
+ },
115
+ {
116
+ inputs: [],
117
+ name: 'WRAPPED_NATIVE_TOKEN',
118
+ outputs: [{ internalType: 'contract WETH', name: '', type: 'address' }],
119
+ stateMutability: 'view',
120
+ type: 'function',
121
+ },
122
+ { inputs: [], name: 'claimOwner', outputs: [], stateMutability: 'nonpayable', type: 'function' },
123
+ {
124
+ inputs: [
125
+ {
126
+ components: [
127
+ {
128
+ components: [
129
+ { internalType: 'uint256', name: 'originChainId', type: 'uint256' },
130
+ { internalType: 'uint256', name: 'destinationChainId', type: 'uint256' },
131
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
132
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
133
+ { internalType: 'address', name: 'sender', type: 'address' },
134
+ { internalType: 'address', name: 'receiver', type: 'address' },
135
+ { internalType: 'address', name: 'delegate', type: 'address' },
136
+ { internalType: 'address', name: 'bungeeGateway', type: 'address' },
137
+ { internalType: 'uint32', name: 'switchboardId', type: 'uint32' },
138
+ { internalType: 'address', name: 'inputToken', type: 'address' },
139
+ { internalType: 'uint256', name: 'inputAmount', type: 'uint256' },
140
+ { internalType: 'address', name: 'outputToken', type: 'address' },
141
+ { internalType: 'uint256', name: 'minOutputAmount', type: 'uint256' },
142
+ { internalType: 'uint256', name: 'refuelAmount', type: 'uint256' },
143
+ ],
144
+ internalType: 'struct BasicRequest',
145
+ name: 'basicReq',
146
+ type: 'tuple',
147
+ },
148
+ { internalType: 'address', name: 'swapOutputToken', type: 'address' },
149
+ { internalType: 'uint256', name: 'minSwapOutput', type: 'uint256' },
150
+ { internalType: 'bytes32', name: 'metadata', type: 'bytes32' },
151
+ { internalType: 'bytes', name: 'affiliateFees', type: 'bytes' },
152
+ { internalType: 'uint256', name: 'minDestGas', type: 'uint256' },
153
+ { internalType: 'bytes', name: 'destinationPayload', type: 'bytes' },
154
+ { internalType: 'address', name: 'exclusiveTransmitter', type: 'address' },
155
+ ],
156
+ internalType: 'struct Request',
157
+ name: 'singleOutputRequest',
158
+ type: 'tuple',
159
+ },
160
+ { internalType: 'address', name: 'refundAddress', type: 'address' },
161
+ ],
162
+ name: 'createRequest',
163
+ outputs: [],
164
+ stateMutability: 'payable',
165
+ type: 'function',
166
+ },
167
+ {
168
+ inputs: [
169
+ {
170
+ components: [
171
+ {
172
+ components: [
173
+ { internalType: 'uint256', name: 'chainId', type: 'uint256' },
174
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
175
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
176
+ { internalType: 'address', name: 'sender', type: 'address' },
177
+ { internalType: 'address', name: 'receiver', type: 'address' },
178
+ { internalType: 'address', name: 'bungeeGateway', type: 'address' },
179
+ { internalType: 'address', name: 'inputToken', type: 'address' },
180
+ { internalType: 'uint256', name: 'inputAmount', type: 'uint256' },
181
+ { internalType: 'address', name: 'outputToken', type: 'address' },
182
+ { internalType: 'uint256', name: 'minOutputAmount', type: 'uint256' },
183
+ ],
184
+ internalType: 'struct BasicRequest',
185
+ name: 'basicReq',
186
+ type: 'tuple',
187
+ },
188
+ { internalType: 'bytes32', name: 'metadata', type: 'bytes32' },
189
+ { internalType: 'bytes', name: 'affiliateFees', type: 'bytes' },
190
+ { internalType: 'uint256', name: 'minDestGas', type: 'uint256' },
191
+ { internalType: 'bytes', name: 'destinationPayload', type: 'bytes' },
192
+ { internalType: 'address', name: 'exclusiveTransmitter', type: 'address' },
193
+ ],
194
+ internalType: 'struct Request',
195
+ name: 'swapRequest',
196
+ type: 'tuple',
197
+ },
198
+ { internalType: 'address', name: 'refundAddress', type: 'address' },
199
+ ],
200
+ name: 'createRequest',
201
+ outputs: [],
202
+ stateMutability: 'payable',
203
+ type: 'function',
204
+ },
205
+ {
206
+ inputs: [
207
+ { internalType: 'bytes32', name: 'role_', type: 'bytes32' },
208
+ { internalType: 'address', name: 'grantee_', type: 'address' },
209
+ ],
210
+ name: 'grantRole',
211
+ outputs: [],
212
+ stateMutability: 'nonpayable',
213
+ type: 'function',
214
+ },
215
+ {
216
+ inputs: [
217
+ { internalType: 'bytes32', name: 'role_', type: 'bytes32' },
218
+ { internalType: 'address', name: 'address_', type: 'address' },
219
+ ],
220
+ name: 'hasRole',
221
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
222
+ stateMutability: 'view',
223
+ type: 'function',
224
+ },
225
+ {
226
+ inputs: [
227
+ { internalType: 'bytes32', name: '_hash', type: 'bytes32' },
228
+ { internalType: 'bytes', name: '_signature', type: 'bytes' },
229
+ ],
230
+ name: 'isValidSignature',
231
+ outputs: [{ internalType: 'bytes4', name: 'magicValue', type: 'bytes4' }],
232
+ stateMutability: 'view',
233
+ type: 'function',
234
+ },
235
+ {
236
+ inputs: [{ internalType: 'address', name: 'nominee_', type: 'address' }],
237
+ name: 'nominateOwner',
238
+ outputs: [],
239
+ stateMutability: 'nonpayable',
240
+ type: 'function',
241
+ },
242
+ {
243
+ inputs: [],
244
+ name: 'nominee',
245
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
246
+ stateMutability: 'view',
247
+ type: 'function',
248
+ },
249
+ {
250
+ inputs: [],
251
+ name: 'owner',
252
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
253
+ stateMutability: 'view',
254
+ type: 'function',
255
+ },
256
+ {
257
+ inputs: [{ internalType: 'uint256', name: 'nonce', type: 'uint256' }],
258
+ name: 'requestInbox',
259
+ outputs: [
260
+ { internalType: 'address', name: 'refundAddress', type: 'address' },
261
+ { internalType: 'bytes32', name: 'typedDataHash', type: 'bytes32' },
262
+ ],
263
+ stateMutability: 'view',
264
+ type: 'function',
265
+ },
266
+ {
267
+ inputs: [
268
+ { internalType: 'address', name: 'token', type: 'address' },
269
+ { internalType: 'address', name: 'to', type: 'address' },
270
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
271
+ ],
272
+ name: 'rescue',
273
+ outputs: [],
274
+ stateMutability: 'nonpayable',
275
+ type: 'function',
276
+ },
277
+ {
278
+ inputs: [
279
+ { internalType: 'bytes32', name: 'role_', type: 'bytes32' },
280
+ { internalType: 'address', name: 'revokee_', type: 'address' },
281
+ ],
282
+ name: 'revokeRole',
283
+ outputs: [],
284
+ stateMutability: 'nonpayable',
285
+ type: 'function',
286
+ },
287
+ {
288
+ inputs: [
289
+ {
290
+ components: [
291
+ {
292
+ components: [
293
+ { internalType: 'uint256', name: 'chainId', type: 'uint256' },
294
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
295
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
296
+ { internalType: 'address', name: 'sender', type: 'address' },
297
+ { internalType: 'address', name: 'receiver', type: 'address' },
298
+ { internalType: 'address', name: 'bungeeGateway', type: 'address' },
299
+ { internalType: 'address', name: 'inputToken', type: 'address' },
300
+ { internalType: 'uint256', name: 'inputAmount', type: 'uint256' },
301
+ { internalType: 'address', name: 'outputToken', type: 'address' },
302
+ { internalType: 'uint256', name: 'minOutputAmount', type: 'uint256' },
303
+ ],
304
+ internalType: 'struct BasicRequest',
305
+ name: 'basicReq',
306
+ type: 'tuple',
307
+ },
308
+ { internalType: 'bytes32', name: 'metadata', type: 'bytes32' },
309
+ { internalType: 'bytes', name: 'affiliateFees', type: 'bytes' },
310
+ { internalType: 'uint256', name: 'minDestGas', type: 'uint256' },
311
+ { internalType: 'bytes', name: 'destinationPayload', type: 'bytes' },
312
+ { internalType: 'address', name: 'exclusiveTransmitter', type: 'address' },
313
+ ],
314
+ internalType: 'struct Request',
315
+ name: 'swapRequest',
316
+ type: 'tuple',
317
+ },
318
+ ],
319
+ name: 'withdrawFunds',
320
+ outputs: [],
321
+ stateMutability: 'nonpayable',
322
+ type: 'function',
323
+ },
324
+ {
325
+ inputs: [
326
+ {
327
+ components: [
328
+ {
329
+ components: [
330
+ { internalType: 'uint256', name: 'originChainId', type: 'uint256' },
331
+ { internalType: 'uint256', name: 'destinationChainId', type: 'uint256' },
332
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
333
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
334
+ { internalType: 'address', name: 'sender', type: 'address' },
335
+ { internalType: 'address', name: 'receiver', type: 'address' },
336
+ { internalType: 'address', name: 'delegate', type: 'address' },
337
+ { internalType: 'address', name: 'bungeeGateway', type: 'address' },
338
+ { internalType: 'uint32', name: 'switchboardId', type: 'uint32' },
339
+ { internalType: 'address', name: 'inputToken', type: 'address' },
340
+ { internalType: 'uint256', name: 'inputAmount', type: 'uint256' },
341
+ { internalType: 'address', name: 'outputToken', type: 'address' },
342
+ { internalType: 'uint256', name: 'minOutputAmount', type: 'uint256' },
343
+ { internalType: 'uint256', name: 'refuelAmount', type: 'uint256' },
344
+ ],
345
+ internalType: 'struct BasicRequest',
346
+ name: 'basicReq',
347
+ type: 'tuple',
348
+ },
349
+ { internalType: 'address', name: 'swapOutputToken', type: 'address' },
350
+ { internalType: 'uint256', name: 'minSwapOutput', type: 'uint256' },
351
+ { internalType: 'bytes32', name: 'metadata', type: 'bytes32' },
352
+ { internalType: 'bytes', name: 'affiliateFees', type: 'bytes' },
353
+ { internalType: 'uint256', name: 'minDestGas', type: 'uint256' },
354
+ { internalType: 'bytes', name: 'destinationPayload', type: 'bytes' },
355
+ { internalType: 'address', name: 'exclusiveTransmitter', type: 'address' },
356
+ ],
357
+ internalType: 'struct Request',
358
+ name: 'singleOutputRequest',
359
+ type: 'tuple',
360
+ },
361
+ ],
362
+ name: 'withdrawFunds',
363
+ outputs: [],
364
+ stateMutability: 'nonpayable',
365
+ type: 'function',
366
+ },
367
+ {
368
+ inputs: [{ internalType: 'bytes32', name: 'typedDataHash', type: 'bytes32' }],
369
+ name: 'withdrawnInbox',
370
+ outputs: [{ internalType: 'bool', name: 'withdrawn', type: 'bool' }],
371
+ stateMutability: 'view',
372
+ type: 'function',
373
+ },
374
+ { stateMutability: 'payable', type: 'receive' },
375
+ ];
376
+ //# sourceMappingURL=viemAbiBungeeInbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"viemAbiBungeeInbox.js","sourceRoot":"","sources":["../../../src/contracts/abis/viemAbiBungeeInbox.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;IAC7B;QACE,MAAM,EA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AAE,CAAC;QAC7E,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QACpE,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD,EAAE,eAAe,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;CACvC,CAAC"}
@@ -14,6 +14,7 @@ const AggregatorHelperErrors_1 = require("../../AggregatorHelperErrors");
14
14
  const constants_1 = require("../../constants");
15
15
  const utils_1 = require("../../helpers/utils");
16
16
  const address_1 = require("./address");
17
+ const validation_1 = require("./validation");
17
18
  const types_1 = require("./types");
18
19
  function wrapQuoteDeposit(params, callback) {
19
20
  const { toToken, fromChainId } = params;
@@ -91,6 +92,11 @@ class BungeeDepositResult {
91
92
  if (route.txData == null) {
92
93
  throw new Error(`Route has no tx data: ${routeId}`);
93
94
  }
95
+ (0, validation_1.validateBungeeTxTarget)(route.txData.to);
96
+ if (route.approvalData?.spenderAddress) {
97
+ (0, validation_1.validateBungeeApprovalSpender)(route.approvalData.spenderAddress);
98
+ }
99
+ (0, validation_1.validateBungeeCalldata)(route.txData.data, this.req.receiverAddress, this.req.destinationChainId);
94
100
  (0, utils_1.ensureCalldataHasBoxAddress)(route.txData.data, this.req.receiverAddress);
95
101
  return {
96
102
  transferData: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/crossChainDeposit/aggregators/Bungee/index.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA6C;AAC7C,+BAAiE;AACjE,wCAAsD;AACtD,qDAA4E;AAE5E,gDAA0D;AAC1D,6DAWgC;AAChC,yEAAuE;AACvE,+CAAgG;AAChG,+CAA2F;AAC3F,uCAA+D;AAC/D,mCASiB;AAQjB,SAAS,gBAAgB,CAAI,MAAkC,EAAE,QAAgD;IAC/G,MAAM,EAAE,OAAO,EAAE,WAAW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,KAAK,2BAAmB,CAAC,SAAS,EAAE,CAAC;gBACpE,OAAO,wCAAqB,CAAC,IAAI,CAAC;YACpC,CAAC;YACD,IACE,MAAM,CAAC,UAAU,CAAC,MAAM,KAAK,2BAAmB,CAAC,MAAM;gBACvD,MAAM,CAAC,eAAe,CAAC,MAAM,KAAK,2BAAmB,CAAC,MAAM,EAC5D,CAAC;gBACD,OAAO,wCAAqB,CAAC,MAAM,CAAC;YACtC,CAAC;YACD,OAAO,wCAAqB,CAAC,OAAO,CAAC;QACvC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAA,gDAAuB,EAC3B,iCAAc,CAAC,MAAM,EACrB,KAAK,EACL,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EACpB,gBAAgB,EAChB,EAAE,MAAM,EAAE,EACV,GAAG,EAAE,CAAC,SAAS,CAChB,CAAC;QACJ,CAAC;IACH,CAAC;CACF;AApID,wDAoIC"}
@@ -0,0 +1,5 @@
1
+ import { type Address, type Hex } from 'viem';
2
+ export declare const BUNGEE_INBOX_ADDRESS: Address;
3
+ export declare function validateBungeeTxTarget(to: Address): void;
4
+ export declare function validateBungeeApprovalSpender(spender: Address): void;
5
+ export declare function validateBungeeCalldata(calldata: Hex, expectedReceiver: Address, expectedDestChainId: number): void;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BUNGEE_INBOX_ADDRESS = void 0;
4
+ exports.validateBungeeTxTarget = validateBungeeTxTarget;
5
+ exports.validateBungeeApprovalSpender = validateBungeeApprovalSpender;
6
+ exports.validateBungeeCalldata = validateBungeeCalldata;
7
+ const viem_1 = require("viem");
8
+ const viemAbiBungeeInbox_1 = require("../../../../contracts/abis/viemAbiBungeeInbox");
9
+ exports.BUNGEE_INBOX_ADDRESS = '0x5e0f8e7337c8955d2124b8e85ca74af884b3e124';
10
+ function validateBungeeTxTarget(to) {
11
+ if (!(0, viem_1.isAddressEqual)(to, exports.BUNGEE_INBOX_ADDRESS)) {
12
+ throw new Error(`Bungee validation failed: txData.to (${to}) does not match known BungeeInbox (${exports.BUNGEE_INBOX_ADDRESS})`);
13
+ }
14
+ }
15
+ function validateBungeeApprovalSpender(spender) {
16
+ if (!(0, viem_1.isAddressEqual)(spender, exports.BUNGEE_INBOX_ADDRESS)) {
17
+ throw new Error(`Bungee validation failed: approval spender (${spender}) does not match known BungeeInbox (${exports.BUNGEE_INBOX_ADDRESS})`);
18
+ }
19
+ }
20
+ function decodeBungeeCalldata(calldata) {
21
+ const decoded = (0, viem_1.decodeFunctionData)({
22
+ abi: viemAbiBungeeInbox_1.iBungeeInboxAbi,
23
+ data: calldata,
24
+ });
25
+ if (decoded.functionName !== 'createRequest') {
26
+ throw new Error(`Bungee validation failed: unexpected function "${decoded.functionName}", expected "createRequest"`);
27
+ }
28
+ const request = decoded.args[0];
29
+ const basicReq = request.basicReq ?? request[0];
30
+ if (!basicReq) {
31
+ throw new Error('Bungee validation failed: could not extract BasicRequest from calldata');
32
+ }
33
+ const isCrossChain = 'destinationChainId' in basicReq;
34
+ if (isCrossChain) {
35
+ return {
36
+ receiver: (basicReq.receiver ?? basicReq[5]),
37
+ destinationChainId: basicReq.destinationChainId ?? basicReq[1],
38
+ };
39
+ }
40
+ else {
41
+ return {
42
+ receiver: (basicReq.receiver ?? basicReq[4]),
43
+ destinationChainId: undefined,
44
+ };
45
+ }
46
+ }
47
+ function validateBungeeCalldata(calldata, expectedReceiver, expectedDestChainId) {
48
+ const decoded = decodeBungeeCalldata(calldata);
49
+ if (!(0, viem_1.isAddressEqual)(decoded.receiver, expectedReceiver)) {
50
+ throw new Error(`Bungee validation failed: calldata receiver (${decoded.receiver}) does not match expected (${expectedReceiver})`);
51
+ }
52
+ if (decoded.destinationChainId !== undefined) {
53
+ if (Number(decoded.destinationChainId) !== expectedDestChainId) {
54
+ throw new Error(`Bungee validation failed: destinationChainId (${decoded.destinationChainId}) does not match expected (${expectedDestChainId})`);
55
+ }
56
+ }
57
+ }
58
+ //# sourceMappingURL=validation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation.js","sourceRoot":"","sources":["../../../../../src/entities/crossChainDeposit/aggregators/Bungee/validation.ts"],"names":[],"mappings":";;;AAYA,wDAMC;AAKD,sEAMC;AAkDD,wDAqBC;AApGD,+BAAkF;AAClF,sFAAgF;AAMnE,QAAA,oBAAoB,GAAY,4CAA4C,CAAC;AAK1F,SAAgB,sBAAsB,CAAC,EAAW;IAChD,IAAI,CAAC,IAAA,qBAAc,EAAC,EAAE,EAAE,4BAAoB,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAI,KAAK,CACb,wCAAwC,EAAE,uCAAuC,4BAAoB,GAAG,CACzG,CAAC;IACJ,CAAC;AACH,CAAC;AAKD,SAAgB,6BAA6B,CAAC,OAAgB;IAC5D,IAAI,CAAC,IAAA,qBAAc,EAAC,OAAO,EAAE,4BAAoB,CAAC,EAAE,CAAC;QACnD,MAAM,IAAI,KAAK,CACb,+CAA+C,OAAO,uCAAuC,4BAAoB,GAAG,CACrH,CAAC;IACJ,CAAC;AACH,CAAC;AAWD,SAAS,oBAAoB,CAAC,QAAa;IACzC,MAAM,OAAO,GAAG,IAAA,yBAAkB,EAAC;QACjC,GAAG,EAAE,oCAAe;QACpB,IAAI,EAAE,QAAQ;KACf,CAAC,CAAC;IAEH,IAAI,OAAO,CAAC,YAAY,KAAK,eAAe,EAAE,CAAC;QAC7C,MAAM,IAAI,KAAK,CAAC,kDAAkD,OAAO,CAAC,YAAY,6BAA6B,CAAC,CAAC;IACvH,CAAC;IAED,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAQ,CAAC;IACvC,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC;IAEhD,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,wEAAwE,CAAC,CAAC;IAC5F,CAAC;IAGD,MAAM,YAAY,GAAG,oBAAoB,IAAI,QAAQ,CAAC;IAEtD,IAAI,YAAY,EAAE,CAAC;QACjB,OAAO;YACL,QAAQ,EAAE,CAAC,QAAQ,CAAC,QAAQ,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAY;YACvD,kBAAkB,EAAE,QAAQ,CAAC,kBAAkB,IAAI,QAAQ,CAAC,CAAC,CAAC;SAC/D,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,OAAO;YACL,QAAQ,EAAE,CAAC,QAAQ,CAAC,QAAQ,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAY;YACvD,kBAAkB,EAAE,SAAS;SAC9B,CAAC;IACJ,CAAC;AACH,CAAC;AAQD,SAAgB,sBAAsB,CACpC,QAAa,EACb,gBAAyB,EACzB,mBAA2B;IAE3B,MAAM,OAAO,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC;IAE/C,IAAI,CAAC,IAAA,qBAAc,EAAC,OAAO,CAAC,QAAQ,EAAE,gBAAgB,CAAC,EAAE,CAAC;QACxD,MAAM,IAAI,KAAK,CACb,gDAAgD,OAAO,CAAC,QAAQ,8BAA8B,gBAAgB,GAAG,CAClH,CAAC;IACJ,CAAC;IAED,IAAI,OAAO,CAAC,kBAAkB,KAAK,SAAS,EAAE,CAAC;QAC7C,IAAI,MAAM,CAAC,OAAO,CAAC,kBAAkB,CAAC,KAAK,mBAAmB,EAAE,CAAC;YAC/D,MAAM,IAAI,KAAK,CACb,iDAAiD,OAAO,CAAC,kBAAkB,8BAA8B,mBAAmB,GAAG,CAChI,CAAC;QACJ,CAAC;IACH,CAAC;AAEH,CAAC"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@pendle/sdk-boros",
3
3
  "description": "Pendle SDK for Boros",
4
4
  "license": "MIT",
5
- "version": "1.1.44",
5
+ "version": "1.1.45-parsebungeev2-20260324055437",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "files": [