@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,769 +1,769 @@
1
1
  {
2
- "_format": "hh-sol-artifact-1",
3
- "contractName": "RewardRouterV2",
4
- "sourceName": "contracts/staking/RewardRouterV2.sol",
5
- "abi": [
6
- {
7
- "anonymous": false,
8
- "inputs": [
9
- {
10
- "indexed": false,
11
- "internalType": "address",
12
- "name": "account",
13
- "type": "address"
14
- },
15
- {
16
- "indexed": false,
17
- "internalType": "uint256",
18
- "name": "amount",
19
- "type": "uint256"
20
- }
21
- ],
22
- "name": "StakeGlp",
23
- "type": "event"
24
- },
25
- {
26
- "anonymous": false,
27
- "inputs": [
28
- {
29
- "indexed": false,
30
- "internalType": "address",
31
- "name": "account",
32
- "type": "address"
33
- },
34
- {
35
- "indexed": false,
36
- "internalType": "address",
37
- "name": "token",
38
- "type": "address"
39
- },
40
- {
41
- "indexed": false,
42
- "internalType": "uint256",
43
- "name": "amount",
44
- "type": "uint256"
45
- }
46
- ],
47
- "name": "StakeGmx",
48
- "type": "event"
49
- },
50
- {
51
- "anonymous": false,
52
- "inputs": [
53
- {
54
- "indexed": false,
55
- "internalType": "address",
56
- "name": "account",
57
- "type": "address"
58
- },
59
- {
60
- "indexed": false,
61
- "internalType": "uint256",
62
- "name": "amount",
63
- "type": "uint256"
64
- }
65
- ],
66
- "name": "UnstakeGlp",
67
- "type": "event"
68
- },
69
- {
70
- "anonymous": false,
71
- "inputs": [
72
- {
73
- "indexed": false,
74
- "internalType": "address",
75
- "name": "account",
76
- "type": "address"
77
- },
78
- {
79
- "indexed": false,
80
- "internalType": "address",
81
- "name": "token",
82
- "type": "address"
83
- },
84
- {
85
- "indexed": false,
86
- "internalType": "uint256",
87
- "name": "amount",
88
- "type": "uint256"
89
- }
90
- ],
91
- "name": "UnstakeGmx",
92
- "type": "event"
93
- },
94
- {
95
- "inputs": [
96
- {
97
- "internalType": "address",
98
- "name": "_sender",
99
- "type": "address"
100
- }
101
- ],
102
- "name": "acceptTransfer",
103
- "outputs": [],
104
- "stateMutability": "nonpayable",
105
- "type": "function"
106
- },
107
- {
108
- "inputs": [
109
- {
110
- "internalType": "address[]",
111
- "name": "_accounts",
112
- "type": "address[]"
113
- }
114
- ],
115
- "name": "batchCompoundForAccounts",
116
- "outputs": [],
117
- "stateMutability": "nonpayable",
118
- "type": "function"
119
- },
120
- {
121
- "inputs": [
122
- {
123
- "internalType": "address[]",
124
- "name": "_accounts",
125
- "type": "address[]"
126
- },
127
- {
128
- "internalType": "uint256[]",
129
- "name": "_amounts",
130
- "type": "uint256[]"
131
- }
132
- ],
133
- "name": "batchStakeGmxForAccount",
134
- "outputs": [],
135
- "stateMutability": "nonpayable",
136
- "type": "function"
137
- },
138
- {
139
- "inputs": [],
140
- "name": "bnGmx",
141
- "outputs": [
142
- {
143
- "internalType": "address",
144
- "name": "",
145
- "type": "address"
146
- }
147
- ],
148
- "stateMutability": "view",
149
- "type": "function"
150
- },
151
- {
152
- "inputs": [],
153
- "name": "bonusGmxTracker",
154
- "outputs": [
155
- {
156
- "internalType": "address",
157
- "name": "",
158
- "type": "address"
159
- }
160
- ],
161
- "stateMutability": "view",
162
- "type": "function"
163
- },
164
- {
165
- "inputs": [],
166
- "name": "claim",
167
- "outputs": [],
168
- "stateMutability": "nonpayable",
169
- "type": "function"
170
- },
171
- {
172
- "inputs": [],
173
- "name": "claimEsGmx",
174
- "outputs": [],
175
- "stateMutability": "nonpayable",
176
- "type": "function"
177
- },
178
- {
179
- "inputs": [],
180
- "name": "claimFees",
181
- "outputs": [],
182
- "stateMutability": "nonpayable",
183
- "type": "function"
184
- },
185
- {
186
- "inputs": [],
187
- "name": "compound",
188
- "outputs": [],
189
- "stateMutability": "nonpayable",
190
- "type": "function"
191
- },
192
- {
193
- "inputs": [
194
- {
195
- "internalType": "address",
196
- "name": "_account",
197
- "type": "address"
198
- }
199
- ],
200
- "name": "compoundForAccount",
201
- "outputs": [],
202
- "stateMutability": "nonpayable",
203
- "type": "function"
204
- },
205
- {
206
- "inputs": [],
207
- "name": "esGmx",
208
- "outputs": [
209
- {
210
- "internalType": "address",
211
- "name": "",
212
- "type": "address"
213
- }
214
- ],
215
- "stateMutability": "view",
216
- "type": "function"
217
- },
218
- {
219
- "inputs": [],
220
- "name": "feeGlpTracker",
221
- "outputs": [
222
- {
223
- "internalType": "address",
224
- "name": "",
225
- "type": "address"
226
- }
227
- ],
228
- "stateMutability": "view",
229
- "type": "function"
230
- },
231
- {
232
- "inputs": [],
233
- "name": "feeGmxTracker",
234
- "outputs": [
235
- {
236
- "internalType": "address",
237
- "name": "",
238
- "type": "address"
239
- }
240
- ],
241
- "stateMutability": "view",
242
- "type": "function"
243
- },
244
- {
245
- "inputs": [],
246
- "name": "glp",
247
- "outputs": [
248
- {
249
- "internalType": "address",
250
- "name": "",
251
- "type": "address"
252
- }
253
- ],
254
- "stateMutability": "view",
255
- "type": "function"
256
- },
257
- {
258
- "inputs": [],
259
- "name": "glpManager",
260
- "outputs": [
261
- {
262
- "internalType": "address",
263
- "name": "",
264
- "type": "address"
265
- }
266
- ],
267
- "stateMutability": "view",
268
- "type": "function"
269
- },
270
- {
271
- "inputs": [],
272
- "name": "glpVester",
273
- "outputs": [
274
- {
275
- "internalType": "address",
276
- "name": "",
277
- "type": "address"
278
- }
279
- ],
280
- "stateMutability": "view",
281
- "type": "function"
282
- },
283
- {
284
- "inputs": [],
285
- "name": "maxBoostBasisPoints",
286
- "outputs": [
287
- {
288
- "internalType": "uint256",
289
- "name": "",
290
- "type": "uint256"
291
- }
292
- ],
293
- "stateMutability": "view",
294
- "type": "function"
295
- },
296
- {
297
- "inputs": [],
298
- "name": "gmx",
299
- "outputs": [
300
- {
301
- "internalType": "address",
302
- "name": "",
303
- "type": "address"
304
- }
305
- ],
306
- "stateMutability": "view",
307
- "type": "function"
308
- },
309
- {
310
- "inputs": [],
311
- "name": "gmxVester",
312
- "outputs": [
313
- {
314
- "internalType": "address",
315
- "name": "",
316
- "type": "address"
317
- }
318
- ],
319
- "stateMutability": "view",
320
- "type": "function"
321
- },
322
- {
323
- "inputs": [],
324
- "name": "gov",
325
- "outputs": [
326
- {
327
- "internalType": "address",
328
- "name": "",
329
- "type": "address"
330
- }
331
- ],
332
- "stateMutability": "view",
333
- "type": "function"
334
- },
335
- {
336
- "inputs": [
337
- {
338
- "internalType": "bool",
339
- "name": "_shouldClaimGmx",
340
- "type": "bool"
341
- },
342
- {
343
- "internalType": "bool",
344
- "name": "_shouldStakeGmx",
345
- "type": "bool"
346
- },
347
- {
348
- "internalType": "bool",
349
- "name": "_shouldClaimEsGmx",
350
- "type": "bool"
351
- },
352
- {
353
- "internalType": "bool",
354
- "name": "_shouldStakeEsGmx",
355
- "type": "bool"
356
- },
357
- {
358
- "internalType": "bool",
359
- "name": "_shouldStakeMultiplierPoints",
360
- "type": "bool"
361
- },
362
- {
363
- "internalType": "bool",
364
- "name": "_shouldClaimWeth",
365
- "type": "bool"
366
- },
367
- {
368
- "internalType": "bool",
369
- "name": "_shouldConvertWethToEth",
370
- "type": "bool"
371
- }
372
- ],
373
- "name": "handleRewards",
374
- "outputs": [],
375
- "stateMutability": "nonpayable",
376
- "type": "function"
377
- },
378
- {
379
- "inputs": [
380
- {
381
- "internalType": "address",
382
- "name": "_weth",
383
- "type": "address"
384
- },
385
- {
386
- "internalType": "address",
387
- "name": "_gmx",
388
- "type": "address"
389
- },
390
- {
391
- "internalType": "address",
392
- "name": "_esGmx",
393
- "type": "address"
394
- },
395
- {
396
- "internalType": "address",
397
- "name": "_bnGmx",
398
- "type": "address"
399
- },
400
- {
401
- "internalType": "address",
402
- "name": "_glp",
403
- "type": "address"
404
- },
405
- {
406
- "internalType": "address",
407
- "name": "_stakedGmxTracker",
408
- "type": "address"
409
- },
410
- {
411
- "internalType": "address",
412
- "name": "_bonusGmxTracker",
413
- "type": "address"
414
- },
415
- {
416
- "internalType": "address",
417
- "name": "_feeGmxTracker",
418
- "type": "address"
419
- },
420
- {
421
- "internalType": "address",
422
- "name": "_feeGlpTracker",
423
- "type": "address"
424
- },
425
- {
426
- "internalType": "address",
427
- "name": "_stakedGlpTracker",
428
- "type": "address"
429
- },
430
- {
431
- "internalType": "address",
432
- "name": "_glpManager",
433
- "type": "address"
434
- },
435
- {
436
- "internalType": "address",
437
- "name": "_gmxVester",
438
- "type": "address"
439
- },
440
- {
441
- "internalType": "address",
442
- "name": "_glpVester",
443
- "type": "address"
444
- }
445
- ],
446
- "name": "initialize",
447
- "outputs": [],
448
- "stateMutability": "nonpayable",
449
- "type": "function"
450
- },
451
- {
452
- "inputs": [],
453
- "name": "isInitialized",
454
- "outputs": [
455
- {
456
- "internalType": "bool",
457
- "name": "",
458
- "type": "bool"
459
- }
460
- ],
461
- "stateMutability": "view",
462
- "type": "function"
463
- },
464
- {
465
- "inputs": [
466
- {
467
- "internalType": "address",
468
- "name": "_token",
469
- "type": "address"
470
- },
471
- {
472
- "internalType": "uint256",
473
- "name": "_amount",
474
- "type": "uint256"
475
- },
476
- {
477
- "internalType": "uint256",
478
- "name": "_minUsdg",
479
- "type": "uint256"
480
- },
481
- {
482
- "internalType": "uint256",
483
- "name": "_minGlp",
484
- "type": "uint256"
485
- }
486
- ],
487
- "name": "mintAndStakeGlp",
488
- "outputs": [
489
- {
490
- "internalType": "uint256",
491
- "name": "",
492
- "type": "uint256"
493
- }
494
- ],
495
- "stateMutability": "nonpayable",
496
- "type": "function"
497
- },
498
- {
499
- "inputs": [
500
- {
501
- "internalType": "uint256",
502
- "name": "_minUsdg",
503
- "type": "uint256"
504
- },
505
- {
506
- "internalType": "uint256",
507
- "name": "_minGlp",
508
- "type": "uint256"
509
- }
510
- ],
511
- "name": "mintAndStakeGlpETH",
512
- "outputs": [
513
- {
514
- "internalType": "uint256",
515
- "name": "",
516
- "type": "uint256"
517
- }
518
- ],
519
- "stateMutability": "payable",
520
- "type": "function"
521
- },
522
- {
523
- "inputs": [
524
- {
525
- "internalType": "address",
526
- "name": "",
527
- "type": "address"
528
- }
529
- ],
530
- "name": "pendingReceivers",
531
- "outputs": [
532
- {
533
- "internalType": "address",
534
- "name": "",
535
- "type": "address"
536
- }
537
- ],
538
- "stateMutability": "view",
539
- "type": "function"
540
- },
541
- {
542
- "inputs": [
543
- {
544
- "internalType": "address",
545
- "name": "_gov",
546
- "type": "address"
547
- }
548
- ],
549
- "name": "setGov",
550
- "outputs": [],
551
- "stateMutability": "nonpayable",
552
- "type": "function"
553
- },
554
- {
555
- "inputs": [
556
- {
557
- "internalType": "address",
558
- "name": "_receiver",
559
- "type": "address"
560
- }
561
- ],
562
- "name": "signalTransfer",
563
- "outputs": [],
564
- "stateMutability": "nonpayable",
565
- "type": "function"
566
- },
567
- {
568
- "inputs": [
569
- {
570
- "internalType": "uint256",
571
- "name": "_amount",
572
- "type": "uint256"
573
- }
574
- ],
575
- "name": "stakeEsGmx",
576
- "outputs": [],
577
- "stateMutability": "nonpayable",
578
- "type": "function"
579
- },
580
- {
581
- "inputs": [
582
- {
583
- "internalType": "uint256",
584
- "name": "_amount",
585
- "type": "uint256"
586
- }
587
- ],
588
- "name": "stakeGmx",
589
- "outputs": [],
590
- "stateMutability": "nonpayable",
591
- "type": "function"
592
- },
593
- {
594
- "inputs": [
595
- {
596
- "internalType": "address",
597
- "name": "_account",
598
- "type": "address"
599
- },
600
- {
601
- "internalType": "uint256",
602
- "name": "_amount",
603
- "type": "uint256"
604
- }
605
- ],
606
- "name": "stakeGmxForAccount",
607
- "outputs": [],
608
- "stateMutability": "nonpayable",
609
- "type": "function"
610
- },
611
- {
612
- "inputs": [],
613
- "name": "stakedGlpTracker",
614
- "outputs": [
615
- {
616
- "internalType": "address",
617
- "name": "",
618
- "type": "address"
619
- }
620
- ],
621
- "stateMutability": "view",
622
- "type": "function"
623
- },
624
- {
625
- "inputs": [],
626
- "name": "stakedGmxTracker",
627
- "outputs": [
628
- {
629
- "internalType": "address",
630
- "name": "",
631
- "type": "address"
632
- }
633
- ],
634
- "stateMutability": "view",
635
- "type": "function"
636
- },
637
- {
638
- "inputs": [
639
- {
640
- "internalType": "address",
641
- "name": "_tokenOut",
642
- "type": "address"
643
- },
644
- {
645
- "internalType": "uint256",
646
- "name": "_glpAmount",
647
- "type": "uint256"
648
- },
649
- {
650
- "internalType": "uint256",
651
- "name": "_minOut",
652
- "type": "uint256"
653
- },
654
- {
655
- "internalType": "address",
656
- "name": "_receiver",
657
- "type": "address"
658
- }
659
- ],
660
- "name": "unstakeAndRedeemGlp",
661
- "outputs": [
662
- {
663
- "internalType": "uint256",
664
- "name": "",
665
- "type": "uint256"
666
- }
667
- ],
668
- "stateMutability": "nonpayable",
669
- "type": "function"
670
- },
671
- {
672
- "inputs": [
673
- {
674
- "internalType": "uint256",
675
- "name": "_glpAmount",
676
- "type": "uint256"
677
- },
678
- {
679
- "internalType": "uint256",
680
- "name": "_minOut",
681
- "type": "uint256"
682
- },
683
- {
684
- "internalType": "address payable",
685
- "name": "_receiver",
686
- "type": "address"
687
- }
688
- ],
689
- "name": "unstakeAndRedeemGlpETH",
690
- "outputs": [
691
- {
692
- "internalType": "uint256",
693
- "name": "",
694
- "type": "uint256"
695
- }
696
- ],
697
- "stateMutability": "nonpayable",
698
- "type": "function"
699
- },
700
- {
701
- "inputs": [
702
- {
703
- "internalType": "uint256",
704
- "name": "_amount",
705
- "type": "uint256"
706
- }
707
- ],
708
- "name": "unstakeEsGmx",
709
- "outputs": [],
710
- "stateMutability": "nonpayable",
711
- "type": "function"
712
- },
713
- {
714
- "inputs": [
715
- {
716
- "internalType": "uint256",
717
- "name": "_amount",
718
- "type": "uint256"
719
- }
720
- ],
721
- "name": "unstakeGmx",
722
- "outputs": [],
723
- "stateMutability": "nonpayable",
724
- "type": "function"
725
- },
726
- {
727
- "inputs": [],
728
- "name": "weth",
729
- "outputs": [
730
- {
731
- "internalType": "address",
732
- "name": "",
733
- "type": "address"
734
- }
735
- ],
736
- "stateMutability": "view",
737
- "type": "function"
738
- },
739
- {
740
- "inputs": [
741
- {
742
- "internalType": "address",
743
- "name": "_token",
744
- "type": "address"
745
- },
746
- {
747
- "internalType": "address",
748
- "name": "_account",
749
- "type": "address"
750
- },
751
- {
752
- "internalType": "uint256",
753
- "name": "_amount",
754
- "type": "uint256"
755
- }
756
- ],
757
- "name": "withdrawToken",
758
- "outputs": [],
759
- "stateMutability": "nonpayable",
760
- "type": "function"
761
- },
762
- {
763
- "stateMutability": "payable",
764
- "type": "receive"
765
- }
766
- ],
767
- "linkReferences": {},
768
- "deployedLinkReferences": {}
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "RewardRouterV2",
4
+ "sourceName": "contracts/staking/RewardRouterV2.sol",
5
+ "abi": [
6
+ {
7
+ "anonymous": false,
8
+ "inputs": [
9
+ {
10
+ "indexed": false,
11
+ "internalType": "address",
12
+ "name": "account",
13
+ "type": "address"
14
+ },
15
+ {
16
+ "indexed": false,
17
+ "internalType": "uint256",
18
+ "name": "amount",
19
+ "type": "uint256"
20
+ }
21
+ ],
22
+ "name": "StakeGlp",
23
+ "type": "event"
24
+ },
25
+ {
26
+ "anonymous": false,
27
+ "inputs": [
28
+ {
29
+ "indexed": false,
30
+ "internalType": "address",
31
+ "name": "account",
32
+ "type": "address"
33
+ },
34
+ {
35
+ "indexed": false,
36
+ "internalType": "address",
37
+ "name": "token",
38
+ "type": "address"
39
+ },
40
+ {
41
+ "indexed": false,
42
+ "internalType": "uint256",
43
+ "name": "amount",
44
+ "type": "uint256"
45
+ }
46
+ ],
47
+ "name": "StakeGmx",
48
+ "type": "event"
49
+ },
50
+ {
51
+ "anonymous": false,
52
+ "inputs": [
53
+ {
54
+ "indexed": false,
55
+ "internalType": "address",
56
+ "name": "account",
57
+ "type": "address"
58
+ },
59
+ {
60
+ "indexed": false,
61
+ "internalType": "uint256",
62
+ "name": "amount",
63
+ "type": "uint256"
64
+ }
65
+ ],
66
+ "name": "UnstakeGlp",
67
+ "type": "event"
68
+ },
69
+ {
70
+ "anonymous": false,
71
+ "inputs": [
72
+ {
73
+ "indexed": false,
74
+ "internalType": "address",
75
+ "name": "account",
76
+ "type": "address"
77
+ },
78
+ {
79
+ "indexed": false,
80
+ "internalType": "address",
81
+ "name": "token",
82
+ "type": "address"
83
+ },
84
+ {
85
+ "indexed": false,
86
+ "internalType": "uint256",
87
+ "name": "amount",
88
+ "type": "uint256"
89
+ }
90
+ ],
91
+ "name": "UnstakeGmx",
92
+ "type": "event"
93
+ },
94
+ {
95
+ "inputs": [
96
+ {
97
+ "internalType": "address",
98
+ "name": "_sender",
99
+ "type": "address"
100
+ }
101
+ ],
102
+ "name": "acceptTransfer",
103
+ "outputs": [],
104
+ "stateMutability": "nonpayable",
105
+ "type": "function"
106
+ },
107
+ {
108
+ "inputs": [
109
+ {
110
+ "internalType": "address[]",
111
+ "name": "_accounts",
112
+ "type": "address[]"
113
+ }
114
+ ],
115
+ "name": "batchCompoundForAccounts",
116
+ "outputs": [],
117
+ "stateMutability": "nonpayable",
118
+ "type": "function"
119
+ },
120
+ {
121
+ "inputs": [
122
+ {
123
+ "internalType": "address[]",
124
+ "name": "_accounts",
125
+ "type": "address[]"
126
+ },
127
+ {
128
+ "internalType": "uint256[]",
129
+ "name": "_amounts",
130
+ "type": "uint256[]"
131
+ }
132
+ ],
133
+ "name": "batchStakeGmxForAccount",
134
+ "outputs": [],
135
+ "stateMutability": "nonpayable",
136
+ "type": "function"
137
+ },
138
+ {
139
+ "inputs": [],
140
+ "name": "bnGmx",
141
+ "outputs": [
142
+ {
143
+ "internalType": "address",
144
+ "name": "",
145
+ "type": "address"
146
+ }
147
+ ],
148
+ "stateMutability": "view",
149
+ "type": "function"
150
+ },
151
+ {
152
+ "inputs": [],
153
+ "name": "bonusGmxTracker",
154
+ "outputs": [
155
+ {
156
+ "internalType": "address",
157
+ "name": "",
158
+ "type": "address"
159
+ }
160
+ ],
161
+ "stateMutability": "view",
162
+ "type": "function"
163
+ },
164
+ {
165
+ "inputs": [],
166
+ "name": "claim",
167
+ "outputs": [],
168
+ "stateMutability": "nonpayable",
169
+ "type": "function"
170
+ },
171
+ {
172
+ "inputs": [],
173
+ "name": "claimEsGmx",
174
+ "outputs": [],
175
+ "stateMutability": "nonpayable",
176
+ "type": "function"
177
+ },
178
+ {
179
+ "inputs": [],
180
+ "name": "claimFees",
181
+ "outputs": [],
182
+ "stateMutability": "nonpayable",
183
+ "type": "function"
184
+ },
185
+ {
186
+ "inputs": [],
187
+ "name": "compound",
188
+ "outputs": [],
189
+ "stateMutability": "nonpayable",
190
+ "type": "function"
191
+ },
192
+ {
193
+ "inputs": [
194
+ {
195
+ "internalType": "address",
196
+ "name": "_account",
197
+ "type": "address"
198
+ }
199
+ ],
200
+ "name": "compoundForAccount",
201
+ "outputs": [],
202
+ "stateMutability": "nonpayable",
203
+ "type": "function"
204
+ },
205
+ {
206
+ "inputs": [],
207
+ "name": "esGmx",
208
+ "outputs": [
209
+ {
210
+ "internalType": "address",
211
+ "name": "",
212
+ "type": "address"
213
+ }
214
+ ],
215
+ "stateMutability": "view",
216
+ "type": "function"
217
+ },
218
+ {
219
+ "inputs": [],
220
+ "name": "feeGlpTracker",
221
+ "outputs": [
222
+ {
223
+ "internalType": "address",
224
+ "name": "",
225
+ "type": "address"
226
+ }
227
+ ],
228
+ "stateMutability": "view",
229
+ "type": "function"
230
+ },
231
+ {
232
+ "inputs": [],
233
+ "name": "feeGmxTracker",
234
+ "outputs": [
235
+ {
236
+ "internalType": "address",
237
+ "name": "",
238
+ "type": "address"
239
+ }
240
+ ],
241
+ "stateMutability": "view",
242
+ "type": "function"
243
+ },
244
+ {
245
+ "inputs": [],
246
+ "name": "glp",
247
+ "outputs": [
248
+ {
249
+ "internalType": "address",
250
+ "name": "",
251
+ "type": "address"
252
+ }
253
+ ],
254
+ "stateMutability": "view",
255
+ "type": "function"
256
+ },
257
+ {
258
+ "inputs": [],
259
+ "name": "glpManager",
260
+ "outputs": [
261
+ {
262
+ "internalType": "address",
263
+ "name": "",
264
+ "type": "address"
265
+ }
266
+ ],
267
+ "stateMutability": "view",
268
+ "type": "function"
269
+ },
270
+ {
271
+ "inputs": [],
272
+ "name": "glpVester",
273
+ "outputs": [
274
+ {
275
+ "internalType": "address",
276
+ "name": "",
277
+ "type": "address"
278
+ }
279
+ ],
280
+ "stateMutability": "view",
281
+ "type": "function"
282
+ },
283
+ {
284
+ "inputs": [],
285
+ "name": "maxBoostBasisPoints",
286
+ "outputs": [
287
+ {
288
+ "internalType": "uint256",
289
+ "name": "",
290
+ "type": "uint256"
291
+ }
292
+ ],
293
+ "stateMutability": "view",
294
+ "type": "function"
295
+ },
296
+ {
297
+ "inputs": [],
298
+ "name": "gmx",
299
+ "outputs": [
300
+ {
301
+ "internalType": "address",
302
+ "name": "",
303
+ "type": "address"
304
+ }
305
+ ],
306
+ "stateMutability": "view",
307
+ "type": "function"
308
+ },
309
+ {
310
+ "inputs": [],
311
+ "name": "gmxVester",
312
+ "outputs": [
313
+ {
314
+ "internalType": "address",
315
+ "name": "",
316
+ "type": "address"
317
+ }
318
+ ],
319
+ "stateMutability": "view",
320
+ "type": "function"
321
+ },
322
+ {
323
+ "inputs": [],
324
+ "name": "gov",
325
+ "outputs": [
326
+ {
327
+ "internalType": "address",
328
+ "name": "",
329
+ "type": "address"
330
+ }
331
+ ],
332
+ "stateMutability": "view",
333
+ "type": "function"
334
+ },
335
+ {
336
+ "inputs": [
337
+ {
338
+ "internalType": "bool",
339
+ "name": "_shouldClaimGmx",
340
+ "type": "bool"
341
+ },
342
+ {
343
+ "internalType": "bool",
344
+ "name": "_shouldStakeGmx",
345
+ "type": "bool"
346
+ },
347
+ {
348
+ "internalType": "bool",
349
+ "name": "_shouldClaimEsGmx",
350
+ "type": "bool"
351
+ },
352
+ {
353
+ "internalType": "bool",
354
+ "name": "_shouldStakeEsGmx",
355
+ "type": "bool"
356
+ },
357
+ {
358
+ "internalType": "bool",
359
+ "name": "_shouldStakeMultiplierPoints",
360
+ "type": "bool"
361
+ },
362
+ {
363
+ "internalType": "bool",
364
+ "name": "_shouldClaimWeth",
365
+ "type": "bool"
366
+ },
367
+ {
368
+ "internalType": "bool",
369
+ "name": "_shouldConvertWethToEth",
370
+ "type": "bool"
371
+ }
372
+ ],
373
+ "name": "handleRewards",
374
+ "outputs": [],
375
+ "stateMutability": "nonpayable",
376
+ "type": "function"
377
+ },
378
+ {
379
+ "inputs": [
380
+ {
381
+ "internalType": "address",
382
+ "name": "_weth",
383
+ "type": "address"
384
+ },
385
+ {
386
+ "internalType": "address",
387
+ "name": "_gmx",
388
+ "type": "address"
389
+ },
390
+ {
391
+ "internalType": "address",
392
+ "name": "_esGmx",
393
+ "type": "address"
394
+ },
395
+ {
396
+ "internalType": "address",
397
+ "name": "_bnGmx",
398
+ "type": "address"
399
+ },
400
+ {
401
+ "internalType": "address",
402
+ "name": "_glp",
403
+ "type": "address"
404
+ },
405
+ {
406
+ "internalType": "address",
407
+ "name": "_stakedGmxTracker",
408
+ "type": "address"
409
+ },
410
+ {
411
+ "internalType": "address",
412
+ "name": "_bonusGmxTracker",
413
+ "type": "address"
414
+ },
415
+ {
416
+ "internalType": "address",
417
+ "name": "_feeGmxTracker",
418
+ "type": "address"
419
+ },
420
+ {
421
+ "internalType": "address",
422
+ "name": "_feeGlpTracker",
423
+ "type": "address"
424
+ },
425
+ {
426
+ "internalType": "address",
427
+ "name": "_stakedGlpTracker",
428
+ "type": "address"
429
+ },
430
+ {
431
+ "internalType": "address",
432
+ "name": "_glpManager",
433
+ "type": "address"
434
+ },
435
+ {
436
+ "internalType": "address",
437
+ "name": "_gmxVester",
438
+ "type": "address"
439
+ },
440
+ {
441
+ "internalType": "address",
442
+ "name": "_glpVester",
443
+ "type": "address"
444
+ }
445
+ ],
446
+ "name": "initialize",
447
+ "outputs": [],
448
+ "stateMutability": "nonpayable",
449
+ "type": "function"
450
+ },
451
+ {
452
+ "inputs": [],
453
+ "name": "isInitialized",
454
+ "outputs": [
455
+ {
456
+ "internalType": "bool",
457
+ "name": "",
458
+ "type": "bool"
459
+ }
460
+ ],
461
+ "stateMutability": "view",
462
+ "type": "function"
463
+ },
464
+ {
465
+ "inputs": [
466
+ {
467
+ "internalType": "address",
468
+ "name": "_token",
469
+ "type": "address"
470
+ },
471
+ {
472
+ "internalType": "uint256",
473
+ "name": "_amount",
474
+ "type": "uint256"
475
+ },
476
+ {
477
+ "internalType": "uint256",
478
+ "name": "_minUsdg",
479
+ "type": "uint256"
480
+ },
481
+ {
482
+ "internalType": "uint256",
483
+ "name": "_minGlp",
484
+ "type": "uint256"
485
+ }
486
+ ],
487
+ "name": "mintAndStakeGlp",
488
+ "outputs": [
489
+ {
490
+ "internalType": "uint256",
491
+ "name": "",
492
+ "type": "uint256"
493
+ }
494
+ ],
495
+ "stateMutability": "nonpayable",
496
+ "type": "function"
497
+ },
498
+ {
499
+ "inputs": [
500
+ {
501
+ "internalType": "uint256",
502
+ "name": "_minUsdg",
503
+ "type": "uint256"
504
+ },
505
+ {
506
+ "internalType": "uint256",
507
+ "name": "_minGlp",
508
+ "type": "uint256"
509
+ }
510
+ ],
511
+ "name": "mintAndStakeGlpETH",
512
+ "outputs": [
513
+ {
514
+ "internalType": "uint256",
515
+ "name": "",
516
+ "type": "uint256"
517
+ }
518
+ ],
519
+ "stateMutability": "payable",
520
+ "type": "function"
521
+ },
522
+ {
523
+ "inputs": [
524
+ {
525
+ "internalType": "address",
526
+ "name": "",
527
+ "type": "address"
528
+ }
529
+ ],
530
+ "name": "pendingReceivers",
531
+ "outputs": [
532
+ {
533
+ "internalType": "address",
534
+ "name": "",
535
+ "type": "address"
536
+ }
537
+ ],
538
+ "stateMutability": "view",
539
+ "type": "function"
540
+ },
541
+ {
542
+ "inputs": [
543
+ {
544
+ "internalType": "address",
545
+ "name": "_gov",
546
+ "type": "address"
547
+ }
548
+ ],
549
+ "name": "setGov",
550
+ "outputs": [],
551
+ "stateMutability": "nonpayable",
552
+ "type": "function"
553
+ },
554
+ {
555
+ "inputs": [
556
+ {
557
+ "internalType": "address",
558
+ "name": "_receiver",
559
+ "type": "address"
560
+ }
561
+ ],
562
+ "name": "signalTransfer",
563
+ "outputs": [],
564
+ "stateMutability": "nonpayable",
565
+ "type": "function"
566
+ },
567
+ {
568
+ "inputs": [
569
+ {
570
+ "internalType": "uint256",
571
+ "name": "_amount",
572
+ "type": "uint256"
573
+ }
574
+ ],
575
+ "name": "stakeEsGmx",
576
+ "outputs": [],
577
+ "stateMutability": "nonpayable",
578
+ "type": "function"
579
+ },
580
+ {
581
+ "inputs": [
582
+ {
583
+ "internalType": "uint256",
584
+ "name": "_amount",
585
+ "type": "uint256"
586
+ }
587
+ ],
588
+ "name": "stakeGmx",
589
+ "outputs": [],
590
+ "stateMutability": "nonpayable",
591
+ "type": "function"
592
+ },
593
+ {
594
+ "inputs": [
595
+ {
596
+ "internalType": "address",
597
+ "name": "_account",
598
+ "type": "address"
599
+ },
600
+ {
601
+ "internalType": "uint256",
602
+ "name": "_amount",
603
+ "type": "uint256"
604
+ }
605
+ ],
606
+ "name": "stakeGmxForAccount",
607
+ "outputs": [],
608
+ "stateMutability": "nonpayable",
609
+ "type": "function"
610
+ },
611
+ {
612
+ "inputs": [],
613
+ "name": "stakedGlpTracker",
614
+ "outputs": [
615
+ {
616
+ "internalType": "address",
617
+ "name": "",
618
+ "type": "address"
619
+ }
620
+ ],
621
+ "stateMutability": "view",
622
+ "type": "function"
623
+ },
624
+ {
625
+ "inputs": [],
626
+ "name": "stakedGmxTracker",
627
+ "outputs": [
628
+ {
629
+ "internalType": "address",
630
+ "name": "",
631
+ "type": "address"
632
+ }
633
+ ],
634
+ "stateMutability": "view",
635
+ "type": "function"
636
+ },
637
+ {
638
+ "inputs": [
639
+ {
640
+ "internalType": "address",
641
+ "name": "_tokenOut",
642
+ "type": "address"
643
+ },
644
+ {
645
+ "internalType": "uint256",
646
+ "name": "_glpAmount",
647
+ "type": "uint256"
648
+ },
649
+ {
650
+ "internalType": "uint256",
651
+ "name": "_minOut",
652
+ "type": "uint256"
653
+ },
654
+ {
655
+ "internalType": "address",
656
+ "name": "_receiver",
657
+ "type": "address"
658
+ }
659
+ ],
660
+ "name": "unstakeAndRedeemGlp",
661
+ "outputs": [
662
+ {
663
+ "internalType": "uint256",
664
+ "name": "",
665
+ "type": "uint256"
666
+ }
667
+ ],
668
+ "stateMutability": "nonpayable",
669
+ "type": "function"
670
+ },
671
+ {
672
+ "inputs": [
673
+ {
674
+ "internalType": "uint256",
675
+ "name": "_glpAmount",
676
+ "type": "uint256"
677
+ },
678
+ {
679
+ "internalType": "uint256",
680
+ "name": "_minOut",
681
+ "type": "uint256"
682
+ },
683
+ {
684
+ "internalType": "address payable",
685
+ "name": "_receiver",
686
+ "type": "address"
687
+ }
688
+ ],
689
+ "name": "unstakeAndRedeemGlpETH",
690
+ "outputs": [
691
+ {
692
+ "internalType": "uint256",
693
+ "name": "",
694
+ "type": "uint256"
695
+ }
696
+ ],
697
+ "stateMutability": "nonpayable",
698
+ "type": "function"
699
+ },
700
+ {
701
+ "inputs": [
702
+ {
703
+ "internalType": "uint256",
704
+ "name": "_amount",
705
+ "type": "uint256"
706
+ }
707
+ ],
708
+ "name": "unstakeEsGmx",
709
+ "outputs": [],
710
+ "stateMutability": "nonpayable",
711
+ "type": "function"
712
+ },
713
+ {
714
+ "inputs": [
715
+ {
716
+ "internalType": "uint256",
717
+ "name": "_amount",
718
+ "type": "uint256"
719
+ }
720
+ ],
721
+ "name": "unstakeGmx",
722
+ "outputs": [],
723
+ "stateMutability": "nonpayable",
724
+ "type": "function"
725
+ },
726
+ {
727
+ "inputs": [],
728
+ "name": "weth",
729
+ "outputs": [
730
+ {
731
+ "internalType": "address",
732
+ "name": "",
733
+ "type": "address"
734
+ }
735
+ ],
736
+ "stateMutability": "view",
737
+ "type": "function"
738
+ },
739
+ {
740
+ "inputs": [
741
+ {
742
+ "internalType": "address",
743
+ "name": "_token",
744
+ "type": "address"
745
+ },
746
+ {
747
+ "internalType": "address",
748
+ "name": "_account",
749
+ "type": "address"
750
+ },
751
+ {
752
+ "internalType": "uint256",
753
+ "name": "_amount",
754
+ "type": "uint256"
755
+ }
756
+ ],
757
+ "name": "withdrawToken",
758
+ "outputs": [],
759
+ "stateMutability": "nonpayable",
760
+ "type": "function"
761
+ },
762
+ {
763
+ "stateMutability": "payable",
764
+ "type": "receive"
765
+ }
766
+ ],
767
+ "linkReferences": {},
768
+ "deployedLinkReferences": {}
769
769
  }