@paraswap/dex-lib 2.14.1 → 2.14.3-3pool-enable.0

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 (50) hide show
  1. package/build/abi/maverick/pool.json +913 -0
  2. package/build/abi/maverick/router.json +703 -0
  3. package/build/dex/curve-v1/config.js +19 -19
  4. package/build/dex/curve-v1/config.js.map +1 -1
  5. package/build/dex/curve-v1-factory/config.js +2 -5
  6. package/build/dex/curve-v1-factory/config.js.map +1 -1
  7. package/build/dex/generic-rfq/e2e-test-config.d.ts +9 -0
  8. package/build/dex/generic-rfq/e2e-test-config.js +33 -0
  9. package/build/dex/generic-rfq/e2e-test-config.js.map +1 -0
  10. package/build/dex/generic-rfq/rate-fetcher.js +2 -0
  11. package/build/dex/generic-rfq/rate-fetcher.js.map +1 -1
  12. package/build/dex/generic-rfq/validators.d.ts +1 -1
  13. package/build/dex/generic-rfq/validators.js +36 -26
  14. package/build/dex/generic-rfq/validators.js.map +1 -1
  15. package/build/dex/maverick/config.d.ts +4 -0
  16. package/build/dex/maverick/config.js +20 -0
  17. package/build/dex/maverick/config.js.map +1 -0
  18. package/build/dex/maverick/maverick-math/maverick-pool-math.d.ts +67 -0
  19. package/build/dex/maverick/maverick-math/maverick-pool-math.js +406 -0
  20. package/build/dex/maverick/maverick-math/maverick-pool-math.js.map +1 -0
  21. package/build/dex/maverick/maverick-math/maverick-sol-math.d.ts +17 -0
  22. package/build/dex/maverick/maverick-math/maverick-sol-math.js +139 -0
  23. package/build/dex/maverick/maverick-math/maverick-sol-math.js.map +1 -0
  24. package/build/dex/maverick/maverick-pool.d.ts +41 -0
  25. package/build/dex/maverick/maverick-pool.js +130 -0
  26. package/build/dex/maverick/maverick-pool.js.map +1 -0
  27. package/build/dex/maverick/maverick.d.ts +42 -0
  28. package/build/dex/maverick/maverick.js +174 -0
  29. package/build/dex/maverick/maverick.js.map +1 -0
  30. package/build/dex/maverick/subgraph-queries.d.ts +4 -0
  31. package/build/dex/maverick/subgraph-queries.js +114 -0
  32. package/build/dex/maverick/subgraph-queries.js.map +1 -0
  33. package/build/dex/maverick/types.d.ts +46 -0
  34. package/build/dex/maverick/types.js +3 -0
  35. package/build/dex/maverick/types.js.map +1 -0
  36. package/build/lib/fetcher/fetcher.js +3 -0
  37. package/build/lib/fetcher/fetcher.js.map +1 -1
  38. package/package.json +1 -1
  39. package/src/dex/curve-v1/config.ts +19 -19
  40. package/src/dex/curve-v1/curve-v1-e2e.test.ts +89 -0
  41. package/src/dex/curve-v1-factory/config.ts +2 -5
  42. package/src/dex/generic-rfq/e2e-test-config.ts +37 -0
  43. package/src/dex/generic-rfq/generic-rfq-e2e.test.ts +63 -258
  44. package/src/dex/generic-rfq/generic-rfq-local-e2e.test.ts +121 -0
  45. package/src/dex/generic-rfq/rate-fetcher.ts +2 -0
  46. package/src/dex/generic-rfq/validators.test.ts +6 -32
  47. package/src/dex/generic-rfq/validators.ts +57 -32
  48. package/src/lib/fetcher/fetcher.ts +6 -0
  49. package/tests/constants-e2e.ts +12 -0
  50. package/tests/utils-e2e.ts +59 -48
@@ -0,0 +1,913 @@
1
+ [
2
+ {
3
+ "inputs": [],
4
+ "stateMutability": "nonpayable",
5
+ "type": "constructor"
6
+ },
7
+ {
8
+ "inputs": [],
9
+ "name": "PRBMathSD59x18__DivInputTooSmall",
10
+ "type": "error"
11
+ },
12
+ {
13
+ "inputs": [
14
+ {
15
+ "internalType": "uint256",
16
+ "name": "rAbs",
17
+ "type": "uint256"
18
+ }
19
+ ],
20
+ "name": "PRBMathSD59x18__DivOverflow",
21
+ "type": "error"
22
+ },
23
+ {
24
+ "inputs": [],
25
+ "name": "PRBMathSD59x18__MulInputTooSmall",
26
+ "type": "error"
27
+ },
28
+ {
29
+ "inputs": [
30
+ {
31
+ "internalType": "uint256",
32
+ "name": "rAbs",
33
+ "type": "uint256"
34
+ }
35
+ ],
36
+ "name": "PRBMathSD59x18__MulOverflow",
37
+ "type": "error"
38
+ },
39
+ {
40
+ "inputs": [
41
+ {
42
+ "internalType": "int256",
43
+ "name": "x",
44
+ "type": "int256"
45
+ }
46
+ ],
47
+ "name": "PRBMathSD59x18__SqrtNegativeInput",
48
+ "type": "error"
49
+ },
50
+ {
51
+ "inputs": [
52
+ {
53
+ "internalType": "int256",
54
+ "name": "x",
55
+ "type": "int256"
56
+ }
57
+ ],
58
+ "name": "PRBMathSD59x18__SqrtOverflow",
59
+ "type": "error"
60
+ },
61
+ {
62
+ "inputs": [
63
+ {
64
+ "internalType": "uint256",
65
+ "name": "prod1",
66
+ "type": "uint256"
67
+ }
68
+ ],
69
+ "name": "PRBMath__MulDivFixedPointOverflow",
70
+ "type": "error"
71
+ },
72
+ {
73
+ "inputs": [
74
+ {
75
+ "internalType": "uint256",
76
+ "name": "prod1",
77
+ "type": "uint256"
78
+ },
79
+ {
80
+ "internalType": "uint256",
81
+ "name": "denominator",
82
+ "type": "uint256"
83
+ }
84
+ ],
85
+ "name": "PRBMath__MulDivOverflow",
86
+ "type": "error"
87
+ },
88
+ {
89
+ "anonymous": false,
90
+ "inputs": [
91
+ {
92
+ "indexed": true,
93
+ "internalType": "address",
94
+ "name": "sender",
95
+ "type": "address"
96
+ },
97
+ {
98
+ "indexed": true,
99
+ "internalType": "address",
100
+ "name": "recipient",
101
+ "type": "address"
102
+ },
103
+ {
104
+ "indexed": false,
105
+ "internalType": "uint256",
106
+ "name": "quoteAmount",
107
+ "type": "uint256"
108
+ },
109
+ {
110
+ "indexed": false,
111
+ "internalType": "uint256",
112
+ "name": "baseAmount",
113
+ "type": "uint256"
114
+ }
115
+ ],
116
+ "name": "AddLiquidity",
117
+ "type": "event"
118
+ },
119
+ {
120
+ "anonymous": false,
121
+ "inputs": [
122
+ {
123
+ "indexed": true,
124
+ "internalType": "address",
125
+ "name": "owner",
126
+ "type": "address"
127
+ },
128
+ {
129
+ "indexed": true,
130
+ "internalType": "address",
131
+ "name": "spender",
132
+ "type": "address"
133
+ },
134
+ {
135
+ "indexed": false,
136
+ "internalType": "uint256",
137
+ "name": "value",
138
+ "type": "uint256"
139
+ }
140
+ ],
141
+ "name": "Approval",
142
+ "type": "event"
143
+ },
144
+ {
145
+ "anonymous": false,
146
+ "inputs": [
147
+ {
148
+ "indexed": false,
149
+ "internalType": "uint8",
150
+ "name": "version",
151
+ "type": "uint8"
152
+ }
153
+ ],
154
+ "name": "Initialized",
155
+ "type": "event"
156
+ },
157
+ {
158
+ "anonymous": false,
159
+ "inputs": [
160
+ {
161
+ "indexed": true,
162
+ "internalType": "address",
163
+ "name": "sender",
164
+ "type": "address"
165
+ },
166
+ {
167
+ "indexed": true,
168
+ "internalType": "address",
169
+ "name": "recipient",
170
+ "type": "address"
171
+ },
172
+ {
173
+ "indexed": false,
174
+ "internalType": "uint256",
175
+ "name": "quoteAmount",
176
+ "type": "uint256"
177
+ },
178
+ {
179
+ "indexed": false,
180
+ "internalType": "uint256",
181
+ "name": "baseAmount",
182
+ "type": "uint256"
183
+ }
184
+ ],
185
+ "name": "RemoveLiquidity",
186
+ "type": "event"
187
+ },
188
+ {
189
+ "anonymous": false,
190
+ "inputs": [
191
+ {
192
+ "indexed": true,
193
+ "internalType": "address",
194
+ "name": "sender",
195
+ "type": "address"
196
+ },
197
+ {
198
+ "indexed": true,
199
+ "internalType": "address",
200
+ "name": "recipient",
201
+ "type": "address"
202
+ },
203
+ {
204
+ "indexed": false,
205
+ "internalType": "bool",
206
+ "name": "swapForBase",
207
+ "type": "bool"
208
+ },
209
+ {
210
+ "indexed": false,
211
+ "internalType": "uint256",
212
+ "name": "amountIn",
213
+ "type": "uint256"
214
+ },
215
+ {
216
+ "indexed": false,
217
+ "internalType": "uint256",
218
+ "name": "amountOut",
219
+ "type": "uint256"
220
+ }
221
+ ],
222
+ "name": "Swap",
223
+ "type": "event"
224
+ },
225
+ {
226
+ "anonymous": false,
227
+ "inputs": [
228
+ {
229
+ "indexed": true,
230
+ "internalType": "address",
231
+ "name": "from",
232
+ "type": "address"
233
+ },
234
+ {
235
+ "indexed": true,
236
+ "internalType": "address",
237
+ "name": "to",
238
+ "type": "address"
239
+ },
240
+ {
241
+ "indexed": false,
242
+ "internalType": "uint256",
243
+ "name": "value",
244
+ "type": "uint256"
245
+ }
246
+ ],
247
+ "name": "Transfer",
248
+ "type": "event"
249
+ },
250
+ {
251
+ "inputs": [
252
+ {
253
+ "internalType": "address",
254
+ "name": "recipient",
255
+ "type": "address"
256
+ }
257
+ ],
258
+ "name": "addLiquidity",
259
+ "outputs": [
260
+ {
261
+ "internalType": "uint256",
262
+ "name": "tokens",
263
+ "type": "uint256"
264
+ }
265
+ ],
266
+ "stateMutability": "nonpayable",
267
+ "type": "function"
268
+ },
269
+ {
270
+ "inputs": [
271
+ {
272
+ "internalType": "address",
273
+ "name": "owner",
274
+ "type": "address"
275
+ },
276
+ {
277
+ "internalType": "address",
278
+ "name": "spender",
279
+ "type": "address"
280
+ }
281
+ ],
282
+ "name": "allowance",
283
+ "outputs": [
284
+ {
285
+ "internalType": "uint256",
286
+ "name": "",
287
+ "type": "uint256"
288
+ }
289
+ ],
290
+ "stateMutability": "view",
291
+ "type": "function"
292
+ },
293
+ {
294
+ "inputs": [
295
+ {
296
+ "internalType": "address",
297
+ "name": "spender",
298
+ "type": "address"
299
+ },
300
+ {
301
+ "internalType": "uint256",
302
+ "name": "amount",
303
+ "type": "uint256"
304
+ }
305
+ ],
306
+ "name": "approve",
307
+ "outputs": [
308
+ {
309
+ "internalType": "bool",
310
+ "name": "",
311
+ "type": "bool"
312
+ }
313
+ ],
314
+ "stateMutability": "nonpayable",
315
+ "type": "function"
316
+ },
317
+ {
318
+ "inputs": [
319
+ {
320
+ "internalType": "address",
321
+ "name": "account",
322
+ "type": "address"
323
+ }
324
+ ],
325
+ "name": "balanceOf",
326
+ "outputs": [
327
+ {
328
+ "internalType": "uint256",
329
+ "name": "",
330
+ "type": "uint256"
331
+ }
332
+ ],
333
+ "stateMutability": "view",
334
+ "type": "function"
335
+ },
336
+ {
337
+ "inputs": [],
338
+ "name": "base",
339
+ "outputs": [
340
+ {
341
+ "internalType": "address",
342
+ "name": "",
343
+ "type": "address"
344
+ }
345
+ ],
346
+ "stateMutability": "view",
347
+ "type": "function"
348
+ },
349
+ {
350
+ "inputs": [],
351
+ "name": "baseBalance",
352
+ "outputs": [
353
+ {
354
+ "internalType": "int128",
355
+ "name": "",
356
+ "type": "int128"
357
+ }
358
+ ],
359
+ "stateMutability": "view",
360
+ "type": "function"
361
+ },
362
+ {
363
+ "inputs": [],
364
+ "name": "baseProtocolFeeEscrow",
365
+ "outputs": [
366
+ {
367
+ "internalType": "int128",
368
+ "name": "",
369
+ "type": "int128"
370
+ }
371
+ ],
372
+ "stateMutability": "view",
373
+ "type": "function"
374
+ },
375
+ {
376
+ "inputs": [
377
+ {
378
+ "internalType": "address",
379
+ "name": "recipient",
380
+ "type": "address"
381
+ }
382
+ ],
383
+ "name": "claimProtocolFees",
384
+ "outputs": [
385
+ {
386
+ "internalType": "uint256",
387
+ "name": "quoteAmount",
388
+ "type": "uint256"
389
+ },
390
+ {
391
+ "internalType": "uint256",
392
+ "name": "baseAmount",
393
+ "type": "uint256"
394
+ }
395
+ ],
396
+ "stateMutability": "nonpayable",
397
+ "type": "function"
398
+ },
399
+ {
400
+ "inputs": [],
401
+ "name": "decimals",
402
+ "outputs": [
403
+ {
404
+ "internalType": "uint8",
405
+ "name": "",
406
+ "type": "uint8"
407
+ }
408
+ ],
409
+ "stateMutability": "view",
410
+ "type": "function"
411
+ },
412
+ {
413
+ "inputs": [
414
+ {
415
+ "internalType": "address",
416
+ "name": "spender",
417
+ "type": "address"
418
+ },
419
+ {
420
+ "internalType": "uint256",
421
+ "name": "subtractedValue",
422
+ "type": "uint256"
423
+ }
424
+ ],
425
+ "name": "decreaseAllowance",
426
+ "outputs": [
427
+ {
428
+ "internalType": "bool",
429
+ "name": "",
430
+ "type": "bool"
431
+ }
432
+ ],
433
+ "stateMutability": "nonpayable",
434
+ "type": "function"
435
+ },
436
+ {
437
+ "inputs": [
438
+ {
439
+ "internalType": "address",
440
+ "name": "recipient",
441
+ "type": "address"
442
+ }
443
+ ],
444
+ "name": "emergencyClaimProtocolFees",
445
+ "outputs": [
446
+ {
447
+ "internalType": "uint256",
448
+ "name": "quoteAmount",
449
+ "type": "uint256"
450
+ },
451
+ {
452
+ "internalType": "uint256",
453
+ "name": "baseAmount",
454
+ "type": "uint256"
455
+ }
456
+ ],
457
+ "stateMutability": "nonpayable",
458
+ "type": "function"
459
+ },
460
+ {
461
+ "inputs": [
462
+ {
463
+ "internalType": "address",
464
+ "name": "recipient",
465
+ "type": "address"
466
+ }
467
+ ],
468
+ "name": "emergencyRemoveLiquidity",
469
+ "outputs": [
470
+ {
471
+ "internalType": "uint256",
472
+ "name": "quoteOut",
473
+ "type": "uint256"
474
+ },
475
+ {
476
+ "internalType": "uint256",
477
+ "name": "baseOut",
478
+ "type": "uint256"
479
+ }
480
+ ],
481
+ "stateMutability": "nonpayable",
482
+ "type": "function"
483
+ },
484
+ {
485
+ "inputs": [],
486
+ "name": "factory",
487
+ "outputs": [
488
+ {
489
+ "internalType": "address",
490
+ "name": "",
491
+ "type": "address"
492
+ }
493
+ ],
494
+ "stateMutability": "view",
495
+ "type": "function"
496
+ },
497
+ {
498
+ "inputs": [],
499
+ "name": "getState",
500
+ "outputs": [
501
+ {
502
+ "components": [
503
+ {
504
+ "internalType": "uint16",
505
+ "name": "twauLookback",
506
+ "type": "uint16"
507
+ },
508
+ {
509
+ "internalType": "int8",
510
+ "name": "uShiftMultiplier",
511
+ "type": "int8"
512
+ },
513
+ {
514
+ "internalType": "int16",
515
+ "name": "maxSpreadFee",
516
+ "type": "int16"
517
+ },
518
+ {
519
+ "internalType": "int16",
520
+ "name": "fee",
521
+ "type": "int16"
522
+ },
523
+ {
524
+ "internalType": "int8",
525
+ "name": "spreadFeeMultiplier",
526
+ "type": "int8"
527
+ },
528
+ {
529
+ "internalType": "int16",
530
+ "name": "protocolFeeRatio",
531
+ "type": "int16"
532
+ },
533
+ {
534
+ "internalType": "uint8",
535
+ "name": "quoteDecimals",
536
+ "type": "uint8"
537
+ },
538
+ {
539
+ "internalType": "uint8",
540
+ "name": "baseDecimals",
541
+ "type": "uint8"
542
+ },
543
+ {
544
+ "internalType": "uint8",
545
+ "name": "status",
546
+ "type": "uint8"
547
+ },
548
+ {
549
+ "internalType": "int16",
550
+ "name": "w",
551
+ "type": "int16"
552
+ },
553
+ {
554
+ "internalType": "int16",
555
+ "name": "k",
556
+ "type": "int16"
557
+ },
558
+ {
559
+ "internalType": "int8",
560
+ "name": "h",
561
+ "type": "int8"
562
+ },
563
+ {
564
+ "internalType": "int16",
565
+ "name": "epsilon",
566
+ "type": "int16"
567
+ },
568
+ {
569
+ "internalType": "uint8",
570
+ "name": "paramChoice",
571
+ "type": "uint8"
572
+ }
573
+ ],
574
+ "internalType": "struct IPool.State",
575
+ "name": "",
576
+ "type": "tuple"
577
+ }
578
+ ],
579
+ "stateMutability": "view",
580
+ "type": "function"
581
+ },
582
+ {
583
+ "inputs": [],
584
+ "name": "getTwapParameters",
585
+ "outputs": [
586
+ {
587
+ "internalType": "uint32",
588
+ "name": "_lastTimestamp",
589
+ "type": "uint32"
590
+ },
591
+ {
592
+ "internalType": "uint224",
593
+ "name": "_twau",
594
+ "type": "uint224"
595
+ }
596
+ ],
597
+ "stateMutability": "view",
598
+ "type": "function"
599
+ },
600
+ {
601
+ "inputs": [
602
+ {
603
+ "internalType": "address",
604
+ "name": "spender",
605
+ "type": "address"
606
+ },
607
+ {
608
+ "internalType": "uint256",
609
+ "name": "addedValue",
610
+ "type": "uint256"
611
+ }
612
+ ],
613
+ "name": "increaseAllowance",
614
+ "outputs": [
615
+ {
616
+ "internalType": "bool",
617
+ "name": "",
618
+ "type": "bool"
619
+ }
620
+ ],
621
+ "stateMutability": "nonpayable",
622
+ "type": "function"
623
+ },
624
+ {
625
+ "inputs": [
626
+ {
627
+ "components": [
628
+ {
629
+ "internalType": "string",
630
+ "name": "name",
631
+ "type": "string"
632
+ },
633
+ {
634
+ "internalType": "string",
635
+ "name": "symbol",
636
+ "type": "string"
637
+ },
638
+ {
639
+ "internalType": "address",
640
+ "name": "factory",
641
+ "type": "address"
642
+ },
643
+ {
644
+ "internalType": "address",
645
+ "name": "quote",
646
+ "type": "address"
647
+ },
648
+ {
649
+ "internalType": "address",
650
+ "name": "base",
651
+ "type": "address"
652
+ },
653
+ {
654
+ "internalType": "int16",
655
+ "name": "fee",
656
+ "type": "int16"
657
+ },
658
+ {
659
+ "internalType": "int16",
660
+ "name": "w",
661
+ "type": "int16"
662
+ },
663
+ {
664
+ "internalType": "int16",
665
+ "name": "k",
666
+ "type": "int16"
667
+ },
668
+ {
669
+ "internalType": "int8",
670
+ "name": "h",
671
+ "type": "int8"
672
+ },
673
+ {
674
+ "internalType": "uint8",
675
+ "name": "paramChoice",
676
+ "type": "uint8"
677
+ },
678
+ {
679
+ "internalType": "int16",
680
+ "name": "protocolFeeRatio",
681
+ "type": "int16"
682
+ },
683
+ {
684
+ "internalType": "int8",
685
+ "name": "uShiftMultiplier",
686
+ "type": "int8"
687
+ },
688
+ {
689
+ "internalType": "int16",
690
+ "name": "epsilon",
691
+ "type": "int16"
692
+ },
693
+ {
694
+ "internalType": "int8",
695
+ "name": "spreadFeeMultiplier",
696
+ "type": "int8"
697
+ },
698
+ {
699
+ "internalType": "uint16",
700
+ "name": "twauLookback",
701
+ "type": "uint16"
702
+ }
703
+ ],
704
+ "internalType": "struct IPool.InitializeParams",
705
+ "name": "params",
706
+ "type": "tuple"
707
+ }
708
+ ],
709
+ "name": "initialize",
710
+ "outputs": [],
711
+ "stateMutability": "nonpayable",
712
+ "type": "function"
713
+ },
714
+ {
715
+ "inputs": [],
716
+ "name": "name",
717
+ "outputs": [
718
+ {
719
+ "internalType": "string",
720
+ "name": "",
721
+ "type": "string"
722
+ }
723
+ ],
724
+ "stateMutability": "view",
725
+ "type": "function"
726
+ },
727
+ {
728
+ "inputs": [],
729
+ "name": "quote",
730
+ "outputs": [
731
+ {
732
+ "internalType": "address",
733
+ "name": "",
734
+ "type": "address"
735
+ }
736
+ ],
737
+ "stateMutability": "view",
738
+ "type": "function"
739
+ },
740
+ {
741
+ "inputs": [],
742
+ "name": "quoteBalance",
743
+ "outputs": [
744
+ {
745
+ "internalType": "int128",
746
+ "name": "",
747
+ "type": "int128"
748
+ }
749
+ ],
750
+ "stateMutability": "view",
751
+ "type": "function"
752
+ },
753
+ {
754
+ "inputs": [],
755
+ "name": "quoteProtocolFeeEscrow",
756
+ "outputs": [
757
+ {
758
+ "internalType": "int128",
759
+ "name": "",
760
+ "type": "int128"
761
+ }
762
+ ],
763
+ "stateMutability": "view",
764
+ "type": "function"
765
+ },
766
+ {
767
+ "inputs": [
768
+ {
769
+ "internalType": "address",
770
+ "name": "recipient",
771
+ "type": "address"
772
+ }
773
+ ],
774
+ "name": "removeLiquidity",
775
+ "outputs": [
776
+ {
777
+ "internalType": "uint256",
778
+ "name": "quoteOut",
779
+ "type": "uint256"
780
+ },
781
+ {
782
+ "internalType": "uint256",
783
+ "name": "baseOut",
784
+ "type": "uint256"
785
+ }
786
+ ],
787
+ "stateMutability": "nonpayable",
788
+ "type": "function"
789
+ },
790
+ {
791
+ "inputs": [
792
+ {
793
+ "internalType": "address",
794
+ "name": "recipient",
795
+ "type": "address"
796
+ },
797
+ {
798
+ "internalType": "bool",
799
+ "name": "swapForBase",
800
+ "type": "bool"
801
+ }
802
+ ],
803
+ "name": "swap",
804
+ "outputs": [
805
+ {
806
+ "internalType": "uint256",
807
+ "name": "outputAmount",
808
+ "type": "uint256"
809
+ }
810
+ ],
811
+ "stateMutability": "nonpayable",
812
+ "type": "function"
813
+ },
814
+ {
815
+ "inputs": [],
816
+ "name": "symbol",
817
+ "outputs": [
818
+ {
819
+ "internalType": "string",
820
+ "name": "",
821
+ "type": "string"
822
+ }
823
+ ],
824
+ "stateMutability": "view",
825
+ "type": "function"
826
+ },
827
+ {
828
+ "inputs": [],
829
+ "name": "totalSupply",
830
+ "outputs": [
831
+ {
832
+ "internalType": "uint256",
833
+ "name": "",
834
+ "type": "uint256"
835
+ }
836
+ ],
837
+ "stateMutability": "view",
838
+ "type": "function"
839
+ },
840
+ {
841
+ "inputs": [
842
+ {
843
+ "internalType": "address",
844
+ "name": "to",
845
+ "type": "address"
846
+ },
847
+ {
848
+ "internalType": "uint256",
849
+ "name": "amount",
850
+ "type": "uint256"
851
+ }
852
+ ],
853
+ "name": "transfer",
854
+ "outputs": [
855
+ {
856
+ "internalType": "bool",
857
+ "name": "",
858
+ "type": "bool"
859
+ }
860
+ ],
861
+ "stateMutability": "nonpayable",
862
+ "type": "function"
863
+ },
864
+ {
865
+ "inputs": [
866
+ {
867
+ "internalType": "address",
868
+ "name": "from",
869
+ "type": "address"
870
+ },
871
+ {
872
+ "internalType": "address",
873
+ "name": "to",
874
+ "type": "address"
875
+ },
876
+ {
877
+ "internalType": "uint256",
878
+ "name": "amount",
879
+ "type": "uint256"
880
+ }
881
+ ],
882
+ "name": "transferFrom",
883
+ "outputs": [
884
+ {
885
+ "internalType": "bool",
886
+ "name": "",
887
+ "type": "bool"
888
+ }
889
+ ],
890
+ "stateMutability": "nonpayable",
891
+ "type": "function"
892
+ },
893
+ {
894
+ "inputs": [],
895
+ "name": "triggerEmergencyMode",
896
+ "outputs": [],
897
+ "stateMutability": "nonpayable",
898
+ "type": "function"
899
+ },
900
+ {
901
+ "inputs": [],
902
+ "name": "u",
903
+ "outputs": [
904
+ {
905
+ "internalType": "int256",
906
+ "name": "",
907
+ "type": "int256"
908
+ }
909
+ ],
910
+ "stateMutability": "view",
911
+ "type": "function"
912
+ }
913
+ ]