@gmx-io/sdk 0.0.3 → 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 +7 -7
  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,355 +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
- {
22
- "internalType": "contract IVault",
23
- "name": "_vault",
24
- "type": "address"
25
- },
26
- {
27
- "internalType": "address",
28
- "name": "_tokenIn",
29
- "type": "address"
30
- },
31
- {
32
- "internalType": "address",
33
- "name": "_tokenOut",
34
- "type": "address"
35
- },
36
- {
37
- "internalType": "uint256",
38
- "name": "_amountIn",
39
- "type": "uint256"
40
- }
41
- ],
42
- "name": "getAmountOut",
43
- "outputs": [
44
- {
45
- "internalType": "uint256",
46
- "name": "",
47
- "type": "uint256"
48
- },
49
- {
50
- "internalType": "uint256",
51
- "name": "",
52
- "type": "uint256"
53
- }
54
- ],
55
- "stateMutability": "view",
56
- "type": "function"
57
- },
58
- {
59
- "inputs": [
60
- {
61
- "internalType": "address",
62
- "name": "_vault",
63
- "type": "address"
64
- },
65
- {
66
- "internalType": "address[]",
67
- "name": "_tokens",
68
- "type": "address[]"
69
- }
70
- ],
71
- "name": "getFees",
72
- "outputs": [
73
- {
74
- "internalType": "uint256[]",
75
- "name": "",
76
- "type": "uint256[]"
77
- }
78
- ],
79
- "stateMutability": "view",
80
- "type": "function"
81
- },
82
- {
83
- "inputs": [
84
- {
85
- "internalType": "address",
86
- "name": "_vault",
87
- "type": "address"
88
- },
89
- {
90
- "internalType": "address",
91
- "name": "_weth",
92
- "type": "address"
93
- },
94
- {
95
- "internalType": "address[]",
96
- "name": "_tokens",
97
- "type": "address[]"
98
- }
99
- ],
100
- "name": "getFundingRates",
101
- "outputs": [
102
- {
103
- "internalType": "uint256[]",
104
- "name": "",
105
- "type": "uint256[]"
106
- }
107
- ],
108
- "stateMutability": "view",
109
- "type": "function"
110
- },
111
- {
112
- "inputs": [
113
- {
114
- "internalType": "contract IVault",
115
- "name": "_vault",
116
- "type": "address"
117
- },
118
- {
119
- "internalType": "address",
120
- "name": "_tokenIn",
121
- "type": "address"
122
- },
123
- {
124
- "internalType": "address",
125
- "name": "_tokenOut",
126
- "type": "address"
127
- }
128
- ],
129
- "name": "getMaxAmountIn",
130
- "outputs": [
131
- {
132
- "internalType": "uint256",
133
- "name": "",
134
- "type": "uint256"
135
- }
136
- ],
137
- "stateMutability": "view",
138
- "type": "function"
139
- },
140
- {
141
- "inputs": [
142
- {
143
- "internalType": "address",
144
- "name": "_factory",
145
- "type": "address"
146
- },
147
- {
148
- "internalType": "address[]",
149
- "name": "_tokens",
150
- "type": "address[]"
151
- }
152
- ],
153
- "name": "getPairInfo",
154
- "outputs": [
155
- {
156
- "internalType": "uint256[]",
157
- "name": "",
158
- "type": "uint256[]"
159
- }
160
- ],
161
- "stateMutability": "view",
162
- "type": "function"
163
- },
164
- {
165
- "inputs": [
166
- {
167
- "internalType": "address",
168
- "name": "_vault",
169
- "type": "address"
170
- },
171
- {
172
- "internalType": "address",
173
- "name": "_account",
174
- "type": "address"
175
- },
176
- {
177
- "internalType": "address[]",
178
- "name": "_collateralTokens",
179
- "type": "address[]"
180
- },
181
- {
182
- "internalType": "address[]",
183
- "name": "_indexTokens",
184
- "type": "address[]"
185
- },
186
- {
187
- "internalType": "bool[]",
188
- "name": "_isLong",
189
- "type": "bool[]"
190
- }
191
- ],
192
- "name": "getPositions",
193
- "outputs": [
194
- {
195
- "internalType": "uint256[]",
196
- "name": "",
197
- "type": "uint256[]"
198
- }
199
- ],
200
- "stateMutability": "view",
201
- "type": "function"
202
- },
203
- {
204
- "inputs": [
205
- {
206
- "internalType": "address",
207
- "name": "_account",
208
- "type": "address"
209
- },
210
- {
211
- "internalType": "address[]",
212
- "name": "_yieldTrackers",
213
- "type": "address[]"
214
- }
215
- ],
216
- "name": "getStakingInfo",
217
- "outputs": [
218
- {
219
- "internalType": "uint256[]",
220
- "name": "",
221
- "type": "uint256[]"
222
- }
223
- ],
224
- "stateMutability": "view",
225
- "type": "function"
226
- },
227
- {
228
- "inputs": [
229
- {
230
- "internalType": "address",
231
- "name": "_account",
232
- "type": "address"
233
- },
234
- {
235
- "internalType": "address[]",
236
- "name": "_tokens",
237
- "type": "address[]"
238
- }
239
- ],
240
- "name": "getTokenBalances",
241
- "outputs": [
242
- {
243
- "internalType": "uint256[]",
244
- "name": "",
245
- "type": "uint256[]"
246
- }
247
- ],
248
- "stateMutability": "view",
249
- "type": "function"
250
- },
251
- {
252
- "inputs": [
253
- {
254
- "internalType": "address",
255
- "name": "_account",
256
- "type": "address"
257
- },
258
- {
259
- "internalType": "address[]",
260
- "name": "_tokens",
261
- "type": "address[]"
262
- }
263
- ],
264
- "name": "getTokenBalancesWithSupplies",
265
- "outputs": [
266
- {
267
- "internalType": "uint256[]",
268
- "name": "",
269
- "type": "uint256[]"
270
- }
271
- ],
272
- "stateMutability": "view",
273
- "type": "function"
274
- },
275
- {
276
- "inputs": [
277
- {
278
- "internalType": "contract IERC20",
279
- "name": "_token",
280
- "type": "address"
281
- },
282
- {
283
- "internalType": "address[]",
284
- "name": "_excludedAccounts",
285
- "type": "address[]"
286
- }
287
- ],
288
- "name": "getTokenSupply",
289
- "outputs": [
290
- {
291
- "internalType": "uint256",
292
- "name": "",
293
- "type": "uint256"
294
- }
295
- ],
296
- "stateMutability": "view",
297
- "type": "function"
298
- },
299
- {
300
- "inputs": [
301
- {
302
- "internalType": "address[]",
303
- "name": "_yieldTokens",
304
- "type": "address[]"
305
- }
306
- ],
307
- "name": "getTotalStaked",
308
- "outputs": [
309
- {
310
- "internalType": "uint256[]",
311
- "name": "",
312
- "type": "uint256[]"
313
- }
314
- ],
315
- "stateMutability": "view",
316
- "type": "function"
317
- },
318
- {
319
- "inputs": [
320
- {
321
- "internalType": "address",
322
- "name": "_vault",
323
- "type": "address"
324
- },
325
- {
326
- "internalType": "address",
327
- "name": "_weth",
328
- "type": "address"
329
- },
330
- {
331
- "internalType": "uint256",
332
- "name": "_usdgAmount",
333
- "type": "uint256"
334
- },
335
- {
336
- "internalType": "address[]",
337
- "name": "_tokens",
338
- "type": "address[]"
339
- }
340
- ],
341
- "name": "getVaultTokenInfo",
342
- "outputs": [
343
- {
344
- "internalType": "uint256[]",
345
- "name": "",
346
- "type": "uint256[]"
347
- }
348
- ],
349
- "stateMutability": "view",
350
- "type": "function"
351
- }
352
- ],
353
- "linkReferences": {},
354
- "deployedLinkReferences": {}
355
- }