@nradko/metric-omm-sdk-v1 0.0.16

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 (137) hide show
  1. package/README.md +111 -0
  2. package/dist/abis/MetricOmmPool.d.ts +784 -0
  3. package/dist/abis/MetricOmmPool.d.ts.map +1 -0
  4. package/dist/abis/MetricOmmPool.js +1008 -0
  5. package/dist/abis/MetricOmmPool.js.map +1 -0
  6. package/dist/abis/MetricOmmPoolFactory.d.ts +1365 -0
  7. package/dist/abis/MetricOmmPoolFactory.d.ts.map +1 -0
  8. package/dist/abis/MetricOmmPoolFactory.js +1754 -0
  9. package/dist/abis/MetricOmmPoolFactory.js.map +1 -0
  10. package/dist/abis/MetricOmmPoolLiquidityAdder.d.ts +308 -0
  11. package/dist/abis/MetricOmmPoolLiquidityAdder.d.ts.map +1 -0
  12. package/dist/abis/MetricOmmPoolLiquidityAdder.js +401 -0
  13. package/dist/abis/MetricOmmPoolLiquidityAdder.js.map +1 -0
  14. package/dist/abis/MetricOmmPoolStateView.d.ts +538 -0
  15. package/dist/abis/MetricOmmPoolStateView.d.ts.map +1 -0
  16. package/dist/abis/MetricOmmPoolStateView.js +717 -0
  17. package/dist/abis/MetricOmmPoolStateView.js.map +1 -0
  18. package/dist/abis/MetricOmmPoolSwapper.d.ts +557 -0
  19. package/dist/abis/MetricOmmPoolSwapper.d.ts.map +1 -0
  20. package/dist/abis/MetricOmmPoolSwapper.js +723 -0
  21. package/dist/abis/MetricOmmPoolSwapper.js.map +1 -0
  22. package/dist/abis/Multicall3.d.ts +333 -0
  23. package/dist/abis/Multicall3.d.ts.map +1 -0
  24. package/dist/abis/Multicall3.js +441 -0
  25. package/dist/abis/Multicall3.js.map +1 -0
  26. package/dist/abis/PriceProvider.d.ts +142 -0
  27. package/dist/abis/PriceProvider.d.ts.map +1 -0
  28. package/dist/abis/PriceProvider.js +184 -0
  29. package/dist/abis/PriceProvider.js.map +1 -0
  30. package/dist/abis/PriceProviderUi.d.ts +433 -0
  31. package/dist/abis/PriceProviderUi.d.ts.map +1 -0
  32. package/dist/abis/PriceProviderUi.js +318 -0
  33. package/dist/abis/PriceProviderUi.js.map +1 -0
  34. package/dist/abis/index.d.ts +11 -0
  35. package/dist/abis/index.d.ts.map +1 -0
  36. package/dist/abis/index.js +11 -0
  37. package/dist/abis/index.js.map +1 -0
  38. package/dist/addresses.d.ts +52 -0
  39. package/dist/addresses.d.ts.map +1 -0
  40. package/dist/addresses.js +58 -0
  41. package/dist/addresses.js.map +1 -0
  42. package/dist/constants.d.ts +20 -0
  43. package/dist/constants.d.ts.map +1 -0
  44. package/dist/constants.js +26 -0
  45. package/dist/constants.js.map +1 -0
  46. package/dist/factory/collectFees.d.ts +41 -0
  47. package/dist/factory/collectFees.d.ts.map +1 -0
  48. package/dist/factory/collectFees.js +120 -0
  49. package/dist/factory/collectFees.js.map +1 -0
  50. package/dist/factory/index.d.ts +5 -0
  51. package/dist/factory/index.d.ts.map +1 -0
  52. package/dist/factory/index.js +5 -0
  53. package/dist/factory/index.js.map +1 -0
  54. package/dist/index.d.ts +16 -0
  55. package/dist/index.d.ts.map +1 -0
  56. package/dist/index.js +24 -0
  57. package/dist/index.js.map +1 -0
  58. package/dist/pool/create.d.ts +80 -0
  59. package/dist/pool/create.d.ts.map +1 -0
  60. package/dist/pool/create.js +80 -0
  61. package/dist/pool/create.js.map +1 -0
  62. package/dist/pool/index.d.ts +7 -0
  63. package/dist/pool/index.d.ts.map +1 -0
  64. package/dist/pool/index.js +10 -0
  65. package/dist/pool/index.js.map +1 -0
  66. package/dist/pool/liquidity.d.ts +165 -0
  67. package/dist/pool/liquidity.d.ts.map +1 -0
  68. package/dist/pool/liquidity.js +508 -0
  69. package/dist/pool/liquidity.js.map +1 -0
  70. package/dist/pool/read.d.ts +22 -0
  71. package/dist/pool/read.d.ts.map +1 -0
  72. package/dist/pool/read.js +88 -0
  73. package/dist/pool/read.js.map +1 -0
  74. package/dist/router/index.d.ts +5 -0
  75. package/dist/router/index.d.ts.map +1 -0
  76. package/dist/router/index.js +5 -0
  77. package/dist/router/index.js.map +1 -0
  78. package/dist/router/swap.d.ts +117 -0
  79. package/dist/router/swap.d.ts.map +1 -0
  80. package/dist/router/swap.js +298 -0
  81. package/dist/router/swap.js.map +1 -0
  82. package/dist/stateView/index.d.ts +5 -0
  83. package/dist/stateView/index.d.ts.map +1 -0
  84. package/dist/stateView/index.js +5 -0
  85. package/dist/stateView/index.js.map +1 -0
  86. package/dist/stateView/read.d.ts +80 -0
  87. package/dist/stateView/read.d.ts.map +1 -0
  88. package/dist/stateView/read.js +249 -0
  89. package/dist/stateView/read.js.map +1 -0
  90. package/dist/types.d.ts +134 -0
  91. package/dist/types.d.ts.map +1 -0
  92. package/dist/types.js +6 -0
  93. package/dist/types.js.map +1 -0
  94. package/dist/utils/binData.d.ts +65 -0
  95. package/dist/utils/binData.d.ts.map +1 -0
  96. package/dist/utils/binData.js +109 -0
  97. package/dist/utils/binData.js.map +1 -0
  98. package/dist/utils/index.d.ts +7 -0
  99. package/dist/utils/index.d.ts.map +1 -0
  100. package/dist/utils/index.js +10 -0
  101. package/dist/utils/index.js.map +1 -0
  102. package/dist/utils/liquidityMath.d.ts +10 -0
  103. package/dist/utils/liquidityMath.d.ts.map +1 -0
  104. package/dist/utils/liquidityMath.js +31 -0
  105. package/dist/utils/liquidityMath.js.map +1 -0
  106. package/dist/utils/price.d.ts +13 -0
  107. package/dist/utils/price.d.ts.map +1 -0
  108. package/dist/utils/price.js +21 -0
  109. package/dist/utils/price.js.map +1 -0
  110. package/package.json +74 -0
  111. package/src/abis/MetricOmmPool.ts +1007 -0
  112. package/src/abis/MetricOmmPoolFactory.ts +1753 -0
  113. package/src/abis/MetricOmmPoolLiquidityAdder.ts +400 -0
  114. package/src/abis/MetricOmmPoolStateView.ts +716 -0
  115. package/src/abis/MetricOmmPoolSwapper.ts +722 -0
  116. package/src/abis/Multicall3.ts +440 -0
  117. package/src/abis/PriceProvider.ts +183 -0
  118. package/src/abis/PriceProviderUi.ts +317 -0
  119. package/src/abis/index.ts +11 -0
  120. package/src/addresses.ts +100 -0
  121. package/src/constants.ts +35 -0
  122. package/src/factory/collectFees.ts +197 -0
  123. package/src/factory/index.ts +12 -0
  124. package/src/index.ts +157 -0
  125. package/src/pool/create.ts +158 -0
  126. package/src/pool/index.ts +47 -0
  127. package/src/pool/liquidity.ts +839 -0
  128. package/src/pool/read.ts +131 -0
  129. package/src/router/index.ts +27 -0
  130. package/src/router/swap.ts +507 -0
  131. package/src/stateView/index.ts +18 -0
  132. package/src/stateView/read.ts +355 -0
  133. package/src/types.ts +162 -0
  134. package/src/utils/binData.ts +127 -0
  135. package/src/utils/index.ts +26 -0
  136. package/src/utils/liquidityMath.ts +47 -0
  137. package/src/utils/price.ts +23 -0
@@ -0,0 +1,716 @@
1
+ export const MetricOmmPoolStateViewAbi = [
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
+ {
16
+ internalType: "uint8",
17
+ name: "bits",
18
+ type: "uint8",
19
+ },
20
+ {
21
+ internalType: "uint256",
22
+ name: "value",
23
+ type: "uint256",
24
+ },
25
+ ],
26
+ name: "SafeCastOverflowedUintDowncast",
27
+ type: "error",
28
+ },
29
+ {
30
+ inputs: [
31
+ {
32
+ internalType: "address",
33
+ name: "pool",
34
+ type: "address",
35
+ },
36
+ ],
37
+ name: "admin",
38
+ outputs: [
39
+ {
40
+ internalType: "address",
41
+ name: "",
42
+ type: "address",
43
+ },
44
+ ],
45
+ stateMutability: "view",
46
+ type: "function",
47
+ },
48
+ {
49
+ inputs: [
50
+ {
51
+ internalType: "address",
52
+ name: "pool",
53
+ type: "address",
54
+ },
55
+ ],
56
+ name: "adminFeeDestination",
57
+ outputs: [
58
+ {
59
+ internalType: "address",
60
+ name: "",
61
+ type: "address",
62
+ },
63
+ ],
64
+ stateMutability: "view",
65
+ type: "function",
66
+ },
67
+ {
68
+ inputs: [
69
+ {
70
+ internalType: "address",
71
+ name: "pool",
72
+ type: "address",
73
+ },
74
+ ],
75
+ name: "adminSpreadFeeE6",
76
+ outputs: [
77
+ {
78
+ internalType: "uint24",
79
+ name: "",
80
+ type: "uint24",
81
+ },
82
+ ],
83
+ stateMutability: "view",
84
+ type: "function",
85
+ },
86
+ {
87
+ inputs: [
88
+ {
89
+ internalType: "address",
90
+ name: "pool",
91
+ type: "address",
92
+ },
93
+ {
94
+ internalType: "int8",
95
+ name: "binIdx",
96
+ type: "int8",
97
+ },
98
+ ],
99
+ name: "binState",
100
+ outputs: [
101
+ {
102
+ internalType: "uint104",
103
+ name: "token0Balance",
104
+ type: "uint104",
105
+ },
106
+ {
107
+ internalType: "uint104",
108
+ name: "token1Balance",
109
+ type: "uint104",
110
+ },
111
+ {
112
+ internalType: "uint16",
113
+ name: "lengthE6",
114
+ type: "uint16",
115
+ },
116
+ {
117
+ internalType: "uint16",
118
+ name: "addFeeBuyE6",
119
+ type: "uint16",
120
+ },
121
+ {
122
+ internalType: "uint16",
123
+ name: "addFeeSellE6",
124
+ type: "uint16",
125
+ },
126
+ ],
127
+ stateMutability: "view",
128
+ type: "function",
129
+ },
130
+ {
131
+ inputs: [
132
+ {
133
+ internalType: "address",
134
+ name: "pool",
135
+ type: "address",
136
+ },
137
+ {
138
+ internalType: "int8",
139
+ name: "binIdx",
140
+ type: "int8",
141
+ },
142
+ ],
143
+ name: "binStateScaled",
144
+ outputs: [
145
+ {
146
+ internalType: "uint104",
147
+ name: "token0BalanceScaled",
148
+ type: "uint104",
149
+ },
150
+ {
151
+ internalType: "uint104",
152
+ name: "token1BalanceScaled",
153
+ type: "uint104",
154
+ },
155
+ {
156
+ internalType: "uint16",
157
+ name: "lengthE6",
158
+ type: "uint16",
159
+ },
160
+ {
161
+ internalType: "uint16",
162
+ name: "addFeeBuyE6",
163
+ type: "uint16",
164
+ },
165
+ {
166
+ internalType: "uint16",
167
+ name: "addFeeSellE6",
168
+ type: "uint16",
169
+ },
170
+ ],
171
+ stateMutability: "view",
172
+ type: "function",
173
+ },
174
+ {
175
+ inputs: [
176
+ {
177
+ internalType: "address",
178
+ name: "pool",
179
+ type: "address",
180
+ },
181
+ {
182
+ internalType: "int8[]",
183
+ name: "binIdxs",
184
+ type: "int8[]",
185
+ },
186
+ ],
187
+ name: "binStates",
188
+ outputs: [
189
+ {
190
+ internalType: "uint104[]",
191
+ name: "token0Balances",
192
+ type: "uint104[]",
193
+ },
194
+ {
195
+ internalType: "uint104[]",
196
+ name: "token1Balances",
197
+ type: "uint104[]",
198
+ },
199
+ {
200
+ internalType: "uint16[]",
201
+ name: "lengthsInUnits",
202
+ type: "uint16[]",
203
+ },
204
+ {
205
+ internalType: "uint16[]",
206
+ name: "addFeeBuysE6",
207
+ type: "uint16[]",
208
+ },
209
+ {
210
+ internalType: "uint16[]",
211
+ name: "addFeeSellsE6",
212
+ type: "uint16[]",
213
+ },
214
+ {
215
+ internalType: "uint104[]",
216
+ name: "totalShares",
217
+ type: "uint104[]",
218
+ },
219
+ ],
220
+ stateMutability: "view",
221
+ type: "function",
222
+ },
223
+ {
224
+ inputs: [
225
+ {
226
+ internalType: "address",
227
+ name: "pool",
228
+ type: "address",
229
+ },
230
+ {
231
+ internalType: "int8",
232
+ name: "binIdx",
233
+ type: "int8",
234
+ },
235
+ ],
236
+ name: "binTotalShares",
237
+ outputs: [
238
+ {
239
+ internalType: "uint104",
240
+ name: "",
241
+ type: "uint104",
242
+ },
243
+ ],
244
+ stateMutability: "view",
245
+ type: "function",
246
+ },
247
+ {
248
+ inputs: [
249
+ {
250
+ internalType: "address",
251
+ name: "pool",
252
+ type: "address",
253
+ },
254
+ ],
255
+ name: "curBinDistFromProvidedPriceE6",
256
+ outputs: [
257
+ {
258
+ internalType: "int24",
259
+ name: "",
260
+ type: "int24",
261
+ },
262
+ ],
263
+ stateMutability: "view",
264
+ type: "function",
265
+ },
266
+ {
267
+ inputs: [
268
+ {
269
+ internalType: "address",
270
+ name: "pool",
271
+ type: "address",
272
+ },
273
+ ],
274
+ name: "curBinIdx",
275
+ outputs: [
276
+ {
277
+ internalType: "int8",
278
+ name: "",
279
+ type: "int8",
280
+ },
281
+ ],
282
+ stateMutability: "view",
283
+ type: "function",
284
+ },
285
+ {
286
+ inputs: [
287
+ {
288
+ internalType: "address",
289
+ name: "pool",
290
+ type: "address",
291
+ },
292
+ ],
293
+ name: "curPosInBin",
294
+ outputs: [
295
+ {
296
+ internalType: "uint104",
297
+ name: "",
298
+ type: "uint104",
299
+ },
300
+ ],
301
+ stateMutability: "view",
302
+ type: "function",
303
+ },
304
+ {
305
+ inputs: [
306
+ {
307
+ internalType: "address",
308
+ name: "pool",
309
+ type: "address",
310
+ },
311
+ ],
312
+ name: "feeConfig",
313
+ outputs: [
314
+ {
315
+ internalType: "address",
316
+ name: "adminAddr",
317
+ type: "address",
318
+ },
319
+ {
320
+ internalType: "uint24",
321
+ name: "protocolSpreadFee",
322
+ type: "uint24",
323
+ },
324
+ {
325
+ internalType: "uint24",
326
+ name: "adminSpreadFee",
327
+ type: "uint24",
328
+ },
329
+ {
330
+ internalType: "address",
331
+ name: "adminFeeDest",
332
+ type: "address",
333
+ },
334
+ ],
335
+ stateMutability: "view",
336
+ type: "function",
337
+ },
338
+ {
339
+ inputs: [
340
+ {
341
+ internalType: "address",
342
+ name: "pool",
343
+ type: "address",
344
+ },
345
+ ],
346
+ name: "getScaleMultipliers",
347
+ outputs: [
348
+ {
349
+ internalType: "uint256",
350
+ name: "token0ScaleMultiplier",
351
+ type: "uint256",
352
+ },
353
+ {
354
+ internalType: "uint256",
355
+ name: "token1ScaleMultiplier",
356
+ type: "uint256",
357
+ },
358
+ ],
359
+ stateMutability: "view",
360
+ type: "function",
361
+ },
362
+ {
363
+ inputs: [
364
+ {
365
+ internalType: "address",
366
+ name: "pool",
367
+ type: "address",
368
+ },
369
+ ],
370
+ name: "notionalFeeE8",
371
+ outputs: [
372
+ {
373
+ internalType: "uint24",
374
+ name: "",
375
+ type: "uint24",
376
+ },
377
+ ],
378
+ stateMutability: "view",
379
+ type: "function",
380
+ },
381
+ {
382
+ inputs: [
383
+ {
384
+ internalType: "address",
385
+ name: "pool",
386
+ type: "address",
387
+ },
388
+ ],
389
+ name: "notionalFeeToken0Scaled",
390
+ outputs: [
391
+ {
392
+ internalType: "uint128",
393
+ name: "",
394
+ type: "uint128",
395
+ },
396
+ ],
397
+ stateMutability: "view",
398
+ type: "function",
399
+ },
400
+ {
401
+ inputs: [
402
+ {
403
+ internalType: "address",
404
+ name: "pool",
405
+ type: "address",
406
+ },
407
+ ],
408
+ name: "notionalFeeToken1Scaled",
409
+ outputs: [
410
+ {
411
+ internalType: "uint128",
412
+ name: "",
413
+ type: "uint128",
414
+ },
415
+ ],
416
+ stateMutability: "view",
417
+ type: "function",
418
+ },
419
+ {
420
+ inputs: [
421
+ {
422
+ internalType: "address",
423
+ name: "pool",
424
+ type: "address",
425
+ },
426
+ ],
427
+ name: "pauseLevel",
428
+ outputs: [
429
+ {
430
+ internalType: "uint8",
431
+ name: "",
432
+ type: "uint8",
433
+ },
434
+ ],
435
+ stateMutability: "view",
436
+ type: "function",
437
+ },
438
+ {
439
+ inputs: [
440
+ {
441
+ internalType: "address",
442
+ name: "pool",
443
+ type: "address",
444
+ },
445
+ ],
446
+ name: "paused",
447
+ outputs: [
448
+ {
449
+ internalType: "bool",
450
+ name: "",
451
+ type: "bool",
452
+ },
453
+ ],
454
+ stateMutability: "view",
455
+ type: "function",
456
+ },
457
+ {
458
+ inputs: [
459
+ {
460
+ internalType: "address",
461
+ name: "pool",
462
+ type: "address",
463
+ },
464
+ ],
465
+ name: "pendingPriceProvider",
466
+ outputs: [
467
+ {
468
+ internalType: "address",
469
+ name: "",
470
+ type: "address",
471
+ },
472
+ ],
473
+ stateMutability: "view",
474
+ type: "function",
475
+ },
476
+ {
477
+ inputs: [
478
+ {
479
+ internalType: "address",
480
+ name: "pool",
481
+ type: "address",
482
+ },
483
+ ],
484
+ name: "pendingPriceProviderExecuteAfter",
485
+ outputs: [
486
+ {
487
+ internalType: "uint256",
488
+ name: "",
489
+ type: "uint256",
490
+ },
491
+ ],
492
+ stateMutability: "view",
493
+ type: "function",
494
+ },
495
+ {
496
+ inputs: [
497
+ {
498
+ internalType: "address",
499
+ name: "pool",
500
+ type: "address",
501
+ },
502
+ {
503
+ internalType: "bytes32",
504
+ name: "positionBinKey",
505
+ type: "bytes32",
506
+ },
507
+ ],
508
+ name: "positionBinShares",
509
+ outputs: [
510
+ {
511
+ internalType: "uint104",
512
+ name: "",
513
+ type: "uint104",
514
+ },
515
+ ],
516
+ stateMutability: "view",
517
+ type: "function",
518
+ },
519
+ {
520
+ inputs: [
521
+ {
522
+ internalType: "address",
523
+ name: "pool",
524
+ type: "address",
525
+ },
526
+ {
527
+ internalType: "address",
528
+ name: "owner",
529
+ type: "address",
530
+ },
531
+ {
532
+ internalType: "uint80",
533
+ name: "salt",
534
+ type: "uint80",
535
+ },
536
+ {
537
+ internalType: "int8",
538
+ name: "bin",
539
+ type: "int8",
540
+ },
541
+ ],
542
+ name: "positionBinShares",
543
+ outputs: [
544
+ {
545
+ internalType: "uint104",
546
+ name: "",
547
+ type: "uint104",
548
+ },
549
+ ],
550
+ stateMutability: "view",
551
+ type: "function",
552
+ },
553
+ {
554
+ inputs: [
555
+ {
556
+ internalType: "address",
557
+ name: "pool",
558
+ type: "address",
559
+ },
560
+ ],
561
+ name: "priceProvider",
562
+ outputs: [
563
+ {
564
+ internalType: "address",
565
+ name: "",
566
+ type: "address",
567
+ },
568
+ ],
569
+ stateMutability: "view",
570
+ type: "function",
571
+ },
572
+ {
573
+ inputs: [
574
+ {
575
+ internalType: "address",
576
+ name: "pool",
577
+ type: "address",
578
+ },
579
+ ],
580
+ name: "protocolSpreadFeeE6",
581
+ outputs: [
582
+ {
583
+ internalType: "uint24",
584
+ name: "",
585
+ type: "uint24",
586
+ },
587
+ ],
588
+ stateMutability: "view",
589
+ type: "function",
590
+ },
591
+ {
592
+ inputs: [
593
+ {
594
+ internalType: "address",
595
+ name: "pool",
596
+ type: "address",
597
+ },
598
+ ],
599
+ name: "slot0",
600
+ outputs: [
601
+ {
602
+ internalType: "uint8",
603
+ name: "_pauseLevel",
604
+ type: "uint8",
605
+ },
606
+ {
607
+ internalType: "int8",
608
+ name: "_curBinIdx",
609
+ type: "int8",
610
+ },
611
+ {
612
+ internalType: "uint104",
613
+ name: "_curPosInBin",
614
+ type: "uint104",
615
+ },
616
+ {
617
+ internalType: "int24",
618
+ name: "_curBinDistFromProvidedPrice",
619
+ type: "int24",
620
+ },
621
+ {
622
+ internalType: "uint24",
623
+ name: "_spreadFeeE6",
624
+ type: "uint24",
625
+ },
626
+ {
627
+ internalType: "uint24",
628
+ name: "_notionalFeeE8",
629
+ type: "uint24",
630
+ },
631
+ ],
632
+ stateMutability: "view",
633
+ type: "function",
634
+ },
635
+ {
636
+ inputs: [
637
+ {
638
+ internalType: "address",
639
+ name: "pool",
640
+ type: "address",
641
+ },
642
+ ],
643
+ name: "slot1",
644
+ outputs: [
645
+ {
646
+ internalType: "uint128",
647
+ name: "_totalScaledToken0InBins",
648
+ type: "uint128",
649
+ },
650
+ {
651
+ internalType: "uint128",
652
+ name: "_totalScaledToken1InBins",
653
+ type: "uint128",
654
+ },
655
+ ],
656
+ stateMutability: "view",
657
+ type: "function",
658
+ },
659
+ {
660
+ inputs: [
661
+ {
662
+ internalType: "address",
663
+ name: "pool",
664
+ type: "address",
665
+ },
666
+ ],
667
+ name: "spreadFeeE6",
668
+ outputs: [
669
+ {
670
+ internalType: "uint24",
671
+ name: "",
672
+ type: "uint24",
673
+ },
674
+ ],
675
+ stateMutability: "view",
676
+ type: "function",
677
+ },
678
+ {
679
+ inputs: [
680
+ {
681
+ internalType: "address",
682
+ name: "pool",
683
+ type: "address",
684
+ },
685
+ ],
686
+ name: "totalToken0InBins",
687
+ outputs: [
688
+ {
689
+ internalType: "uint128",
690
+ name: "",
691
+ type: "uint128",
692
+ },
693
+ ],
694
+ stateMutability: "view",
695
+ type: "function",
696
+ },
697
+ {
698
+ inputs: [
699
+ {
700
+ internalType: "address",
701
+ name: "pool",
702
+ type: "address",
703
+ },
704
+ ],
705
+ name: "totalToken1InBins",
706
+ outputs: [
707
+ {
708
+ internalType: "uint128",
709
+ name: "",
710
+ type: "uint128",
711
+ },
712
+ ],
713
+ stateMutability: "view",
714
+ type: "function",
715
+ },
716
+ ] as const;