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