@paraswap/dex-lib 2.34.0 → 2.35.1

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 (72) hide show
  1. package/build/abi/api3-proxy.json +46 -0
  2. package/build/abi/api3-server-v1.json +463 -0
  3. package/build/abi/quick-perps/fast-price-events.json +70 -0
  4. package/build/abi/quick-perps/fast-price-feed.json +741 -0
  5. package/build/abi/quick-perps/reader.json +313 -0
  6. package/build/abi/quick-perps/vault-price-feed.json +323 -0
  7. package/build/abi/quick-perps/vault.json +1953 -0
  8. package/build/composed-event-subscriber.js +8 -2
  9. package/build/composed-event-subscriber.js.map +1 -1
  10. package/build/config.js +2 -2
  11. package/build/dex/algebra/algebra.js +0 -12
  12. package/build/dex/algebra/algebra.js.map +1 -1
  13. package/build/dex/index.js +2 -0
  14. package/build/dex/index.js.map +1 -1
  15. package/build/dex/quick-perps/config.d.ts +11 -0
  16. package/build/dex/quick-perps/config.js +27 -0
  17. package/build/dex/quick-perps/config.js.map +1 -0
  18. package/build/dex/quick-perps/fast-price-feed.d.ts +26 -0
  19. package/build/dex/quick-perps/fast-price-feed.js +176 -0
  20. package/build/dex/quick-perps/fast-price-feed.js.map +1 -0
  21. package/build/dex/quick-perps/pool.d.ts +21 -0
  22. package/build/dex/quick-perps/pool.js +210 -0
  23. package/build/dex/quick-perps/pool.js.map +1 -0
  24. package/build/dex/quick-perps/quick-perps.d.ts +52 -0
  25. package/build/dex/quick-perps/quick-perps.js +205 -0
  26. package/build/dex/quick-perps/quick-perps.js.map +1 -0
  27. package/build/dex/quick-perps/types.d.ts +98 -0
  28. package/build/dex/quick-perps/types.js +3 -0
  29. package/build/dex/quick-perps/types.js.map +1 -0
  30. package/build/dex/quick-perps/usdq.d.ts +15 -0
  31. package/build/dex/quick-perps/usdq.js +61 -0
  32. package/build/dex/quick-perps/usdq.js.map +1 -0
  33. package/build/dex/quick-perps/vault-price-feed.d.ts +43 -0
  34. package/build/dex/quick-perps/vault-price-feed.js +194 -0
  35. package/build/dex/quick-perps/vault-price-feed.js.map +1 -0
  36. package/build/dex/quick-perps/vault-utils.d.ts +8 -0
  37. package/build/dex/quick-perps/vault-utils.js +41 -0
  38. package/build/dex/quick-perps/vault-utils.js.map +1 -0
  39. package/build/dex/quick-perps/vault.d.ts +46 -0
  40. package/build/dex/quick-perps/vault.js +166 -0
  41. package/build/dex/quick-perps/vault.js.map +1 -0
  42. package/build/lib/api3-feed.d.ts +26 -0
  43. package/build/lib/api3-feed.js +82 -0
  44. package/build/lib/api3-feed.js.map +1 -0
  45. package/package.json +1 -1
  46. package/src/abi/api3-proxy.json +46 -0
  47. package/src/abi/api3-server-v1.json +463 -0
  48. package/src/abi/quick-perps/fast-price-events.json +70 -0
  49. package/src/abi/quick-perps/fast-price-feed.json +741 -0
  50. package/src/abi/quick-perps/reader.json +313 -0
  51. package/src/abi/quick-perps/vault-price-feed.json +323 -0
  52. package/src/abi/quick-perps/vault.json +1953 -0
  53. package/src/composed-event-subscriber.ts +16 -11
  54. package/src/config.ts +2 -2
  55. package/src/dex/algebra/algebra.ts +0 -13
  56. package/src/dex/index.ts +2 -0
  57. package/src/dex/quick-perps/config.ts +31 -0
  58. package/src/dex/quick-perps/fast-price-feed.ts +279 -0
  59. package/src/dex/quick-perps/pool.ts +372 -0
  60. package/src/dex/quick-perps/quick-perps-e2e.test.ts +65 -0
  61. package/src/dex/quick-perps/quick-perps-events.test.ts +101 -0
  62. package/src/dex/quick-perps/quick-perps-integration.test.ts +153 -0
  63. package/src/dex/quick-perps/quick-perps.ts +292 -0
  64. package/src/dex/quick-perps/types.ts +97 -0
  65. package/src/dex/quick-perps/usdq.ts +83 -0
  66. package/src/dex/quick-perps/vault-price-feed.ts +322 -0
  67. package/src/dex/quick-perps/vault-utils.ts +53 -0
  68. package/src/dex/quick-perps/vault.ts +290 -0
  69. package/src/lib/api3-feed.ts +140 -0
  70. package/tests/constants-e2e.ts +29 -0
  71. package/tests/tenderly-simulation.ts +46 -2
  72. package/tests/utils-e2e.ts +18 -10
@@ -0,0 +1,741 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "uint256",
6
+ "name": "_priceDuration",
7
+ "type": "uint256"
8
+ },
9
+ {
10
+ "internalType": "uint256",
11
+ "name": "_maxPriceUpdateDelay",
12
+ "type": "uint256"
13
+ },
14
+ {
15
+ "internalType": "uint256",
16
+ "name": "_minBlockInterval",
17
+ "type": "uint256"
18
+ },
19
+ {
20
+ "internalType": "uint256",
21
+ "name": "_maxDeviationBasisPoints",
22
+ "type": "uint256"
23
+ },
24
+ {
25
+ "internalType": "address",
26
+ "name": "_fastPriceEvents",
27
+ "type": "address"
28
+ },
29
+ { "internalType": "address", "name": "_tokenManager", "type": "address" }
30
+ ],
31
+ "stateMutability": "nonpayable",
32
+ "type": "constructor"
33
+ },
34
+ {
35
+ "anonymous": false,
36
+ "inputs": [
37
+ {
38
+ "indexed": false,
39
+ "internalType": "address",
40
+ "name": "signer",
41
+ "type": "address"
42
+ }
43
+ ],
44
+ "name": "DisableFastPrice",
45
+ "type": "event"
46
+ },
47
+ {
48
+ "anonymous": false,
49
+ "inputs": [
50
+ {
51
+ "indexed": false,
52
+ "internalType": "address",
53
+ "name": "signer",
54
+ "type": "address"
55
+ }
56
+ ],
57
+ "name": "EnableFastPrice",
58
+ "type": "event"
59
+ },
60
+ {
61
+ "anonymous": false,
62
+ "inputs": [
63
+ {
64
+ "indexed": false,
65
+ "internalType": "address",
66
+ "name": "token",
67
+ "type": "address"
68
+ },
69
+ {
70
+ "indexed": false,
71
+ "internalType": "uint256",
72
+ "name": "refPrice",
73
+ "type": "uint256"
74
+ },
75
+ {
76
+ "indexed": false,
77
+ "internalType": "uint256",
78
+ "name": "fastPrice",
79
+ "type": "uint256"
80
+ },
81
+ {
82
+ "indexed": false,
83
+ "internalType": "uint256",
84
+ "name": "cumulativeRefDelta",
85
+ "type": "uint256"
86
+ },
87
+ {
88
+ "indexed": false,
89
+ "internalType": "uint256",
90
+ "name": "cumulativeFastDelta",
91
+ "type": "uint256"
92
+ }
93
+ ],
94
+ "name": "MaxCumulativeDeltaDiffExceeded",
95
+ "type": "event"
96
+ },
97
+ {
98
+ "anonymous": false,
99
+ "inputs": [
100
+ {
101
+ "indexed": false,
102
+ "internalType": "address",
103
+ "name": "token",
104
+ "type": "address"
105
+ },
106
+ {
107
+ "indexed": false,
108
+ "internalType": "uint256",
109
+ "name": "refPrice",
110
+ "type": "uint256"
111
+ },
112
+ {
113
+ "indexed": false,
114
+ "internalType": "uint256",
115
+ "name": "fastPrice",
116
+ "type": "uint256"
117
+ },
118
+ {
119
+ "indexed": false,
120
+ "internalType": "uint256",
121
+ "name": "cumulativeRefDelta",
122
+ "type": "uint256"
123
+ },
124
+ {
125
+ "indexed": false,
126
+ "internalType": "uint256",
127
+ "name": "cumulativeFastDelta",
128
+ "type": "uint256"
129
+ }
130
+ ],
131
+ "name": "PriceData",
132
+ "type": "event"
133
+ },
134
+ {
135
+ "inputs": [],
136
+ "name": "BASIS_POINTS_DIVISOR",
137
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
138
+ "stateMutability": "view",
139
+ "type": "function"
140
+ },
141
+ {
142
+ "inputs": [],
143
+ "name": "BITMASK_32",
144
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
145
+ "stateMutability": "view",
146
+ "type": "function"
147
+ },
148
+ {
149
+ "inputs": [],
150
+ "name": "CUMULATIVE_DELTA_PRECISION",
151
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
152
+ "stateMutability": "view",
153
+ "type": "function"
154
+ },
155
+ {
156
+ "inputs": [],
157
+ "name": "MAX_CUMULATIVE_FAST_DELTA",
158
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
159
+ "stateMutability": "view",
160
+ "type": "function"
161
+ },
162
+ {
163
+ "inputs": [],
164
+ "name": "MAX_CUMULATIVE_REF_DELTA",
165
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
166
+ "stateMutability": "view",
167
+ "type": "function"
168
+ },
169
+ {
170
+ "inputs": [],
171
+ "name": "MAX_PRICE_DURATION",
172
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
173
+ "stateMutability": "view",
174
+ "type": "function"
175
+ },
176
+ {
177
+ "inputs": [],
178
+ "name": "MAX_REF_PRICE",
179
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
180
+ "stateMutability": "view",
181
+ "type": "function"
182
+ },
183
+ {
184
+ "inputs": [],
185
+ "name": "PRICE_PRECISION",
186
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
187
+ "stateMutability": "view",
188
+ "type": "function"
189
+ },
190
+ {
191
+ "inputs": [],
192
+ "name": "disableFastPrice",
193
+ "outputs": [],
194
+ "stateMutability": "nonpayable",
195
+ "type": "function"
196
+ },
197
+ {
198
+ "inputs": [],
199
+ "name": "disableFastPriceVoteCount",
200
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
201
+ "stateMutability": "view",
202
+ "type": "function"
203
+ },
204
+ {
205
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
206
+ "name": "disableFastPriceVotes",
207
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
208
+ "stateMutability": "view",
209
+ "type": "function"
210
+ },
211
+ {
212
+ "inputs": [],
213
+ "name": "enableFastPrice",
214
+ "outputs": [],
215
+ "stateMutability": "nonpayable",
216
+ "type": "function"
217
+ },
218
+ {
219
+ "inputs": [],
220
+ "name": "fastPriceEvents",
221
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
222
+ "stateMutability": "view",
223
+ "type": "function"
224
+ },
225
+ {
226
+ "inputs": [
227
+ { "internalType": "address", "name": "_token", "type": "address" }
228
+ ],
229
+ "name": "favorFastPrice",
230
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
231
+ "stateMutability": "view",
232
+ "type": "function"
233
+ },
234
+ {
235
+ "inputs": [
236
+ { "internalType": "address", "name": "_token", "type": "address" },
237
+ { "internalType": "uint256", "name": "_refPrice", "type": "uint256" },
238
+ { "internalType": "bool", "name": "_maximise", "type": "bool" }
239
+ ],
240
+ "name": "getPrice",
241
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
242
+ "stateMutability": "view",
243
+ "type": "function"
244
+ },
245
+ {
246
+ "inputs": [
247
+ { "internalType": "address", "name": "_token", "type": "address" }
248
+ ],
249
+ "name": "getPriceData",
250
+ "outputs": [
251
+ { "internalType": "uint256", "name": "", "type": "uint256" },
252
+ { "internalType": "uint256", "name": "", "type": "uint256" },
253
+ { "internalType": "uint256", "name": "", "type": "uint256" },
254
+ { "internalType": "uint256", "name": "", "type": "uint256" }
255
+ ],
256
+ "stateMutability": "view",
257
+ "type": "function"
258
+ },
259
+ {
260
+ "inputs": [],
261
+ "name": "gov",
262
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
263
+ "stateMutability": "view",
264
+ "type": "function"
265
+ },
266
+ {
267
+ "inputs": [
268
+ {
269
+ "internalType": "uint256",
270
+ "name": "_minAuthorizations",
271
+ "type": "uint256"
272
+ },
273
+ { "internalType": "address[]", "name": "_signers", "type": "address[]" },
274
+ { "internalType": "address[]", "name": "_updaters", "type": "address[]" }
275
+ ],
276
+ "name": "initialize",
277
+ "outputs": [],
278
+ "stateMutability": "nonpayable",
279
+ "type": "function"
280
+ },
281
+ {
282
+ "inputs": [],
283
+ "name": "isInitialized",
284
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
285
+ "stateMutability": "view",
286
+ "type": "function"
287
+ },
288
+ {
289
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
290
+ "name": "isSigner",
291
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
292
+ "stateMutability": "view",
293
+ "type": "function"
294
+ },
295
+ {
296
+ "inputs": [],
297
+ "name": "isSpreadEnabled",
298
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
299
+ "stateMutability": "view",
300
+ "type": "function"
301
+ },
302
+ {
303
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
304
+ "name": "isUpdater",
305
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
306
+ "stateMutability": "view",
307
+ "type": "function"
308
+ },
309
+ {
310
+ "inputs": [],
311
+ "name": "lastUpdatedAt",
312
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
313
+ "stateMutability": "view",
314
+ "type": "function"
315
+ },
316
+ {
317
+ "inputs": [],
318
+ "name": "lastUpdatedBlock",
319
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
320
+ "stateMutability": "view",
321
+ "type": "function"
322
+ },
323
+ {
324
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
325
+ "name": "maxCumulativeDeltaDiffs",
326
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
327
+ "stateMutability": "view",
328
+ "type": "function"
329
+ },
330
+ {
331
+ "inputs": [],
332
+ "name": "maxDeviationBasisPoints",
333
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
334
+ "stateMutability": "view",
335
+ "type": "function"
336
+ },
337
+ {
338
+ "inputs": [],
339
+ "name": "maxPriceUpdateDelay",
340
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
341
+ "stateMutability": "view",
342
+ "type": "function"
343
+ },
344
+ {
345
+ "inputs": [],
346
+ "name": "maxTimeDeviation",
347
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
348
+ "stateMutability": "view",
349
+ "type": "function"
350
+ },
351
+ {
352
+ "inputs": [],
353
+ "name": "minAuthorizations",
354
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
355
+ "stateMutability": "view",
356
+ "type": "function"
357
+ },
358
+ {
359
+ "inputs": [],
360
+ "name": "minBlockInterval",
361
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
362
+ "stateMutability": "view",
363
+ "type": "function"
364
+ },
365
+ {
366
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
367
+ "name": "priceData",
368
+ "outputs": [
369
+ { "internalType": "uint160", "name": "refPrice", "type": "uint160" },
370
+ { "internalType": "uint32", "name": "refTime", "type": "uint32" },
371
+ {
372
+ "internalType": "uint32",
373
+ "name": "cumulativeRefDelta",
374
+ "type": "uint32"
375
+ },
376
+ {
377
+ "internalType": "uint32",
378
+ "name": "cumulativeFastDelta",
379
+ "type": "uint32"
380
+ }
381
+ ],
382
+ "stateMutability": "view",
383
+ "type": "function"
384
+ },
385
+ {
386
+ "inputs": [],
387
+ "name": "priceDataInterval",
388
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
389
+ "stateMutability": "view",
390
+ "type": "function"
391
+ },
392
+ {
393
+ "inputs": [],
394
+ "name": "priceDuration",
395
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
396
+ "stateMutability": "view",
397
+ "type": "function"
398
+ },
399
+ {
400
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
401
+ "name": "prices",
402
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
403
+ "stateMutability": "view",
404
+ "type": "function"
405
+ },
406
+ {
407
+ "inputs": [
408
+ {
409
+ "internalType": "uint256[]",
410
+ "name": "_priceBitArray",
411
+ "type": "uint256[]"
412
+ },
413
+ { "internalType": "uint256", "name": "_timestamp", "type": "uint256" }
414
+ ],
415
+ "name": "setCompactedPrices",
416
+ "outputs": [],
417
+ "stateMutability": "nonpayable",
418
+ "type": "function"
419
+ },
420
+ {
421
+ "inputs": [
422
+ {
423
+ "internalType": "address",
424
+ "name": "_fastPriceEvents",
425
+ "type": "address"
426
+ }
427
+ ],
428
+ "name": "setFastPriceEvents",
429
+ "outputs": [],
430
+ "stateMutability": "nonpayable",
431
+ "type": "function"
432
+ },
433
+ {
434
+ "inputs": [
435
+ { "internalType": "address", "name": "_gov", "type": "address" }
436
+ ],
437
+ "name": "setGov",
438
+ "outputs": [],
439
+ "stateMutability": "nonpayable",
440
+ "type": "function"
441
+ },
442
+ {
443
+ "inputs": [
444
+ { "internalType": "bool", "name": "_isSpreadEnabled", "type": "bool" }
445
+ ],
446
+ "name": "setIsSpreadEnabled",
447
+ "outputs": [],
448
+ "stateMutability": "nonpayable",
449
+ "type": "function"
450
+ },
451
+ {
452
+ "inputs": [
453
+ { "internalType": "uint256", "name": "_lastUpdatedAt", "type": "uint256" }
454
+ ],
455
+ "name": "setLastUpdatedAt",
456
+ "outputs": [],
457
+ "stateMutability": "nonpayable",
458
+ "type": "function"
459
+ },
460
+ {
461
+ "inputs": [
462
+ { "internalType": "address[]", "name": "_tokens", "type": "address[]" },
463
+ {
464
+ "internalType": "uint256[]",
465
+ "name": "_maxCumulativeDeltaDiffs",
466
+ "type": "uint256[]"
467
+ }
468
+ ],
469
+ "name": "setMaxCumulativeDeltaDiffs",
470
+ "outputs": [],
471
+ "stateMutability": "nonpayable",
472
+ "type": "function"
473
+ },
474
+ {
475
+ "inputs": [
476
+ {
477
+ "internalType": "uint256",
478
+ "name": "_maxDeviationBasisPoints",
479
+ "type": "uint256"
480
+ }
481
+ ],
482
+ "name": "setMaxDeviationBasisPoints",
483
+ "outputs": [],
484
+ "stateMutability": "nonpayable",
485
+ "type": "function"
486
+ },
487
+ {
488
+ "inputs": [
489
+ {
490
+ "internalType": "uint256",
491
+ "name": "_maxPriceUpdateDelay",
492
+ "type": "uint256"
493
+ }
494
+ ],
495
+ "name": "setMaxPriceUpdateDelay",
496
+ "outputs": [],
497
+ "stateMutability": "nonpayable",
498
+ "type": "function"
499
+ },
500
+ {
501
+ "inputs": [
502
+ {
503
+ "internalType": "uint256",
504
+ "name": "_maxTimeDeviation",
505
+ "type": "uint256"
506
+ }
507
+ ],
508
+ "name": "setMaxTimeDeviation",
509
+ "outputs": [],
510
+ "stateMutability": "nonpayable",
511
+ "type": "function"
512
+ },
513
+ {
514
+ "inputs": [
515
+ {
516
+ "internalType": "uint256",
517
+ "name": "_minAuthorizations",
518
+ "type": "uint256"
519
+ }
520
+ ],
521
+ "name": "setMinAuthorizations",
522
+ "outputs": [],
523
+ "stateMutability": "nonpayable",
524
+ "type": "function"
525
+ },
526
+ {
527
+ "inputs": [
528
+ {
529
+ "internalType": "uint256",
530
+ "name": "_minBlockInterval",
531
+ "type": "uint256"
532
+ }
533
+ ],
534
+ "name": "setMinBlockInterval",
535
+ "outputs": [],
536
+ "stateMutability": "nonpayable",
537
+ "type": "function"
538
+ },
539
+ {
540
+ "inputs": [
541
+ {
542
+ "internalType": "uint256",
543
+ "name": "_priceDataInterval",
544
+ "type": "uint256"
545
+ }
546
+ ],
547
+ "name": "setPriceDataInterval",
548
+ "outputs": [],
549
+ "stateMutability": "nonpayable",
550
+ "type": "function"
551
+ },
552
+ {
553
+ "inputs": [
554
+ { "internalType": "uint256", "name": "_priceDuration", "type": "uint256" }
555
+ ],
556
+ "name": "setPriceDuration",
557
+ "outputs": [],
558
+ "stateMutability": "nonpayable",
559
+ "type": "function"
560
+ },
561
+ {
562
+ "inputs": [
563
+ { "internalType": "address[]", "name": "_tokens", "type": "address[]" },
564
+ { "internalType": "uint256[]", "name": "_prices", "type": "uint256[]" },
565
+ { "internalType": "uint256", "name": "_timestamp", "type": "uint256" }
566
+ ],
567
+ "name": "setPrices",
568
+ "outputs": [],
569
+ "stateMutability": "nonpayable",
570
+ "type": "function"
571
+ },
572
+ {
573
+ "inputs": [
574
+ { "internalType": "uint256", "name": "_priceBits", "type": "uint256" },
575
+ { "internalType": "uint256", "name": "_timestamp", "type": "uint256" }
576
+ ],
577
+ "name": "setPricesWithBits",
578
+ "outputs": [],
579
+ "stateMutability": "nonpayable",
580
+ "type": "function"
581
+ },
582
+ {
583
+ "inputs": [
584
+ {
585
+ "internalType": "address",
586
+ "name": "_positionRouter",
587
+ "type": "address"
588
+ },
589
+ { "internalType": "uint256", "name": "_priceBits", "type": "uint256" },
590
+ { "internalType": "uint256", "name": "_timestamp", "type": "uint256" },
591
+ {
592
+ "internalType": "uint256",
593
+ "name": "_endIndexForIncreasePositions",
594
+ "type": "uint256"
595
+ },
596
+ {
597
+ "internalType": "uint256",
598
+ "name": "_endIndexForDecreasePositions",
599
+ "type": "uint256"
600
+ },
601
+ {
602
+ "internalType": "uint256",
603
+ "name": "_maxIncreasePositions",
604
+ "type": "uint256"
605
+ },
606
+ {
607
+ "internalType": "uint256",
608
+ "name": "_maxDecreasePositions",
609
+ "type": "uint256"
610
+ }
611
+ ],
612
+ "name": "setPricesWithBitsAndExecute",
613
+ "outputs": [],
614
+ "stateMutability": "nonpayable",
615
+ "type": "function"
616
+ },
617
+ {
618
+ "inputs": [
619
+ { "internalType": "address", "name": "_account", "type": "address" },
620
+ { "internalType": "bool", "name": "_isActive", "type": "bool" }
621
+ ],
622
+ "name": "setSigner",
623
+ "outputs": [],
624
+ "stateMutability": "nonpayable",
625
+ "type": "function"
626
+ },
627
+ {
628
+ "inputs": [
629
+ {
630
+ "internalType": "uint256",
631
+ "name": "_spreadBasisPointsIfChainError",
632
+ "type": "uint256"
633
+ }
634
+ ],
635
+ "name": "setSpreadBasisPointsIfChainError",
636
+ "outputs": [],
637
+ "stateMutability": "nonpayable",
638
+ "type": "function"
639
+ },
640
+ {
641
+ "inputs": [
642
+ {
643
+ "internalType": "uint256",
644
+ "name": "_spreadBasisPointsIfInactive",
645
+ "type": "uint256"
646
+ }
647
+ ],
648
+ "name": "setSpreadBasisPointsIfInactive",
649
+ "outputs": [],
650
+ "stateMutability": "nonpayable",
651
+ "type": "function"
652
+ },
653
+ {
654
+ "inputs": [
655
+ { "internalType": "address", "name": "_tokenManager", "type": "address" }
656
+ ],
657
+ "name": "setTokenManager",
658
+ "outputs": [],
659
+ "stateMutability": "nonpayable",
660
+ "type": "function"
661
+ },
662
+ {
663
+ "inputs": [
664
+ { "internalType": "address[]", "name": "_tokens", "type": "address[]" },
665
+ {
666
+ "internalType": "uint256[]",
667
+ "name": "_tokenPrecisions",
668
+ "type": "uint256[]"
669
+ }
670
+ ],
671
+ "name": "setTokens",
672
+ "outputs": [],
673
+ "stateMutability": "nonpayable",
674
+ "type": "function"
675
+ },
676
+ {
677
+ "inputs": [
678
+ { "internalType": "address", "name": "_account", "type": "address" },
679
+ { "internalType": "bool", "name": "_isActive", "type": "bool" }
680
+ ],
681
+ "name": "setUpdater",
682
+ "outputs": [],
683
+ "stateMutability": "nonpayable",
684
+ "type": "function"
685
+ },
686
+ {
687
+ "inputs": [
688
+ {
689
+ "internalType": "address",
690
+ "name": "_vaultPriceFeed",
691
+ "type": "address"
692
+ }
693
+ ],
694
+ "name": "setVaultPriceFeed",
695
+ "outputs": [],
696
+ "stateMutability": "nonpayable",
697
+ "type": "function"
698
+ },
699
+ {
700
+ "inputs": [],
701
+ "name": "spreadBasisPointsIfChainError",
702
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
703
+ "stateMutability": "view",
704
+ "type": "function"
705
+ },
706
+ {
707
+ "inputs": [],
708
+ "name": "spreadBasisPointsIfInactive",
709
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
710
+ "stateMutability": "view",
711
+ "type": "function"
712
+ },
713
+ {
714
+ "inputs": [],
715
+ "name": "tokenManager",
716
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
717
+ "stateMutability": "view",
718
+ "type": "function"
719
+ },
720
+ {
721
+ "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
722
+ "name": "tokenPrecisions",
723
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
724
+ "stateMutability": "view",
725
+ "type": "function"
726
+ },
727
+ {
728
+ "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
729
+ "name": "tokens",
730
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
731
+ "stateMutability": "view",
732
+ "type": "function"
733
+ },
734
+ {
735
+ "inputs": [],
736
+ "name": "vaultPriceFeed",
737
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
738
+ "stateMutability": "view",
739
+ "type": "function"
740
+ }
741
+ ]