@gmx-io/sdk 0.0.4 → 0.0.5

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 (90) hide show
  1. package/build/src/abis/CustomErrors.json +3196 -3196
  2. package/build/src/abis/DataStore.json +1335 -1335
  3. package/build/src/abis/ERC721.json +399 -399
  4. package/build/src/abis/EventEmitter.json +1967 -1967
  5. package/build/src/abis/ExchangeRouter.json +1461 -1461
  6. package/build/src/abis/GMT.json +478 -478
  7. package/build/src/abis/GlpManager.json +590 -589
  8. package/build/src/abis/GlvReader.json +1338 -1337
  9. package/build/src/abis/GlvRouter.json +595 -594
  10. package/build/src/abis/GmxMigrator.json +601 -601
  11. package/build/src/abis/GovToken.json +1040 -1040
  12. package/build/src/abis/MintableBaseToken.json +645 -645
  13. package/build/src/abis/Multicall.json +310 -310
  14. package/build/src/abis/OrderBook.json +1995 -1995
  15. package/build/src/abis/OrderBookReader.json +103 -103
  16. package/build/src/abis/OrderExecutor.json +108 -108
  17. package/build/src/abis/PositionManager.json +1162 -1162
  18. package/build/src/abis/PositionRouter.json +2028 -2028
  19. package/build/src/abis/Reader.json +328 -328
  20. package/build/src/abis/ReaderV2.json +628 -628
  21. package/build/src/abis/ReferralStorage.json +460 -460
  22. package/build/src/abis/RewardReader.json +78 -78
  23. package/build/src/abis/RewardRouter.json +767 -767
  24. package/build/src/abis/RewardTracker.json +848 -848
  25. package/build/src/abis/Router-v2.json +602 -602
  26. package/build/src/abis/Router.json +602 -602
  27. package/build/src/abis/SubaccountRouter.json +572 -572
  28. package/build/src/abis/SyntheticsReader.json +4238 -4238
  29. package/build/src/abis/SyntheticsRouter.json +67 -67
  30. package/build/src/abis/Timelock.json +1735 -1735
  31. package/build/src/abis/Token.json +311 -311
  32. package/build/src/abis/Treasury.json +375 -375
  33. package/build/src/abis/UniPool.json +81 -81
  34. package/build/src/abis/UniswapV2.json +1 -1
  35. package/build/src/abis/Vault.json +3218 -3218
  36. package/build/src/abis/VaultReader.json +81 -81
  37. package/build/src/abis/VaultV2.json +3017 -3017
  38. package/build/src/abis/VaultV2b.json +3218 -3218
  39. package/build/src/abis/Vester.json +942 -942
  40. package/build/src/abis/WETH.json +289 -289
  41. package/build/src/abis/YieldFarm.json +556 -556
  42. package/build/src/abis/YieldToken.json +512 -512
  43. package/build/src/prebuilt/hashedMarketConfigKeys.json +3656 -3656
  44. package/build/src/prebuilt/hashedMarketValuesKeys.json +1101 -1101
  45. package/package.json +2 -2
  46. package/build/abis/CustomErrors.json +0 -3254
  47. package/build/abis/DataStore.json +0 -1440
  48. package/build/abis/ERC721.json +0 -442
  49. package/build/abis/EventEmitter.json +0 -2065
  50. package/build/abis/ExchangeRouter.json +0 -1598
  51. package/build/abis/GMT.json +0 -522
  52. package/build/abis/GlpManager.json +0 -592
  53. package/build/abis/GlvReader.json +0 -1425
  54. package/build/abis/GlvRouter.json +0 -613
  55. package/build/abis/GmxMigrator.json +0 -657
  56. package/build/abis/GovToken.json +0 -1121
  57. package/build/abis/MintableBaseToken.json +0 -696
  58. package/build/abis/Multicall.json +0 -333
  59. package/build/abis/OrderBook.json +0 -1997
  60. package/build/abis/OrderBookReader.json +0 -111
  61. package/build/abis/OrderExecutor.json +0 -122
  62. package/build/abis/PositionManager.json +0 -1165
  63. package/build/abis/PositionRouter.json +0 -2030
  64. package/build/abis/Reader.json +0 -355
  65. package/build/abis/ReaderV2.json +0 -630
  66. package/build/abis/ReferralStorage.json +0 -507
  67. package/build/abis/RewardReader.json +0 -86
  68. package/build/abis/RewardRouter.json +0 -769
  69. package/build/abis/RewardTracker.json +0 -918
  70. package/build/abis/Router-v2.json +0 -605
  71. package/build/abis/Router.json +0 -605
  72. package/build/abis/SubaccountRouter.json +0 -648
  73. package/build/abis/SyntheticsReader.json +0 -4577
  74. package/build/abis/SyntheticsRouter.json +0 -77
  75. package/build/abis/Timelock.json +0 -1737
  76. package/build/abis/Token.json +0 -345
  77. package/build/abis/Treasury.json +0 -411
  78. package/build/abis/UniPool.json +0 -89
  79. package/build/abis/UniswapV2.json +0 -1
  80. package/build/abis/Vault.json +0 -3220
  81. package/build/abis/VaultReader.json +0 -87
  82. package/build/abis/VaultV2.json +0 -3019
  83. package/build/abis/VaultV2b.json +0 -3220
  84. package/build/abis/Vester.json +0 -1031
  85. package/build/abis/WETH.json +0 -320
  86. package/build/abis/YieldFarm.json +0 -599
  87. package/build/abis/YieldToken.json +0 -560
  88. package/build/prebuilt/hashedMarketConfigKeys.json +0 -3658
  89. package/build/prebuilt/hashedMarketValuesKeys.json +0 -1103
  90. /package/build/{prebuilt → src/prebuilt}/index.ts +0 -0
@@ -1,1737 +1,1737 @@
1
1
  {
2
- "_format": "hh-sol-artifact-1",
3
- "contractName": "Timelock",
4
- "sourceName": "contracts/peripherals/Timelock.sol",
5
- "abi": [
6
- {
7
- "inputs": [
8
- {
9
- "internalType": "address",
10
- "name": "_admin",
11
- "type": "address"
12
- },
13
- {
14
- "internalType": "uint256",
15
- "name": "_buffer",
16
- "type": "uint256"
17
- },
18
- {
19
- "internalType": "address",
20
- "name": "_tokenManager",
21
- "type": "address"
22
- },
23
- {
24
- "internalType": "address",
25
- "name": "_mintReceiver",
26
- "type": "address"
27
- },
28
- {
29
- "internalType": "address",
30
- "name": "_glpManager",
31
- "type": "address"
32
- },
33
- {
34
- "internalType": "address",
35
- "name": "_rewardRouter",
36
- "type": "address"
37
- },
38
- {
39
- "internalType": "uint256",
40
- "name": "_maxTokenSupply",
41
- "type": "uint256"
42
- },
43
- {
44
- "internalType": "uint256",
45
- "name": "_marginFeeBasisPoints",
46
- "type": "uint256"
47
- },
48
- {
49
- "internalType": "uint256",
50
- "name": "_maxMarginFeeBasisPoints",
51
- "type": "uint256"
52
- }
53
- ],
54
- "stateMutability": "nonpayable",
55
- "type": "constructor"
56
- },
57
- {
58
- "anonymous": false,
59
- "inputs": [
60
- {
61
- "indexed": false,
62
- "internalType": "bytes32",
63
- "name": "action",
64
- "type": "bytes32"
65
- }
66
- ],
67
- "name": "ClearAction",
68
- "type": "event"
69
- },
70
- {
71
- "anonymous": false,
72
- "inputs": [
73
- {
74
- "indexed": false,
75
- "internalType": "address",
76
- "name": "token",
77
- "type": "address"
78
- },
79
- {
80
- "indexed": false,
81
- "internalType": "address",
82
- "name": "spender",
83
- "type": "address"
84
- },
85
- {
86
- "indexed": false,
87
- "internalType": "uint256",
88
- "name": "amount",
89
- "type": "uint256"
90
- },
91
- {
92
- "indexed": false,
93
- "internalType": "bytes32",
94
- "name": "action",
95
- "type": "bytes32"
96
- }
97
- ],
98
- "name": "SignalApprove",
99
- "type": "event"
100
- },
101
- {
102
- "anonymous": false,
103
- "inputs": [
104
- {
105
- "indexed": false,
106
- "internalType": "address",
107
- "name": "token",
108
- "type": "address"
109
- },
110
- {
111
- "indexed": false,
112
- "internalType": "address",
113
- "name": "receiver",
114
- "type": "address"
115
- },
116
- {
117
- "indexed": false,
118
- "internalType": "uint256",
119
- "name": "amount",
120
- "type": "uint256"
121
- },
122
- {
123
- "indexed": false,
124
- "internalType": "bytes32",
125
- "name": "action",
126
- "type": "bytes32"
127
- }
128
- ],
129
- "name": "SignalMint",
130
- "type": "event"
131
- },
132
- {
133
- "anonymous": false,
134
- "inputs": [
135
- {
136
- "indexed": false,
137
- "internalType": "bytes32",
138
- "name": "action",
139
- "type": "bytes32"
140
- }
141
- ],
142
- "name": "SignalPendingAction",
143
- "type": "event"
144
- },
145
- {
146
- "anonymous": false,
147
- "inputs": [
148
- {
149
- "indexed": false,
150
- "internalType": "address",
151
- "name": "vault",
152
- "type": "address"
153
- },
154
- {
155
- "indexed": false,
156
- "internalType": "address",
157
- "name": "token",
158
- "type": "address"
159
- },
160
- {
161
- "indexed": false,
162
- "internalType": "uint256",
163
- "name": "amount",
164
- "type": "uint256"
165
- }
166
- ],
167
- "name": "SignalRedeemUsdg",
168
- "type": "event"
169
- },
170
- {
171
- "anonymous": false,
172
- "inputs": [
173
- {
174
- "indexed": false,
175
- "internalType": "address",
176
- "name": "target",
177
- "type": "address"
178
- },
179
- {
180
- "indexed": false,
181
- "internalType": "address",
182
- "name": "gov",
183
- "type": "address"
184
- },
185
- {
186
- "indexed": false,
187
- "internalType": "bytes32",
188
- "name": "action",
189
- "type": "bytes32"
190
- }
191
- ],
192
- "name": "SignalSetGov",
193
- "type": "event"
194
- },
195
- {
196
- "anonymous": false,
197
- "inputs": [
198
- {
199
- "indexed": false,
200
- "internalType": "address",
201
- "name": "target",
202
- "type": "address"
203
- },
204
- {
205
- "indexed": false,
206
- "internalType": "address",
207
- "name": "handler",
208
- "type": "address"
209
- },
210
- {
211
- "indexed": false,
212
- "internalType": "bool",
213
- "name": "isActive",
214
- "type": "bool"
215
- },
216
- {
217
- "indexed": false,
218
- "internalType": "bytes32",
219
- "name": "action",
220
- "type": "bytes32"
221
- }
222
- ],
223
- "name": "SignalSetHandler",
224
- "type": "event"
225
- },
226
- {
227
- "anonymous": false,
228
- "inputs": [
229
- {
230
- "indexed": false,
231
- "internalType": "address",
232
- "name": "vault",
233
- "type": "address"
234
- },
235
- {
236
- "indexed": false,
237
- "internalType": "address",
238
- "name": "priceFeed",
239
- "type": "address"
240
- },
241
- {
242
- "indexed": false,
243
- "internalType": "bytes32",
244
- "name": "action",
245
- "type": "bytes32"
246
- }
247
- ],
248
- "name": "SignalSetPriceFeed",
249
- "type": "event"
250
- },
251
- {
252
- "anonymous": false,
253
- "inputs": [
254
- {
255
- "indexed": false,
256
- "internalType": "address",
257
- "name": "vault",
258
- "type": "address"
259
- },
260
- {
261
- "indexed": false,
262
- "internalType": "address",
263
- "name": "token",
264
- "type": "address"
265
- },
266
- {
267
- "indexed": false,
268
- "internalType": "uint256",
269
- "name": "tokenDecimals",
270
- "type": "uint256"
271
- },
272
- {
273
- "indexed": false,
274
- "internalType": "uint256",
275
- "name": "tokenWeight",
276
- "type": "uint256"
277
- },
278
- {
279
- "indexed": false,
280
- "internalType": "uint256",
281
- "name": "minProfitBps",
282
- "type": "uint256"
283
- },
284
- {
285
- "indexed": false,
286
- "internalType": "uint256",
287
- "name": "maxUsdgAmount",
288
- "type": "uint256"
289
- },
290
- {
291
- "indexed": false,
292
- "internalType": "bool",
293
- "name": "isStable",
294
- "type": "bool"
295
- },
296
- {
297
- "indexed": false,
298
- "internalType": "bool",
299
- "name": "isShortable",
300
- "type": "bool"
301
- }
302
- ],
303
- "name": "SignalVaultSetTokenConfig",
304
- "type": "event"
305
- },
306
- {
307
- "anonymous": false,
308
- "inputs": [
309
- {
310
- "indexed": false,
311
- "internalType": "address",
312
- "name": "target",
313
- "type": "address"
314
- },
315
- {
316
- "indexed": false,
317
- "internalType": "address",
318
- "name": "token",
319
- "type": "address"
320
- },
321
- {
322
- "indexed": false,
323
- "internalType": "address",
324
- "name": "receiver",
325
- "type": "address"
326
- },
327
- {
328
- "indexed": false,
329
- "internalType": "uint256",
330
- "name": "amount",
331
- "type": "uint256"
332
- },
333
- {
334
- "indexed": false,
335
- "internalType": "bytes32",
336
- "name": "action",
337
- "type": "bytes32"
338
- }
339
- ],
340
- "name": "SignalWithdrawToken",
341
- "type": "event"
342
- },
343
- {
344
- "inputs": [],
345
- "name": "MAX_BUFFER",
346
- "outputs": [
347
- {
348
- "internalType": "uint256",
349
- "name": "",
350
- "type": "uint256"
351
- }
352
- ],
353
- "stateMutability": "view",
354
- "type": "function"
355
- },
356
- {
357
- "inputs": [],
358
- "name": "MAX_FUNDING_RATE_FACTOR",
359
- "outputs": [
360
- {
361
- "internalType": "uint256",
362
- "name": "",
363
- "type": "uint256"
364
- }
365
- ],
366
- "stateMutability": "view",
367
- "type": "function"
368
- },
369
- {
370
- "inputs": [],
371
- "name": "MAX_LEVERAGE_VALIDATION",
372
- "outputs": [
373
- {
374
- "internalType": "uint256",
375
- "name": "",
376
- "type": "uint256"
377
- }
378
- ],
379
- "stateMutability": "view",
380
- "type": "function"
381
- },
382
- {
383
- "inputs": [],
384
- "name": "PRICE_PRECISION",
385
- "outputs": [
386
- {
387
- "internalType": "uint256",
388
- "name": "",
389
- "type": "uint256"
390
- }
391
- ],
392
- "stateMutability": "view",
393
- "type": "function"
394
- },
395
- {
396
- "inputs": [],
397
- "name": "admin",
398
- "outputs": [
399
- {
400
- "internalType": "address",
401
- "name": "",
402
- "type": "address"
403
- }
404
- ],
405
- "stateMutability": "view",
406
- "type": "function"
407
- },
408
- {
409
- "inputs": [
410
- {
411
- "internalType": "address",
412
- "name": "_token",
413
- "type": "address"
414
- },
415
- {
416
- "internalType": "address",
417
- "name": "_spender",
418
- "type": "address"
419
- },
420
- {
421
- "internalType": "uint256",
422
- "name": "_amount",
423
- "type": "uint256"
424
- }
425
- ],
426
- "name": "approve",
427
- "outputs": [],
428
- "stateMutability": "nonpayable",
429
- "type": "function"
430
- },
431
- {
432
- "inputs": [
433
- {
434
- "internalType": "address",
435
- "name": "_vester",
436
- "type": "address"
437
- },
438
- {
439
- "internalType": "address[]",
440
- "name": "_accounts",
441
- "type": "address[]"
442
- },
443
- {
444
- "internalType": "uint256[]",
445
- "name": "_amounts",
446
- "type": "uint256[]"
447
- }
448
- ],
449
- "name": "batchSetBonusRewards",
450
- "outputs": [],
451
- "stateMutability": "nonpayable",
452
- "type": "function"
453
- },
454
- {
455
- "inputs": [
456
- {
457
- "internalType": "address",
458
- "name": "_vault",
459
- "type": "address"
460
- },
461
- {
462
- "internalType": "address[]",
463
- "name": "_tokens",
464
- "type": "address[]"
465
- }
466
- ],
467
- "name": "batchWithdrawFees",
468
- "outputs": [],
469
- "stateMutability": "nonpayable",
470
- "type": "function"
471
- },
472
- {
473
- "inputs": [],
474
- "name": "buffer",
475
- "outputs": [
476
- {
477
- "internalType": "uint256",
478
- "name": "",
479
- "type": "uint256"
480
- }
481
- ],
482
- "stateMutability": "view",
483
- "type": "function"
484
- },
485
- {
486
- "inputs": [
487
- {
488
- "internalType": "bytes32",
489
- "name": "_action",
490
- "type": "bytes32"
491
- }
492
- ],
493
- "name": "cancelAction",
494
- "outputs": [],
495
- "stateMutability": "nonpayable",
496
- "type": "function"
497
- },
498
- {
499
- "inputs": [
500
- {
501
- "internalType": "address",
502
- "name": "_vault",
503
- "type": "address"
504
- }
505
- ],
506
- "name": "disableLeverage",
507
- "outputs": [],
508
- "stateMutability": "nonpayable",
509
- "type": "function"
510
- },
511
- {
512
- "inputs": [
513
- {
514
- "internalType": "address",
515
- "name": "_vault",
516
- "type": "address"
517
- }
518
- ],
519
- "name": "enableLeverage",
520
- "outputs": [],
521
- "stateMutability": "nonpayable",
522
- "type": "function"
523
- },
524
- {
525
- "inputs": [],
526
- "name": "glpManager",
527
- "outputs": [
528
- {
529
- "internalType": "address",
530
- "name": "",
531
- "type": "address"
532
- }
533
- ],
534
- "stateMutability": "view",
535
- "type": "function"
536
- },
537
- {
538
- "inputs": [
539
- {
540
- "internalType": "address",
541
- "name": "_referralStorage",
542
- "type": "address"
543
- },
544
- {
545
- "internalType": "bytes32",
546
- "name": "_code",
547
- "type": "bytes32"
548
- },
549
- {
550
- "internalType": "address",
551
- "name": "_newAccount",
552
- "type": "address"
553
- }
554
- ],
555
- "name": "govSetCodeOwner",
556
- "outputs": [],
557
- "stateMutability": "nonpayable",
558
- "type": "function"
559
- },
560
- {
561
- "inputs": [],
562
- "name": "initGlpManager",
563
- "outputs": [],
564
- "stateMutability": "nonpayable",
565
- "type": "function"
566
- },
567
- {
568
- "inputs": [],
569
- "name": "initRewardRouter",
570
- "outputs": [],
571
- "stateMutability": "nonpayable",
572
- "type": "function"
573
- },
574
- {
575
- "inputs": [
576
- {
577
- "internalType": "address",
578
- "name": "",
579
- "type": "address"
580
- }
581
- ],
582
- "name": "isHandler",
583
- "outputs": [
584
- {
585
- "internalType": "bool",
586
- "name": "",
587
- "type": "bool"
588
- }
589
- ],
590
- "stateMutability": "view",
591
- "type": "function"
592
- },
593
- {
594
- "inputs": [
595
- {
596
- "internalType": "address",
597
- "name": "",
598
- "type": "address"
599
- }
600
- ],
601
- "name": "isKeeper",
602
- "outputs": [
603
- {
604
- "internalType": "bool",
605
- "name": "",
606
- "type": "bool"
607
- }
608
- ],
609
- "stateMutability": "view",
610
- "type": "function"
611
- },
612
- {
613
- "inputs": [],
614
- "name": "marginFeeBasisPoints",
615
- "outputs": [
616
- {
617
- "internalType": "uint256",
618
- "name": "",
619
- "type": "uint256"
620
- }
621
- ],
622
- "stateMutability": "view",
623
- "type": "function"
624
- },
625
- {
626
- "inputs": [],
627
- "name": "maxMarginFeeBasisPoints",
628
- "outputs": [
629
- {
630
- "internalType": "uint256",
631
- "name": "",
632
- "type": "uint256"
633
- }
634
- ],
635
- "stateMutability": "view",
636
- "type": "function"
637
- },
638
- {
639
- "inputs": [],
640
- "name": "maxTokenSupply",
641
- "outputs": [
642
- {
643
- "internalType": "uint256",
644
- "name": "",
645
- "type": "uint256"
646
- }
647
- ],
648
- "stateMutability": "view",
649
- "type": "function"
650
- },
651
- {
652
- "inputs": [],
653
- "name": "mintReceiver",
654
- "outputs": [
655
- {
656
- "internalType": "address",
657
- "name": "",
658
- "type": "address"
659
- }
660
- ],
661
- "stateMutability": "view",
662
- "type": "function"
663
- },
664
- {
665
- "inputs": [
666
- {
667
- "internalType": "bytes32",
668
- "name": "",
669
- "type": "bytes32"
670
- }
671
- ],
672
- "name": "pendingActions",
673
- "outputs": [
674
- {
675
- "internalType": "uint256",
676
- "name": "",
677
- "type": "uint256"
678
- }
679
- ],
680
- "stateMutability": "view",
681
- "type": "function"
682
- },
683
- {
684
- "inputs": [
685
- {
686
- "internalType": "address",
687
- "name": "_token",
688
- "type": "address"
689
- },
690
- {
691
- "internalType": "address",
692
- "name": "_receiver",
693
- "type": "address"
694
- },
695
- {
696
- "internalType": "uint256",
697
- "name": "_amount",
698
- "type": "uint256"
699
- }
700
- ],
701
- "name": "processMint",
702
- "outputs": [],
703
- "stateMutability": "nonpayable",
704
- "type": "function"
705
- },
706
- {
707
- "inputs": [
708
- {
709
- "internalType": "address",
710
- "name": "_vault",
711
- "type": "address"
712
- },
713
- {
714
- "internalType": "address",
715
- "name": "_token",
716
- "type": "address"
717
- },
718
- {
719
- "internalType": "uint256",
720
- "name": "_amount",
721
- "type": "uint256"
722
- }
723
- ],
724
- "name": "redeemUsdg",
725
- "outputs": [],
726
- "stateMutability": "nonpayable",
727
- "type": "function"
728
- },
729
- {
730
- "inputs": [
731
- {
732
- "internalType": "address",
733
- "name": "_token",
734
- "type": "address"
735
- },
736
- {
737
- "internalType": "address",
738
- "name": "_account",
739
- "type": "address"
740
- }
741
- ],
742
- "name": "removeAdmin",
743
- "outputs": [],
744
- "stateMutability": "nonpayable",
745
- "type": "function"
746
- },
747
- {
748
- "inputs": [],
749
- "name": "rewardRouter",
750
- "outputs": [
751
- {
752
- "internalType": "address",
753
- "name": "",
754
- "type": "address"
755
- }
756
- ],
757
- "stateMutability": "view",
758
- "type": "function"
759
- },
760
- {
761
- "inputs": [
762
- {
763
- "internalType": "address",
764
- "name": "_admin",
765
- "type": "address"
766
- }
767
- ],
768
- "name": "setAdmin",
769
- "outputs": [],
770
- "stateMutability": "nonpayable",
771
- "type": "function"
772
- },
773
- {
774
- "inputs": [
775
- {
776
- "internalType": "uint256",
777
- "name": "_buffer",
778
- "type": "uint256"
779
- }
780
- ],
781
- "name": "setBuffer",
782
- "outputs": [],
783
- "stateMutability": "nonpayable",
784
- "type": "function"
785
- },
786
- {
787
- "inputs": [
788
- {
789
- "internalType": "address",
790
- "name": "_handler",
791
- "type": "address"
792
- },
793
- {
794
- "internalType": "bool",
795
- "name": "_isActive",
796
- "type": "bool"
797
- }
798
- ],
799
- "name": "setContractHandler",
800
- "outputs": [],
801
- "stateMutability": "nonpayable",
802
- "type": "function"
803
- },
804
- {
805
- "inputs": [
806
- {
807
- "internalType": "address",
808
- "name": "_target",
809
- "type": "address"
810
- },
811
- {
812
- "internalType": "address",
813
- "name": "_admin",
814
- "type": "address"
815
- }
816
- ],
817
- "name": "setExternalAdmin",
818
- "outputs": [],
819
- "stateMutability": "nonpayable",
820
- "type": "function"
821
- },
822
- {
823
- "inputs": [
824
- {
825
- "internalType": "address",
826
- "name": "_vault",
827
- "type": "address"
828
- },
829
- {
830
- "internalType": "uint256",
831
- "name": "_taxBasisPoints",
832
- "type": "uint256"
833
- },
834
- {
835
- "internalType": "uint256",
836
- "name": "_stableTaxBasisPoints",
837
- "type": "uint256"
838
- },
839
- {
840
- "internalType": "uint256",
841
- "name": "_mintBurnFeeBasisPoints",
842
- "type": "uint256"
843
- },
844
- {
845
- "internalType": "uint256",
846
- "name": "_swapFeeBasisPoints",
847
- "type": "uint256"
848
- },
849
- {
850
- "internalType": "uint256",
851
- "name": "_stableSwapFeeBasisPoints",
852
- "type": "uint256"
853
- },
854
- {
855
- "internalType": "uint256",
856
- "name": "_marginFeeBasisPoints",
857
- "type": "uint256"
858
- },
859
- {
860
- "internalType": "uint256",
861
- "name": "_liquidationFeeUsd",
862
- "type": "uint256"
863
- },
864
- {
865
- "internalType": "uint256",
866
- "name": "_minProfitTime",
867
- "type": "uint256"
868
- },
869
- {
870
- "internalType": "bool",
871
- "name": "_hasDynamicFees",
872
- "type": "bool"
873
- }
874
- ],
875
- "name": "setFees",
876
- "outputs": [],
877
- "stateMutability": "nonpayable",
878
- "type": "function"
879
- },
880
- {
881
- "inputs": [
882
- {
883
- "internalType": "address",
884
- "name": "_vault",
885
- "type": "address"
886
- },
887
- {
888
- "internalType": "uint256",
889
- "name": "_fundingInterval",
890
- "type": "uint256"
891
- },
892
- {
893
- "internalType": "uint256",
894
- "name": "_fundingRateFactor",
895
- "type": "uint256"
896
- },
897
- {
898
- "internalType": "uint256",
899
- "name": "_stableFundingRateFactor",
900
- "type": "uint256"
901
- }
902
- ],
903
- "name": "setFundingRate",
904
- "outputs": [],
905
- "stateMutability": "nonpayable",
906
- "type": "function"
907
- },
908
- {
909
- "inputs": [
910
- {
911
- "internalType": "uint256",
912
- "name": "_cooldownDuration",
913
- "type": "uint256"
914
- }
915
- ],
916
- "name": "setGlpCooldownDuration",
917
- "outputs": [],
918
- "stateMutability": "nonpayable",
919
- "type": "function"
920
- },
921
- {
922
- "inputs": [
923
- {
924
- "internalType": "address",
925
- "name": "_target",
926
- "type": "address"
927
- },
928
- {
929
- "internalType": "address",
930
- "name": "_gov",
931
- "type": "address"
932
- }
933
- ],
934
- "name": "setGov",
935
- "outputs": [],
936
- "stateMutability": "nonpayable",
937
- "type": "function"
938
- },
939
- {
940
- "inputs": [
941
- {
942
- "internalType": "address",
943
- "name": "_target",
944
- "type": "address"
945
- },
946
- {
947
- "internalType": "address",
948
- "name": "_handler",
949
- "type": "address"
950
- },
951
- {
952
- "internalType": "bool",
953
- "name": "_isActive",
954
- "type": "bool"
955
- }
956
- ],
957
- "name": "setHandler",
958
- "outputs": [],
959
- "stateMutability": "nonpayable",
960
- "type": "function"
961
- },
962
- {
963
- "inputs": [
964
- {
965
- "internalType": "address",
966
- "name": "_vault",
967
- "type": "address"
968
- },
969
- {
970
- "internalType": "bool",
971
- "name": "_inPrivateLiquidationMode",
972
- "type": "bool"
973
- }
974
- ],
975
- "name": "setInPrivateLiquidationMode",
976
- "outputs": [],
977
- "stateMutability": "nonpayable",
978
- "type": "function"
979
- },
980
- {
981
- "inputs": [
982
- {
983
- "internalType": "address",
984
- "name": "_token",
985
- "type": "address"
986
- },
987
- {
988
- "internalType": "bool",
989
- "name": "_inPrivateTransferMode",
990
- "type": "bool"
991
- }
992
- ],
993
- "name": "setInPrivateTransferMode",
994
- "outputs": [],
995
- "stateMutability": "nonpayable",
996
- "type": "function"
997
- },
998
- {
999
- "inputs": [
1000
- {
1001
- "internalType": "address",
1002
- "name": "_vault",
1003
- "type": "address"
1004
- },
1005
- {
1006
- "internalType": "bool",
1007
- "name": "_isLeverageEnabled",
1008
- "type": "bool"
1009
- }
1010
- ],
1011
- "name": "setIsLeverageEnabled",
1012
- "outputs": [],
1013
- "stateMutability": "nonpayable",
1014
- "type": "function"
1015
- },
1016
- {
1017
- "inputs": [
1018
- {
1019
- "internalType": "address",
1020
- "name": "_vault",
1021
- "type": "address"
1022
- },
1023
- {
1024
- "internalType": "bool",
1025
- "name": "_isSwapEnabled",
1026
- "type": "bool"
1027
- }
1028
- ],
1029
- "name": "setIsSwapEnabled",
1030
- "outputs": [],
1031
- "stateMutability": "nonpayable",
1032
- "type": "function"
1033
- },
1034
- {
1035
- "inputs": [
1036
- {
1037
- "internalType": "address",
1038
- "name": "_keeper",
1039
- "type": "address"
1040
- },
1041
- {
1042
- "internalType": "bool",
1043
- "name": "_isActive",
1044
- "type": "bool"
1045
- }
1046
- ],
1047
- "name": "setKeeper",
1048
- "outputs": [],
1049
- "stateMutability": "nonpayable",
1050
- "type": "function"
1051
- },
1052
- {
1053
- "inputs": [
1054
- {
1055
- "internalType": "address",
1056
- "name": "_vault",
1057
- "type": "address"
1058
- },
1059
- {
1060
- "internalType": "address",
1061
- "name": "_liquidator",
1062
- "type": "address"
1063
- },
1064
- {
1065
- "internalType": "bool",
1066
- "name": "_isActive",
1067
- "type": "bool"
1068
- }
1069
- ],
1070
- "name": "setLiquidator",
1071
- "outputs": [],
1072
- "stateMutability": "nonpayable",
1073
- "type": "function"
1074
- },
1075
- {
1076
- "inputs": [
1077
- {
1078
- "internalType": "uint256",
1079
- "name": "_marginFeeBasisPoints",
1080
- "type": "uint256"
1081
- },
1082
- {
1083
- "internalType": "uint256",
1084
- "name": "_maxMarginFeeBasisPoints",
1085
- "type": "uint256"
1086
- }
1087
- ],
1088
- "name": "setMarginFeeBasisPoints",
1089
- "outputs": [],
1090
- "stateMutability": "nonpayable",
1091
- "type": "function"
1092
- },
1093
- {
1094
- "inputs": [
1095
- {
1096
- "internalType": "address",
1097
- "name": "_vault",
1098
- "type": "address"
1099
- },
1100
- {
1101
- "internalType": "uint256",
1102
- "name": "_maxGasPrice",
1103
- "type": "uint256"
1104
- }
1105
- ],
1106
- "name": "setMaxGasPrice",
1107
- "outputs": [],
1108
- "stateMutability": "nonpayable",
1109
- "type": "function"
1110
- },
1111
- {
1112
- "inputs": [
1113
- {
1114
- "internalType": "address",
1115
- "name": "_vault",
1116
- "type": "address"
1117
- },
1118
- {
1119
- "internalType": "address",
1120
- "name": "_token",
1121
- "type": "address"
1122
- },
1123
- {
1124
- "internalType": "uint256",
1125
- "name": "_amount",
1126
- "type": "uint256"
1127
- }
1128
- ],
1129
- "name": "setMaxGlobalShortSize",
1130
- "outputs": [],
1131
- "stateMutability": "nonpayable",
1132
- "type": "function"
1133
- },
1134
- {
1135
- "inputs": [
1136
- {
1137
- "internalType": "address",
1138
- "name": "_vault",
1139
- "type": "address"
1140
- },
1141
- {
1142
- "internalType": "uint256",
1143
- "name": "_maxLeverage",
1144
- "type": "uint256"
1145
- }
1146
- ],
1147
- "name": "setMaxLeverage",
1148
- "outputs": [],
1149
- "stateMutability": "nonpayable",
1150
- "type": "function"
1151
- },
1152
- {
1153
- "inputs": [
1154
- {
1155
- "internalType": "address",
1156
- "name": "_vault",
1157
- "type": "address"
1158
- },
1159
- {
1160
- "internalType": "address",
1161
- "name": "_priceFeed",
1162
- "type": "address"
1163
- }
1164
- ],
1165
- "name": "setPriceFeed",
1166
- "outputs": [],
1167
- "stateMutability": "nonpayable",
1168
- "type": "function"
1169
- },
1170
- {
1171
- "inputs": [
1172
- {
1173
- "internalType": "address",
1174
- "name": "_referralStorage",
1175
- "type": "address"
1176
- },
1177
- {
1178
- "internalType": "address",
1179
- "name": "_referrer",
1180
- "type": "address"
1181
- },
1182
- {
1183
- "internalType": "uint256",
1184
- "name": "_tierId",
1185
- "type": "uint256"
1186
- }
1187
- ],
1188
- "name": "setReferrerTier",
1189
- "outputs": [],
1190
- "stateMutability": "nonpayable",
1191
- "type": "function"
1192
- },
1193
- {
1194
- "inputs": [
1195
- {
1196
- "internalType": "uint256",
1197
- "name": "_shortsTrackerAveragePriceWeight",
1198
- "type": "uint256"
1199
- }
1200
- ],
1201
- "name": "setShortsTrackerAveragePriceWeight",
1202
- "outputs": [],
1203
- "stateMutability": "nonpayable",
1204
- "type": "function"
1205
- },
1206
- {
1207
- "inputs": [
1208
- {
1209
- "internalType": "bool",
1210
- "name": "_shouldToggleIsLeverageEnabled",
1211
- "type": "bool"
1212
- }
1213
- ],
1214
- "name": "setShouldToggleIsLeverageEnabled",
1215
- "outputs": [],
1216
- "stateMutability": "nonpayable",
1217
- "type": "function"
1218
- },
1219
- {
1220
- "inputs": [
1221
- {
1222
- "internalType": "address",
1223
- "name": "_vault",
1224
- "type": "address"
1225
- },
1226
- {
1227
- "internalType": "uint256",
1228
- "name": "_taxBasisPoints",
1229
- "type": "uint256"
1230
- },
1231
- {
1232
- "internalType": "uint256",
1233
- "name": "_stableTaxBasisPoints",
1234
- "type": "uint256"
1235
- },
1236
- {
1237
- "internalType": "uint256",
1238
- "name": "_mintBurnFeeBasisPoints",
1239
- "type": "uint256"
1240
- },
1241
- {
1242
- "internalType": "uint256",
1243
- "name": "_swapFeeBasisPoints",
1244
- "type": "uint256"
1245
- },
1246
- {
1247
- "internalType": "uint256",
1248
- "name": "_stableSwapFeeBasisPoints",
1249
- "type": "uint256"
1250
- }
1251
- ],
1252
- "name": "setSwapFees",
1253
- "outputs": [],
1254
- "stateMutability": "nonpayable",
1255
- "type": "function"
1256
- },
1257
- {
1258
- "inputs": [
1259
- {
1260
- "internalType": "address",
1261
- "name": "_referralStorage",
1262
- "type": "address"
1263
- },
1264
- {
1265
- "internalType": "uint256",
1266
- "name": "_tierId",
1267
- "type": "uint256"
1268
- },
1269
- {
1270
- "internalType": "uint256",
1271
- "name": "_totalRebate",
1272
- "type": "uint256"
1273
- },
1274
- {
1275
- "internalType": "uint256",
1276
- "name": "_discountShare",
1277
- "type": "uint256"
1278
- }
1279
- ],
1280
- "name": "setTier",
1281
- "outputs": [],
1282
- "stateMutability": "nonpayable",
1283
- "type": "function"
1284
- },
1285
- {
1286
- "inputs": [
1287
- {
1288
- "internalType": "address",
1289
- "name": "_vault",
1290
- "type": "address"
1291
- },
1292
- {
1293
- "internalType": "address",
1294
- "name": "_token",
1295
- "type": "address"
1296
- },
1297
- {
1298
- "internalType": "uint256",
1299
- "name": "_tokenWeight",
1300
- "type": "uint256"
1301
- },
1302
- {
1303
- "internalType": "uint256",
1304
- "name": "_minProfitBps",
1305
- "type": "uint256"
1306
- },
1307
- {
1308
- "internalType": "uint256",
1309
- "name": "_maxUsdgAmount",
1310
- "type": "uint256"
1311
- },
1312
- {
1313
- "internalType": "uint256",
1314
- "name": "_bufferAmount",
1315
- "type": "uint256"
1316
- },
1317
- {
1318
- "internalType": "uint256",
1319
- "name": "_usdgAmount",
1320
- "type": "uint256"
1321
- }
1322
- ],
1323
- "name": "setTokenConfig",
1324
- "outputs": [],
1325
- "stateMutability": "nonpayable",
1326
- "type": "function"
1327
- },
1328
- {
1329
- "inputs": [
1330
- {
1331
- "internalType": "address",
1332
- "name": "_vault",
1333
- "type": "address"
1334
- },
1335
- {
1336
- "internalType": "address[]",
1337
- "name": "_tokens",
1338
- "type": "address[]"
1339
- },
1340
- {
1341
- "internalType": "uint256[]",
1342
- "name": "_usdgAmounts",
1343
- "type": "uint256[]"
1344
- }
1345
- ],
1346
- "name": "setUsdgAmounts",
1347
- "outputs": [],
1348
- "stateMutability": "nonpayable",
1349
- "type": "function"
1350
- },
1351
- {
1352
- "inputs": [
1353
- {
1354
- "internalType": "address",
1355
- "name": "_vault",
1356
- "type": "address"
1357
- },
1358
- {
1359
- "internalType": "contract IVaultUtils",
1360
- "name": "_vaultUtils",
1361
- "type": "address"
1362
- }
1363
- ],
1364
- "name": "setVaultUtils",
1365
- "outputs": [],
1366
- "stateMutability": "nonpayable",
1367
- "type": "function"
1368
- },
1369
- {
1370
- "inputs": [],
1371
- "name": "shouldToggleIsLeverageEnabled",
1372
- "outputs": [
1373
- {
1374
- "internalType": "bool",
1375
- "name": "",
1376
- "type": "bool"
1377
- }
1378
- ],
1379
- "stateMutability": "view",
1380
- "type": "function"
1381
- },
1382
- {
1383
- "inputs": [
1384
- {
1385
- "internalType": "address",
1386
- "name": "_token",
1387
- "type": "address"
1388
- },
1389
- {
1390
- "internalType": "address",
1391
- "name": "_spender",
1392
- "type": "address"
1393
- },
1394
- {
1395
- "internalType": "uint256",
1396
- "name": "_amount",
1397
- "type": "uint256"
1398
- }
1399
- ],
1400
- "name": "signalApprove",
1401
- "outputs": [],
1402
- "stateMutability": "nonpayable",
1403
- "type": "function"
1404
- },
1405
- {
1406
- "inputs": [
1407
- {
1408
- "internalType": "address",
1409
- "name": "_token",
1410
- "type": "address"
1411
- },
1412
- {
1413
- "internalType": "address",
1414
- "name": "_receiver",
1415
- "type": "address"
1416
- },
1417
- {
1418
- "internalType": "uint256",
1419
- "name": "_amount",
1420
- "type": "uint256"
1421
- }
1422
- ],
1423
- "name": "signalMint",
1424
- "outputs": [],
1425
- "stateMutability": "nonpayable",
1426
- "type": "function"
1427
- },
1428
- {
1429
- "inputs": [
1430
- {
1431
- "internalType": "address",
1432
- "name": "_vault",
1433
- "type": "address"
1434
- },
1435
- {
1436
- "internalType": "address",
1437
- "name": "_token",
1438
- "type": "address"
1439
- },
1440
- {
1441
- "internalType": "uint256",
1442
- "name": "_amount",
1443
- "type": "uint256"
1444
- }
1445
- ],
1446
- "name": "signalRedeemUsdg",
1447
- "outputs": [],
1448
- "stateMutability": "nonpayable",
1449
- "type": "function"
1450
- },
1451
- {
1452
- "inputs": [
1453
- {
1454
- "internalType": "address",
1455
- "name": "_target",
1456
- "type": "address"
1457
- },
1458
- {
1459
- "internalType": "address",
1460
- "name": "_gov",
1461
- "type": "address"
1462
- }
1463
- ],
1464
- "name": "signalSetGov",
1465
- "outputs": [],
1466
- "stateMutability": "nonpayable",
1467
- "type": "function"
1468
- },
1469
- {
1470
- "inputs": [
1471
- {
1472
- "internalType": "address",
1473
- "name": "_target",
1474
- "type": "address"
1475
- },
1476
- {
1477
- "internalType": "address",
1478
- "name": "_handler",
1479
- "type": "address"
1480
- },
1481
- {
1482
- "internalType": "bool",
1483
- "name": "_isActive",
1484
- "type": "bool"
1485
- }
1486
- ],
1487
- "name": "signalSetHandler",
1488
- "outputs": [],
1489
- "stateMutability": "nonpayable",
1490
- "type": "function"
1491
- },
1492
- {
1493
- "inputs": [
1494
- {
1495
- "internalType": "address",
1496
- "name": "_vault",
1497
- "type": "address"
1498
- },
1499
- {
1500
- "internalType": "address",
1501
- "name": "_priceFeed",
1502
- "type": "address"
1503
- }
1504
- ],
1505
- "name": "signalSetPriceFeed",
1506
- "outputs": [],
1507
- "stateMutability": "nonpayable",
1508
- "type": "function"
1509
- },
1510
- {
1511
- "inputs": [
1512
- {
1513
- "internalType": "address",
1514
- "name": "_vault",
1515
- "type": "address"
1516
- },
1517
- {
1518
- "internalType": "address",
1519
- "name": "_token",
1520
- "type": "address"
1521
- },
1522
- {
1523
- "internalType": "uint256",
1524
- "name": "_tokenDecimals",
1525
- "type": "uint256"
1526
- },
1527
- {
1528
- "internalType": "uint256",
1529
- "name": "_tokenWeight",
1530
- "type": "uint256"
1531
- },
1532
- {
1533
- "internalType": "uint256",
1534
- "name": "_minProfitBps",
1535
- "type": "uint256"
1536
- },
1537
- {
1538
- "internalType": "uint256",
1539
- "name": "_maxUsdgAmount",
1540
- "type": "uint256"
1541
- },
1542
- {
1543
- "internalType": "bool",
1544
- "name": "_isStable",
1545
- "type": "bool"
1546
- },
1547
- {
1548
- "internalType": "bool",
1549
- "name": "_isShortable",
1550
- "type": "bool"
1551
- }
1552
- ],
1553
- "name": "signalVaultSetTokenConfig",
1554
- "outputs": [],
1555
- "stateMutability": "nonpayable",
1556
- "type": "function"
1557
- },
1558
- {
1559
- "inputs": [
1560
- {
1561
- "internalType": "address",
1562
- "name": "_target",
1563
- "type": "address"
1564
- },
1565
- {
1566
- "internalType": "address",
1567
- "name": "_token",
1568
- "type": "address"
1569
- },
1570
- {
1571
- "internalType": "address",
1572
- "name": "_receiver",
1573
- "type": "address"
1574
- },
1575
- {
1576
- "internalType": "uint256",
1577
- "name": "_amount",
1578
- "type": "uint256"
1579
- }
1580
- ],
1581
- "name": "signalWithdrawToken",
1582
- "outputs": [],
1583
- "stateMutability": "nonpayable",
1584
- "type": "function"
1585
- },
1586
- {
1587
- "inputs": [],
1588
- "name": "tokenManager",
1589
- "outputs": [
1590
- {
1591
- "internalType": "address",
1592
- "name": "",
1593
- "type": "address"
1594
- }
1595
- ],
1596
- "stateMutability": "view",
1597
- "type": "function"
1598
- },
1599
- {
1600
- "inputs": [
1601
- {
1602
- "internalType": "address",
1603
- "name": "_sender",
1604
- "type": "address"
1605
- },
1606
- {
1607
- "internalType": "address",
1608
- "name": "_token",
1609
- "type": "address"
1610
- },
1611
- {
1612
- "internalType": "uint256",
1613
- "name": "_amount",
1614
- "type": "uint256"
1615
- }
1616
- ],
1617
- "name": "transferIn",
1618
- "outputs": [],
1619
- "stateMutability": "nonpayable",
1620
- "type": "function"
1621
- },
1622
- {
1623
- "inputs": [
1624
- {
1625
- "internalType": "uint256",
1626
- "name": "usdgAmount",
1627
- "type": "uint256"
1628
- }
1629
- ],
1630
- "name": "updateUsdgSupply",
1631
- "outputs": [],
1632
- "stateMutability": "nonpayable",
1633
- "type": "function"
1634
- },
1635
- {
1636
- "inputs": [
1637
- {
1638
- "internalType": "address",
1639
- "name": "_vault",
1640
- "type": "address"
1641
- },
1642
- {
1643
- "internalType": "address",
1644
- "name": "_token",
1645
- "type": "address"
1646
- },
1647
- {
1648
- "internalType": "uint256",
1649
- "name": "_tokenDecimals",
1650
- "type": "uint256"
1651
- },
1652
- {
1653
- "internalType": "uint256",
1654
- "name": "_tokenWeight",
1655
- "type": "uint256"
1656
- },
1657
- {
1658
- "internalType": "uint256",
1659
- "name": "_minProfitBps",
1660
- "type": "uint256"
1661
- },
1662
- {
1663
- "internalType": "uint256",
1664
- "name": "_maxUsdgAmount",
1665
- "type": "uint256"
1666
- },
1667
- {
1668
- "internalType": "bool",
1669
- "name": "_isStable",
1670
- "type": "bool"
1671
- },
1672
- {
1673
- "internalType": "bool",
1674
- "name": "_isShortable",
1675
- "type": "bool"
1676
- }
1677
- ],
1678
- "name": "vaultSetTokenConfig",
1679
- "outputs": [],
1680
- "stateMutability": "nonpayable",
1681
- "type": "function"
1682
- },
1683
- {
1684
- "inputs": [
1685
- {
1686
- "internalType": "address",
1687
- "name": "_vault",
1688
- "type": "address"
1689
- },
1690
- {
1691
- "internalType": "address",
1692
- "name": "_token",
1693
- "type": "address"
1694
- },
1695
- {
1696
- "internalType": "address",
1697
- "name": "_receiver",
1698
- "type": "address"
1699
- }
1700
- ],
1701
- "name": "withdrawFees",
1702
- "outputs": [],
1703
- "stateMutability": "nonpayable",
1704
- "type": "function"
1705
- },
1706
- {
1707
- "inputs": [
1708
- {
1709
- "internalType": "address",
1710
- "name": "_target",
1711
- "type": "address"
1712
- },
1713
- {
1714
- "internalType": "address",
1715
- "name": "_token",
1716
- "type": "address"
1717
- },
1718
- {
1719
- "internalType": "address",
1720
- "name": "_receiver",
1721
- "type": "address"
1722
- },
1723
- {
1724
- "internalType": "uint256",
1725
- "name": "_amount",
1726
- "type": "uint256"
1727
- }
1728
- ],
1729
- "name": "withdrawToken",
1730
- "outputs": [],
1731
- "stateMutability": "nonpayable",
1732
- "type": "function"
1733
- }
1734
- ],
1735
- "linkReferences": {},
1736
- "deployedLinkReferences": {}
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "Timelock",
4
+ "sourceName": "contracts/peripherals/Timelock.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "_admin",
11
+ "type": "address"
12
+ },
13
+ {
14
+ "internalType": "uint256",
15
+ "name": "_buffer",
16
+ "type": "uint256"
17
+ },
18
+ {
19
+ "internalType": "address",
20
+ "name": "_tokenManager",
21
+ "type": "address"
22
+ },
23
+ {
24
+ "internalType": "address",
25
+ "name": "_mintReceiver",
26
+ "type": "address"
27
+ },
28
+ {
29
+ "internalType": "address",
30
+ "name": "_glpManager",
31
+ "type": "address"
32
+ },
33
+ {
34
+ "internalType": "address",
35
+ "name": "_rewardRouter",
36
+ "type": "address"
37
+ },
38
+ {
39
+ "internalType": "uint256",
40
+ "name": "_maxTokenSupply",
41
+ "type": "uint256"
42
+ },
43
+ {
44
+ "internalType": "uint256",
45
+ "name": "_marginFeeBasisPoints",
46
+ "type": "uint256"
47
+ },
48
+ {
49
+ "internalType": "uint256",
50
+ "name": "_maxMarginFeeBasisPoints",
51
+ "type": "uint256"
52
+ }
53
+ ],
54
+ "stateMutability": "nonpayable",
55
+ "type": "constructor"
56
+ },
57
+ {
58
+ "anonymous": false,
59
+ "inputs": [
60
+ {
61
+ "indexed": false,
62
+ "internalType": "bytes32",
63
+ "name": "action",
64
+ "type": "bytes32"
65
+ }
66
+ ],
67
+ "name": "ClearAction",
68
+ "type": "event"
69
+ },
70
+ {
71
+ "anonymous": false,
72
+ "inputs": [
73
+ {
74
+ "indexed": false,
75
+ "internalType": "address",
76
+ "name": "token",
77
+ "type": "address"
78
+ },
79
+ {
80
+ "indexed": false,
81
+ "internalType": "address",
82
+ "name": "spender",
83
+ "type": "address"
84
+ },
85
+ {
86
+ "indexed": false,
87
+ "internalType": "uint256",
88
+ "name": "amount",
89
+ "type": "uint256"
90
+ },
91
+ {
92
+ "indexed": false,
93
+ "internalType": "bytes32",
94
+ "name": "action",
95
+ "type": "bytes32"
96
+ }
97
+ ],
98
+ "name": "SignalApprove",
99
+ "type": "event"
100
+ },
101
+ {
102
+ "anonymous": false,
103
+ "inputs": [
104
+ {
105
+ "indexed": false,
106
+ "internalType": "address",
107
+ "name": "token",
108
+ "type": "address"
109
+ },
110
+ {
111
+ "indexed": false,
112
+ "internalType": "address",
113
+ "name": "receiver",
114
+ "type": "address"
115
+ },
116
+ {
117
+ "indexed": false,
118
+ "internalType": "uint256",
119
+ "name": "amount",
120
+ "type": "uint256"
121
+ },
122
+ {
123
+ "indexed": false,
124
+ "internalType": "bytes32",
125
+ "name": "action",
126
+ "type": "bytes32"
127
+ }
128
+ ],
129
+ "name": "SignalMint",
130
+ "type": "event"
131
+ },
132
+ {
133
+ "anonymous": false,
134
+ "inputs": [
135
+ {
136
+ "indexed": false,
137
+ "internalType": "bytes32",
138
+ "name": "action",
139
+ "type": "bytes32"
140
+ }
141
+ ],
142
+ "name": "SignalPendingAction",
143
+ "type": "event"
144
+ },
145
+ {
146
+ "anonymous": false,
147
+ "inputs": [
148
+ {
149
+ "indexed": false,
150
+ "internalType": "address",
151
+ "name": "vault",
152
+ "type": "address"
153
+ },
154
+ {
155
+ "indexed": false,
156
+ "internalType": "address",
157
+ "name": "token",
158
+ "type": "address"
159
+ },
160
+ {
161
+ "indexed": false,
162
+ "internalType": "uint256",
163
+ "name": "amount",
164
+ "type": "uint256"
165
+ }
166
+ ],
167
+ "name": "SignalRedeemUsdg",
168
+ "type": "event"
169
+ },
170
+ {
171
+ "anonymous": false,
172
+ "inputs": [
173
+ {
174
+ "indexed": false,
175
+ "internalType": "address",
176
+ "name": "target",
177
+ "type": "address"
178
+ },
179
+ {
180
+ "indexed": false,
181
+ "internalType": "address",
182
+ "name": "gov",
183
+ "type": "address"
184
+ },
185
+ {
186
+ "indexed": false,
187
+ "internalType": "bytes32",
188
+ "name": "action",
189
+ "type": "bytes32"
190
+ }
191
+ ],
192
+ "name": "SignalSetGov",
193
+ "type": "event"
194
+ },
195
+ {
196
+ "anonymous": false,
197
+ "inputs": [
198
+ {
199
+ "indexed": false,
200
+ "internalType": "address",
201
+ "name": "target",
202
+ "type": "address"
203
+ },
204
+ {
205
+ "indexed": false,
206
+ "internalType": "address",
207
+ "name": "handler",
208
+ "type": "address"
209
+ },
210
+ {
211
+ "indexed": false,
212
+ "internalType": "bool",
213
+ "name": "isActive",
214
+ "type": "bool"
215
+ },
216
+ {
217
+ "indexed": false,
218
+ "internalType": "bytes32",
219
+ "name": "action",
220
+ "type": "bytes32"
221
+ }
222
+ ],
223
+ "name": "SignalSetHandler",
224
+ "type": "event"
225
+ },
226
+ {
227
+ "anonymous": false,
228
+ "inputs": [
229
+ {
230
+ "indexed": false,
231
+ "internalType": "address",
232
+ "name": "vault",
233
+ "type": "address"
234
+ },
235
+ {
236
+ "indexed": false,
237
+ "internalType": "address",
238
+ "name": "priceFeed",
239
+ "type": "address"
240
+ },
241
+ {
242
+ "indexed": false,
243
+ "internalType": "bytes32",
244
+ "name": "action",
245
+ "type": "bytes32"
246
+ }
247
+ ],
248
+ "name": "SignalSetPriceFeed",
249
+ "type": "event"
250
+ },
251
+ {
252
+ "anonymous": false,
253
+ "inputs": [
254
+ {
255
+ "indexed": false,
256
+ "internalType": "address",
257
+ "name": "vault",
258
+ "type": "address"
259
+ },
260
+ {
261
+ "indexed": false,
262
+ "internalType": "address",
263
+ "name": "token",
264
+ "type": "address"
265
+ },
266
+ {
267
+ "indexed": false,
268
+ "internalType": "uint256",
269
+ "name": "tokenDecimals",
270
+ "type": "uint256"
271
+ },
272
+ {
273
+ "indexed": false,
274
+ "internalType": "uint256",
275
+ "name": "tokenWeight",
276
+ "type": "uint256"
277
+ },
278
+ {
279
+ "indexed": false,
280
+ "internalType": "uint256",
281
+ "name": "minProfitBps",
282
+ "type": "uint256"
283
+ },
284
+ {
285
+ "indexed": false,
286
+ "internalType": "uint256",
287
+ "name": "maxUsdgAmount",
288
+ "type": "uint256"
289
+ },
290
+ {
291
+ "indexed": false,
292
+ "internalType": "bool",
293
+ "name": "isStable",
294
+ "type": "bool"
295
+ },
296
+ {
297
+ "indexed": false,
298
+ "internalType": "bool",
299
+ "name": "isShortable",
300
+ "type": "bool"
301
+ }
302
+ ],
303
+ "name": "SignalVaultSetTokenConfig",
304
+ "type": "event"
305
+ },
306
+ {
307
+ "anonymous": false,
308
+ "inputs": [
309
+ {
310
+ "indexed": false,
311
+ "internalType": "address",
312
+ "name": "target",
313
+ "type": "address"
314
+ },
315
+ {
316
+ "indexed": false,
317
+ "internalType": "address",
318
+ "name": "token",
319
+ "type": "address"
320
+ },
321
+ {
322
+ "indexed": false,
323
+ "internalType": "address",
324
+ "name": "receiver",
325
+ "type": "address"
326
+ },
327
+ {
328
+ "indexed": false,
329
+ "internalType": "uint256",
330
+ "name": "amount",
331
+ "type": "uint256"
332
+ },
333
+ {
334
+ "indexed": false,
335
+ "internalType": "bytes32",
336
+ "name": "action",
337
+ "type": "bytes32"
338
+ }
339
+ ],
340
+ "name": "SignalWithdrawToken",
341
+ "type": "event"
342
+ },
343
+ {
344
+ "inputs": [],
345
+ "name": "MAX_BUFFER",
346
+ "outputs": [
347
+ {
348
+ "internalType": "uint256",
349
+ "name": "",
350
+ "type": "uint256"
351
+ }
352
+ ],
353
+ "stateMutability": "view",
354
+ "type": "function"
355
+ },
356
+ {
357
+ "inputs": [],
358
+ "name": "MAX_FUNDING_RATE_FACTOR",
359
+ "outputs": [
360
+ {
361
+ "internalType": "uint256",
362
+ "name": "",
363
+ "type": "uint256"
364
+ }
365
+ ],
366
+ "stateMutability": "view",
367
+ "type": "function"
368
+ },
369
+ {
370
+ "inputs": [],
371
+ "name": "MAX_LEVERAGE_VALIDATION",
372
+ "outputs": [
373
+ {
374
+ "internalType": "uint256",
375
+ "name": "",
376
+ "type": "uint256"
377
+ }
378
+ ],
379
+ "stateMutability": "view",
380
+ "type": "function"
381
+ },
382
+ {
383
+ "inputs": [],
384
+ "name": "PRICE_PRECISION",
385
+ "outputs": [
386
+ {
387
+ "internalType": "uint256",
388
+ "name": "",
389
+ "type": "uint256"
390
+ }
391
+ ],
392
+ "stateMutability": "view",
393
+ "type": "function"
394
+ },
395
+ {
396
+ "inputs": [],
397
+ "name": "admin",
398
+ "outputs": [
399
+ {
400
+ "internalType": "address",
401
+ "name": "",
402
+ "type": "address"
403
+ }
404
+ ],
405
+ "stateMutability": "view",
406
+ "type": "function"
407
+ },
408
+ {
409
+ "inputs": [
410
+ {
411
+ "internalType": "address",
412
+ "name": "_token",
413
+ "type": "address"
414
+ },
415
+ {
416
+ "internalType": "address",
417
+ "name": "_spender",
418
+ "type": "address"
419
+ },
420
+ {
421
+ "internalType": "uint256",
422
+ "name": "_amount",
423
+ "type": "uint256"
424
+ }
425
+ ],
426
+ "name": "approve",
427
+ "outputs": [],
428
+ "stateMutability": "nonpayable",
429
+ "type": "function"
430
+ },
431
+ {
432
+ "inputs": [
433
+ {
434
+ "internalType": "address",
435
+ "name": "_vester",
436
+ "type": "address"
437
+ },
438
+ {
439
+ "internalType": "address[]",
440
+ "name": "_accounts",
441
+ "type": "address[]"
442
+ },
443
+ {
444
+ "internalType": "uint256[]",
445
+ "name": "_amounts",
446
+ "type": "uint256[]"
447
+ }
448
+ ],
449
+ "name": "batchSetBonusRewards",
450
+ "outputs": [],
451
+ "stateMutability": "nonpayable",
452
+ "type": "function"
453
+ },
454
+ {
455
+ "inputs": [
456
+ {
457
+ "internalType": "address",
458
+ "name": "_vault",
459
+ "type": "address"
460
+ },
461
+ {
462
+ "internalType": "address[]",
463
+ "name": "_tokens",
464
+ "type": "address[]"
465
+ }
466
+ ],
467
+ "name": "batchWithdrawFees",
468
+ "outputs": [],
469
+ "stateMutability": "nonpayable",
470
+ "type": "function"
471
+ },
472
+ {
473
+ "inputs": [],
474
+ "name": "buffer",
475
+ "outputs": [
476
+ {
477
+ "internalType": "uint256",
478
+ "name": "",
479
+ "type": "uint256"
480
+ }
481
+ ],
482
+ "stateMutability": "view",
483
+ "type": "function"
484
+ },
485
+ {
486
+ "inputs": [
487
+ {
488
+ "internalType": "bytes32",
489
+ "name": "_action",
490
+ "type": "bytes32"
491
+ }
492
+ ],
493
+ "name": "cancelAction",
494
+ "outputs": [],
495
+ "stateMutability": "nonpayable",
496
+ "type": "function"
497
+ },
498
+ {
499
+ "inputs": [
500
+ {
501
+ "internalType": "address",
502
+ "name": "_vault",
503
+ "type": "address"
504
+ }
505
+ ],
506
+ "name": "disableLeverage",
507
+ "outputs": [],
508
+ "stateMutability": "nonpayable",
509
+ "type": "function"
510
+ },
511
+ {
512
+ "inputs": [
513
+ {
514
+ "internalType": "address",
515
+ "name": "_vault",
516
+ "type": "address"
517
+ }
518
+ ],
519
+ "name": "enableLeverage",
520
+ "outputs": [],
521
+ "stateMutability": "nonpayable",
522
+ "type": "function"
523
+ },
524
+ {
525
+ "inputs": [],
526
+ "name": "glpManager",
527
+ "outputs": [
528
+ {
529
+ "internalType": "address",
530
+ "name": "",
531
+ "type": "address"
532
+ }
533
+ ],
534
+ "stateMutability": "view",
535
+ "type": "function"
536
+ },
537
+ {
538
+ "inputs": [
539
+ {
540
+ "internalType": "address",
541
+ "name": "_referralStorage",
542
+ "type": "address"
543
+ },
544
+ {
545
+ "internalType": "bytes32",
546
+ "name": "_code",
547
+ "type": "bytes32"
548
+ },
549
+ {
550
+ "internalType": "address",
551
+ "name": "_newAccount",
552
+ "type": "address"
553
+ }
554
+ ],
555
+ "name": "govSetCodeOwner",
556
+ "outputs": [],
557
+ "stateMutability": "nonpayable",
558
+ "type": "function"
559
+ },
560
+ {
561
+ "inputs": [],
562
+ "name": "initGlpManager",
563
+ "outputs": [],
564
+ "stateMutability": "nonpayable",
565
+ "type": "function"
566
+ },
567
+ {
568
+ "inputs": [],
569
+ "name": "initRewardRouter",
570
+ "outputs": [],
571
+ "stateMutability": "nonpayable",
572
+ "type": "function"
573
+ },
574
+ {
575
+ "inputs": [
576
+ {
577
+ "internalType": "address",
578
+ "name": "",
579
+ "type": "address"
580
+ }
581
+ ],
582
+ "name": "isHandler",
583
+ "outputs": [
584
+ {
585
+ "internalType": "bool",
586
+ "name": "",
587
+ "type": "bool"
588
+ }
589
+ ],
590
+ "stateMutability": "view",
591
+ "type": "function"
592
+ },
593
+ {
594
+ "inputs": [
595
+ {
596
+ "internalType": "address",
597
+ "name": "",
598
+ "type": "address"
599
+ }
600
+ ],
601
+ "name": "isKeeper",
602
+ "outputs": [
603
+ {
604
+ "internalType": "bool",
605
+ "name": "",
606
+ "type": "bool"
607
+ }
608
+ ],
609
+ "stateMutability": "view",
610
+ "type": "function"
611
+ },
612
+ {
613
+ "inputs": [],
614
+ "name": "marginFeeBasisPoints",
615
+ "outputs": [
616
+ {
617
+ "internalType": "uint256",
618
+ "name": "",
619
+ "type": "uint256"
620
+ }
621
+ ],
622
+ "stateMutability": "view",
623
+ "type": "function"
624
+ },
625
+ {
626
+ "inputs": [],
627
+ "name": "maxMarginFeeBasisPoints",
628
+ "outputs": [
629
+ {
630
+ "internalType": "uint256",
631
+ "name": "",
632
+ "type": "uint256"
633
+ }
634
+ ],
635
+ "stateMutability": "view",
636
+ "type": "function"
637
+ },
638
+ {
639
+ "inputs": [],
640
+ "name": "maxTokenSupply",
641
+ "outputs": [
642
+ {
643
+ "internalType": "uint256",
644
+ "name": "",
645
+ "type": "uint256"
646
+ }
647
+ ],
648
+ "stateMutability": "view",
649
+ "type": "function"
650
+ },
651
+ {
652
+ "inputs": [],
653
+ "name": "mintReceiver",
654
+ "outputs": [
655
+ {
656
+ "internalType": "address",
657
+ "name": "",
658
+ "type": "address"
659
+ }
660
+ ],
661
+ "stateMutability": "view",
662
+ "type": "function"
663
+ },
664
+ {
665
+ "inputs": [
666
+ {
667
+ "internalType": "bytes32",
668
+ "name": "",
669
+ "type": "bytes32"
670
+ }
671
+ ],
672
+ "name": "pendingActions",
673
+ "outputs": [
674
+ {
675
+ "internalType": "uint256",
676
+ "name": "",
677
+ "type": "uint256"
678
+ }
679
+ ],
680
+ "stateMutability": "view",
681
+ "type": "function"
682
+ },
683
+ {
684
+ "inputs": [
685
+ {
686
+ "internalType": "address",
687
+ "name": "_token",
688
+ "type": "address"
689
+ },
690
+ {
691
+ "internalType": "address",
692
+ "name": "_receiver",
693
+ "type": "address"
694
+ },
695
+ {
696
+ "internalType": "uint256",
697
+ "name": "_amount",
698
+ "type": "uint256"
699
+ }
700
+ ],
701
+ "name": "processMint",
702
+ "outputs": [],
703
+ "stateMutability": "nonpayable",
704
+ "type": "function"
705
+ },
706
+ {
707
+ "inputs": [
708
+ {
709
+ "internalType": "address",
710
+ "name": "_vault",
711
+ "type": "address"
712
+ },
713
+ {
714
+ "internalType": "address",
715
+ "name": "_token",
716
+ "type": "address"
717
+ },
718
+ {
719
+ "internalType": "uint256",
720
+ "name": "_amount",
721
+ "type": "uint256"
722
+ }
723
+ ],
724
+ "name": "redeemUsdg",
725
+ "outputs": [],
726
+ "stateMutability": "nonpayable",
727
+ "type": "function"
728
+ },
729
+ {
730
+ "inputs": [
731
+ {
732
+ "internalType": "address",
733
+ "name": "_token",
734
+ "type": "address"
735
+ },
736
+ {
737
+ "internalType": "address",
738
+ "name": "_account",
739
+ "type": "address"
740
+ }
741
+ ],
742
+ "name": "removeAdmin",
743
+ "outputs": [],
744
+ "stateMutability": "nonpayable",
745
+ "type": "function"
746
+ },
747
+ {
748
+ "inputs": [],
749
+ "name": "rewardRouter",
750
+ "outputs": [
751
+ {
752
+ "internalType": "address",
753
+ "name": "",
754
+ "type": "address"
755
+ }
756
+ ],
757
+ "stateMutability": "view",
758
+ "type": "function"
759
+ },
760
+ {
761
+ "inputs": [
762
+ {
763
+ "internalType": "address",
764
+ "name": "_admin",
765
+ "type": "address"
766
+ }
767
+ ],
768
+ "name": "setAdmin",
769
+ "outputs": [],
770
+ "stateMutability": "nonpayable",
771
+ "type": "function"
772
+ },
773
+ {
774
+ "inputs": [
775
+ {
776
+ "internalType": "uint256",
777
+ "name": "_buffer",
778
+ "type": "uint256"
779
+ }
780
+ ],
781
+ "name": "setBuffer",
782
+ "outputs": [],
783
+ "stateMutability": "nonpayable",
784
+ "type": "function"
785
+ },
786
+ {
787
+ "inputs": [
788
+ {
789
+ "internalType": "address",
790
+ "name": "_handler",
791
+ "type": "address"
792
+ },
793
+ {
794
+ "internalType": "bool",
795
+ "name": "_isActive",
796
+ "type": "bool"
797
+ }
798
+ ],
799
+ "name": "setContractHandler",
800
+ "outputs": [],
801
+ "stateMutability": "nonpayable",
802
+ "type": "function"
803
+ },
804
+ {
805
+ "inputs": [
806
+ {
807
+ "internalType": "address",
808
+ "name": "_target",
809
+ "type": "address"
810
+ },
811
+ {
812
+ "internalType": "address",
813
+ "name": "_admin",
814
+ "type": "address"
815
+ }
816
+ ],
817
+ "name": "setExternalAdmin",
818
+ "outputs": [],
819
+ "stateMutability": "nonpayable",
820
+ "type": "function"
821
+ },
822
+ {
823
+ "inputs": [
824
+ {
825
+ "internalType": "address",
826
+ "name": "_vault",
827
+ "type": "address"
828
+ },
829
+ {
830
+ "internalType": "uint256",
831
+ "name": "_taxBasisPoints",
832
+ "type": "uint256"
833
+ },
834
+ {
835
+ "internalType": "uint256",
836
+ "name": "_stableTaxBasisPoints",
837
+ "type": "uint256"
838
+ },
839
+ {
840
+ "internalType": "uint256",
841
+ "name": "_mintBurnFeeBasisPoints",
842
+ "type": "uint256"
843
+ },
844
+ {
845
+ "internalType": "uint256",
846
+ "name": "_swapFeeBasisPoints",
847
+ "type": "uint256"
848
+ },
849
+ {
850
+ "internalType": "uint256",
851
+ "name": "_stableSwapFeeBasisPoints",
852
+ "type": "uint256"
853
+ },
854
+ {
855
+ "internalType": "uint256",
856
+ "name": "_marginFeeBasisPoints",
857
+ "type": "uint256"
858
+ },
859
+ {
860
+ "internalType": "uint256",
861
+ "name": "_liquidationFeeUsd",
862
+ "type": "uint256"
863
+ },
864
+ {
865
+ "internalType": "uint256",
866
+ "name": "_minProfitTime",
867
+ "type": "uint256"
868
+ },
869
+ {
870
+ "internalType": "bool",
871
+ "name": "_hasDynamicFees",
872
+ "type": "bool"
873
+ }
874
+ ],
875
+ "name": "setFees",
876
+ "outputs": [],
877
+ "stateMutability": "nonpayable",
878
+ "type": "function"
879
+ },
880
+ {
881
+ "inputs": [
882
+ {
883
+ "internalType": "address",
884
+ "name": "_vault",
885
+ "type": "address"
886
+ },
887
+ {
888
+ "internalType": "uint256",
889
+ "name": "_fundingInterval",
890
+ "type": "uint256"
891
+ },
892
+ {
893
+ "internalType": "uint256",
894
+ "name": "_fundingRateFactor",
895
+ "type": "uint256"
896
+ },
897
+ {
898
+ "internalType": "uint256",
899
+ "name": "_stableFundingRateFactor",
900
+ "type": "uint256"
901
+ }
902
+ ],
903
+ "name": "setFundingRate",
904
+ "outputs": [],
905
+ "stateMutability": "nonpayable",
906
+ "type": "function"
907
+ },
908
+ {
909
+ "inputs": [
910
+ {
911
+ "internalType": "uint256",
912
+ "name": "_cooldownDuration",
913
+ "type": "uint256"
914
+ }
915
+ ],
916
+ "name": "setGlpCooldownDuration",
917
+ "outputs": [],
918
+ "stateMutability": "nonpayable",
919
+ "type": "function"
920
+ },
921
+ {
922
+ "inputs": [
923
+ {
924
+ "internalType": "address",
925
+ "name": "_target",
926
+ "type": "address"
927
+ },
928
+ {
929
+ "internalType": "address",
930
+ "name": "_gov",
931
+ "type": "address"
932
+ }
933
+ ],
934
+ "name": "setGov",
935
+ "outputs": [],
936
+ "stateMutability": "nonpayable",
937
+ "type": "function"
938
+ },
939
+ {
940
+ "inputs": [
941
+ {
942
+ "internalType": "address",
943
+ "name": "_target",
944
+ "type": "address"
945
+ },
946
+ {
947
+ "internalType": "address",
948
+ "name": "_handler",
949
+ "type": "address"
950
+ },
951
+ {
952
+ "internalType": "bool",
953
+ "name": "_isActive",
954
+ "type": "bool"
955
+ }
956
+ ],
957
+ "name": "setHandler",
958
+ "outputs": [],
959
+ "stateMutability": "nonpayable",
960
+ "type": "function"
961
+ },
962
+ {
963
+ "inputs": [
964
+ {
965
+ "internalType": "address",
966
+ "name": "_vault",
967
+ "type": "address"
968
+ },
969
+ {
970
+ "internalType": "bool",
971
+ "name": "_inPrivateLiquidationMode",
972
+ "type": "bool"
973
+ }
974
+ ],
975
+ "name": "setInPrivateLiquidationMode",
976
+ "outputs": [],
977
+ "stateMutability": "nonpayable",
978
+ "type": "function"
979
+ },
980
+ {
981
+ "inputs": [
982
+ {
983
+ "internalType": "address",
984
+ "name": "_token",
985
+ "type": "address"
986
+ },
987
+ {
988
+ "internalType": "bool",
989
+ "name": "_inPrivateTransferMode",
990
+ "type": "bool"
991
+ }
992
+ ],
993
+ "name": "setInPrivateTransferMode",
994
+ "outputs": [],
995
+ "stateMutability": "nonpayable",
996
+ "type": "function"
997
+ },
998
+ {
999
+ "inputs": [
1000
+ {
1001
+ "internalType": "address",
1002
+ "name": "_vault",
1003
+ "type": "address"
1004
+ },
1005
+ {
1006
+ "internalType": "bool",
1007
+ "name": "_isLeverageEnabled",
1008
+ "type": "bool"
1009
+ }
1010
+ ],
1011
+ "name": "setIsLeverageEnabled",
1012
+ "outputs": [],
1013
+ "stateMutability": "nonpayable",
1014
+ "type": "function"
1015
+ },
1016
+ {
1017
+ "inputs": [
1018
+ {
1019
+ "internalType": "address",
1020
+ "name": "_vault",
1021
+ "type": "address"
1022
+ },
1023
+ {
1024
+ "internalType": "bool",
1025
+ "name": "_isSwapEnabled",
1026
+ "type": "bool"
1027
+ }
1028
+ ],
1029
+ "name": "setIsSwapEnabled",
1030
+ "outputs": [],
1031
+ "stateMutability": "nonpayable",
1032
+ "type": "function"
1033
+ },
1034
+ {
1035
+ "inputs": [
1036
+ {
1037
+ "internalType": "address",
1038
+ "name": "_keeper",
1039
+ "type": "address"
1040
+ },
1041
+ {
1042
+ "internalType": "bool",
1043
+ "name": "_isActive",
1044
+ "type": "bool"
1045
+ }
1046
+ ],
1047
+ "name": "setKeeper",
1048
+ "outputs": [],
1049
+ "stateMutability": "nonpayable",
1050
+ "type": "function"
1051
+ },
1052
+ {
1053
+ "inputs": [
1054
+ {
1055
+ "internalType": "address",
1056
+ "name": "_vault",
1057
+ "type": "address"
1058
+ },
1059
+ {
1060
+ "internalType": "address",
1061
+ "name": "_liquidator",
1062
+ "type": "address"
1063
+ },
1064
+ {
1065
+ "internalType": "bool",
1066
+ "name": "_isActive",
1067
+ "type": "bool"
1068
+ }
1069
+ ],
1070
+ "name": "setLiquidator",
1071
+ "outputs": [],
1072
+ "stateMutability": "nonpayable",
1073
+ "type": "function"
1074
+ },
1075
+ {
1076
+ "inputs": [
1077
+ {
1078
+ "internalType": "uint256",
1079
+ "name": "_marginFeeBasisPoints",
1080
+ "type": "uint256"
1081
+ },
1082
+ {
1083
+ "internalType": "uint256",
1084
+ "name": "_maxMarginFeeBasisPoints",
1085
+ "type": "uint256"
1086
+ }
1087
+ ],
1088
+ "name": "setMarginFeeBasisPoints",
1089
+ "outputs": [],
1090
+ "stateMutability": "nonpayable",
1091
+ "type": "function"
1092
+ },
1093
+ {
1094
+ "inputs": [
1095
+ {
1096
+ "internalType": "address",
1097
+ "name": "_vault",
1098
+ "type": "address"
1099
+ },
1100
+ {
1101
+ "internalType": "uint256",
1102
+ "name": "_maxGasPrice",
1103
+ "type": "uint256"
1104
+ }
1105
+ ],
1106
+ "name": "setMaxGasPrice",
1107
+ "outputs": [],
1108
+ "stateMutability": "nonpayable",
1109
+ "type": "function"
1110
+ },
1111
+ {
1112
+ "inputs": [
1113
+ {
1114
+ "internalType": "address",
1115
+ "name": "_vault",
1116
+ "type": "address"
1117
+ },
1118
+ {
1119
+ "internalType": "address",
1120
+ "name": "_token",
1121
+ "type": "address"
1122
+ },
1123
+ {
1124
+ "internalType": "uint256",
1125
+ "name": "_amount",
1126
+ "type": "uint256"
1127
+ }
1128
+ ],
1129
+ "name": "setMaxGlobalShortSize",
1130
+ "outputs": [],
1131
+ "stateMutability": "nonpayable",
1132
+ "type": "function"
1133
+ },
1134
+ {
1135
+ "inputs": [
1136
+ {
1137
+ "internalType": "address",
1138
+ "name": "_vault",
1139
+ "type": "address"
1140
+ },
1141
+ {
1142
+ "internalType": "uint256",
1143
+ "name": "_maxLeverage",
1144
+ "type": "uint256"
1145
+ }
1146
+ ],
1147
+ "name": "setMaxLeverage",
1148
+ "outputs": [],
1149
+ "stateMutability": "nonpayable",
1150
+ "type": "function"
1151
+ },
1152
+ {
1153
+ "inputs": [
1154
+ {
1155
+ "internalType": "address",
1156
+ "name": "_vault",
1157
+ "type": "address"
1158
+ },
1159
+ {
1160
+ "internalType": "address",
1161
+ "name": "_priceFeed",
1162
+ "type": "address"
1163
+ }
1164
+ ],
1165
+ "name": "setPriceFeed",
1166
+ "outputs": [],
1167
+ "stateMutability": "nonpayable",
1168
+ "type": "function"
1169
+ },
1170
+ {
1171
+ "inputs": [
1172
+ {
1173
+ "internalType": "address",
1174
+ "name": "_referralStorage",
1175
+ "type": "address"
1176
+ },
1177
+ {
1178
+ "internalType": "address",
1179
+ "name": "_referrer",
1180
+ "type": "address"
1181
+ },
1182
+ {
1183
+ "internalType": "uint256",
1184
+ "name": "_tierId",
1185
+ "type": "uint256"
1186
+ }
1187
+ ],
1188
+ "name": "setReferrerTier",
1189
+ "outputs": [],
1190
+ "stateMutability": "nonpayable",
1191
+ "type": "function"
1192
+ },
1193
+ {
1194
+ "inputs": [
1195
+ {
1196
+ "internalType": "uint256",
1197
+ "name": "_shortsTrackerAveragePriceWeight",
1198
+ "type": "uint256"
1199
+ }
1200
+ ],
1201
+ "name": "setShortsTrackerAveragePriceWeight",
1202
+ "outputs": [],
1203
+ "stateMutability": "nonpayable",
1204
+ "type": "function"
1205
+ },
1206
+ {
1207
+ "inputs": [
1208
+ {
1209
+ "internalType": "bool",
1210
+ "name": "_shouldToggleIsLeverageEnabled",
1211
+ "type": "bool"
1212
+ }
1213
+ ],
1214
+ "name": "setShouldToggleIsLeverageEnabled",
1215
+ "outputs": [],
1216
+ "stateMutability": "nonpayable",
1217
+ "type": "function"
1218
+ },
1219
+ {
1220
+ "inputs": [
1221
+ {
1222
+ "internalType": "address",
1223
+ "name": "_vault",
1224
+ "type": "address"
1225
+ },
1226
+ {
1227
+ "internalType": "uint256",
1228
+ "name": "_taxBasisPoints",
1229
+ "type": "uint256"
1230
+ },
1231
+ {
1232
+ "internalType": "uint256",
1233
+ "name": "_stableTaxBasisPoints",
1234
+ "type": "uint256"
1235
+ },
1236
+ {
1237
+ "internalType": "uint256",
1238
+ "name": "_mintBurnFeeBasisPoints",
1239
+ "type": "uint256"
1240
+ },
1241
+ {
1242
+ "internalType": "uint256",
1243
+ "name": "_swapFeeBasisPoints",
1244
+ "type": "uint256"
1245
+ },
1246
+ {
1247
+ "internalType": "uint256",
1248
+ "name": "_stableSwapFeeBasisPoints",
1249
+ "type": "uint256"
1250
+ }
1251
+ ],
1252
+ "name": "setSwapFees",
1253
+ "outputs": [],
1254
+ "stateMutability": "nonpayable",
1255
+ "type": "function"
1256
+ },
1257
+ {
1258
+ "inputs": [
1259
+ {
1260
+ "internalType": "address",
1261
+ "name": "_referralStorage",
1262
+ "type": "address"
1263
+ },
1264
+ {
1265
+ "internalType": "uint256",
1266
+ "name": "_tierId",
1267
+ "type": "uint256"
1268
+ },
1269
+ {
1270
+ "internalType": "uint256",
1271
+ "name": "_totalRebate",
1272
+ "type": "uint256"
1273
+ },
1274
+ {
1275
+ "internalType": "uint256",
1276
+ "name": "_discountShare",
1277
+ "type": "uint256"
1278
+ }
1279
+ ],
1280
+ "name": "setTier",
1281
+ "outputs": [],
1282
+ "stateMutability": "nonpayable",
1283
+ "type": "function"
1284
+ },
1285
+ {
1286
+ "inputs": [
1287
+ {
1288
+ "internalType": "address",
1289
+ "name": "_vault",
1290
+ "type": "address"
1291
+ },
1292
+ {
1293
+ "internalType": "address",
1294
+ "name": "_token",
1295
+ "type": "address"
1296
+ },
1297
+ {
1298
+ "internalType": "uint256",
1299
+ "name": "_tokenWeight",
1300
+ "type": "uint256"
1301
+ },
1302
+ {
1303
+ "internalType": "uint256",
1304
+ "name": "_minProfitBps",
1305
+ "type": "uint256"
1306
+ },
1307
+ {
1308
+ "internalType": "uint256",
1309
+ "name": "_maxUsdgAmount",
1310
+ "type": "uint256"
1311
+ },
1312
+ {
1313
+ "internalType": "uint256",
1314
+ "name": "_bufferAmount",
1315
+ "type": "uint256"
1316
+ },
1317
+ {
1318
+ "internalType": "uint256",
1319
+ "name": "_usdgAmount",
1320
+ "type": "uint256"
1321
+ }
1322
+ ],
1323
+ "name": "setTokenConfig",
1324
+ "outputs": [],
1325
+ "stateMutability": "nonpayable",
1326
+ "type": "function"
1327
+ },
1328
+ {
1329
+ "inputs": [
1330
+ {
1331
+ "internalType": "address",
1332
+ "name": "_vault",
1333
+ "type": "address"
1334
+ },
1335
+ {
1336
+ "internalType": "address[]",
1337
+ "name": "_tokens",
1338
+ "type": "address[]"
1339
+ },
1340
+ {
1341
+ "internalType": "uint256[]",
1342
+ "name": "_usdgAmounts",
1343
+ "type": "uint256[]"
1344
+ }
1345
+ ],
1346
+ "name": "setUsdgAmounts",
1347
+ "outputs": [],
1348
+ "stateMutability": "nonpayable",
1349
+ "type": "function"
1350
+ },
1351
+ {
1352
+ "inputs": [
1353
+ {
1354
+ "internalType": "address",
1355
+ "name": "_vault",
1356
+ "type": "address"
1357
+ },
1358
+ {
1359
+ "internalType": "contract IVaultUtils",
1360
+ "name": "_vaultUtils",
1361
+ "type": "address"
1362
+ }
1363
+ ],
1364
+ "name": "setVaultUtils",
1365
+ "outputs": [],
1366
+ "stateMutability": "nonpayable",
1367
+ "type": "function"
1368
+ },
1369
+ {
1370
+ "inputs": [],
1371
+ "name": "shouldToggleIsLeverageEnabled",
1372
+ "outputs": [
1373
+ {
1374
+ "internalType": "bool",
1375
+ "name": "",
1376
+ "type": "bool"
1377
+ }
1378
+ ],
1379
+ "stateMutability": "view",
1380
+ "type": "function"
1381
+ },
1382
+ {
1383
+ "inputs": [
1384
+ {
1385
+ "internalType": "address",
1386
+ "name": "_token",
1387
+ "type": "address"
1388
+ },
1389
+ {
1390
+ "internalType": "address",
1391
+ "name": "_spender",
1392
+ "type": "address"
1393
+ },
1394
+ {
1395
+ "internalType": "uint256",
1396
+ "name": "_amount",
1397
+ "type": "uint256"
1398
+ }
1399
+ ],
1400
+ "name": "signalApprove",
1401
+ "outputs": [],
1402
+ "stateMutability": "nonpayable",
1403
+ "type": "function"
1404
+ },
1405
+ {
1406
+ "inputs": [
1407
+ {
1408
+ "internalType": "address",
1409
+ "name": "_token",
1410
+ "type": "address"
1411
+ },
1412
+ {
1413
+ "internalType": "address",
1414
+ "name": "_receiver",
1415
+ "type": "address"
1416
+ },
1417
+ {
1418
+ "internalType": "uint256",
1419
+ "name": "_amount",
1420
+ "type": "uint256"
1421
+ }
1422
+ ],
1423
+ "name": "signalMint",
1424
+ "outputs": [],
1425
+ "stateMutability": "nonpayable",
1426
+ "type": "function"
1427
+ },
1428
+ {
1429
+ "inputs": [
1430
+ {
1431
+ "internalType": "address",
1432
+ "name": "_vault",
1433
+ "type": "address"
1434
+ },
1435
+ {
1436
+ "internalType": "address",
1437
+ "name": "_token",
1438
+ "type": "address"
1439
+ },
1440
+ {
1441
+ "internalType": "uint256",
1442
+ "name": "_amount",
1443
+ "type": "uint256"
1444
+ }
1445
+ ],
1446
+ "name": "signalRedeemUsdg",
1447
+ "outputs": [],
1448
+ "stateMutability": "nonpayable",
1449
+ "type": "function"
1450
+ },
1451
+ {
1452
+ "inputs": [
1453
+ {
1454
+ "internalType": "address",
1455
+ "name": "_target",
1456
+ "type": "address"
1457
+ },
1458
+ {
1459
+ "internalType": "address",
1460
+ "name": "_gov",
1461
+ "type": "address"
1462
+ }
1463
+ ],
1464
+ "name": "signalSetGov",
1465
+ "outputs": [],
1466
+ "stateMutability": "nonpayable",
1467
+ "type": "function"
1468
+ },
1469
+ {
1470
+ "inputs": [
1471
+ {
1472
+ "internalType": "address",
1473
+ "name": "_target",
1474
+ "type": "address"
1475
+ },
1476
+ {
1477
+ "internalType": "address",
1478
+ "name": "_handler",
1479
+ "type": "address"
1480
+ },
1481
+ {
1482
+ "internalType": "bool",
1483
+ "name": "_isActive",
1484
+ "type": "bool"
1485
+ }
1486
+ ],
1487
+ "name": "signalSetHandler",
1488
+ "outputs": [],
1489
+ "stateMutability": "nonpayable",
1490
+ "type": "function"
1491
+ },
1492
+ {
1493
+ "inputs": [
1494
+ {
1495
+ "internalType": "address",
1496
+ "name": "_vault",
1497
+ "type": "address"
1498
+ },
1499
+ {
1500
+ "internalType": "address",
1501
+ "name": "_priceFeed",
1502
+ "type": "address"
1503
+ }
1504
+ ],
1505
+ "name": "signalSetPriceFeed",
1506
+ "outputs": [],
1507
+ "stateMutability": "nonpayable",
1508
+ "type": "function"
1509
+ },
1510
+ {
1511
+ "inputs": [
1512
+ {
1513
+ "internalType": "address",
1514
+ "name": "_vault",
1515
+ "type": "address"
1516
+ },
1517
+ {
1518
+ "internalType": "address",
1519
+ "name": "_token",
1520
+ "type": "address"
1521
+ },
1522
+ {
1523
+ "internalType": "uint256",
1524
+ "name": "_tokenDecimals",
1525
+ "type": "uint256"
1526
+ },
1527
+ {
1528
+ "internalType": "uint256",
1529
+ "name": "_tokenWeight",
1530
+ "type": "uint256"
1531
+ },
1532
+ {
1533
+ "internalType": "uint256",
1534
+ "name": "_minProfitBps",
1535
+ "type": "uint256"
1536
+ },
1537
+ {
1538
+ "internalType": "uint256",
1539
+ "name": "_maxUsdgAmount",
1540
+ "type": "uint256"
1541
+ },
1542
+ {
1543
+ "internalType": "bool",
1544
+ "name": "_isStable",
1545
+ "type": "bool"
1546
+ },
1547
+ {
1548
+ "internalType": "bool",
1549
+ "name": "_isShortable",
1550
+ "type": "bool"
1551
+ }
1552
+ ],
1553
+ "name": "signalVaultSetTokenConfig",
1554
+ "outputs": [],
1555
+ "stateMutability": "nonpayable",
1556
+ "type": "function"
1557
+ },
1558
+ {
1559
+ "inputs": [
1560
+ {
1561
+ "internalType": "address",
1562
+ "name": "_target",
1563
+ "type": "address"
1564
+ },
1565
+ {
1566
+ "internalType": "address",
1567
+ "name": "_token",
1568
+ "type": "address"
1569
+ },
1570
+ {
1571
+ "internalType": "address",
1572
+ "name": "_receiver",
1573
+ "type": "address"
1574
+ },
1575
+ {
1576
+ "internalType": "uint256",
1577
+ "name": "_amount",
1578
+ "type": "uint256"
1579
+ }
1580
+ ],
1581
+ "name": "signalWithdrawToken",
1582
+ "outputs": [],
1583
+ "stateMutability": "nonpayable",
1584
+ "type": "function"
1585
+ },
1586
+ {
1587
+ "inputs": [],
1588
+ "name": "tokenManager",
1589
+ "outputs": [
1590
+ {
1591
+ "internalType": "address",
1592
+ "name": "",
1593
+ "type": "address"
1594
+ }
1595
+ ],
1596
+ "stateMutability": "view",
1597
+ "type": "function"
1598
+ },
1599
+ {
1600
+ "inputs": [
1601
+ {
1602
+ "internalType": "address",
1603
+ "name": "_sender",
1604
+ "type": "address"
1605
+ },
1606
+ {
1607
+ "internalType": "address",
1608
+ "name": "_token",
1609
+ "type": "address"
1610
+ },
1611
+ {
1612
+ "internalType": "uint256",
1613
+ "name": "_amount",
1614
+ "type": "uint256"
1615
+ }
1616
+ ],
1617
+ "name": "transferIn",
1618
+ "outputs": [],
1619
+ "stateMutability": "nonpayable",
1620
+ "type": "function"
1621
+ },
1622
+ {
1623
+ "inputs": [
1624
+ {
1625
+ "internalType": "uint256",
1626
+ "name": "usdgAmount",
1627
+ "type": "uint256"
1628
+ }
1629
+ ],
1630
+ "name": "updateUsdgSupply",
1631
+ "outputs": [],
1632
+ "stateMutability": "nonpayable",
1633
+ "type": "function"
1634
+ },
1635
+ {
1636
+ "inputs": [
1637
+ {
1638
+ "internalType": "address",
1639
+ "name": "_vault",
1640
+ "type": "address"
1641
+ },
1642
+ {
1643
+ "internalType": "address",
1644
+ "name": "_token",
1645
+ "type": "address"
1646
+ },
1647
+ {
1648
+ "internalType": "uint256",
1649
+ "name": "_tokenDecimals",
1650
+ "type": "uint256"
1651
+ },
1652
+ {
1653
+ "internalType": "uint256",
1654
+ "name": "_tokenWeight",
1655
+ "type": "uint256"
1656
+ },
1657
+ {
1658
+ "internalType": "uint256",
1659
+ "name": "_minProfitBps",
1660
+ "type": "uint256"
1661
+ },
1662
+ {
1663
+ "internalType": "uint256",
1664
+ "name": "_maxUsdgAmount",
1665
+ "type": "uint256"
1666
+ },
1667
+ {
1668
+ "internalType": "bool",
1669
+ "name": "_isStable",
1670
+ "type": "bool"
1671
+ },
1672
+ {
1673
+ "internalType": "bool",
1674
+ "name": "_isShortable",
1675
+ "type": "bool"
1676
+ }
1677
+ ],
1678
+ "name": "vaultSetTokenConfig",
1679
+ "outputs": [],
1680
+ "stateMutability": "nonpayable",
1681
+ "type": "function"
1682
+ },
1683
+ {
1684
+ "inputs": [
1685
+ {
1686
+ "internalType": "address",
1687
+ "name": "_vault",
1688
+ "type": "address"
1689
+ },
1690
+ {
1691
+ "internalType": "address",
1692
+ "name": "_token",
1693
+ "type": "address"
1694
+ },
1695
+ {
1696
+ "internalType": "address",
1697
+ "name": "_receiver",
1698
+ "type": "address"
1699
+ }
1700
+ ],
1701
+ "name": "withdrawFees",
1702
+ "outputs": [],
1703
+ "stateMutability": "nonpayable",
1704
+ "type": "function"
1705
+ },
1706
+ {
1707
+ "inputs": [
1708
+ {
1709
+ "internalType": "address",
1710
+ "name": "_target",
1711
+ "type": "address"
1712
+ },
1713
+ {
1714
+ "internalType": "address",
1715
+ "name": "_token",
1716
+ "type": "address"
1717
+ },
1718
+ {
1719
+ "internalType": "address",
1720
+ "name": "_receiver",
1721
+ "type": "address"
1722
+ },
1723
+ {
1724
+ "internalType": "uint256",
1725
+ "name": "_amount",
1726
+ "type": "uint256"
1727
+ }
1728
+ ],
1729
+ "name": "withdrawToken",
1730
+ "outputs": [],
1731
+ "stateMutability": "nonpayable",
1732
+ "type": "function"
1733
+ }
1734
+ ],
1735
+ "linkReferences": {},
1736
+ "deployedLinkReferences": {}
1737
1737
  }