@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,441 @@
1
+ export const Mutlicall3Abi = [
2
+ {
3
+ inputs: [
4
+ {
5
+ components: [
6
+ {
7
+ internalType: "address",
8
+ name: "target",
9
+ type: "address",
10
+ },
11
+ {
12
+ internalType: "bytes",
13
+ name: "callData",
14
+ type: "bytes",
15
+ },
16
+ ],
17
+ internalType: "struct Multicall3.Call[]",
18
+ name: "calls",
19
+ type: "tuple[]",
20
+ },
21
+ ],
22
+ name: "aggregate",
23
+ outputs: [
24
+ {
25
+ internalType: "uint256",
26
+ name: "blockNumber",
27
+ type: "uint256",
28
+ },
29
+ {
30
+ internalType: "bytes[]",
31
+ name: "returnData",
32
+ type: "bytes[]",
33
+ },
34
+ ],
35
+ stateMutability: "payable",
36
+ type: "function",
37
+ },
38
+ {
39
+ inputs: [
40
+ {
41
+ components: [
42
+ {
43
+ internalType: "address",
44
+ name: "target",
45
+ type: "address",
46
+ },
47
+ {
48
+ internalType: "bool",
49
+ name: "allowFailure",
50
+ type: "bool",
51
+ },
52
+ {
53
+ internalType: "bytes",
54
+ name: "callData",
55
+ type: "bytes",
56
+ },
57
+ ],
58
+ internalType: "struct Multicall3.Call3[]",
59
+ name: "calls",
60
+ type: "tuple[]",
61
+ },
62
+ ],
63
+ name: "aggregate3",
64
+ outputs: [
65
+ {
66
+ components: [
67
+ {
68
+ internalType: "bool",
69
+ name: "success",
70
+ type: "bool",
71
+ },
72
+ {
73
+ internalType: "bytes",
74
+ name: "returnData",
75
+ type: "bytes",
76
+ },
77
+ ],
78
+ internalType: "struct Multicall3.Result[]",
79
+ name: "returnData",
80
+ type: "tuple[]",
81
+ },
82
+ ],
83
+ stateMutability: "payable",
84
+ type: "function",
85
+ },
86
+ {
87
+ inputs: [
88
+ {
89
+ components: [
90
+ {
91
+ internalType: "address",
92
+ name: "target",
93
+ type: "address",
94
+ },
95
+ {
96
+ internalType: "bool",
97
+ name: "allowFailure",
98
+ type: "bool",
99
+ },
100
+ {
101
+ internalType: "uint256",
102
+ name: "value",
103
+ type: "uint256",
104
+ },
105
+ {
106
+ internalType: "bytes",
107
+ name: "callData",
108
+ type: "bytes",
109
+ },
110
+ ],
111
+ internalType: "struct Multicall3.Call3Value[]",
112
+ name: "calls",
113
+ type: "tuple[]",
114
+ },
115
+ ],
116
+ name: "aggregate3Value",
117
+ outputs: [
118
+ {
119
+ components: [
120
+ {
121
+ internalType: "bool",
122
+ name: "success",
123
+ type: "bool",
124
+ },
125
+ {
126
+ internalType: "bytes",
127
+ name: "returnData",
128
+ type: "bytes",
129
+ },
130
+ ],
131
+ internalType: "struct Multicall3.Result[]",
132
+ name: "returnData",
133
+ type: "tuple[]",
134
+ },
135
+ ],
136
+ stateMutability: "payable",
137
+ type: "function",
138
+ },
139
+ {
140
+ inputs: [
141
+ {
142
+ components: [
143
+ {
144
+ internalType: "address",
145
+ name: "target",
146
+ type: "address",
147
+ },
148
+ {
149
+ internalType: "bytes",
150
+ name: "callData",
151
+ type: "bytes",
152
+ },
153
+ ],
154
+ internalType: "struct Multicall3.Call[]",
155
+ name: "calls",
156
+ type: "tuple[]",
157
+ },
158
+ ],
159
+ name: "blockAndAggregate",
160
+ outputs: [
161
+ {
162
+ internalType: "uint256",
163
+ name: "blockNumber",
164
+ type: "uint256",
165
+ },
166
+ {
167
+ internalType: "bytes32",
168
+ name: "blockHash",
169
+ type: "bytes32",
170
+ },
171
+ {
172
+ components: [
173
+ {
174
+ internalType: "bool",
175
+ name: "success",
176
+ type: "bool",
177
+ },
178
+ {
179
+ internalType: "bytes",
180
+ name: "returnData",
181
+ type: "bytes",
182
+ },
183
+ ],
184
+ internalType: "struct Multicall3.Result[]",
185
+ name: "returnData",
186
+ type: "tuple[]",
187
+ },
188
+ ],
189
+ stateMutability: "payable",
190
+ type: "function",
191
+ },
192
+ {
193
+ inputs: [],
194
+ name: "getBasefee",
195
+ outputs: [
196
+ {
197
+ internalType: "uint256",
198
+ name: "basefee",
199
+ type: "uint256",
200
+ },
201
+ ],
202
+ stateMutability: "view",
203
+ type: "function",
204
+ },
205
+ {
206
+ inputs: [
207
+ {
208
+ internalType: "uint256",
209
+ name: "blockNumber",
210
+ type: "uint256",
211
+ },
212
+ ],
213
+ name: "getBlockHash",
214
+ outputs: [
215
+ {
216
+ internalType: "bytes32",
217
+ name: "blockHash",
218
+ type: "bytes32",
219
+ },
220
+ ],
221
+ stateMutability: "view",
222
+ type: "function",
223
+ },
224
+ {
225
+ inputs: [],
226
+ name: "getBlockNumber",
227
+ outputs: [
228
+ {
229
+ internalType: "uint256",
230
+ name: "blockNumber",
231
+ type: "uint256",
232
+ },
233
+ ],
234
+ stateMutability: "view",
235
+ type: "function",
236
+ },
237
+ {
238
+ inputs: [],
239
+ name: "getChainId",
240
+ outputs: [
241
+ {
242
+ internalType: "uint256",
243
+ name: "chainid",
244
+ type: "uint256",
245
+ },
246
+ ],
247
+ stateMutability: "view",
248
+ type: "function",
249
+ },
250
+ {
251
+ inputs: [],
252
+ name: "getCurrentBlockCoinbase",
253
+ outputs: [
254
+ {
255
+ internalType: "address",
256
+ name: "coinbase",
257
+ type: "address",
258
+ },
259
+ ],
260
+ stateMutability: "view",
261
+ type: "function",
262
+ },
263
+ {
264
+ inputs: [],
265
+ name: "getCurrentBlockDifficulty",
266
+ outputs: [
267
+ {
268
+ internalType: "uint256",
269
+ name: "difficulty",
270
+ type: "uint256",
271
+ },
272
+ ],
273
+ stateMutability: "view",
274
+ type: "function",
275
+ },
276
+ {
277
+ inputs: [],
278
+ name: "getCurrentBlockGasLimit",
279
+ outputs: [
280
+ {
281
+ internalType: "uint256",
282
+ name: "gaslimit",
283
+ type: "uint256",
284
+ },
285
+ ],
286
+ stateMutability: "view",
287
+ type: "function",
288
+ },
289
+ {
290
+ inputs: [],
291
+ name: "getCurrentBlockTimestamp",
292
+ outputs: [
293
+ {
294
+ internalType: "uint256",
295
+ name: "timestamp",
296
+ type: "uint256",
297
+ },
298
+ ],
299
+ stateMutability: "view",
300
+ type: "function",
301
+ },
302
+ {
303
+ inputs: [
304
+ {
305
+ internalType: "address",
306
+ name: "addr",
307
+ type: "address",
308
+ },
309
+ ],
310
+ name: "getEthBalance",
311
+ outputs: [
312
+ {
313
+ internalType: "uint256",
314
+ name: "balance",
315
+ type: "uint256",
316
+ },
317
+ ],
318
+ stateMutability: "view",
319
+ type: "function",
320
+ },
321
+ {
322
+ inputs: [],
323
+ name: "getLastBlockHash",
324
+ outputs: [
325
+ {
326
+ internalType: "bytes32",
327
+ name: "blockHash",
328
+ type: "bytes32",
329
+ },
330
+ ],
331
+ stateMutability: "view",
332
+ type: "function",
333
+ },
334
+ {
335
+ inputs: [
336
+ {
337
+ internalType: "bool",
338
+ name: "requireSuccess",
339
+ type: "bool",
340
+ },
341
+ {
342
+ components: [
343
+ {
344
+ internalType: "address",
345
+ name: "target",
346
+ type: "address",
347
+ },
348
+ {
349
+ internalType: "bytes",
350
+ name: "callData",
351
+ type: "bytes",
352
+ },
353
+ ],
354
+ internalType: "struct Multicall3.Call[]",
355
+ name: "calls",
356
+ type: "tuple[]",
357
+ },
358
+ ],
359
+ name: "tryAggregate",
360
+ outputs: [
361
+ {
362
+ components: [
363
+ {
364
+ internalType: "bool",
365
+ name: "success",
366
+ type: "bool",
367
+ },
368
+ {
369
+ internalType: "bytes",
370
+ name: "returnData",
371
+ type: "bytes",
372
+ },
373
+ ],
374
+ internalType: "struct Multicall3.Result[]",
375
+ name: "returnData",
376
+ type: "tuple[]",
377
+ },
378
+ ],
379
+ stateMutability: "payable",
380
+ type: "function",
381
+ },
382
+ {
383
+ inputs: [
384
+ {
385
+ internalType: "bool",
386
+ name: "requireSuccess",
387
+ type: "bool",
388
+ },
389
+ {
390
+ components: [
391
+ {
392
+ internalType: "address",
393
+ name: "target",
394
+ type: "address",
395
+ },
396
+ {
397
+ internalType: "bytes",
398
+ name: "callData",
399
+ type: "bytes",
400
+ },
401
+ ],
402
+ internalType: "struct Multicall3.Call[]",
403
+ name: "calls",
404
+ type: "tuple[]",
405
+ },
406
+ ],
407
+ name: "tryBlockAndAggregate",
408
+ outputs: [
409
+ {
410
+ internalType: "uint256",
411
+ name: "blockNumber",
412
+ type: "uint256",
413
+ },
414
+ {
415
+ internalType: "bytes32",
416
+ name: "blockHash",
417
+ type: "bytes32",
418
+ },
419
+ {
420
+ components: [
421
+ {
422
+ internalType: "bool",
423
+ name: "success",
424
+ type: "bool",
425
+ },
426
+ {
427
+ internalType: "bytes",
428
+ name: "returnData",
429
+ type: "bytes",
430
+ },
431
+ ],
432
+ internalType: "struct Multicall3.Result[]",
433
+ name: "returnData",
434
+ type: "tuple[]",
435
+ },
436
+ ],
437
+ stateMutability: "payable",
438
+ type: "function",
439
+ },
440
+ ];
441
+ //# sourceMappingURL=Multicall3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Multicall3.js","sourceRoot":"","sources":["../../src/abis/Multicall3.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B;QACE,MAAM,EAAE;YACN;gBACE,UAAU,EAAE;oBACV;wBACE,YAAY,EAAE,SAAS;wBACvB,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,SAAS;qBAChB;oBACD;wBACE,YAAY,EAAE,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EAAE;oBACV;wBACE,YAAY,EAAE,SAAS;wBACvB,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,SAAS;qBAChB;oBACD;wBACE,YAAY,EAAE,OAAO;wBACrB,IAAI,EAAE,UAAU;wBAChB,IAAI,EAAE,OAAO;qBACd;iBACF;gBACD,YAAY,EAAE,0BAA0B;gBACxC,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,sBAAsB;QAC5B,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,UAAU,EAAE;oBACV;wBACE,YAAY,EAAE,MAAM;wBACpB,IAAI,EAAE,SAAS;wBACf,IAAI,EAAE,MAAM;qBACb;oBACD;wBACE,YAAY,EAAE,OAAO;wBACrB,IAAI,EAAE,YAAY;wBAClB,IAAI,EAAE,OAAO;qBACd;iBACF;gBACD,YAAY,EAAE,4BAA4B;gBAC1C,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,SAAS;QAC1B,IAAI,EAAE,UAAU;KACjB;CACO,CAAC"}
@@ -0,0 +1,142 @@
1
+ export declare const PriceProviderAbi: readonly [{
2
+ readonly inputs: readonly [];
3
+ readonly name: "getAskPrice";
4
+ readonly outputs: readonly [{
5
+ readonly internalType: "uint256";
6
+ readonly name: "askPrice";
7
+ readonly type: "uint256";
8
+ }];
9
+ readonly stateMutability: "view";
10
+ readonly type: "function";
11
+ }, {
12
+ readonly inputs: readonly [];
13
+ readonly name: "getAskPriceUi";
14
+ readonly outputs: readonly [{
15
+ readonly internalType: "uint256";
16
+ readonly name: "askPrice";
17
+ readonly type: "uint256";
18
+ }];
19
+ readonly stateMutability: "view";
20
+ readonly type: "function";
21
+ }, {
22
+ readonly inputs: readonly [];
23
+ readonly name: "getBidAndAskPrice";
24
+ readonly outputs: readonly [{
25
+ readonly internalType: "uint128";
26
+ readonly name: "bidPrice";
27
+ readonly type: "uint128";
28
+ }, {
29
+ readonly internalType: "uint128";
30
+ readonly name: "askPrice";
31
+ readonly type: "uint128";
32
+ }];
33
+ readonly stateMutability: "view";
34
+ readonly type: "function";
35
+ }, {
36
+ readonly inputs: readonly [];
37
+ readonly name: "getBidAndAskPriceUi";
38
+ readonly outputs: readonly [{
39
+ readonly internalType: "uint128";
40
+ readonly name: "bidPrice";
41
+ readonly type: "uint128";
42
+ }, {
43
+ readonly internalType: "uint128";
44
+ readonly name: "askPrice";
45
+ readonly type: "uint128";
46
+ }];
47
+ readonly stateMutability: "view";
48
+ readonly type: "function";
49
+ }, {
50
+ readonly inputs: readonly [];
51
+ readonly name: "getBidPrice";
52
+ readonly outputs: readonly [{
53
+ readonly internalType: "uint256";
54
+ readonly name: "bidPrice";
55
+ readonly type: "uint256";
56
+ }];
57
+ readonly stateMutability: "view";
58
+ readonly type: "function";
59
+ }, {
60
+ readonly inputs: readonly [];
61
+ readonly name: "getBidPriceUi";
62
+ readonly outputs: readonly [{
63
+ readonly internalType: "uint256";
64
+ readonly name: "bidPrice";
65
+ readonly type: "uint256";
66
+ }];
67
+ readonly stateMutability: "view";
68
+ readonly type: "function";
69
+ }, {
70
+ readonly inputs: readonly [];
71
+ readonly name: "getTokens";
72
+ readonly outputs: readonly [{
73
+ readonly internalType: "address";
74
+ readonly name: "baseToken";
75
+ readonly type: "address";
76
+ }, {
77
+ readonly internalType: "address";
78
+ readonly name: "quoteToken";
79
+ readonly type: "address";
80
+ }];
81
+ readonly stateMutability: "view";
82
+ readonly type: "function";
83
+ }, {
84
+ readonly inputs: readonly [{
85
+ readonly internalType: "address";
86
+ readonly name: "token";
87
+ readonly type: "address";
88
+ }];
89
+ readonly name: "removeClOracle";
90
+ readonly outputs: readonly [];
91
+ readonly stateMutability: "nonpayable";
92
+ readonly type: "function";
93
+ }, {
94
+ readonly inputs: readonly [{
95
+ readonly internalType: "int256";
96
+ readonly name: "newCexStep";
97
+ readonly type: "int256";
98
+ }];
99
+ readonly name: "setCexStep";
100
+ readonly outputs: readonly [];
101
+ readonly stateMutability: "nonpayable";
102
+ readonly type: "function";
103
+ }, {
104
+ readonly inputs: readonly [{
105
+ readonly internalType: "address";
106
+ readonly name: "token";
107
+ readonly type: "address";
108
+ }, {
109
+ readonly internalType: "address";
110
+ readonly name: "oracle";
111
+ readonly type: "address";
112
+ }, {
113
+ readonly internalType: "uint32";
114
+ readonly name: "heartbeat";
115
+ readonly type: "uint32";
116
+ }];
117
+ readonly name: "setClOracle";
118
+ readonly outputs: readonly [];
119
+ readonly stateMutability: "nonpayable";
120
+ readonly type: "function";
121
+ }, {
122
+ readonly inputs: readonly [{
123
+ readonly internalType: "uint256";
124
+ readonly name: "newValue";
125
+ readonly type: "uint256";
126
+ }];
127
+ readonly name: "setConfidenceParam";
128
+ readonly outputs: readonly [];
129
+ readonly stateMutability: "nonpayable";
130
+ readonly type: "function";
131
+ }, {
132
+ readonly inputs: readonly [{
133
+ readonly internalType: "uint16";
134
+ readonly name: "newMaxDeviation";
135
+ readonly type: "uint16";
136
+ }];
137
+ readonly name: "setMaxClDeviation";
138
+ readonly outputs: readonly [];
139
+ readonly stateMutability: "nonpayable";
140
+ readonly type: "function";
141
+ }];
142
+ //# sourceMappingURL=PriceProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PriceProvider.d.ts","sourceRoot":"","sources":["../../src/abis/PriceProvider.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsLnB,CAAC"}