@pendle/sdk-boros 1.0.9-cross-deposit-2 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/contracts/contracts.factory.d.ts +2 -4
  2. package/dist/contracts/contracts.factory.js +4 -8
  3. package/dist/contracts/contracts.factory.js.map +1 -1
  4. package/dist/entities/exchange/exchange.d.ts +0 -1611
  5. package/dist/entities/exchange/exchange.js +0 -35
  6. package/dist/entities/exchange/exchange.js.map +1 -1
  7. package/dist/entities/index.d.ts +0 -1
  8. package/dist/entities/index.js +0 -1
  9. package/dist/entities/index.js.map +1 -1
  10. package/dist/types/common.d.ts +0 -10
  11. package/dist/utils/signing/sensitive.d.ts +1 -2
  12. package/dist/utils/signing/sensitive.js +0 -23
  13. package/dist/utils/signing/sensitive.js.map +1 -1
  14. package/package.json +1 -1
  15. package/dist/common/chainId.d.ts +0 -12
  16. package/dist/common/chainId.js +0 -17
  17. package/dist/common/chainId.js.map +0 -1
  18. package/dist/contracts/abis/viemAbiRouter.d.ts +0 -1985
  19. package/dist/contracts/abis/viemAbiRouter.js +0 -2554
  20. package/dist/contracts/abis/viemAbiRouter.js.map +0 -1
  21. package/dist/contracts/router.d.ts +0 -1991
  22. package/dist/contracts/router.js +0 -16
  23. package/dist/contracts/router.js.map +0 -1
  24. package/dist/entities/crossChainDeposit/AggregatorHelper.d.ts +0 -76
  25. package/dist/entities/crossChainDeposit/AggregatorHelper.js +0 -8
  26. package/dist/entities/crossChainDeposit/AggregatorHelper.js.map +0 -1
  27. package/dist/entities/crossChainDeposit/AggregatorHelperErrors.d.ts +0 -57
  28. package/dist/entities/crossChainDeposit/AggregatorHelperErrors.js +0 -116
  29. package/dist/entities/crossChainDeposit/AggregatorHelperErrors.js.map +0 -1
  30. package/dist/entities/crossChainDeposit/CrossChainDeposit.d.ts +0 -17
  31. package/dist/entities/crossChainDeposit/CrossChainDeposit.js +0 -36
  32. package/dist/entities/crossChainDeposit/CrossChainDeposit.js.map +0 -1
  33. package/dist/entities/crossChainDeposit/aggregators/Lifi/index.d.ts +0 -26
  34. package/dist/entities/crossChainDeposit/aggregators/Lifi/index.js +0 -178
  35. package/dist/entities/crossChainDeposit/aggregators/Lifi/index.js.map +0 -1
  36. package/dist/entities/crossChainDeposit/aggregators/Lifi/types.d.ts +0 -164
  37. package/dist/entities/crossChainDeposit/aggregators/Lifi/types.js +0 -28
  38. package/dist/entities/crossChainDeposit/aggregators/Lifi/types.js.map +0 -1
  39. package/dist/entities/crossChainDeposit/index.d.ts +0 -1
  40. package/dist/entities/crossChainDeposit/index.js +0 -18
  41. package/dist/entities/crossChainDeposit/index.js.map +0 -1
  42. package/dist/entities/token/Token.d.ts +0 -19
  43. package/dist/entities/token/Token.js +0 -38
  44. package/dist/entities/token/Token.js.map +0 -1
  45. package/dist/errors/PendleSdkError.d.ts +0 -7
  46. package/dist/errors/PendleSdkError.js +0 -15
  47. package/dist/errors/PendleSdkError.js.map +0 -1
@@ -1,2554 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.iRouterAbi = void 0;
4
- exports.iRouterAbi = [
5
- {
6
- anonymous: false,
7
- inputs: [
8
- {
9
- indexed: false,
10
- internalType: 'AMMId',
11
- name: 'ammId',
12
- type: 'uint24',
13
- },
14
- {
15
- indexed: false,
16
- internalType: 'MarketAcc',
17
- name: 'amm',
18
- type: 'bytes26',
19
- },
20
- ],
21
- name: 'AMMIdToAccUpdated',
22
- type: 'event',
23
- },
24
- {
25
- anonymous: false,
26
- inputs: [
27
- {
28
- indexed: true,
29
- internalType: 'MarketAcc',
30
- name: 'user',
31
- type: 'bytes26',
32
- },
33
- {
34
- indexed: true,
35
- internalType: 'AMMId',
36
- name: 'ammId',
37
- type: 'uint24',
38
- },
39
- {
40
- indexed: false,
41
- internalType: 'int256',
42
- name: 'exactSizeIn',
43
- type: 'int256',
44
- },
45
- {
46
- indexed: false,
47
- internalType: 'uint256',
48
- name: 'netLpOut',
49
- type: 'uint256',
50
- },
51
- {
52
- indexed: false,
53
- internalType: 'int256',
54
- name: 'netCashIn',
55
- type: 'int256',
56
- },
57
- {
58
- indexed: false,
59
- internalType: 'uint256',
60
- name: 'netOtcFee',
61
- type: 'uint256',
62
- },
63
- ],
64
- name: 'AddLiquidityDualToAmm',
65
- type: 'event',
66
- },
67
- {
68
- anonymous: false,
69
- inputs: [
70
- {
71
- indexed: true,
72
- internalType: 'MarketAcc',
73
- name: 'user',
74
- type: 'bytes26',
75
- },
76
- {
77
- indexed: true,
78
- internalType: 'AMMId',
79
- name: 'ammId',
80
- type: 'uint24',
81
- },
82
- {
83
- indexed: false,
84
- internalType: 'uint256',
85
- name: 'netLpOut',
86
- type: 'uint256',
87
- },
88
- {
89
- indexed: false,
90
- internalType: 'int256',
91
- name: 'netCashIn',
92
- type: 'int256',
93
- },
94
- {
95
- indexed: false,
96
- internalType: 'uint256',
97
- name: 'totalTakerOtcFee',
98
- type: 'uint256',
99
- },
100
- {
101
- indexed: false,
102
- internalType: 'int256',
103
- name: 'swapSizeInterm',
104
- type: 'int256',
105
- },
106
- ],
107
- name: 'AddLiquiditySingleCashToAmm',
108
- type: 'event',
109
- },
110
- {
111
- anonymous: false,
112
- inputs: [
113
- {
114
- indexed: true,
115
- internalType: 'Account',
116
- name: 'account',
117
- type: 'bytes21',
118
- },
119
- {
120
- indexed: true,
121
- internalType: 'address',
122
- name: 'agent',
123
- type: 'address',
124
- },
125
- {
126
- indexed: true,
127
- internalType: 'uint64',
128
- name: 'expiry',
129
- type: 'uint64',
130
- },
131
- ],
132
- name: 'AgentApproved',
133
- type: 'event',
134
- },
135
- {
136
- anonymous: false,
137
- inputs: [
138
- {
139
- indexed: true,
140
- internalType: 'Account',
141
- name: 'account',
142
- type: 'bytes21',
143
- },
144
- {
145
- indexed: true,
146
- internalType: 'address',
147
- name: 'agent',
148
- type: 'address',
149
- },
150
- ],
151
- name: 'AgentRevoked',
152
- type: 'event',
153
- },
154
- {
155
- anonymous: false,
156
- inputs: [
157
- {
158
- indexed: false,
159
- internalType: 'address',
160
- name: 'relayer',
161
- type: 'address',
162
- },
163
- {
164
- indexed: false,
165
- internalType: 'bool',
166
- name: 'allowed',
167
- type: 'bool',
168
- },
169
- ],
170
- name: 'AllowedRelayerUpdated',
171
- type: 'event',
172
- },
173
- {
174
- anonymous: false,
175
- inputs: [
176
- {
177
- indexed: false,
178
- internalType: 'TokenId',
179
- name: 'tokenId',
180
- type: 'uint16',
181
- },
182
- ],
183
- name: 'ApprovedMarketHubInf',
184
- type: 'event',
185
- },
186
- {
187
- anonymous: false,
188
- inputs: [
189
- {
190
- indexed: true,
191
- internalType: 'MarketAcc',
192
- name: 'user',
193
- type: 'bytes26',
194
- },
195
- {
196
- indexed: true,
197
- internalType: 'MarketId',
198
- name: 'marketId',
199
- type: 'uint24',
200
- },
201
- {
202
- indexed: false,
203
- internalType: 'enum TimeInForce',
204
- name: 'tif',
205
- type: 'uint8',
206
- },
207
- {
208
- indexed: false,
209
- internalType: 'Trade',
210
- name: 'matched',
211
- type: 'uint256',
212
- },
213
- {
214
- indexed: false,
215
- internalType: 'uint256',
216
- name: 'takerFee',
217
- type: 'uint256',
218
- },
219
- ],
220
- name: 'BulkOrdersExecuted',
221
- type: 'event',
222
- },
223
- {
224
- anonymous: false,
225
- inputs: [
226
- {
227
- indexed: true,
228
- internalType: 'MarketAcc',
229
- name: 'user',
230
- type: 'bytes26',
231
- },
232
- {
233
- indexed: false,
234
- internalType: 'bytes32',
235
- name: 'orderHash',
236
- type: 'bytes32',
237
- },
238
- {
239
- indexed: false,
240
- internalType: 'MarketId',
241
- name: 'marketId',
242
- type: 'uint24',
243
- },
244
- {
245
- indexed: false,
246
- internalType: 'AMMId',
247
- name: 'ammId',
248
- type: 'uint24',
249
- },
250
- {
251
- indexed: false,
252
- internalType: 'enum TimeInForce',
253
- name: 'tif',
254
- type: 'uint8',
255
- },
256
- {
257
- indexed: false,
258
- internalType: 'Trade',
259
- name: 'matched',
260
- type: 'uint256',
261
- },
262
- {
263
- indexed: false,
264
- internalType: 'uint256',
265
- name: 'takerOtcFee',
266
- type: 'uint256',
267
- },
268
- ],
269
- name: 'ConditionalOrderExecuted',
270
- type: 'event',
271
- },
272
- {
273
- anonymous: false,
274
- inputs: [
275
- {
276
- indexed: false,
277
- internalType: 'address',
278
- name: 'validator',
279
- type: 'address',
280
- },
281
- {
282
- indexed: false,
283
- internalType: 'bool',
284
- name: 'isValidator',
285
- type: 'bool',
286
- },
287
- ],
288
- name: 'ConditionalValidatorUpdated',
289
- type: 'event',
290
- },
291
- {
292
- anonymous: false,
293
- inputs: [
294
- {
295
- indexed: false,
296
- internalType: 'uint256',
297
- name: 'newMaxIteration',
298
- type: 'uint256',
299
- },
300
- {
301
- indexed: false,
302
- internalType: 'uint256',
303
- name: 'newEps',
304
- type: 'uint256',
305
- },
306
- ],
307
- name: 'MaxIterationAndEpsUpdated',
308
- type: 'event',
309
- },
310
- {
311
- anonymous: false,
312
- inputs: [
313
- {
314
- indexed: true,
315
- internalType: 'Account',
316
- name: 'account',
317
- type: 'bytes21',
318
- },
319
- {
320
- indexed: true,
321
- internalType: 'address',
322
- name: 'newAccManager',
323
- type: 'address',
324
- },
325
- ],
326
- name: 'NewAccManagerSet',
327
- type: 'event',
328
- },
329
- {
330
- anonymous: false,
331
- inputs: [
332
- {
333
- indexed: false,
334
- internalType: 'uint16',
335
- name: 'newNumTicksToTryAtOnce',
336
- type: 'uint16',
337
- },
338
- ],
339
- name: 'NumTicksToTryAtOnceUpdated',
340
- type: 'event',
341
- },
342
- {
343
- anonymous: false,
344
- inputs: [
345
- {
346
- indexed: true,
347
- internalType: 'MarketAcc',
348
- name: 'user',
349
- type: 'bytes26',
350
- },
351
- {
352
- indexed: true,
353
- internalType: 'AMMId',
354
- name: 'ammId',
355
- type: 'uint24',
356
- },
357
- {
358
- indexed: false,
359
- internalType: 'uint256',
360
- name: 'lpToRemove',
361
- type: 'uint256',
362
- },
363
- {
364
- indexed: false,
365
- internalType: 'int256',
366
- name: 'netCashOut',
367
- type: 'int256',
368
- },
369
- {
370
- indexed: false,
371
- internalType: 'int256',
372
- name: 'netSizeOut',
373
- type: 'int256',
374
- },
375
- {
376
- indexed: false,
377
- internalType: 'uint256',
378
- name: 'netOtcFee',
379
- type: 'uint256',
380
- },
381
- ],
382
- name: 'RemoveLiquidityDualFromAmm',
383
- type: 'event',
384
- },
385
- {
386
- anonymous: false,
387
- inputs: [
388
- {
389
- indexed: true,
390
- internalType: 'MarketAcc',
391
- name: 'user',
392
- type: 'bytes26',
393
- },
394
- {
395
- indexed: true,
396
- internalType: 'AMMId',
397
- name: 'ammId',
398
- type: 'uint24',
399
- },
400
- {
401
- indexed: false,
402
- internalType: 'uint256',
403
- name: 'lpToRemove',
404
- type: 'uint256',
405
- },
406
- {
407
- indexed: false,
408
- internalType: 'int256',
409
- name: 'netCashOut',
410
- type: 'int256',
411
- },
412
- {
413
- indexed: false,
414
- internalType: 'uint256',
415
- name: 'netTakerOtcFee',
416
- type: 'uint256',
417
- },
418
- {
419
- indexed: false,
420
- internalType: 'int256',
421
- name: 'netSizeInterm',
422
- type: 'int256',
423
- },
424
- ],
425
- name: 'RemoveLiquiditySingleCashFromAmm',
426
- type: 'event',
427
- },
428
- {
429
- anonymous: false,
430
- inputs: [
431
- {
432
- indexed: true,
433
- internalType: 'MarketAcc',
434
- name: 'user',
435
- type: 'bytes26',
436
- },
437
- {
438
- indexed: true,
439
- internalType: 'MarketId',
440
- name: 'marketId',
441
- type: 'uint24',
442
- },
443
- {
444
- indexed: true,
445
- internalType: 'AMMId',
446
- name: 'ammId',
447
- type: 'uint24',
448
- },
449
- {
450
- indexed: false,
451
- internalType: 'enum TimeInForce',
452
- name: 'tif',
453
- type: 'uint8',
454
- },
455
- {
456
- indexed: false,
457
- internalType: 'Trade',
458
- name: 'matched',
459
- type: 'uint256',
460
- },
461
- {
462
- indexed: false,
463
- internalType: 'uint256',
464
- name: 'takerOtcFee',
465
- type: 'uint256',
466
- },
467
- ],
468
- name: 'SingleOrderExecuted',
469
- type: 'event',
470
- },
471
- {
472
- anonymous: false,
473
- inputs: [
474
- {
475
- indexed: true,
476
- internalType: 'address',
477
- name: 'root',
478
- type: 'address',
479
- },
480
- {
481
- indexed: false,
482
- internalType: 'uint32',
483
- name: 'boxId',
484
- type: 'uint32',
485
- },
486
- {
487
- indexed: false,
488
- internalType: 'address',
489
- name: 'tokenIn',
490
- type: 'address',
491
- },
492
- {
493
- indexed: false,
494
- internalType: 'uint256',
495
- name: 'amountIn',
496
- type: 'uint256',
497
- },
498
- {
499
- indexed: false,
500
- internalType: 'address',
501
- name: 'tokenOut',
502
- type: 'address',
503
- },
504
- {
505
- indexed: false,
506
- internalType: 'uint256',
507
- name: 'netTokenOut',
508
- type: 'uint256',
509
- },
510
- ],
511
- name: 'SwapFromBox',
512
- type: 'event',
513
- },
514
- {
515
- anonymous: false,
516
- inputs: [
517
- {
518
- indexed: true,
519
- internalType: 'MarketAcc',
520
- name: 'user',
521
- type: 'bytes26',
522
- },
523
- {
524
- indexed: true,
525
- internalType: 'MarketId',
526
- name: 'marketId',
527
- type: 'uint24',
528
- },
529
- {
530
- indexed: true,
531
- internalType: 'AMMId',
532
- name: 'ammId',
533
- type: 'uint24',
534
- },
535
- {
536
- indexed: false,
537
- internalType: 'Trade',
538
- name: 'matched',
539
- type: 'uint256',
540
- },
541
- {
542
- indexed: false,
543
- internalType: 'uint256',
544
- name: 'otcFee',
545
- type: 'uint256',
546
- },
547
- ],
548
- name: 'SwapWithAmm',
549
- type: 'event',
550
- },
551
- {
552
- anonymous: false,
553
- inputs: [
554
- {
555
- indexed: false,
556
- internalType: 'uint256',
557
- name: 'index',
558
- type: 'uint256',
559
- },
560
- {
561
- indexed: false,
562
- internalType: 'bytes4',
563
- name: 'errorSelector',
564
- type: 'bytes4',
565
- },
566
- ],
567
- name: 'TryAggregateCallFailed',
568
- type: 'event',
569
- },
570
- {
571
- anonymous: false,
572
- inputs: [
573
- {
574
- indexed: false,
575
- internalType: 'uint256',
576
- name: 'index',
577
- type: 'uint256',
578
- },
579
- ],
580
- name: 'TryAggregateCallSucceeded',
581
- type: 'event',
582
- },
583
- {
584
- inputs: [],
585
- name: 'BEACON_PROXY_CODE_CONTRACT',
586
- outputs: [
587
- {
588
- internalType: 'address',
589
- name: '',
590
- type: 'address',
591
- },
592
- ],
593
- stateMutability: 'view',
594
- type: 'function',
595
- },
596
- {
597
- inputs: [],
598
- name: 'DEPOSIT_BOX_BEACON',
599
- outputs: [
600
- {
601
- internalType: 'address',
602
- name: '',
603
- type: 'address',
604
- },
605
- ],
606
- stateMutability: 'view',
607
- type: 'function',
608
- },
609
- {
610
- inputs: [],
611
- name: 'DEPOSIT_BOX_CODE_HASH',
612
- outputs: [
613
- {
614
- internalType: 'bytes32',
615
- name: '',
616
- type: 'bytes32',
617
- },
618
- ],
619
- stateMutability: 'view',
620
- type: 'function',
621
- },
622
- {
623
- inputs: [
624
- {
625
- internalType: 'Account',
626
- name: 'acc',
627
- type: 'bytes21',
628
- },
629
- ],
630
- name: 'accountManager',
631
- outputs: [
632
- {
633
- internalType: 'address',
634
- name: '',
635
- type: 'address',
636
- },
637
- ],
638
- stateMutability: 'view',
639
- type: 'function',
640
- },
641
- {
642
- inputs: [
643
- {
644
- components: [
645
- {
646
- internalType: 'bool',
647
- name: 'cross',
648
- type: 'bool',
649
- },
650
- {
651
- internalType: 'AMMId',
652
- name: 'ammId',
653
- type: 'uint24',
654
- },
655
- {
656
- internalType: 'int256',
657
- name: 'maxCashIn',
658
- type: 'int256',
659
- },
660
- {
661
- internalType: 'int256',
662
- name: 'exactSizeIn',
663
- type: 'int256',
664
- },
665
- {
666
- internalType: 'uint256',
667
- name: 'minLpOut',
668
- type: 'uint256',
669
- },
670
- ],
671
- internalType: 'struct IRouterEventsAndTypes.AddLiquidityDualToAmmReq',
672
- name: 'req',
673
- type: 'tuple',
674
- },
675
- ],
676
- name: 'addLiquidityDualToAmm',
677
- outputs: [
678
- {
679
- internalType: 'uint256',
680
- name: 'netLpOut',
681
- type: 'uint256',
682
- },
683
- {
684
- internalType: 'int256',
685
- name: 'netCashIn',
686
- type: 'int256',
687
- },
688
- {
689
- internalType: 'uint256',
690
- name: 'netOtcFee',
691
- type: 'uint256',
692
- },
693
- ],
694
- stateMutability: 'nonpayable',
695
- type: 'function',
696
- },
697
- {
698
- inputs: [
699
- {
700
- components: [
701
- {
702
- internalType: 'bool',
703
- name: 'cross',
704
- type: 'bool',
705
- },
706
- {
707
- internalType: 'AMMId',
708
- name: 'ammId',
709
- type: 'uint24',
710
- },
711
- {
712
- internalType: 'bool',
713
- name: 'enterMarket',
714
- type: 'bool',
715
- },
716
- {
717
- internalType: 'int256',
718
- name: 'netCashIn',
719
- type: 'int256',
720
- },
721
- {
722
- internalType: 'uint256',
723
- name: 'minLpOut',
724
- type: 'uint256',
725
- },
726
- {
727
- internalType: 'enum Side',
728
- name: 'desiredSwapSide',
729
- type: 'uint8',
730
- },
731
- {
732
- internalType: 'int128',
733
- name: 'desiredSwapRate',
734
- type: 'int128',
735
- },
736
- ],
737
- internalType: 'struct IRouterEventsAndTypes.AddLiquiditySingleCashToAmmReq',
738
- name: 'req',
739
- type: 'tuple',
740
- },
741
- ],
742
- name: 'addLiquiditySingleCashToAmm',
743
- outputs: [
744
- {
745
- internalType: 'uint256',
746
- name: 'netLpOut',
747
- type: 'uint256',
748
- },
749
- {
750
- internalType: 'int256',
751
- name: 'netCashUsed',
752
- type: 'int256',
753
- },
754
- {
755
- internalType: 'uint256',
756
- name: 'totalTakerOtcFee',
757
- type: 'uint256',
758
- },
759
- {
760
- internalType: 'Trade',
761
- name: 'swapTradeInterm',
762
- type: 'uint256',
763
- },
764
- ],
765
- stateMutability: 'nonpayable',
766
- type: 'function',
767
- },
768
- {
769
- inputs: [
770
- {
771
- internalType: 'address',
772
- name: 'agent',
773
- type: 'address',
774
- },
775
- {
776
- components: [
777
- {
778
- internalType: 'Account',
779
- name: 'account',
780
- type: 'bytes21',
781
- },
782
- {
783
- internalType: 'bytes32',
784
- name: 'connectionId',
785
- type: 'bytes32',
786
- },
787
- {
788
- internalType: 'uint64',
789
- name: 'nonce',
790
- type: 'uint64',
791
- },
792
- ],
793
- internalType: 'struct IRouterEventsAndTypes.PendleSignTx',
794
- name: 'message',
795
- type: 'tuple',
796
- },
797
- {
798
- internalType: 'bytes',
799
- name: 'signature',
800
- type: 'bytes',
801
- },
802
- {
803
- internalType: 'bytes',
804
- name: 'callData',
805
- type: 'bytes',
806
- },
807
- ],
808
- name: 'agentExecute',
809
- outputs: [],
810
- stateMutability: 'nonpayable',
811
- type: 'function',
812
- },
813
- {
814
- inputs: [
815
- {
816
- internalType: 'Account',
817
- name: 'acc',
818
- type: 'bytes21',
819
- },
820
- {
821
- internalType: 'address',
822
- name: 'agent',
823
- type: 'address',
824
- },
825
- ],
826
- name: 'agentExpiry',
827
- outputs: [
828
- {
829
- internalType: 'uint256',
830
- name: '',
831
- type: 'uint256',
832
- },
833
- ],
834
- stateMutability: 'view',
835
- type: 'function',
836
- },
837
- {
838
- inputs: [
839
- {
840
- components: [
841
- {
842
- internalType: 'MarketId',
843
- name: 'marketId',
844
- type: 'uint24',
845
- },
846
- {
847
- internalType: 'uint256',
848
- name: 'cashIn',
849
- type: 'uint256',
850
- },
851
- {
852
- internalType: 'bool',
853
- name: 'cashTransferAll',
854
- type: 'bool',
855
- },
856
- ],
857
- internalType: 'struct IRouterEventsAndTypes.AMMCashTransferReq',
858
- name: 'req',
859
- type: 'tuple',
860
- },
861
- ],
862
- name: 'ammCashTransfer',
863
- outputs: [],
864
- stateMutability: 'nonpayable',
865
- type: 'function',
866
- },
867
- {
868
- inputs: [
869
- {
870
- internalType: 'AMMId',
871
- name: 'ammId',
872
- type: 'uint24',
873
- },
874
- ],
875
- name: 'ammIdToAcc',
876
- outputs: [
877
- {
878
- internalType: 'MarketAcc',
879
- name: '',
880
- type: 'bytes26',
881
- },
882
- ],
883
- stateMutability: 'view',
884
- type: 'function',
885
- },
886
- {
887
- inputs: [
888
- {
889
- components: [
890
- {
891
- internalType: 'address',
892
- name: 'root',
893
- type: 'address',
894
- },
895
- {
896
- internalType: 'uint8',
897
- name: 'accountId',
898
- type: 'uint8',
899
- },
900
- {
901
- internalType: 'address',
902
- name: 'agent',
903
- type: 'address',
904
- },
905
- {
906
- internalType: 'uint64',
907
- name: 'expiry',
908
- type: 'uint64',
909
- },
910
- ],
911
- internalType: 'struct IRouterEventsAndTypes.ApproveAgentReq',
912
- name: 'req',
913
- type: 'tuple',
914
- },
915
- ],
916
- name: 'approveAgent',
917
- outputs: [],
918
- stateMutability: 'nonpayable',
919
- type: 'function',
920
- },
921
- {
922
- inputs: [
923
- {
924
- components: [
925
- {
926
- internalType: 'address',
927
- name: 'root',
928
- type: 'address',
929
- },
930
- {
931
- internalType: 'uint8',
932
- name: 'accountId',
933
- type: 'uint8',
934
- },
935
- {
936
- internalType: 'address',
937
- name: 'agent',
938
- type: 'address',
939
- },
940
- {
941
- internalType: 'uint64',
942
- name: 'expiry',
943
- type: 'uint64',
944
- },
945
- {
946
- internalType: 'uint64',
947
- name: 'nonce',
948
- type: 'uint64',
949
- },
950
- ],
951
- internalType: 'struct IRouterEventsAndTypes.ApproveAgentMessage',
952
- name: 'data',
953
- type: 'tuple',
954
- },
955
- {
956
- internalType: 'bytes',
957
- name: 'signature',
958
- type: 'bytes',
959
- },
960
- ],
961
- name: 'approveAgent',
962
- outputs: [],
963
- stateMutability: 'nonpayable',
964
- type: 'function',
965
- },
966
- {
967
- inputs: [
968
- {
969
- internalType: 'TokenId',
970
- name: 'tokenId',
971
- type: 'uint16',
972
- },
973
- ],
974
- name: 'approveMarketHubInf',
975
- outputs: [],
976
- stateMutability: 'nonpayable',
977
- type: 'function',
978
- },
979
- {
980
- inputs: [
981
- {
982
- components: [
983
- {
984
- internalType: 'Account',
985
- name: 'account',
986
- type: 'bytes21',
987
- },
988
- {
989
- internalType: 'address',
990
- name: 'target',
991
- type: 'address',
992
- },
993
- {
994
- internalType: 'bytes',
995
- name: 'data',
996
- type: 'bytes',
997
- },
998
- ],
999
- internalType: 'struct IMiscModule.SimulateData[]',
1000
- name: 'calls',
1001
- type: 'tuple[]',
1002
- },
1003
- ],
1004
- name: 'batchRevert',
1005
- outputs: [],
1006
- stateMutability: 'nonpayable',
1007
- type: 'function',
1008
- },
1009
- {
1010
- inputs: [
1011
- {
1012
- components: [
1013
- {
1014
- internalType: 'Account',
1015
- name: 'account',
1016
- type: 'bytes21',
1017
- },
1018
- {
1019
- internalType: 'address',
1020
- name: 'target',
1021
- type: 'address',
1022
- },
1023
- {
1024
- internalType: 'bytes',
1025
- name: 'data',
1026
- type: 'bytes',
1027
- },
1028
- ],
1029
- internalType: 'struct IMiscModule.SimulateData[]',
1030
- name: 'calls',
1031
- type: 'tuple[]',
1032
- },
1033
- ],
1034
- name: 'batchSimulate',
1035
- outputs: [
1036
- {
1037
- internalType: 'bytes[]',
1038
- name: 'results',
1039
- type: 'bytes[]',
1040
- },
1041
- {
1042
- internalType: 'uint256[]',
1043
- name: 'gasUsed',
1044
- type: 'uint256[]',
1045
- },
1046
- ],
1047
- stateMutability: 'nonpayable',
1048
- type: 'function',
1049
- },
1050
- {
1051
- inputs: [
1052
- {
1053
- components: [
1054
- {
1055
- internalType: 'bool',
1056
- name: 'cross',
1057
- type: 'bool',
1058
- },
1059
- {
1060
- internalType: 'MarketId',
1061
- name: 'marketId',
1062
- type: 'uint24',
1063
- },
1064
- {
1065
- internalType: 'bool',
1066
- name: 'cancelAll',
1067
- type: 'bool',
1068
- },
1069
- {
1070
- internalType: 'OrderId[]',
1071
- name: 'orderIds',
1072
- type: 'uint64[]',
1073
- },
1074
- ],
1075
- internalType: 'struct IRouterEventsAndTypes.BulkCancels',
1076
- name: 'req',
1077
- type: 'tuple',
1078
- },
1079
- ],
1080
- name: 'bulkCancels',
1081
- outputs: [],
1082
- stateMutability: 'nonpayable',
1083
- type: 'function',
1084
- },
1085
- {
1086
- inputs: [
1087
- {
1088
- components: [
1089
- {
1090
- internalType: 'bool',
1091
- name: 'cross',
1092
- type: 'bool',
1093
- },
1094
- {
1095
- components: [
1096
- {
1097
- internalType: 'MarketId',
1098
- name: 'marketId',
1099
- type: 'uint24',
1100
- },
1101
- {
1102
- components: [
1103
- {
1104
- internalType: 'enum TimeInForce',
1105
- name: 'tif',
1106
- type: 'uint8',
1107
- },
1108
- {
1109
- internalType: 'enum Side',
1110
- name: 'side',
1111
- type: 'uint8',
1112
- },
1113
- {
1114
- internalType: 'uint256[]',
1115
- name: 'sizes',
1116
- type: 'uint256[]',
1117
- },
1118
- {
1119
- internalType: 'int16[]',
1120
- name: 'limitTicks',
1121
- type: 'int16[]',
1122
- },
1123
- ],
1124
- internalType: 'struct LongShort',
1125
- name: 'orders',
1126
- type: 'tuple',
1127
- },
1128
- {
1129
- components: [
1130
- {
1131
- internalType: 'OrderId[]',
1132
- name: 'ids',
1133
- type: 'uint64[]',
1134
- },
1135
- {
1136
- internalType: 'bool',
1137
- name: 'isAll',
1138
- type: 'bool',
1139
- },
1140
- {
1141
- internalType: 'bool',
1142
- name: 'isStrict',
1143
- type: 'bool',
1144
- },
1145
- ],
1146
- internalType: 'struct CancelData',
1147
- name: 'cancelData',
1148
- type: 'tuple',
1149
- },
1150
- ],
1151
- internalType: 'struct BulkOrder[]',
1152
- name: 'bulks',
1153
- type: 'tuple[]',
1154
- },
1155
- {
1156
- internalType: 'int128[]',
1157
- name: 'desiredMatchRates',
1158
- type: 'int128[]',
1159
- },
1160
- ],
1161
- internalType: 'struct IRouterEventsAndTypes.BulkOrdersReq',
1162
- name: 'req',
1163
- type: 'tuple',
1164
- },
1165
- ],
1166
- name: 'bulkOrders',
1167
- outputs: [
1168
- {
1169
- components: [
1170
- {
1171
- internalType: 'Trade',
1172
- name: 'matched',
1173
- type: 'uint256',
1174
- },
1175
- {
1176
- internalType: 'uint256',
1177
- name: 'takerFee',
1178
- type: 'uint256',
1179
- },
1180
- ],
1181
- internalType: 'struct BulkOrderResult[]',
1182
- name: 'results',
1183
- type: 'tuple[]',
1184
- },
1185
- ],
1186
- stateMutability: 'nonpayable',
1187
- type: 'function',
1188
- },
1189
- {
1190
- inputs: [
1191
- {
1192
- internalType: 'TokenId',
1193
- name: 'tokenId',
1194
- type: 'uint16',
1195
- },
1196
- ],
1197
- name: 'cancelVaultWithdrawal',
1198
- outputs: [],
1199
- stateMutability: 'nonpayable',
1200
- type: 'function',
1201
- },
1202
- {
1203
- inputs: [
1204
- {
1205
- components: [
1206
- {
1207
- internalType: 'address',
1208
- name: 'root',
1209
- type: 'address',
1210
- },
1211
- {
1212
- internalType: 'TokenId',
1213
- name: 'tokenId',
1214
- type: 'uint16',
1215
- },
1216
- {
1217
- internalType: 'uint64',
1218
- name: 'nonce',
1219
- type: 'uint64',
1220
- },
1221
- ],
1222
- internalType: 'struct IRouterEventsAndTypes.CancelVaultWithdrawalMessage',
1223
- name: 'message',
1224
- type: 'tuple',
1225
- },
1226
- {
1227
- internalType: 'bytes',
1228
- name: 'signature',
1229
- type: 'bytes',
1230
- },
1231
- ],
1232
- name: 'cancelVaultWithdrawal',
1233
- outputs: [],
1234
- stateMutability: 'nonpayable',
1235
- type: 'function',
1236
- },
1237
- {
1238
- inputs: [
1239
- {
1240
- components: [
1241
- {
1242
- internalType: 'MarketId',
1243
- name: 'marketId',
1244
- type: 'uint24',
1245
- },
1246
- {
1247
- internalType: 'int256',
1248
- name: 'signedAmount',
1249
- type: 'int256',
1250
- },
1251
- ],
1252
- internalType: 'struct IRouterEventsAndTypes.CashTransferReq',
1253
- name: 'transfer',
1254
- type: 'tuple',
1255
- },
1256
- ],
1257
- name: 'cashTransfer',
1258
- outputs: [],
1259
- stateMutability: 'nonpayable',
1260
- type: 'function',
1261
- },
1262
- {
1263
- inputs: [
1264
- {
1265
- internalType: 'address',
1266
- name: 'root',
1267
- type: 'address',
1268
- },
1269
- {
1270
- internalType: 'uint32',
1271
- name: 'boxId',
1272
- type: 'uint32',
1273
- },
1274
- ],
1275
- name: 'computeDepositBox',
1276
- outputs: [
1277
- {
1278
- internalType: 'address',
1279
- name: 'box',
1280
- type: 'address',
1281
- },
1282
- {
1283
- internalType: 'bytes32',
1284
- name: 'salt',
1285
- type: 'bytes32',
1286
- },
1287
- ],
1288
- stateMutability: 'view',
1289
- type: 'function',
1290
- },
1291
- {
1292
- inputs: [
1293
- {
1294
- components: [
1295
- {
1296
- internalType: 'address',
1297
- name: 'root',
1298
- type: 'address',
1299
- },
1300
- {
1301
- internalType: 'uint32',
1302
- name: 'boxId',
1303
- type: 'uint32',
1304
- },
1305
- {
1306
- internalType: 'uint8',
1307
- name: 'accountId',
1308
- type: 'uint8',
1309
- },
1310
- {
1311
- internalType: 'TokenId',
1312
- name: 'tokenId',
1313
- type: 'uint16',
1314
- },
1315
- {
1316
- internalType: 'MarketId',
1317
- name: 'marketId',
1318
- type: 'uint24',
1319
- },
1320
- {
1321
- internalType: 'uint256',
1322
- name: 'depositAmount',
1323
- type: 'uint256',
1324
- },
1325
- {
1326
- internalType: 'uint256',
1327
- name: 'payTreasuryAmount',
1328
- type: 'uint256',
1329
- },
1330
- {
1331
- internalType: 'uint64',
1332
- name: 'nonce',
1333
- type: 'uint64',
1334
- },
1335
- ],
1336
- internalType: 'struct IRouterEventsAndTypes.DepositFromBoxMessage',
1337
- name: 'message',
1338
- type: 'tuple',
1339
- },
1340
- {
1341
- internalType: 'bytes',
1342
- name: 'signature',
1343
- type: 'bytes',
1344
- },
1345
- ],
1346
- name: 'depositFromBox',
1347
- outputs: [],
1348
- stateMutability: 'nonpayable',
1349
- type: 'function',
1350
- },
1351
- {
1352
- inputs: [
1353
- {
1354
- components: [
1355
- {
1356
- internalType: 'bool',
1357
- name: 'cross',
1358
- type: 'bool',
1359
- },
1360
- {
1361
- internalType: 'bool',
1362
- name: 'isEnter',
1363
- type: 'bool',
1364
- },
1365
- {
1366
- internalType: 'MarketId[]',
1367
- name: 'marketIds',
1368
- type: 'uint24[]',
1369
- },
1370
- ],
1371
- internalType: 'struct IRouterEventsAndTypes.EnterExitMarketsReq',
1372
- name: 'req',
1373
- type: 'tuple',
1374
- },
1375
- ],
1376
- name: 'enterExitMarkets',
1377
- outputs: [],
1378
- stateMutability: 'nonpayable',
1379
- type: 'function',
1380
- },
1381
- {
1382
- inputs: [
1383
- {
1384
- components: [
1385
- {
1386
- components: [
1387
- {
1388
- internalType: 'Account',
1389
- name: 'account',
1390
- type: 'bytes21',
1391
- },
1392
- {
1393
- internalType: 'bool',
1394
- name: 'cross',
1395
- type: 'bool',
1396
- },
1397
- {
1398
- internalType: 'MarketId',
1399
- name: 'marketId',
1400
- type: 'uint24',
1401
- },
1402
- {
1403
- internalType: 'enum Side',
1404
- name: 'side',
1405
- type: 'uint8',
1406
- },
1407
- {
1408
- internalType: 'enum TimeInForce',
1409
- name: 'tif',
1410
- type: 'uint8',
1411
- },
1412
- {
1413
- internalType: 'uint256',
1414
- name: 'size',
1415
- type: 'uint256',
1416
- },
1417
- {
1418
- internalType: 'int16',
1419
- name: 'tick',
1420
- type: 'int16',
1421
- },
1422
- {
1423
- internalType: 'bool',
1424
- name: 'reduceOnly',
1425
- type: 'bool',
1426
- },
1427
- {
1428
- internalType: 'uint256',
1429
- name: 'salt',
1430
- type: 'uint256',
1431
- },
1432
- {
1433
- internalType: 'uint64',
1434
- name: 'expiry',
1435
- type: 'uint64',
1436
- },
1437
- {
1438
- internalType: 'bytes32',
1439
- name: 'hashedOffchainCondition',
1440
- type: 'bytes32',
1441
- },
1442
- ],
1443
- internalType: 'struct IRouterEventsAndTypes.ConditionalOrder',
1444
- name: 'order',
1445
- type: 'tuple',
1446
- },
1447
- {
1448
- internalType: 'bytes',
1449
- name: 'execParams',
1450
- type: 'bytes',
1451
- },
1452
- {
1453
- internalType: 'address',
1454
- name: 'agent',
1455
- type: 'address',
1456
- },
1457
- {
1458
- internalType: 'bytes',
1459
- name: 'placeSig',
1460
- type: 'bytes',
1461
- },
1462
- {
1463
- internalType: 'address',
1464
- name: 'validator',
1465
- type: 'address',
1466
- },
1467
- {
1468
- internalType: 'uint64',
1469
- name: 'execMsgExpiry',
1470
- type: 'uint64',
1471
- },
1472
- {
1473
- internalType: 'bytes',
1474
- name: 'execSig',
1475
- type: 'bytes',
1476
- },
1477
- ],
1478
- internalType: 'struct IRouterEventsAndTypes.ExecuteConditionalOrderReq',
1479
- name: 'req',
1480
- type: 'tuple',
1481
- },
1482
- ],
1483
- name: 'executeConditionalOrder',
1484
- outputs: [],
1485
- stateMutability: 'nonpayable',
1486
- type: 'function',
1487
- },
1488
- {
1489
- inputs: [
1490
- {
1491
- internalType: 'string',
1492
- name: 'eip712Name',
1493
- type: 'string',
1494
- },
1495
- {
1496
- internalType: 'string',
1497
- name: 'eip712Version',
1498
- type: 'string',
1499
- },
1500
- {
1501
- internalType: 'uint16',
1502
- name: 'numTicksToTryAtOnce',
1503
- type: 'uint16',
1504
- },
1505
- ],
1506
- name: 'initialize',
1507
- outputs: [],
1508
- stateMutability: 'nonpayable',
1509
- type: 'function',
1510
- },
1511
- {
1512
- inputs: [
1513
- {
1514
- internalType: 'bytes32',
1515
- name: 'actionHash',
1516
- type: 'bytes32',
1517
- },
1518
- ],
1519
- name: 'isActionExecuted',
1520
- outputs: [
1521
- {
1522
- internalType: 'bool',
1523
- name: '',
1524
- type: 'bool',
1525
- },
1526
- ],
1527
- stateMutability: 'view',
1528
- type: 'function',
1529
- },
1530
- {
1531
- inputs: [
1532
- {
1533
- internalType: 'address',
1534
- name: 'relayer',
1535
- type: 'address',
1536
- },
1537
- ],
1538
- name: 'isAllowedRelayer',
1539
- outputs: [
1540
- {
1541
- internalType: 'bool',
1542
- name: '',
1543
- type: 'bool',
1544
- },
1545
- ],
1546
- stateMutability: 'view',
1547
- type: 'function',
1548
- },
1549
- {
1550
- inputs: [
1551
- {
1552
- internalType: 'address',
1553
- name: 'validator',
1554
- type: 'address',
1555
- },
1556
- ],
1557
- name: 'isConditionalValidator',
1558
- outputs: [
1559
- {
1560
- internalType: 'bool',
1561
- name: '',
1562
- type: 'bool',
1563
- },
1564
- ],
1565
- stateMutability: 'view',
1566
- type: 'function',
1567
- },
1568
- {
1569
- inputs: [],
1570
- name: 'maxIterationAndEps',
1571
- outputs: [
1572
- {
1573
- internalType: 'uint256',
1574
- name: 'maxIteration',
1575
- type: 'uint256',
1576
- },
1577
- {
1578
- internalType: 'uint256',
1579
- name: 'eps',
1580
- type: 'uint256',
1581
- },
1582
- ],
1583
- stateMutability: 'view',
1584
- type: 'function',
1585
- },
1586
- {
1587
- inputs: [],
1588
- name: 'numTicksToTryAtOnce',
1589
- outputs: [
1590
- {
1591
- internalType: 'uint16',
1592
- name: '',
1593
- type: 'uint16',
1594
- },
1595
- ],
1596
- stateMutability: 'view',
1597
- type: 'function',
1598
- },
1599
- {
1600
- inputs: [
1601
- {
1602
- components: [
1603
- {
1604
- internalType: 'bool',
1605
- name: 'cross',
1606
- type: 'bool',
1607
- },
1608
- {
1609
- internalType: 'MarketId',
1610
- name: 'marketId',
1611
- type: 'uint24',
1612
- },
1613
- {
1614
- internalType: 'uint256',
1615
- name: 'amount',
1616
- type: 'uint256',
1617
- },
1618
- ],
1619
- internalType: 'struct IRouterEventsAndTypes.PayTreasuryReq',
1620
- name: 'req',
1621
- type: 'tuple',
1622
- },
1623
- ],
1624
- name: 'payTreasury',
1625
- outputs: [],
1626
- stateMutability: 'nonpayable',
1627
- type: 'function',
1628
- },
1629
- {
1630
- inputs: [
1631
- {
1632
- components: [
1633
- {
1634
- components: [
1635
- {
1636
- internalType: 'bool',
1637
- name: 'cross',
1638
- type: 'bool',
1639
- },
1640
- {
1641
- internalType: 'MarketId',
1642
- name: 'marketId',
1643
- type: 'uint24',
1644
- },
1645
- {
1646
- internalType: 'AMMId',
1647
- name: 'ammId',
1648
- type: 'uint24',
1649
- },
1650
- {
1651
- internalType: 'enum Side',
1652
- name: 'side',
1653
- type: 'uint8',
1654
- },
1655
- {
1656
- internalType: 'enum TimeInForce',
1657
- name: 'tif',
1658
- type: 'uint8',
1659
- },
1660
- {
1661
- internalType: 'uint256',
1662
- name: 'size',
1663
- type: 'uint256',
1664
- },
1665
- {
1666
- internalType: 'int16',
1667
- name: 'tick',
1668
- type: 'int16',
1669
- },
1670
- ],
1671
- internalType: 'struct IRouterEventsAndTypes.OrderReq',
1672
- name: 'order',
1673
- type: 'tuple',
1674
- },
1675
- {
1676
- internalType: 'bool',
1677
- name: 'enterMarket',
1678
- type: 'bool',
1679
- },
1680
- {
1681
- internalType: 'OrderId',
1682
- name: 'idToStrictCancel',
1683
- type: 'uint64',
1684
- },
1685
- {
1686
- internalType: 'bool',
1687
- name: 'exitMarket',
1688
- type: 'bool',
1689
- },
1690
- {
1691
- internalType: 'uint256',
1692
- name: 'isolated_cashIn',
1693
- type: 'uint256',
1694
- },
1695
- {
1696
- internalType: 'bool',
1697
- name: 'isolated_cashTransferAll',
1698
- type: 'bool',
1699
- },
1700
- {
1701
- internalType: 'int128',
1702
- name: 'desiredMatchRate',
1703
- type: 'int128',
1704
- },
1705
- ],
1706
- internalType: 'struct IRouterEventsAndTypes.SingleOrderReq',
1707
- name: 'req',
1708
- type: 'tuple',
1709
- },
1710
- ],
1711
- name: 'placeSingleOrder',
1712
- outputs: [
1713
- {
1714
- internalType: 'Trade',
1715
- name: 'matched',
1716
- type: 'uint256',
1717
- },
1718
- {
1719
- internalType: 'uint256',
1720
- name: 'takerOtcFee',
1721
- type: 'uint256',
1722
- },
1723
- {
1724
- internalType: 'int256',
1725
- name: 'cashWithdrawn',
1726
- type: 'int256',
1727
- },
1728
- ],
1729
- stateMutability: 'nonpayable',
1730
- type: 'function',
1731
- },
1732
- {
1733
- inputs: [
1734
- {
1735
- components: [
1736
- {
1737
- internalType: 'bool',
1738
- name: 'cross',
1739
- type: 'bool',
1740
- },
1741
- {
1742
- internalType: 'AMMId',
1743
- name: 'ammId',
1744
- type: 'uint24',
1745
- },
1746
- {
1747
- internalType: 'uint256',
1748
- name: 'lpToRemove',
1749
- type: 'uint256',
1750
- },
1751
- {
1752
- internalType: 'int256',
1753
- name: 'minCashOut',
1754
- type: 'int256',
1755
- },
1756
- {
1757
- internalType: 'int256',
1758
- name: 'minSizeOut',
1759
- type: 'int256',
1760
- },
1761
- {
1762
- internalType: 'int256',
1763
- name: 'maxSizeOut',
1764
- type: 'int256',
1765
- },
1766
- ],
1767
- internalType: 'struct IRouterEventsAndTypes.RemoveLiquidityDualFromAmmReq',
1768
- name: 'req',
1769
- type: 'tuple',
1770
- },
1771
- ],
1772
- name: 'removeLiquidityDualFromAmm',
1773
- outputs: [
1774
- {
1775
- internalType: 'int256',
1776
- name: 'netCashOut',
1777
- type: 'int256',
1778
- },
1779
- {
1780
- internalType: 'int256',
1781
- name: 'netSizeOut',
1782
- type: 'int256',
1783
- },
1784
- {
1785
- internalType: 'uint256',
1786
- name: 'netOtcFee',
1787
- type: 'uint256',
1788
- },
1789
- ],
1790
- stateMutability: 'nonpayable',
1791
- type: 'function',
1792
- },
1793
- {
1794
- inputs: [
1795
- {
1796
- components: [
1797
- {
1798
- internalType: 'bool',
1799
- name: 'cross',
1800
- type: 'bool',
1801
- },
1802
- {
1803
- internalType: 'AMMId',
1804
- name: 'ammId',
1805
- type: 'uint24',
1806
- },
1807
- {
1808
- internalType: 'uint256',
1809
- name: 'lpToRemove',
1810
- type: 'uint256',
1811
- },
1812
- {
1813
- internalType: 'int256',
1814
- name: 'minCashOut',
1815
- type: 'int256',
1816
- },
1817
- {
1818
- internalType: 'enum Side',
1819
- name: 'desiredSwapSide',
1820
- type: 'uint8',
1821
- },
1822
- {
1823
- internalType: 'int128',
1824
- name: 'desiredSwapRate',
1825
- type: 'int128',
1826
- },
1827
- ],
1828
- internalType: 'struct IRouterEventsAndTypes.RemoveLiquiditySingleCashFromAmmReq',
1829
- name: 'req',
1830
- type: 'tuple',
1831
- },
1832
- ],
1833
- name: 'removeLiquiditySingleCashFromAmm',
1834
- outputs: [
1835
- {
1836
- internalType: 'int256',
1837
- name: 'netCashOut',
1838
- type: 'int256',
1839
- },
1840
- {
1841
- internalType: 'uint256',
1842
- name: 'netTakerOtcFee',
1843
- type: 'uint256',
1844
- },
1845
- {
1846
- internalType: 'Trade',
1847
- name: 'swapTradeInterm',
1848
- type: 'uint256',
1849
- },
1850
- ],
1851
- stateMutability: 'nonpayable',
1852
- type: 'function',
1853
- },
1854
- {
1855
- inputs: [
1856
- {
1857
- components: [
1858
- {
1859
- internalType: 'address',
1860
- name: 'root',
1861
- type: 'address',
1862
- },
1863
- {
1864
- internalType: 'TokenId',
1865
- name: 'tokenId',
1866
- type: 'uint16',
1867
- },
1868
- {
1869
- internalType: 'uint256',
1870
- name: 'amount',
1871
- type: 'uint256',
1872
- },
1873
- {
1874
- internalType: 'uint64',
1875
- name: 'nonce',
1876
- type: 'uint64',
1877
- },
1878
- ],
1879
- internalType: 'struct IRouterEventsAndTypes.RequestVaultWithdrawalMessage',
1880
- name: 'message',
1881
- type: 'tuple',
1882
- },
1883
- {
1884
- internalType: 'bytes',
1885
- name: 'signature',
1886
- type: 'bytes',
1887
- },
1888
- ],
1889
- name: 'requestVaultWithdrawal',
1890
- outputs: [],
1891
- stateMutability: 'nonpayable',
1892
- type: 'function',
1893
- },
1894
- {
1895
- inputs: [
1896
- {
1897
- internalType: 'TokenId',
1898
- name: 'tokenId',
1899
- type: 'uint16',
1900
- },
1901
- {
1902
- internalType: 'uint256',
1903
- name: 'amount',
1904
- type: 'uint256',
1905
- },
1906
- ],
1907
- name: 'requestVaultWithdrawal',
1908
- outputs: [],
1909
- stateMutability: 'nonpayable',
1910
- type: 'function',
1911
- },
1912
- {
1913
- inputs: [
1914
- {
1915
- components: [
1916
- {
1917
- internalType: 'address',
1918
- name: 'root',
1919
- type: 'address',
1920
- },
1921
- {
1922
- internalType: 'uint8',
1923
- name: 'accountId',
1924
- type: 'uint8',
1925
- },
1926
- {
1927
- internalType: 'address[]',
1928
- name: 'agents',
1929
- type: 'address[]',
1930
- },
1931
- ],
1932
- internalType: 'struct IRouterEventsAndTypes.RevokeAgentsReq',
1933
- name: 'req',
1934
- type: 'tuple',
1935
- },
1936
- ],
1937
- name: 'revokeAgent',
1938
- outputs: [],
1939
- stateMutability: 'nonpayable',
1940
- type: 'function',
1941
- },
1942
- {
1943
- inputs: [
1944
- {
1945
- components: [
1946
- {
1947
- internalType: 'address',
1948
- name: 'root',
1949
- type: 'address',
1950
- },
1951
- {
1952
- internalType: 'uint8',
1953
- name: 'accountId',
1954
- type: 'uint8',
1955
- },
1956
- {
1957
- internalType: 'address[]',
1958
- name: 'agents',
1959
- type: 'address[]',
1960
- },
1961
- {
1962
- internalType: 'uint64',
1963
- name: 'nonce',
1964
- type: 'uint64',
1965
- },
1966
- ],
1967
- internalType: 'struct IRouterEventsAndTypes.RevokeAgentsMessage',
1968
- name: 'data',
1969
- type: 'tuple',
1970
- },
1971
- {
1972
- internalType: 'bytes',
1973
- name: 'signature',
1974
- type: 'bytes',
1975
- },
1976
- ],
1977
- name: 'revokeAgent',
1978
- outputs: [],
1979
- stateMutability: 'nonpayable',
1980
- type: 'function',
1981
- },
1982
- {
1983
- inputs: [
1984
- {
1985
- internalType: 'address',
1986
- name: 'amm',
1987
- type: 'address',
1988
- },
1989
- {
1990
- internalType: 'bool',
1991
- name: 'forceOverride',
1992
- type: 'bool',
1993
- },
1994
- ],
1995
- name: 'setAMMIdToAcc',
1996
- outputs: [],
1997
- stateMutability: 'nonpayable',
1998
- type: 'function',
1999
- },
2000
- {
2001
- inputs: [
2002
- {
2003
- components: [
2004
- {
2005
- internalType: 'address',
2006
- name: 'root',
2007
- type: 'address',
2008
- },
2009
- {
2010
- internalType: 'uint8',
2011
- name: 'accountId',
2012
- type: 'uint8',
2013
- },
2014
- {
2015
- internalType: 'address',
2016
- name: 'accManager',
2017
- type: 'address',
2018
- },
2019
- {
2020
- internalType: 'uint64',
2021
- name: 'nonce',
2022
- type: 'uint64',
2023
- },
2024
- ],
2025
- internalType: 'struct IRouterEventsAndTypes.SetAccManagerMessage',
2026
- name: 'data',
2027
- type: 'tuple',
2028
- },
2029
- {
2030
- internalType: 'bytes',
2031
- name: 'signature',
2032
- type: 'bytes',
2033
- },
2034
- ],
2035
- name: 'setAccManager',
2036
- outputs: [],
2037
- stateMutability: 'nonpayable',
2038
- type: 'function',
2039
- },
2040
- {
2041
- inputs: [
2042
- {
2043
- internalType: 'address',
2044
- name: 'relayer',
2045
- type: 'address',
2046
- },
2047
- {
2048
- internalType: 'bool',
2049
- name: 'allowed',
2050
- type: 'bool',
2051
- },
2052
- ],
2053
- name: 'setAllowedRelayer',
2054
- outputs: [],
2055
- stateMutability: 'nonpayable',
2056
- type: 'function',
2057
- },
2058
- {
2059
- inputs: [
2060
- {
2061
- internalType: 'address',
2062
- name: 'validator',
2063
- type: 'address',
2064
- },
2065
- {
2066
- internalType: 'bool',
2067
- name: 'isValidator',
2068
- type: 'bool',
2069
- },
2070
- ],
2071
- name: 'setConditionalValidator',
2072
- outputs: [],
2073
- stateMutability: 'nonpayable',
2074
- type: 'function',
2075
- },
2076
- {
2077
- inputs: [
2078
- {
2079
- internalType: 'uint256',
2080
- name: 'newMaxIteration',
2081
- type: 'uint256',
2082
- },
2083
- {
2084
- internalType: 'uint256',
2085
- name: 'newEps',
2086
- type: 'uint256',
2087
- },
2088
- ],
2089
- name: 'setMaxIterationAndEps',
2090
- outputs: [],
2091
- stateMutability: 'nonpayable',
2092
- type: 'function',
2093
- },
2094
- {
2095
- inputs: [
2096
- {
2097
- internalType: 'uint16',
2098
- name: 'newNumTicksToTryAtOnce',
2099
- type: 'uint16',
2100
- },
2101
- ],
2102
- name: 'setNumTicksToTryAtOnce',
2103
- outputs: [],
2104
- stateMutability: 'nonpayable',
2105
- type: 'function',
2106
- },
2107
- {
2108
- inputs: [
2109
- {
2110
- internalType: 'address',
2111
- name: 'signer',
2112
- type: 'address',
2113
- },
2114
- ],
2115
- name: 'signerNonce',
2116
- outputs: [
2117
- {
2118
- internalType: 'uint64',
2119
- name: '',
2120
- type: 'uint64',
2121
- },
2122
- ],
2123
- stateMutability: 'view',
2124
- type: 'function',
2125
- },
2126
- {
2127
- inputs: [
2128
- {
2129
- components: [
2130
- {
2131
- internalType: 'address',
2132
- name: 'root',
2133
- type: 'address',
2134
- },
2135
- {
2136
- internalType: 'uint8',
2137
- name: 'accountId',
2138
- type: 'uint8',
2139
- },
2140
- {
2141
- internalType: 'TokenId',
2142
- name: 'tokenId',
2143
- type: 'uint16',
2144
- },
2145
- {
2146
- internalType: 'MarketId',
2147
- name: 'marketId',
2148
- type: 'uint24',
2149
- },
2150
- {
2151
- internalType: 'uint256',
2152
- name: 'amount',
2153
- type: 'uint256',
2154
- },
2155
- {
2156
- internalType: 'bool',
2157
- name: 'isDeposit',
2158
- type: 'bool',
2159
- },
2160
- {
2161
- internalType: 'uint64',
2162
- name: 'nonce',
2163
- type: 'uint64',
2164
- },
2165
- ],
2166
- internalType: 'struct IRouterEventsAndTypes.SubaccountTransferMessage',
2167
- name: 'message',
2168
- type: 'tuple',
2169
- },
2170
- {
2171
- internalType: 'bytes',
2172
- name: 'signature',
2173
- type: 'bytes',
2174
- },
2175
- ],
2176
- name: 'subaccountTransfer',
2177
- outputs: [],
2178
- stateMutability: 'nonpayable',
2179
- type: 'function',
2180
- },
2181
- {
2182
- inputs: [
2183
- {
2184
- internalType: 'uint8',
2185
- name: 'accountId',
2186
- type: 'uint8',
2187
- },
2188
- {
2189
- internalType: 'TokenId',
2190
- name: 'tokenId',
2191
- type: 'uint16',
2192
- },
2193
- {
2194
- internalType: 'MarketId',
2195
- name: 'marketId',
2196
- type: 'uint24',
2197
- },
2198
- {
2199
- internalType: 'uint256',
2200
- name: 'amount',
2201
- type: 'uint256',
2202
- },
2203
- {
2204
- internalType: 'bool',
2205
- name: 'isDeposit',
2206
- type: 'bool',
2207
- },
2208
- ],
2209
- name: 'subaccountTransfer',
2210
- outputs: [],
2211
- stateMutability: 'nonpayable',
2212
- type: 'function',
2213
- },
2214
- {
2215
- inputs: [
2216
- {
2217
- components: [
2218
- {
2219
- internalType: 'address',
2220
- name: 'root',
2221
- type: 'address',
2222
- },
2223
- {
2224
- internalType: 'uint32',
2225
- name: 'boxId',
2226
- type: 'uint32',
2227
- },
2228
- {
2229
- internalType: 'address',
2230
- name: 'tokenIn',
2231
- type: 'address',
2232
- },
2233
- {
2234
- internalType: 'uint256',
2235
- name: 'amountIn',
2236
- type: 'uint256',
2237
- },
2238
- {
2239
- internalType: 'address',
2240
- name: 'tokenOut',
2241
- type: 'address',
2242
- },
2243
- {
2244
- internalType: 'uint256',
2245
- name: 'minOut',
2246
- type: 'uint256',
2247
- },
2248
- {
2249
- internalType: 'address',
2250
- name: 'swapExecutor',
2251
- type: 'address',
2252
- },
2253
- {
2254
- internalType: 'address',
2255
- name: 'swapExtRouter',
2256
- type: 'address',
2257
- },
2258
- {
2259
- internalType: 'bytes',
2260
- name: 'swapCalldata',
2261
- type: 'bytes',
2262
- },
2263
- {
2264
- internalType: 'uint64',
2265
- name: 'nonce',
2266
- type: 'uint64',
2267
- },
2268
- ],
2269
- internalType: 'struct IRouterEventsAndTypes.SwapFromBoxMessage',
2270
- name: 'message',
2271
- type: 'tuple',
2272
- },
2273
- {
2274
- internalType: 'bytes',
2275
- name: 'signature',
2276
- type: 'bytes',
2277
- },
2278
- ],
2279
- name: 'swapFromBox',
2280
- outputs: [],
2281
- stateMutability: 'nonpayable',
2282
- type: 'function',
2283
- },
2284
- {
2285
- inputs: [
2286
- {
2287
- components: [
2288
- {
2289
- internalType: 'bool',
2290
- name: 'cross',
2291
- type: 'bool',
2292
- },
2293
- {
2294
- internalType: 'AMMId',
2295
- name: 'ammId',
2296
- type: 'uint24',
2297
- },
2298
- {
2299
- internalType: 'int256',
2300
- name: 'signedSize',
2301
- type: 'int256',
2302
- },
2303
- {
2304
- internalType: 'int128',
2305
- name: 'desiredSwapRate',
2306
- type: 'int128',
2307
- },
2308
- ],
2309
- internalType: 'struct IRouterEventsAndTypes.SwapWithAmmReq',
2310
- name: 'req',
2311
- type: 'tuple',
2312
- },
2313
- ],
2314
- name: 'swapWithAmm',
2315
- outputs: [
2316
- {
2317
- internalType: 'Trade',
2318
- name: 'matched',
2319
- type: 'uint256',
2320
- },
2321
- {
2322
- internalType: 'uint256',
2323
- name: 'otcFee',
2324
- type: 'uint256',
2325
- },
2326
- ],
2327
- stateMutability: 'nonpayable',
2328
- type: 'function',
2329
- },
2330
- {
2331
- inputs: [
2332
- {
2333
- internalType: 'Account[]',
2334
- name: 'accounts',
2335
- type: 'bytes21[]',
2336
- },
2337
- {
2338
- internalType: 'address[]',
2339
- name: 'agents',
2340
- type: 'address[]',
2341
- },
2342
- ],
2343
- name: 'systemRevokeAgent',
2344
- outputs: [],
2345
- stateMutability: 'nonpayable',
2346
- type: 'function',
2347
- },
2348
- {
2349
- inputs: [
2350
- {
2351
- internalType: 'bool',
2352
- name: 'requireSuccess',
2353
- type: 'bool',
2354
- },
2355
- {
2356
- internalType: 'bytes[]',
2357
- name: 'calls',
2358
- type: 'bytes[]',
2359
- },
2360
- ],
2361
- name: 'tryAggregate',
2362
- outputs: [
2363
- {
2364
- components: [
2365
- {
2366
- internalType: 'bool',
2367
- name: 'success',
2368
- type: 'bool',
2369
- },
2370
- {
2371
- internalType: 'bytes',
2372
- name: 'returnData',
2373
- type: 'bytes',
2374
- },
2375
- ],
2376
- internalType: 'struct IMiscModule.Result[]',
2377
- name: 'returnData',
2378
- type: 'tuple[]',
2379
- },
2380
- {
2381
- internalType: 'uint256[]',
2382
- name: 'gasUsed',
2383
- type: 'uint256[]',
2384
- },
2385
- ],
2386
- stateMutability: 'nonpayable',
2387
- type: 'function',
2388
- },
2389
- {
2390
- inputs: [
2391
- {
2392
- internalType: 'uint8',
2393
- name: 'accountId',
2394
- type: 'uint8',
2395
- },
2396
- {
2397
- internalType: 'TokenId',
2398
- name: 'tokenId',
2399
- type: 'uint16',
2400
- },
2401
- {
2402
- internalType: 'MarketId',
2403
- name: 'marketId',
2404
- type: 'uint24',
2405
- },
2406
- {
2407
- internalType: 'uint256',
2408
- name: 'amount',
2409
- type: 'uint256',
2410
- },
2411
- ],
2412
- name: 'vaultDeposit',
2413
- outputs: [],
2414
- stateMutability: 'nonpayable',
2415
- type: 'function',
2416
- },
2417
- {
2418
- inputs: [
2419
- {
2420
- components: [
2421
- {
2422
- internalType: 'address',
2423
- name: 'root',
2424
- type: 'address',
2425
- },
2426
- {
2427
- internalType: 'uint8',
2428
- name: 'accountId',
2429
- type: 'uint8',
2430
- },
2431
- {
2432
- internalType: 'TokenId',
2433
- name: 'tokenId',
2434
- type: 'uint16',
2435
- },
2436
- {
2437
- internalType: 'MarketId',
2438
- name: 'marketId',
2439
- type: 'uint24',
2440
- },
2441
- {
2442
- internalType: 'uint256',
2443
- name: 'amount',
2444
- type: 'uint256',
2445
- },
2446
- {
2447
- internalType: 'uint64',
2448
- name: 'nonce',
2449
- type: 'uint64',
2450
- },
2451
- ],
2452
- internalType: 'struct IRouterEventsAndTypes.VaultDepositMessage',
2453
- name: 'message',
2454
- type: 'tuple',
2455
- },
2456
- {
2457
- internalType: 'bytes',
2458
- name: 'signature',
2459
- type: 'bytes',
2460
- },
2461
- ],
2462
- name: 'vaultDeposit',
2463
- outputs: [],
2464
- stateMutability: 'nonpayable',
2465
- type: 'function',
2466
- },
2467
- {
2468
- inputs: [
2469
- {
2470
- components: [
2471
- {
2472
- internalType: 'address',
2473
- name: 'root',
2474
- type: 'address',
2475
- },
2476
- {
2477
- internalType: 'TokenId',
2478
- name: 'tokenId',
2479
- type: 'uint16',
2480
- },
2481
- {
2482
- internalType: 'uint256',
2483
- name: 'amount',
2484
- type: 'uint256',
2485
- },
2486
- {
2487
- internalType: 'uint64',
2488
- name: 'nonce',
2489
- type: 'uint64',
2490
- },
2491
- ],
2492
- internalType: 'struct IRouterEventsAndTypes.VaultPayTreasuryMessage',
2493
- name: 'message',
2494
- type: 'tuple',
2495
- },
2496
- {
2497
- internalType: 'bytes',
2498
- name: 'signature',
2499
- type: 'bytes',
2500
- },
2501
- ],
2502
- name: 'vaultPayTreasury',
2503
- outputs: [],
2504
- stateMutability: 'nonpayable',
2505
- type: 'function',
2506
- },
2507
- {
2508
- inputs: [
2509
- {
2510
- internalType: 'TokenId',
2511
- name: 'tokenId',
2512
- type: 'uint16',
2513
- },
2514
- {
2515
- internalType: 'uint256',
2516
- name: 'amount',
2517
- type: 'uint256',
2518
- },
2519
- ],
2520
- name: 'vaultPayTreasury',
2521
- outputs: [],
2522
- stateMutability: 'nonpayable',
2523
- type: 'function',
2524
- },
2525
- {
2526
- inputs: [
2527
- {
2528
- internalType: 'uint32',
2529
- name: 'boxId',
2530
- type: 'uint32',
2531
- },
2532
- {
2533
- internalType: 'address',
2534
- name: 'token',
2535
- type: 'address',
2536
- },
2537
- {
2538
- internalType: 'address',
2539
- name: 'receiver',
2540
- type: 'address',
2541
- },
2542
- {
2543
- internalType: 'uint256',
2544
- name: 'amount',
2545
- type: 'uint256',
2546
- },
2547
- ],
2548
- name: 'withdrawFromBox',
2549
- outputs: [],
2550
- stateMutability: 'nonpayable',
2551
- type: 'function',
2552
- },
2553
- ];
2554
- //# sourceMappingURL=viemAbiRouter.js.map