@nradko/metric-omm-sdk-v1 0.4.2 → 0.4.3

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 (77) hide show
  1. package/README.md +96 -12
  2. package/dist/abis/MetricOmmSimpleRouter.d.ts +44 -0
  3. package/dist/abis/MetricOmmSimpleRouter.d.ts.map +1 -1
  4. package/dist/abis/MetricOmmSimpleRouter.js +58 -0
  5. package/dist/abis/MetricOmmSimpleRouter.js.map +1 -1
  6. package/dist/abis/MetricOmmSwapQuoter.d.ts +26 -2
  7. package/dist/abis/MetricOmmSwapQuoter.d.ts.map +1 -1
  8. package/dist/abis/MetricOmmSwapQuoter.js +34 -2
  9. package/dist/abis/MetricOmmSwapQuoter.js.map +1 -1
  10. package/dist/abis/index.d.ts +0 -1
  11. package/dist/abis/index.d.ts.map +1 -1
  12. package/dist/abis/index.js +0 -1
  13. package/dist/abis/index.js.map +1 -1
  14. package/dist/addresses.d.ts +0 -2
  15. package/dist/addresses.d.ts.map +1 -1
  16. package/dist/addresses.js +8 -9
  17. package/dist/addresses.js.map +1 -1
  18. package/dist/dataProvider/index.d.ts +1 -1
  19. package/dist/dataProvider/index.d.ts.map +1 -1
  20. package/dist/dataProvider/index.js +1 -1
  21. package/dist/dataProvider/index.js.map +1 -1
  22. package/dist/dataProvider/read.d.ts +1 -3
  23. package/dist/dataProvider/read.d.ts.map +1 -1
  24. package/dist/dataProvider/read.js +1 -3
  25. package/dist/dataProvider/read.js.map +1 -1
  26. package/dist/index.d.ts +3 -3
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +3 -3
  29. package/dist/index.js.map +1 -1
  30. package/dist/pool/liquidity.d.ts +83 -7
  31. package/dist/pool/liquidity.d.ts.map +1 -1
  32. package/dist/pool/liquidity.js +63 -3
  33. package/dist/pool/liquidity.js.map +1 -1
  34. package/dist/router/fromRoute.d.ts +93 -0
  35. package/dist/router/fromRoute.d.ts.map +1 -0
  36. package/dist/router/fromRoute.js +187 -0
  37. package/dist/router/fromRoute.js.map +1 -0
  38. package/dist/router/index.d.ts +8 -1
  39. package/dist/router/index.d.ts.map +1 -1
  40. package/dist/router/index.js +8 -1
  41. package/dist/router/index.js.map +1 -1
  42. package/dist/router/nativeSwap.d.ts +47 -0
  43. package/dist/router/nativeSwap.d.ts.map +1 -0
  44. package/dist/router/nativeSwap.js +89 -0
  45. package/dist/router/nativeSwap.js.map +1 -0
  46. package/dist/router/swap.d.ts +82 -1
  47. package/dist/router/swap.d.ts.map +1 -1
  48. package/dist/router/swap.js +51 -1
  49. package/dist/router/swap.js.map +1 -1
  50. package/dist/router/swapPath.d.ts +46 -1
  51. package/dist/router/swapPath.d.ts.map +1 -1
  52. package/dist/router/swapPath.js +34 -0
  53. package/dist/router/swapPath.js.map +1 -1
  54. package/dist/router/utils.d.ts +9 -0
  55. package/dist/router/utils.d.ts.map +1 -0
  56. package/dist/router/utils.js +27 -0
  57. package/dist/router/utils.js.map +1 -0
  58. package/package.json +2 -2
  59. package/src/abis/MetricOmmSimpleRouter.ts +58 -0
  60. package/src/abis/MetricOmmSwapQuoter.ts +34 -2
  61. package/src/abis/index.ts +0 -1
  62. package/src/addresses.ts +8 -11
  63. package/src/dataProvider/index.ts +0 -1
  64. package/src/dataProvider/read.ts +1 -4
  65. package/src/index.ts +22 -2
  66. package/src/pool/liquidity.ts +83 -7
  67. package/src/router/fromRoute.ts +318 -0
  68. package/src/router/index.ts +36 -1
  69. package/src/router/nativeSwap.ts +123 -0
  70. package/src/router/swap.ts +82 -1
  71. package/src/router/swapPath.ts +47 -1
  72. package/src/router/utils.ts +31 -0
  73. package/dist/abis/MetricOmmPoolStateView.d.ts +0 -238
  74. package/dist/abis/MetricOmmPoolStateView.d.ts.map +0 -1
  75. package/dist/abis/MetricOmmPoolStateView.js +0 -315
  76. package/dist/abis/MetricOmmPoolStateView.js.map +0 -1
  77. package/src/abis/MetricOmmPoolStateView.ts +0 -314
@@ -1,315 +0,0 @@
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
- internalType: "int8",
38
- name: "binIdx",
39
- type: "int8",
40
- },
41
- ],
42
- name: "binState",
43
- outputs: [
44
- {
45
- internalType: "uint104",
46
- name: "token0BalanceScaled",
47
- type: "uint104",
48
- },
49
- {
50
- internalType: "uint104",
51
- name: "token1BalanceScaled",
52
- type: "uint104",
53
- },
54
- {
55
- internalType: "uint16",
56
- name: "lengthE6",
57
- type: "uint16",
58
- },
59
- {
60
- internalType: "uint16",
61
- name: "addFeeBuyE6",
62
- type: "uint16",
63
- },
64
- {
65
- internalType: "uint16",
66
- name: "addFeeSellE6",
67
- type: "uint16",
68
- },
69
- ],
70
- stateMutability: "view",
71
- type: "function",
72
- },
73
- {
74
- inputs: [
75
- {
76
- internalType: "address",
77
- name: "pool",
78
- type: "address",
79
- },
80
- {
81
- internalType: "int8[]",
82
- name: "binIdxs",
83
- type: "int8[]",
84
- },
85
- ],
86
- name: "binStates",
87
- outputs: [
88
- {
89
- internalType: "bytes32[]",
90
- name: "",
91
- type: "bytes32[]",
92
- },
93
- ],
94
- stateMutability: "view",
95
- type: "function",
96
- },
97
- {
98
- inputs: [
99
- {
100
- internalType: "address",
101
- name: "pool",
102
- type: "address",
103
- },
104
- {
105
- internalType: "int8",
106
- name: "binIdx",
107
- type: "int8",
108
- },
109
- ],
110
- name: "binTotalShares",
111
- outputs: [
112
- {
113
- internalType: "uint256",
114
- name: "",
115
- type: "uint256",
116
- },
117
- ],
118
- stateMutability: "view",
119
- type: "function",
120
- },
121
- {
122
- inputs: [
123
- {
124
- internalType: "address",
125
- name: "pool",
126
- type: "address",
127
- },
128
- {
129
- internalType: "int8[]",
130
- name: "binIdxs",
131
- type: "int8[]",
132
- },
133
- ],
134
- name: "binTotalShares",
135
- outputs: [
136
- {
137
- internalType: "bytes32[]",
138
- name: "",
139
- type: "bytes32[]",
140
- },
141
- ],
142
- stateMutability: "view",
143
- type: "function",
144
- },
145
- {
146
- inputs: [
147
- {
148
- internalType: "address",
149
- name: "pool",
150
- type: "address",
151
- },
152
- {
153
- internalType: "bytes32",
154
- name: "positionBinKey",
155
- type: "bytes32",
156
- },
157
- ],
158
- name: "positionBinShares",
159
- outputs: [
160
- {
161
- internalType: "uint104",
162
- name: "",
163
- type: "uint104",
164
- },
165
- ],
166
- stateMutability: "view",
167
- type: "function",
168
- },
169
- {
170
- inputs: [
171
- {
172
- internalType: "address",
173
- name: "pool",
174
- type: "address",
175
- },
176
- {
177
- internalType: "address",
178
- name: "owner",
179
- type: "address",
180
- },
181
- {
182
- internalType: "uint80",
183
- name: "salt",
184
- type: "uint80",
185
- },
186
- {
187
- internalType: "int8",
188
- name: "bin",
189
- type: "int8",
190
- },
191
- ],
192
- name: "positionBinShares",
193
- outputs: [
194
- {
195
- internalType: "uint104",
196
- name: "",
197
- type: "uint104",
198
- },
199
- ],
200
- stateMutability: "view",
201
- type: "function",
202
- },
203
- {
204
- inputs: [
205
- {
206
- internalType: "address",
207
- name: "pool",
208
- type: "address",
209
- },
210
- ],
211
- name: "priceProvider",
212
- outputs: [
213
- {
214
- internalType: "address",
215
- name: "",
216
- type: "address",
217
- },
218
- ],
219
- stateMutability: "view",
220
- type: "function",
221
- },
222
- {
223
- inputs: [
224
- {
225
- internalType: "address",
226
- name: "pool",
227
- type: "address",
228
- },
229
- ],
230
- name: "slot0",
231
- outputs: [
232
- {
233
- internalType: "uint8",
234
- name: "_pauseLevel",
235
- type: "uint8",
236
- },
237
- {
238
- internalType: "int8",
239
- name: "_curBinIdx",
240
- type: "int8",
241
- },
242
- {
243
- internalType: "uint104",
244
- name: "_curPosInBin",
245
- type: "uint104",
246
- },
247
- {
248
- internalType: "int24",
249
- name: "_curBinDistFromProvidedPrice",
250
- type: "int24",
251
- },
252
- {
253
- internalType: "uint24",
254
- name: "_spreadFeeE6",
255
- type: "uint24",
256
- },
257
- {
258
- internalType: "uint24",
259
- name: "_notionalFeeE8",
260
- type: "uint24",
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: "slot1",
275
- outputs: [
276
- {
277
- internalType: "uint128",
278
- name: "totalScaledToken0InBins",
279
- type: "uint128",
280
- },
281
- {
282
- internalType: "uint128",
283
- name: "totalScaledToken1InBins",
284
- type: "uint128",
285
- },
286
- ],
287
- stateMutability: "view",
288
- type: "function",
289
- },
290
- {
291
- inputs: [
292
- {
293
- internalType: "address",
294
- name: "pool",
295
- type: "address",
296
- },
297
- ],
298
- name: "slot2",
299
- outputs: [
300
- {
301
- internalType: "uint128",
302
- name: "notionalFeeToken0Scaled",
303
- type: "uint128",
304
- },
305
- {
306
- internalType: "uint128",
307
- name: "notionalFeeToken1Scaled",
308
- type: "uint128",
309
- },
310
- ],
311
- stateMutability: "view",
312
- type: "function",
313
- },
314
- ];
315
- //# sourceMappingURL=MetricOmmPoolStateView.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MetricOmmPoolStateView.js","sourceRoot":"","sources":["../../src/abis/MetricOmmPoolStateView.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,YAAY;QAC7B,IA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StateViewAbi = [
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
- internalType: "int8",
38
- name: "binIdx",
39
- type: "int8",
40
- },
41
- ],
42
- name: "binState",
43
- outputs: [
44
- {
45
- internalType: "uint104",
46
- name: "token0BalanceScaled",
47
- type: "uint104",
48
- },
49
- {
50
- internalType: "uint104",
51
- name: "token1BalanceScaled",
52
- type: "uint104",
53
- },
54
- {
55
- internalType: "uint16",
56
- name: "lengthE6",
57
- type: "uint16",
58
- },
59
- {
60
- internalType: "uint16",
61
- name: "addFeeBuyE6",
62
- type: "uint16",
63
- },
64
- {
65
- internalType: "uint16",
66
- name: "addFeeSellE6",
67
- type: "uint16",
68
- },
69
- ],
70
- stateMutability: "view",
71
- type: "function",
72
- },
73
- {
74
- inputs: [
75
- {
76
- internalType: "address",
77
- name: "pool",
78
- type: "address",
79
- },
80
- {
81
- internalType: "int8[]",
82
- name: "binIdxs",
83
- type: "int8[]",
84
- },
85
- ],
86
- name: "binStates",
87
- outputs: [
88
- {
89
- internalType: "bytes32[]",
90
- name: "",
91
- type: "bytes32[]",
92
- },
93
- ],
94
- stateMutability: "view",
95
- type: "function",
96
- },
97
- {
98
- inputs: [
99
- {
100
- internalType: "address",
101
- name: "pool",
102
- type: "address",
103
- },
104
- {
105
- internalType: "int8",
106
- name: "binIdx",
107
- type: "int8",
108
- },
109
- ],
110
- name: "binTotalShares",
111
- outputs: [
112
- {
113
- internalType: "uint256",
114
- name: "",
115
- type: "uint256",
116
- },
117
- ],
118
- stateMutability: "view",
119
- type: "function",
120
- },
121
- {
122
- inputs: [
123
- {
124
- internalType: "address",
125
- name: "pool",
126
- type: "address",
127
- },
128
- {
129
- internalType: "int8[]",
130
- name: "binIdxs",
131
- type: "int8[]",
132
- },
133
- ],
134
- name: "binTotalShares",
135
- outputs: [
136
- {
137
- internalType: "bytes32[]",
138
- name: "",
139
- type: "bytes32[]",
140
- },
141
- ],
142
- stateMutability: "view",
143
- type: "function",
144
- },
145
- {
146
- inputs: [
147
- {
148
- internalType: "address",
149
- name: "pool",
150
- type: "address",
151
- },
152
- {
153
- internalType: "bytes32",
154
- name: "positionBinKey",
155
- type: "bytes32",
156
- },
157
- ],
158
- name: "positionBinShares",
159
- outputs: [
160
- {
161
- internalType: "uint104",
162
- name: "",
163
- type: "uint104",
164
- },
165
- ],
166
- stateMutability: "view",
167
- type: "function",
168
- },
169
- {
170
- inputs: [
171
- {
172
- internalType: "address",
173
- name: "pool",
174
- type: "address",
175
- },
176
- {
177
- internalType: "address",
178
- name: "owner",
179
- type: "address",
180
- },
181
- {
182
- internalType: "uint80",
183
- name: "salt",
184
- type: "uint80",
185
- },
186
- {
187
- internalType: "int8",
188
- name: "bin",
189
- type: "int8",
190
- },
191
- ],
192
- name: "positionBinShares",
193
- outputs: [
194
- {
195
- internalType: "uint104",
196
- name: "",
197
- type: "uint104",
198
- },
199
- ],
200
- stateMutability: "view",
201
- type: "function",
202
- },
203
- {
204
- inputs: [
205
- {
206
- internalType: "address",
207
- name: "pool",
208
- type: "address",
209
- },
210
- ],
211
- name: "priceProvider",
212
- outputs: [
213
- {
214
- internalType: "address",
215
- name: "",
216
- type: "address",
217
- },
218
- ],
219
- stateMutability: "view",
220
- type: "function",
221
- },
222
- {
223
- inputs: [
224
- {
225
- internalType: "address",
226
- name: "pool",
227
- type: "address",
228
- },
229
- ],
230
- name: "slot0",
231
- outputs: [
232
- {
233
- internalType: "uint8",
234
- name: "_pauseLevel",
235
- type: "uint8",
236
- },
237
- {
238
- internalType: "int8",
239
- name: "_curBinIdx",
240
- type: "int8",
241
- },
242
- {
243
- internalType: "uint104",
244
- name: "_curPosInBin",
245
- type: "uint104",
246
- },
247
- {
248
- internalType: "int24",
249
- name: "_curBinDistFromProvidedPrice",
250
- type: "int24",
251
- },
252
- {
253
- internalType: "uint24",
254
- name: "_spreadFeeE6",
255
- type: "uint24",
256
- },
257
- {
258
- internalType: "uint24",
259
- name: "_notionalFeeE8",
260
- type: "uint24",
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: "slot1",
275
- outputs: [
276
- {
277
- internalType: "uint128",
278
- name: "totalScaledToken0InBins",
279
- type: "uint128",
280
- },
281
- {
282
- internalType: "uint128",
283
- name: "totalScaledToken1InBins",
284
- type: "uint128",
285
- },
286
- ],
287
- stateMutability: "view",
288
- type: "function",
289
- },
290
- {
291
- inputs: [
292
- {
293
- internalType: "address",
294
- name: "pool",
295
- type: "address",
296
- },
297
- ],
298
- name: "slot2",
299
- outputs: [
300
- {
301
- internalType: "uint128",
302
- name: "notionalFeeToken0Scaled",
303
- type: "uint128",
304
- },
305
- {
306
- internalType: "uint128",
307
- name: "notionalFeeToken1Scaled",
308
- type: "uint128",
309
- },
310
- ],
311
- stateMutability: "view",
312
- type: "function",
313
- },
314
- ] as const;