@gmx-io/sdk 0.0.4 → 0.0.6

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,630 +0,0 @@
1
- {
2
- "_format": "hh-sol-artifact-1",
3
- "contractName": "Reader",
4
- "sourceName": "contracts/peripherals/Reader.sol",
5
- "abi": [
6
- {
7
- "inputs": [],
8
- "name": "BASIS_POINTS_DIVISOR",
9
- "outputs": [
10
- {
11
- "internalType": "uint256",
12
- "name": "",
13
- "type": "uint256"
14
- }
15
- ],
16
- "stateMutability": "view",
17
- "type": "function"
18
- },
19
- {
20
- "inputs": [],
21
- "name": "POSITION_PROPS_LENGTH",
22
- "outputs": [
23
- {
24
- "internalType": "uint256",
25
- "name": "",
26
- "type": "uint256"
27
- }
28
- ],
29
- "stateMutability": "view",
30
- "type": "function"
31
- },
32
- {
33
- "inputs": [],
34
- "name": "PRICE_PRECISION",
35
- "outputs": [
36
- {
37
- "internalType": "uint256",
38
- "name": "",
39
- "type": "uint256"
40
- }
41
- ],
42
- "stateMutability": "view",
43
- "type": "function"
44
- },
45
- {
46
- "inputs": [],
47
- "name": "USDG_DECIMALS",
48
- "outputs": [
49
- {
50
- "internalType": "uint256",
51
- "name": "",
52
- "type": "uint256"
53
- }
54
- ],
55
- "stateMutability": "view",
56
- "type": "function"
57
- },
58
- {
59
- "inputs": [
60
- {
61
- "internalType": "contract IVault",
62
- "name": "_vault",
63
- "type": "address"
64
- },
65
- {
66
- "internalType": "address",
67
- "name": "_tokenIn",
68
- "type": "address"
69
- },
70
- {
71
- "internalType": "address",
72
- "name": "_tokenOut",
73
- "type": "address"
74
- },
75
- {
76
- "internalType": "uint256",
77
- "name": "_amountIn",
78
- "type": "uint256"
79
- }
80
- ],
81
- "name": "getAmountOut",
82
- "outputs": [
83
- {
84
- "internalType": "uint256",
85
- "name": "",
86
- "type": "uint256"
87
- },
88
- {
89
- "internalType": "uint256",
90
- "name": "",
91
- "type": "uint256"
92
- }
93
- ],
94
- "stateMutability": "view",
95
- "type": "function"
96
- },
97
- {
98
- "inputs": [
99
- {
100
- "internalType": "contract IVault",
101
- "name": "_vault",
102
- "type": "address"
103
- },
104
- {
105
- "internalType": "address",
106
- "name": "_tokenIn",
107
- "type": "address"
108
- },
109
- {
110
- "internalType": "address",
111
- "name": "_tokenOut",
112
- "type": "address"
113
- },
114
- {
115
- "internalType": "uint256",
116
- "name": "_amountIn",
117
- "type": "uint256"
118
- }
119
- ],
120
- "name": "getFeeBasisPoints",
121
- "outputs": [
122
- {
123
- "internalType": "uint256",
124
- "name": "",
125
- "type": "uint256"
126
- },
127
- {
128
- "internalType": "uint256",
129
- "name": "",
130
- "type": "uint256"
131
- },
132
- {
133
- "internalType": "uint256",
134
- "name": "",
135
- "type": "uint256"
136
- }
137
- ],
138
- "stateMutability": "view",
139
- "type": "function"
140
- },
141
- {
142
- "inputs": [
143
- {
144
- "internalType": "address",
145
- "name": "_vault",
146
- "type": "address"
147
- },
148
- {
149
- "internalType": "address[]",
150
- "name": "_tokens",
151
- "type": "address[]"
152
- }
153
- ],
154
- "name": "getFees",
155
- "outputs": [
156
- {
157
- "internalType": "uint256[]",
158
- "name": "",
159
- "type": "uint256[]"
160
- }
161
- ],
162
- "stateMutability": "view",
163
- "type": "function"
164
- },
165
- {
166
- "inputs": [
167
- {
168
- "internalType": "address",
169
- "name": "_vault",
170
- "type": "address"
171
- },
172
- {
173
- "internalType": "address",
174
- "name": "_weth",
175
- "type": "address"
176
- },
177
- {
178
- "internalType": "uint256",
179
- "name": "_usdgAmount",
180
- "type": "uint256"
181
- },
182
- {
183
- "internalType": "address[]",
184
- "name": "_tokens",
185
- "type": "address[]"
186
- }
187
- ],
188
- "name": "getFullVaultTokenInfo",
189
- "outputs": [
190
- {
191
- "internalType": "uint256[]",
192
- "name": "",
193
- "type": "uint256[]"
194
- }
195
- ],
196
- "stateMutability": "view",
197
- "type": "function"
198
- },
199
- {
200
- "inputs": [
201
- {
202
- "internalType": "address",
203
- "name": "_vault",
204
- "type": "address"
205
- },
206
- {
207
- "internalType": "address",
208
- "name": "_weth",
209
- "type": "address"
210
- },
211
- {
212
- "internalType": "address[]",
213
- "name": "_tokens",
214
- "type": "address[]"
215
- }
216
- ],
217
- "name": "getFundingRates",
218
- "outputs": [
219
- {
220
- "internalType": "uint256[]",
221
- "name": "",
222
- "type": "uint256[]"
223
- }
224
- ],
225
- "stateMutability": "view",
226
- "type": "function"
227
- },
228
- {
229
- "inputs": [
230
- {
231
- "internalType": "contract IVault",
232
- "name": "_vault",
233
- "type": "address"
234
- },
235
- {
236
- "internalType": "address",
237
- "name": "_tokenIn",
238
- "type": "address"
239
- },
240
- {
241
- "internalType": "address",
242
- "name": "_tokenOut",
243
- "type": "address"
244
- }
245
- ],
246
- "name": "getMaxAmountIn",
247
- "outputs": [
248
- {
249
- "internalType": "uint256",
250
- "name": "",
251
- "type": "uint256"
252
- }
253
- ],
254
- "stateMutability": "view",
255
- "type": "function"
256
- },
257
- {
258
- "inputs": [
259
- {
260
- "internalType": "address",
261
- "name": "_factory",
262
- "type": "address"
263
- },
264
- {
265
- "internalType": "address[]",
266
- "name": "_tokens",
267
- "type": "address[]"
268
- }
269
- ],
270
- "name": "getPairInfo",
271
- "outputs": [
272
- {
273
- "internalType": "uint256[]",
274
- "name": "",
275
- "type": "uint256[]"
276
- }
277
- ],
278
- "stateMutability": "view",
279
- "type": "function"
280
- },
281
- {
282
- "inputs": [
283
- {
284
- "internalType": "address",
285
- "name": "_vault",
286
- "type": "address"
287
- },
288
- {
289
- "internalType": "address",
290
- "name": "_account",
291
- "type": "address"
292
- },
293
- {
294
- "internalType": "address[]",
295
- "name": "_collateralTokens",
296
- "type": "address[]"
297
- },
298
- {
299
- "internalType": "address[]",
300
- "name": "_indexTokens",
301
- "type": "address[]"
302
- },
303
- {
304
- "internalType": "bool[]",
305
- "name": "_isLong",
306
- "type": "bool[]"
307
- }
308
- ],
309
- "name": "getPositions",
310
- "outputs": [
311
- {
312
- "internalType": "uint256[]",
313
- "name": "",
314
- "type": "uint256[]"
315
- }
316
- ],
317
- "stateMutability": "view",
318
- "type": "function"
319
- },
320
- {
321
- "inputs": [
322
- {
323
- "internalType": "contract IVaultPriceFeed",
324
- "name": "_priceFeed",
325
- "type": "address"
326
- },
327
- {
328
- "internalType": "address[]",
329
- "name": "_tokens",
330
- "type": "address[]"
331
- }
332
- ],
333
- "name": "getPrices",
334
- "outputs": [
335
- {
336
- "internalType": "uint256[]",
337
- "name": "",
338
- "type": "uint256[]"
339
- }
340
- ],
341
- "stateMutability": "view",
342
- "type": "function"
343
- },
344
- {
345
- "inputs": [
346
- {
347
- "internalType": "address",
348
- "name": "_account",
349
- "type": "address"
350
- },
351
- {
352
- "internalType": "address[]",
353
- "name": "_yieldTrackers",
354
- "type": "address[]"
355
- }
356
- ],
357
- "name": "getStakingInfo",
358
- "outputs": [
359
- {
360
- "internalType": "uint256[]",
361
- "name": "",
362
- "type": "uint256[]"
363
- }
364
- ],
365
- "stateMutability": "view",
366
- "type": "function"
367
- },
368
- {
369
- "inputs": [
370
- {
371
- "internalType": "address",
372
- "name": "_account",
373
- "type": "address"
374
- },
375
- {
376
- "internalType": "address[]",
377
- "name": "_tokens",
378
- "type": "address[]"
379
- }
380
- ],
381
- "name": "getTokenBalances",
382
- "outputs": [
383
- {
384
- "internalType": "uint256[]",
385
- "name": "",
386
- "type": "uint256[]"
387
- }
388
- ],
389
- "stateMutability": "view",
390
- "type": "function"
391
- },
392
- {
393
- "inputs": [
394
- {
395
- "internalType": "address",
396
- "name": "_account",
397
- "type": "address"
398
- },
399
- {
400
- "internalType": "address[]",
401
- "name": "_tokens",
402
- "type": "address[]"
403
- }
404
- ],
405
- "name": "getTokenBalancesWithSupplies",
406
- "outputs": [
407
- {
408
- "internalType": "uint256[]",
409
- "name": "",
410
- "type": "uint256[]"
411
- }
412
- ],
413
- "stateMutability": "view",
414
- "type": "function"
415
- },
416
- {
417
- "inputs": [
418
- {
419
- "internalType": "contract IERC20",
420
- "name": "_token",
421
- "type": "address"
422
- },
423
- {
424
- "internalType": "address[]",
425
- "name": "_excludedAccounts",
426
- "type": "address[]"
427
- }
428
- ],
429
- "name": "getTokenSupply",
430
- "outputs": [
431
- {
432
- "internalType": "uint256",
433
- "name": "",
434
- "type": "uint256"
435
- }
436
- ],
437
- "stateMutability": "view",
438
- "type": "function"
439
- },
440
- {
441
- "inputs": [
442
- {
443
- "internalType": "contract IERC20",
444
- "name": "_token",
445
- "type": "address"
446
- },
447
- {
448
- "internalType": "address[]",
449
- "name": "_accounts",
450
- "type": "address[]"
451
- }
452
- ],
453
- "name": "getTotalBalance",
454
- "outputs": [
455
- {
456
- "internalType": "uint256",
457
- "name": "",
458
- "type": "uint256"
459
- }
460
- ],
461
- "stateMutability": "view",
462
- "type": "function"
463
- },
464
- {
465
- "inputs": [
466
- {
467
- "internalType": "address[]",
468
- "name": "_yieldTokens",
469
- "type": "address[]"
470
- }
471
- ],
472
- "name": "getTotalStaked",
473
- "outputs": [
474
- {
475
- "internalType": "uint256[]",
476
- "name": "",
477
- "type": "uint256[]"
478
- }
479
- ],
480
- "stateMutability": "view",
481
- "type": "function"
482
- },
483
- {
484
- "inputs": [
485
- {
486
- "internalType": "address",
487
- "name": "_vault",
488
- "type": "address"
489
- },
490
- {
491
- "internalType": "address",
492
- "name": "_weth",
493
- "type": "address"
494
- },
495
- {
496
- "internalType": "uint256",
497
- "name": "_usdgAmount",
498
- "type": "uint256"
499
- },
500
- {
501
- "internalType": "address[]",
502
- "name": "_tokens",
503
- "type": "address[]"
504
- }
505
- ],
506
- "name": "getVaultTokenInfo",
507
- "outputs": [
508
- {
509
- "internalType": "uint256[]",
510
- "name": "",
511
- "type": "uint256[]"
512
- }
513
- ],
514
- "stateMutability": "view",
515
- "type": "function"
516
- },
517
- {
518
- "inputs": [
519
- {
520
- "internalType": "address",
521
- "name": "_vault",
522
- "type": "address"
523
- },
524
- {
525
- "internalType": "address",
526
- "name": "_weth",
527
- "type": "address"
528
- },
529
- {
530
- "internalType": "uint256",
531
- "name": "_usdgAmount",
532
- "type": "uint256"
533
- },
534
- {
535
- "internalType": "address[]",
536
- "name": "_tokens",
537
- "type": "address[]"
538
- }
539
- ],
540
- "name": "getVaultTokenInfoV2",
541
- "outputs": [
542
- {
543
- "internalType": "uint256[]",
544
- "name": "",
545
- "type": "uint256[]"
546
- }
547
- ],
548
- "stateMutability": "view",
549
- "type": "function"
550
- },
551
- {
552
- "inputs": [
553
- {
554
- "internalType": "address",
555
- "name": "_account",
556
- "type": "address"
557
- },
558
- {
559
- "internalType": "address[]",
560
- "name": "_vesters",
561
- "type": "address[]"
562
- }
563
- ],
564
- "name": "getVestingInfo",
565
- "outputs": [
566
- {
567
- "internalType": "uint256[]",
568
- "name": "",
569
- "type": "uint256[]"
570
- }
571
- ],
572
- "stateMutability": "view",
573
- "type": "function"
574
- },
575
- {
576
- "inputs": [],
577
- "name": "gov",
578
- "outputs": [
579
- {
580
- "internalType": "address",
581
- "name": "",
582
- "type": "address"
583
- }
584
- ],
585
- "stateMutability": "view",
586
- "type": "function"
587
- },
588
- {
589
- "inputs": [],
590
- "name": "hasMaxGlobalShortSizes",
591
- "outputs": [
592
- {
593
- "internalType": "bool",
594
- "name": "",
595
- "type": "bool"
596
- }
597
- ],
598
- "stateMutability": "view",
599
- "type": "function"
600
- },
601
- {
602
- "inputs": [
603
- {
604
- "internalType": "bool",
605
- "name": "_hasMaxGlobalShortSizes",
606
- "type": "bool"
607
- }
608
- ],
609
- "name": "setConfig",
610
- "outputs": [],
611
- "stateMutability": "nonpayable",
612
- "type": "function"
613
- },
614
- {
615
- "inputs": [
616
- {
617
- "internalType": "address",
618
- "name": "_gov",
619
- "type": "address"
620
- }
621
- ],
622
- "name": "setGov",
623
- "outputs": [],
624
- "stateMutability": "nonpayable",
625
- "type": "function"
626
- }
627
- ],
628
- "linkReferences": {},
629
- "deployedLinkReferences": {}
630
- }