@nradko/metric-omm-sdk-v1 0.2.0 → 0.3.0

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 (132) hide show
  1. package/README.md +105 -18
  2. package/dist/abis/DepositAllowlistExtension.d.ts +440 -0
  3. package/dist/abis/DepositAllowlistExtension.d.ts.map +1 -0
  4. package/dist/abis/DepositAllowlistExtension.js +572 -0
  5. package/dist/abis/DepositAllowlistExtension.js.map +1 -0
  6. package/dist/abis/MetricOmmPool.d.ts +136 -30
  7. package/dist/abis/MetricOmmPool.d.ts.map +1 -1
  8. package/dist/abis/MetricOmmPool.js +168 -34
  9. package/dist/abis/MetricOmmPool.js.map +1 -1
  10. package/dist/abis/MetricOmmPoolDataProvider.d.ts +4 -4
  11. package/dist/abis/MetricOmmPoolDataProvider.js +4 -4
  12. package/dist/abis/MetricOmmPoolDataProvider.js.map +1 -1
  13. package/dist/abis/MetricOmmPoolFactory.d.ts +76 -18
  14. package/dist/abis/MetricOmmPoolFactory.d.ts.map +1 -1
  15. package/dist/abis/MetricOmmPoolFactory.js +93 -19
  16. package/dist/abis/MetricOmmPoolFactory.js.map +1 -1
  17. package/dist/abis/MetricOmmPoolLiquidityAdder.d.ts +68 -8
  18. package/dist/abis/MetricOmmPoolLiquidityAdder.d.ts.map +1 -1
  19. package/dist/abis/MetricOmmPoolLiquidityAdder.js +85 -9
  20. package/dist/abis/MetricOmmPoolLiquidityAdder.js.map +1 -1
  21. package/dist/abis/MetricOmmPoolSwapper.d.ts +8 -8
  22. package/dist/abis/MetricOmmPoolSwapper.js +8 -8
  23. package/dist/abis/MetricOmmPoolSwapper.js.map +1 -1
  24. package/dist/abis/OracleValueStopLossExtension.d.ts +936 -0
  25. package/dist/abis/OracleValueStopLossExtension.d.ts.map +1 -0
  26. package/dist/abis/OracleValueStopLossExtension.js +1214 -0
  27. package/dist/abis/OracleValueStopLossExtension.js.map +1 -0
  28. package/dist/abis/PriceProvider.d.ts +1 -113
  29. package/dist/abis/PriceProvider.d.ts.map +1 -1
  30. package/dist/abis/PriceProvider.js +1 -146
  31. package/dist/abis/PriceProvider.js.map +1 -1
  32. package/dist/abis/PriceVelocityGuardExtension.d.ts +454 -0
  33. package/dist/abis/PriceVelocityGuardExtension.d.ts.map +1 -0
  34. package/dist/abis/PriceVelocityGuardExtension.js +590 -0
  35. package/dist/abis/PriceVelocityGuardExtension.js.map +1 -0
  36. package/dist/abis/SwapAllowlistExtension.d.ts +440 -0
  37. package/dist/abis/SwapAllowlistExtension.d.ts.map +1 -0
  38. package/dist/abis/SwapAllowlistExtension.js +572 -0
  39. package/dist/abis/SwapAllowlistExtension.js.map +1 -0
  40. package/dist/abis/index.d.ts +4 -0
  41. package/dist/abis/index.d.ts.map +1 -1
  42. package/dist/abis/index.js +4 -0
  43. package/dist/abis/index.js.map +1 -1
  44. package/dist/addresses.d.ts +13 -6
  45. package/dist/addresses.d.ts.map +1 -1
  46. package/dist/addresses.js +33 -16
  47. package/dist/addresses.js.map +1 -1
  48. package/dist/extensions/admin/depositAllowlist.d.ts +8 -0
  49. package/dist/extensions/admin/depositAllowlist.d.ts.map +1 -0
  50. package/dist/extensions/admin/depositAllowlist.js +10 -0
  51. package/dist/extensions/admin/depositAllowlist.js.map +1 -0
  52. package/dist/extensions/admin/oracleStopLoss.d.ts +56 -0
  53. package/dist/extensions/admin/oracleStopLoss.d.ts.map +1 -0
  54. package/dist/extensions/admin/oracleStopLoss.js +87 -0
  55. package/dist/extensions/admin/oracleStopLoss.js.map +1 -0
  56. package/dist/extensions/admin/priceVelocityGuard.d.ts +12 -0
  57. package/dist/extensions/admin/priceVelocityGuard.d.ts.map +1 -0
  58. package/dist/extensions/admin/priceVelocityGuard.js +17 -0
  59. package/dist/extensions/admin/priceVelocityGuard.js.map +1 -0
  60. package/dist/extensions/admin/swapAllowlist.d.ts +8 -0
  61. package/dist/extensions/admin/swapAllowlist.d.ts.map +1 -0
  62. package/dist/extensions/admin/swapAllowlist.js +10 -0
  63. package/dist/extensions/admin/swapAllowlist.js.map +1 -0
  64. package/dist/extensions/index.d.ts +8 -0
  65. package/dist/extensions/index.d.ts.map +1 -0
  66. package/dist/extensions/index.js +8 -0
  67. package/dist/extensions/index.js.map +1 -0
  68. package/dist/extensions/init/index.d.ts +13 -0
  69. package/dist/extensions/init/index.d.ts.map +1 -0
  70. package/dist/extensions/init/index.js +12 -0
  71. package/dist/extensions/init/index.js.map +1 -0
  72. package/dist/extensions/orders.d.ts +7 -0
  73. package/dist/extensions/orders.d.ts.map +1 -0
  74. package/dist/extensions/orders.js +24 -0
  75. package/dist/extensions/orders.js.map +1 -0
  76. package/dist/extensions/types.d.ts +23 -0
  77. package/dist/extensions/types.d.ts.map +1 -0
  78. package/dist/extensions/types.js +10 -0
  79. package/dist/extensions/types.js.map +1 -0
  80. package/dist/index.d.ts +3 -2
  81. package/dist/index.d.ts.map +1 -1
  82. package/dist/index.js +3 -1
  83. package/dist/index.js.map +1 -1
  84. package/dist/pool/create.d.ts +11 -6
  85. package/dist/pool/create.d.ts.map +1 -1
  86. package/dist/pool/create.js +5 -3
  87. package/dist/pool/create.js.map +1 -1
  88. package/dist/pool/index.d.ts +1 -1
  89. package/dist/pool/index.d.ts.map +1 -1
  90. package/dist/pool/index.js.map +1 -1
  91. package/dist/pool/liquidity.d.ts +13 -5
  92. package/dist/pool/liquidity.d.ts.map +1 -1
  93. package/dist/pool/liquidity.js +25 -10
  94. package/dist/pool/liquidity.js.map +1 -1
  95. package/dist/pool/read.d.ts +0 -6
  96. package/dist/pool/read.d.ts.map +1 -1
  97. package/dist/pool/read.js +21 -14
  98. package/dist/pool/read.js.map +1 -1
  99. package/dist/router/swap.d.ts +1 -1
  100. package/dist/router/swap.d.ts.map +1 -1
  101. package/dist/router/swap.js +14 -14
  102. package/dist/router/swap.js.map +1 -1
  103. package/dist/types.d.ts +3 -4
  104. package/dist/types.d.ts.map +1 -1
  105. package/package.json +4 -5
  106. package/src/abis/DepositAllowlistExtension.ts +571 -0
  107. package/src/abis/MetricOmmPool.ts +168 -34
  108. package/src/abis/MetricOmmPoolDataProvider.ts +4 -4
  109. package/src/abis/MetricOmmPoolFactory.ts +93 -19
  110. package/src/abis/MetricOmmPoolLiquidityAdder.ts +85 -9
  111. package/src/abis/MetricOmmPoolSwapper.ts +8 -8
  112. package/src/abis/OracleValueStopLossExtension.ts +1213 -0
  113. package/src/abis/PriceProvider.ts +1 -146
  114. package/src/abis/PriceVelocityGuardExtension.ts +589 -0
  115. package/src/abis/SwapAllowlistExtension.ts +571 -0
  116. package/src/abis/index.ts +4 -0
  117. package/src/addresses.ts +44 -18
  118. package/src/extensions/admin/depositAllowlist.ts +16 -0
  119. package/src/extensions/admin/oracleStopLoss.ts +141 -0
  120. package/src/extensions/admin/priceVelocityGuard.ts +27 -0
  121. package/src/extensions/admin/swapAllowlist.ts +16 -0
  122. package/src/extensions/index.ts +31 -0
  123. package/src/extensions/init/index.ts +21 -0
  124. package/src/extensions/orders.ts +33 -0
  125. package/src/extensions/types.ts +33 -0
  126. package/src/index.ts +33 -0
  127. package/src/pool/create.ts +12 -8
  128. package/src/pool/index.ts +1 -0
  129. package/src/pool/liquidity.ts +41 -15
  130. package/src/pool/read.ts +34 -16
  131. package/src/router/swap.ts +16 -16
  132. package/src/types.ts +3 -4
@@ -0,0 +1,1214 @@
1
+ export const OracleValueStopLossExtensionAbi = [
2
+ {
3
+ inputs: [
4
+ {
5
+ internalType: "address",
6
+ name: "factory_",
7
+ type: "address",
8
+ },
9
+ ],
10
+ stateMutability: "nonpayable",
11
+ type: "constructor",
12
+ },
13
+ {
14
+ inputs: [],
15
+ name: "ExtensionNotImplemented",
16
+ type: "error",
17
+ },
18
+ {
19
+ inputs: [
20
+ {
21
+ internalType: "address",
22
+ name: "caller",
23
+ type: "address",
24
+ },
25
+ {
26
+ internalType: "address",
27
+ name: "factory",
28
+ type: "address",
29
+ },
30
+ ],
31
+ name: "OnlyFactory",
32
+ type: "error",
33
+ },
34
+ {
35
+ inputs: [
36
+ {
37
+ internalType: "address",
38
+ name: "caller",
39
+ type: "address",
40
+ },
41
+ {
42
+ internalType: "address",
43
+ name: "factory",
44
+ type: "address",
45
+ },
46
+ ],
47
+ name: "OnlyPool",
48
+ type: "error",
49
+ },
50
+ {
51
+ inputs: [
52
+ {
53
+ internalType: "address",
54
+ name: "pool",
55
+ type: "address",
56
+ },
57
+ {
58
+ internalType: "address",
59
+ name: "caller",
60
+ type: "address",
61
+ },
62
+ {
63
+ internalType: "address",
64
+ name: "admin",
65
+ type: "address",
66
+ },
67
+ ],
68
+ name: "OnlyPoolAdmin",
69
+ type: "error",
70
+ },
71
+ {
72
+ inputs: [
73
+ {
74
+ internalType: "address",
75
+ name: "pool",
76
+ type: "address",
77
+ },
78
+ ],
79
+ name: "OracleStopLossAlreadyInitialized",
80
+ type: "error",
81
+ },
82
+ {
83
+ inputs: [
84
+ {
85
+ internalType: "uint256",
86
+ name: "requested",
87
+ type: "uint256",
88
+ },
89
+ ],
90
+ name: "OracleStopLossDecayTooLarge",
91
+ type: "error",
92
+ },
93
+ {
94
+ inputs: [
95
+ {
96
+ internalType: "uint256",
97
+ name: "requested",
98
+ type: "uint256",
99
+ },
100
+ ],
101
+ name: "OracleStopLossDrawdownTooLarge",
102
+ type: "error",
103
+ },
104
+ {
105
+ inputs: [
106
+ {
107
+ internalType: "address",
108
+ name: "pool",
109
+ type: "address",
110
+ },
111
+ ],
112
+ name: "OracleStopLossNoPendingDecay",
113
+ type: "error",
114
+ },
115
+ {
116
+ inputs: [
117
+ {
118
+ internalType: "address",
119
+ name: "pool",
120
+ type: "address",
121
+ },
122
+ ],
123
+ name: "OracleStopLossNoPendingDrawdown",
124
+ type: "error",
125
+ },
126
+ {
127
+ inputs: [
128
+ {
129
+ internalType: "address",
130
+ name: "pool",
131
+ type: "address",
132
+ },
133
+ ],
134
+ name: "OracleStopLossNoPendingHighWatermark",
135
+ type: "error",
136
+ },
137
+ {
138
+ inputs: [
139
+ {
140
+ internalType: "address",
141
+ name: "pool",
142
+ type: "address",
143
+ },
144
+ ],
145
+ name: "OracleStopLossNoPendingTimelock",
146
+ type: "error",
147
+ },
148
+ {
149
+ inputs: [
150
+ {
151
+ internalType: "address",
152
+ name: "pool",
153
+ type: "address",
154
+ },
155
+ ],
156
+ name: "OracleStopLossNotInitialized",
157
+ type: "error",
158
+ },
159
+ {
160
+ inputs: [
161
+ {
162
+ internalType: "uint256",
163
+ name: "executeAfter",
164
+ type: "uint256",
165
+ },
166
+ {
167
+ internalType: "uint256",
168
+ name: "currentTime",
169
+ type: "uint256",
170
+ },
171
+ ],
172
+ name: "OracleStopLossTimelockNotElapsed",
173
+ type: "error",
174
+ },
175
+ {
176
+ inputs: [
177
+ {
178
+ internalType: "int8",
179
+ name: "binIdx",
180
+ type: "int8",
181
+ },
182
+ {
183
+ internalType: "bool",
184
+ name: "isToken0Metric",
185
+ type: "bool",
186
+ },
187
+ {
188
+ internalType: "uint256",
189
+ name: "currentMetric",
190
+ type: "uint256",
191
+ },
192
+ {
193
+ internalType: "uint256",
194
+ name: "threshold",
195
+ type: "uint256",
196
+ },
197
+ ],
198
+ name: "OracleStopLossTriggered",
199
+ type: "error",
200
+ },
201
+ {
202
+ anonymous: false,
203
+ inputs: [
204
+ {
205
+ indexed: true,
206
+ internalType: "address",
207
+ name: "pool",
208
+ type: "address",
209
+ },
210
+ ],
211
+ name: "OracleStopLossDecayCancelled",
212
+ type: "event",
213
+ },
214
+ {
215
+ anonymous: false,
216
+ inputs: [
217
+ {
218
+ indexed: true,
219
+ internalType: "address",
220
+ name: "pool",
221
+ type: "address",
222
+ },
223
+ {
224
+ indexed: false,
225
+ internalType: "uint256",
226
+ name: "proposedDecayPerSecondE8",
227
+ type: "uint256",
228
+ },
229
+ {
230
+ indexed: false,
231
+ internalType: "uint256",
232
+ name: "executeAfter",
233
+ type: "uint256",
234
+ },
235
+ ],
236
+ name: "OracleStopLossDecayProposed",
237
+ type: "event",
238
+ },
239
+ {
240
+ anonymous: false,
241
+ inputs: [
242
+ {
243
+ indexed: true,
244
+ internalType: "address",
245
+ name: "pool",
246
+ type: "address",
247
+ },
248
+ {
249
+ indexed: false,
250
+ internalType: "uint256",
251
+ name: "newDecayPerSecondE8",
252
+ type: "uint256",
253
+ },
254
+ ],
255
+ name: "OracleStopLossDecaySet",
256
+ type: "event",
257
+ },
258
+ {
259
+ anonymous: false,
260
+ inputs: [
261
+ {
262
+ indexed: true,
263
+ internalType: "address",
264
+ name: "pool",
265
+ type: "address",
266
+ },
267
+ ],
268
+ name: "OracleStopLossDrawdownCancelled",
269
+ type: "event",
270
+ },
271
+ {
272
+ anonymous: false,
273
+ inputs: [
274
+ {
275
+ indexed: true,
276
+ internalType: "address",
277
+ name: "pool",
278
+ type: "address",
279
+ },
280
+ {
281
+ indexed: false,
282
+ internalType: "uint256",
283
+ name: "proposedDrawdownE6",
284
+ type: "uint256",
285
+ },
286
+ {
287
+ indexed: false,
288
+ internalType: "uint256",
289
+ name: "executeAfter",
290
+ type: "uint256",
291
+ },
292
+ ],
293
+ name: "OracleStopLossDrawdownProposed",
294
+ type: "event",
295
+ },
296
+ {
297
+ anonymous: false,
298
+ inputs: [
299
+ {
300
+ indexed: true,
301
+ internalType: "address",
302
+ name: "pool",
303
+ type: "address",
304
+ },
305
+ {
306
+ indexed: false,
307
+ internalType: "uint256",
308
+ name: "newMaxDrawdownE6",
309
+ type: "uint256",
310
+ },
311
+ ],
312
+ name: "OracleStopLossDrawdownSet",
313
+ type: "event",
314
+ },
315
+ {
316
+ anonymous: false,
317
+ inputs: [
318
+ {
319
+ indexed: true,
320
+ internalType: "address",
321
+ name: "pool",
322
+ type: "address",
323
+ },
324
+ ],
325
+ name: "OracleStopLossHighWatermarkCancelled",
326
+ type: "event",
327
+ },
328
+ {
329
+ anonymous: false,
330
+ inputs: [
331
+ {
332
+ indexed: true,
333
+ internalType: "address",
334
+ name: "pool",
335
+ type: "address",
336
+ },
337
+ {
338
+ indexed: false,
339
+ internalType: "int8",
340
+ name: "binIdx",
341
+ type: "int8",
342
+ },
343
+ {
344
+ indexed: false,
345
+ internalType: "uint104",
346
+ name: "proposedHwmToken0",
347
+ type: "uint104",
348
+ },
349
+ {
350
+ indexed: false,
351
+ internalType: "uint104",
352
+ name: "proposedHwmToken1",
353
+ type: "uint104",
354
+ },
355
+ {
356
+ indexed: false,
357
+ internalType: "uint256",
358
+ name: "executeAfter",
359
+ type: "uint256",
360
+ },
361
+ ],
362
+ name: "OracleStopLossHighWatermarkProposed",
363
+ type: "event",
364
+ },
365
+ {
366
+ anonymous: false,
367
+ inputs: [
368
+ {
369
+ indexed: true,
370
+ internalType: "address",
371
+ name: "pool",
372
+ type: "address",
373
+ },
374
+ {
375
+ indexed: false,
376
+ internalType: "int8",
377
+ name: "binIdx",
378
+ type: "int8",
379
+ },
380
+ {
381
+ indexed: false,
382
+ internalType: "uint104",
383
+ name: "newHwmToken0",
384
+ type: "uint104",
385
+ },
386
+ {
387
+ indexed: false,
388
+ internalType: "uint104",
389
+ name: "newHwmToken1",
390
+ type: "uint104",
391
+ },
392
+ ],
393
+ name: "OracleStopLossHighWatermarkUpdated",
394
+ type: "event",
395
+ },
396
+ {
397
+ anonymous: false,
398
+ inputs: [
399
+ {
400
+ indexed: true,
401
+ internalType: "address",
402
+ name: "pool",
403
+ type: "address",
404
+ },
405
+ ],
406
+ name: "OracleStopLossTimelockCancelled",
407
+ type: "event",
408
+ },
409
+ {
410
+ anonymous: false,
411
+ inputs: [
412
+ {
413
+ indexed: true,
414
+ internalType: "address",
415
+ name: "pool",
416
+ type: "address",
417
+ },
418
+ {
419
+ indexed: false,
420
+ internalType: "uint256",
421
+ name: "proposedTimelock",
422
+ type: "uint256",
423
+ },
424
+ {
425
+ indexed: false,
426
+ internalType: "uint256",
427
+ name: "executeAfter",
428
+ type: "uint256",
429
+ },
430
+ ],
431
+ name: "OracleStopLossTimelockProposed",
432
+ type: "event",
433
+ },
434
+ {
435
+ anonymous: false,
436
+ inputs: [
437
+ {
438
+ indexed: true,
439
+ internalType: "address",
440
+ name: "pool",
441
+ type: "address",
442
+ },
443
+ {
444
+ indexed: false,
445
+ internalType: "uint256",
446
+ name: "newTimelock",
447
+ type: "uint256",
448
+ },
449
+ ],
450
+ name: "OracleStopLossTimelockSet",
451
+ type: "event",
452
+ },
453
+ {
454
+ inputs: [],
455
+ name: "FACTORY",
456
+ outputs: [
457
+ {
458
+ internalType: "address",
459
+ name: "",
460
+ type: "address",
461
+ },
462
+ ],
463
+ stateMutability: "view",
464
+ type: "function",
465
+ },
466
+ {
467
+ inputs: [
468
+ {
469
+ internalType: "address",
470
+ name: "",
471
+ type: "address",
472
+ },
473
+ {
474
+ internalType: "address",
475
+ name: "",
476
+ type: "address",
477
+ },
478
+ {
479
+ internalType: "uint80",
480
+ name: "",
481
+ type: "uint80",
482
+ },
483
+ {
484
+ components: [
485
+ {
486
+ internalType: "int256[]",
487
+ name: "binIdxs",
488
+ type: "int256[]",
489
+ },
490
+ {
491
+ internalType: "uint256[]",
492
+ name: "shares",
493
+ type: "uint256[]",
494
+ },
495
+ ],
496
+ internalType: "struct LiquidityDelta",
497
+ name: "",
498
+ type: "tuple",
499
+ },
500
+ {
501
+ internalType: "uint256",
502
+ name: "",
503
+ type: "uint256",
504
+ },
505
+ {
506
+ internalType: "uint256",
507
+ name: "",
508
+ type: "uint256",
509
+ },
510
+ {
511
+ internalType: "bytes",
512
+ name: "",
513
+ type: "bytes",
514
+ },
515
+ ],
516
+ name: "afterAddLiquidity",
517
+ outputs: [
518
+ {
519
+ internalType: "bytes4",
520
+ name: "",
521
+ type: "bytes4",
522
+ },
523
+ ],
524
+ stateMutability: "nonpayable",
525
+ type: "function",
526
+ },
527
+ {
528
+ inputs: [
529
+ {
530
+ internalType: "address",
531
+ name: "",
532
+ type: "address",
533
+ },
534
+ {
535
+ internalType: "address",
536
+ name: "",
537
+ type: "address",
538
+ },
539
+ {
540
+ internalType: "uint80",
541
+ name: "",
542
+ type: "uint80",
543
+ },
544
+ {
545
+ components: [
546
+ {
547
+ internalType: "int256[]",
548
+ name: "binIdxs",
549
+ type: "int256[]",
550
+ },
551
+ {
552
+ internalType: "uint256[]",
553
+ name: "shares",
554
+ type: "uint256[]",
555
+ },
556
+ ],
557
+ internalType: "struct LiquidityDelta",
558
+ name: "",
559
+ type: "tuple",
560
+ },
561
+ {
562
+ internalType: "uint256",
563
+ name: "",
564
+ type: "uint256",
565
+ },
566
+ {
567
+ internalType: "uint256",
568
+ name: "",
569
+ type: "uint256",
570
+ },
571
+ {
572
+ internalType: "bytes",
573
+ name: "",
574
+ type: "bytes",
575
+ },
576
+ ],
577
+ name: "afterRemoveLiquidity",
578
+ outputs: [
579
+ {
580
+ internalType: "bytes4",
581
+ name: "",
582
+ type: "bytes4",
583
+ },
584
+ ],
585
+ stateMutability: "nonpayable",
586
+ type: "function",
587
+ },
588
+ {
589
+ inputs: [
590
+ {
591
+ internalType: "address",
592
+ name: "",
593
+ type: "address",
594
+ },
595
+ {
596
+ internalType: "address",
597
+ name: "",
598
+ type: "address",
599
+ },
600
+ {
601
+ internalType: "bool",
602
+ name: "zeroForOne",
603
+ type: "bool",
604
+ },
605
+ {
606
+ internalType: "int128",
607
+ name: "",
608
+ type: "int128",
609
+ },
610
+ {
611
+ internalType: "uint128",
612
+ name: "",
613
+ type: "uint128",
614
+ },
615
+ {
616
+ internalType: "uint256",
617
+ name: "packedSlot0Initial",
618
+ type: "uint256",
619
+ },
620
+ {
621
+ internalType: "uint256",
622
+ name: "packedSlot0Final",
623
+ type: "uint256",
624
+ },
625
+ {
626
+ internalType: "uint128",
627
+ name: "bidPriceX64",
628
+ type: "uint128",
629
+ },
630
+ {
631
+ internalType: "uint128",
632
+ name: "askPriceX64",
633
+ type: "uint128",
634
+ },
635
+ {
636
+ internalType: "int128",
637
+ name: "",
638
+ type: "int128",
639
+ },
640
+ {
641
+ internalType: "int128",
642
+ name: "",
643
+ type: "int128",
644
+ },
645
+ {
646
+ internalType: "uint256",
647
+ name: "",
648
+ type: "uint256",
649
+ },
650
+ {
651
+ internalType: "bytes",
652
+ name: "",
653
+ type: "bytes",
654
+ },
655
+ ],
656
+ name: "afterSwap",
657
+ outputs: [
658
+ {
659
+ internalType: "bytes4",
660
+ name: "",
661
+ type: "bytes4",
662
+ },
663
+ ],
664
+ stateMutability: "nonpayable",
665
+ type: "function",
666
+ },
667
+ {
668
+ inputs: [
669
+ {
670
+ internalType: "address",
671
+ name: "",
672
+ type: "address",
673
+ },
674
+ {
675
+ internalType: "address",
676
+ name: "",
677
+ type: "address",
678
+ },
679
+ {
680
+ internalType: "uint80",
681
+ name: "",
682
+ type: "uint80",
683
+ },
684
+ {
685
+ components: [
686
+ {
687
+ internalType: "int256[]",
688
+ name: "binIdxs",
689
+ type: "int256[]",
690
+ },
691
+ {
692
+ internalType: "uint256[]",
693
+ name: "shares",
694
+ type: "uint256[]",
695
+ },
696
+ ],
697
+ internalType: "struct LiquidityDelta",
698
+ name: "",
699
+ type: "tuple",
700
+ },
701
+ {
702
+ internalType: "bytes",
703
+ name: "",
704
+ type: "bytes",
705
+ },
706
+ ],
707
+ name: "beforeAddLiquidity",
708
+ outputs: [
709
+ {
710
+ internalType: "bytes4",
711
+ name: "",
712
+ type: "bytes4",
713
+ },
714
+ ],
715
+ stateMutability: "nonpayable",
716
+ type: "function",
717
+ },
718
+ {
719
+ inputs: [
720
+ {
721
+ internalType: "address",
722
+ name: "",
723
+ type: "address",
724
+ },
725
+ {
726
+ internalType: "address",
727
+ name: "",
728
+ type: "address",
729
+ },
730
+ {
731
+ internalType: "uint80",
732
+ name: "",
733
+ type: "uint80",
734
+ },
735
+ {
736
+ components: [
737
+ {
738
+ internalType: "int256[]",
739
+ name: "binIdxs",
740
+ type: "int256[]",
741
+ },
742
+ {
743
+ internalType: "uint256[]",
744
+ name: "shares",
745
+ type: "uint256[]",
746
+ },
747
+ ],
748
+ internalType: "struct LiquidityDelta",
749
+ name: "",
750
+ type: "tuple",
751
+ },
752
+ {
753
+ internalType: "bytes",
754
+ name: "",
755
+ type: "bytes",
756
+ },
757
+ ],
758
+ name: "beforeRemoveLiquidity",
759
+ outputs: [
760
+ {
761
+ internalType: "bytes4",
762
+ name: "",
763
+ type: "bytes4",
764
+ },
765
+ ],
766
+ stateMutability: "nonpayable",
767
+ type: "function",
768
+ },
769
+ {
770
+ inputs: [
771
+ {
772
+ internalType: "address",
773
+ name: "",
774
+ type: "address",
775
+ },
776
+ {
777
+ internalType: "address",
778
+ name: "",
779
+ type: "address",
780
+ },
781
+ {
782
+ internalType: "bool",
783
+ name: "",
784
+ type: "bool",
785
+ },
786
+ {
787
+ internalType: "int128",
788
+ name: "",
789
+ type: "int128",
790
+ },
791
+ {
792
+ internalType: "uint128",
793
+ name: "",
794
+ type: "uint128",
795
+ },
796
+ {
797
+ internalType: "uint256",
798
+ name: "",
799
+ type: "uint256",
800
+ },
801
+ {
802
+ internalType: "uint128",
803
+ name: "",
804
+ type: "uint128",
805
+ },
806
+ {
807
+ internalType: "uint128",
808
+ name: "",
809
+ type: "uint128",
810
+ },
811
+ {
812
+ internalType: "bytes",
813
+ name: "",
814
+ type: "bytes",
815
+ },
816
+ ],
817
+ name: "beforeSwap",
818
+ outputs: [
819
+ {
820
+ internalType: "bytes4",
821
+ name: "",
822
+ type: "bytes4",
823
+ },
824
+ ],
825
+ stateMutability: "nonpayable",
826
+ type: "function",
827
+ },
828
+ {
829
+ inputs: [
830
+ {
831
+ internalType: "address",
832
+ name: "pool_",
833
+ type: "address",
834
+ },
835
+ ],
836
+ name: "cancelOracleStopLossDecay",
837
+ outputs: [],
838
+ stateMutability: "nonpayable",
839
+ type: "function",
840
+ },
841
+ {
842
+ inputs: [
843
+ {
844
+ internalType: "address",
845
+ name: "pool_",
846
+ type: "address",
847
+ },
848
+ ],
849
+ name: "cancelOracleStopLossDrawdown",
850
+ outputs: [],
851
+ stateMutability: "nonpayable",
852
+ type: "function",
853
+ },
854
+ {
855
+ inputs: [
856
+ {
857
+ internalType: "address",
858
+ name: "pool_",
859
+ type: "address",
860
+ },
861
+ ],
862
+ name: "cancelOracleStopLossHighWatermarks",
863
+ outputs: [],
864
+ stateMutability: "nonpayable",
865
+ type: "function",
866
+ },
867
+ {
868
+ inputs: [
869
+ {
870
+ internalType: "address",
871
+ name: "pool_",
872
+ type: "address",
873
+ },
874
+ ],
875
+ name: "cancelOracleStopLossTimelock",
876
+ outputs: [],
877
+ stateMutability: "nonpayable",
878
+ type: "function",
879
+ },
880
+ {
881
+ inputs: [
882
+ {
883
+ internalType: "address",
884
+ name: "pool",
885
+ type: "address",
886
+ },
887
+ {
888
+ internalType: "int8",
889
+ name: "binIdx",
890
+ type: "int8",
891
+ },
892
+ ],
893
+ name: "currentHighWatermarks",
894
+ outputs: [
895
+ {
896
+ internalType: "uint256",
897
+ name: "hwm0",
898
+ type: "uint256",
899
+ },
900
+ {
901
+ internalType: "uint256",
902
+ name: "hwm1",
903
+ type: "uint256",
904
+ },
905
+ ],
906
+ stateMutability: "view",
907
+ type: "function",
908
+ },
909
+ {
910
+ inputs: [
911
+ {
912
+ internalType: "address",
913
+ name: "pool_",
914
+ type: "address",
915
+ },
916
+ ],
917
+ name: "executeOracleStopLossDecay",
918
+ outputs: [],
919
+ stateMutability: "nonpayable",
920
+ type: "function",
921
+ },
922
+ {
923
+ inputs: [
924
+ {
925
+ internalType: "address",
926
+ name: "pool_",
927
+ type: "address",
928
+ },
929
+ ],
930
+ name: "executeOracleStopLossDrawdown",
931
+ outputs: [],
932
+ stateMutability: "nonpayable",
933
+ type: "function",
934
+ },
935
+ {
936
+ inputs: [
937
+ {
938
+ internalType: "address",
939
+ name: "pool_",
940
+ type: "address",
941
+ },
942
+ ],
943
+ name: "executeOracleStopLossHighWatermarks",
944
+ outputs: [],
945
+ stateMutability: "nonpayable",
946
+ type: "function",
947
+ },
948
+ {
949
+ inputs: [
950
+ {
951
+ internalType: "address",
952
+ name: "pool_",
953
+ type: "address",
954
+ },
955
+ ],
956
+ name: "executeOracleStopLossTimelock",
957
+ outputs: [],
958
+ stateMutability: "nonpayable",
959
+ type: "function",
960
+ },
961
+ {
962
+ inputs: [
963
+ {
964
+ internalType: "address",
965
+ name: "pool",
966
+ type: "address",
967
+ },
968
+ {
969
+ internalType: "int8",
970
+ name: "binIdx",
971
+ type: "int8",
972
+ },
973
+ ],
974
+ name: "highWatermarks",
975
+ outputs: [
976
+ {
977
+ internalType: "uint104",
978
+ name: "token0",
979
+ type: "uint104",
980
+ },
981
+ {
982
+ internalType: "uint104",
983
+ name: "token1",
984
+ type: "uint104",
985
+ },
986
+ {
987
+ internalType: "uint32",
988
+ name: "lastDecayTs",
989
+ type: "uint32",
990
+ },
991
+ ],
992
+ stateMutability: "view",
993
+ type: "function",
994
+ },
995
+ {
996
+ inputs: [
997
+ {
998
+ internalType: "address",
999
+ name: "pool",
1000
+ type: "address",
1001
+ },
1002
+ {
1003
+ internalType: "bytes",
1004
+ name: "data",
1005
+ type: "bytes",
1006
+ },
1007
+ ],
1008
+ name: "initialize",
1009
+ outputs: [
1010
+ {
1011
+ internalType: "bytes4",
1012
+ name: "",
1013
+ type: "bytes4",
1014
+ },
1015
+ ],
1016
+ stateMutability: "nonpayable",
1017
+ type: "function",
1018
+ },
1019
+ {
1020
+ inputs: [
1021
+ {
1022
+ internalType: "address",
1023
+ name: "pool",
1024
+ type: "address",
1025
+ },
1026
+ ],
1027
+ name: "oracleStopLossConfig",
1028
+ outputs: [
1029
+ {
1030
+ internalType: "uint32",
1031
+ name: "drawdownE6",
1032
+ type: "uint32",
1033
+ },
1034
+ {
1035
+ internalType: "uint32",
1036
+ name: "decayPerSecondE8",
1037
+ type: "uint32",
1038
+ },
1039
+ {
1040
+ internalType: "uint32",
1041
+ name: "timelock",
1042
+ type: "uint32",
1043
+ },
1044
+ {
1045
+ internalType: "bool",
1046
+ name: "initialized",
1047
+ type: "bool",
1048
+ },
1049
+ ],
1050
+ stateMutability: "view",
1051
+ type: "function",
1052
+ },
1053
+ {
1054
+ inputs: [
1055
+ {
1056
+ internalType: "address",
1057
+ name: "pool",
1058
+ type: "address",
1059
+ },
1060
+ ],
1061
+ name: "pendingHighWatermark",
1062
+ outputs: [
1063
+ {
1064
+ internalType: "uint104",
1065
+ name: "token0",
1066
+ type: "uint104",
1067
+ },
1068
+ {
1069
+ internalType: "uint104",
1070
+ name: "token1",
1071
+ type: "uint104",
1072
+ },
1073
+ {
1074
+ internalType: "int8",
1075
+ name: "binIdx",
1076
+ type: "int8",
1077
+ },
1078
+ {
1079
+ internalType: "uint32",
1080
+ name: "executeAfter",
1081
+ type: "uint32",
1082
+ },
1083
+ ],
1084
+ stateMutability: "view",
1085
+ type: "function",
1086
+ },
1087
+ {
1088
+ inputs: [
1089
+ {
1090
+ internalType: "address",
1091
+ name: "pool",
1092
+ type: "address",
1093
+ },
1094
+ ],
1095
+ name: "poolStopLossSchedule",
1096
+ outputs: [
1097
+ {
1098
+ internalType: "uint32",
1099
+ name: "pendingTimelock",
1100
+ type: "uint32",
1101
+ },
1102
+ {
1103
+ internalType: "uint32",
1104
+ name: "pendingTimelockExecuteAfter",
1105
+ type: "uint32",
1106
+ },
1107
+ {
1108
+ internalType: "uint32",
1109
+ name: "pendingDrawdownE6",
1110
+ type: "uint32",
1111
+ },
1112
+ {
1113
+ internalType: "uint32",
1114
+ name: "pendingDrawdownExecuteAfter",
1115
+ type: "uint32",
1116
+ },
1117
+ {
1118
+ internalType: "uint32",
1119
+ name: "pendingDecayPerSecondE8",
1120
+ type: "uint32",
1121
+ },
1122
+ {
1123
+ internalType: "uint32",
1124
+ name: "pendingDecayExecuteAfter",
1125
+ type: "uint32",
1126
+ },
1127
+ ],
1128
+ stateMutability: "view",
1129
+ type: "function",
1130
+ },
1131
+ {
1132
+ inputs: [
1133
+ {
1134
+ internalType: "address",
1135
+ name: "pool_",
1136
+ type: "address",
1137
+ },
1138
+ {
1139
+ internalType: "uint256",
1140
+ name: "newDecayPerSecondE8",
1141
+ type: "uint256",
1142
+ },
1143
+ ],
1144
+ name: "proposeOracleStopLossDecay",
1145
+ outputs: [],
1146
+ stateMutability: "nonpayable",
1147
+ type: "function",
1148
+ },
1149
+ {
1150
+ inputs: [
1151
+ {
1152
+ internalType: "address",
1153
+ name: "pool_",
1154
+ type: "address",
1155
+ },
1156
+ {
1157
+ internalType: "uint256",
1158
+ name: "newMaxDrawdownE6",
1159
+ type: "uint256",
1160
+ },
1161
+ ],
1162
+ name: "proposeOracleStopLossDrawdown",
1163
+ outputs: [],
1164
+ stateMutability: "nonpayable",
1165
+ type: "function",
1166
+ },
1167
+ {
1168
+ inputs: [
1169
+ {
1170
+ internalType: "address",
1171
+ name: "pool_",
1172
+ type: "address",
1173
+ },
1174
+ {
1175
+ internalType: "int8",
1176
+ name: "binIdx",
1177
+ type: "int8",
1178
+ },
1179
+ {
1180
+ internalType: "uint104",
1181
+ name: "newHwmToken0",
1182
+ type: "uint104",
1183
+ },
1184
+ {
1185
+ internalType: "uint104",
1186
+ name: "newHwmToken1",
1187
+ type: "uint104",
1188
+ },
1189
+ ],
1190
+ name: "proposeOracleStopLossHighWatermarks",
1191
+ outputs: [],
1192
+ stateMutability: "nonpayable",
1193
+ type: "function",
1194
+ },
1195
+ {
1196
+ inputs: [
1197
+ {
1198
+ internalType: "address",
1199
+ name: "pool_",
1200
+ type: "address",
1201
+ },
1202
+ {
1203
+ internalType: "uint32",
1204
+ name: "newTimelock",
1205
+ type: "uint32",
1206
+ },
1207
+ ],
1208
+ name: "proposeOracleStopLossTimelock",
1209
+ outputs: [],
1210
+ stateMutability: "nonpayable",
1211
+ type: "function",
1212
+ },
1213
+ ];
1214
+ //# sourceMappingURL=OracleValueStopLossExtension.js.map