@mania-labs/mania-sdk 1.0.1 → 1.0.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.
@@ -0,0 +1,267 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "_factory",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "address",
11
+ "name": "_WETH9",
12
+ "type": "address"
13
+ }
14
+ ],
15
+ "stateMutability": "nonpayable",
16
+ "type": "constructor"
17
+ },
18
+ {
19
+ "inputs": [],
20
+ "name": "WETH9",
21
+ "outputs": [
22
+ {
23
+ "internalType": "address",
24
+ "name": "",
25
+ "type": "address"
26
+ }
27
+ ],
28
+ "stateMutability": "view",
29
+ "type": "function"
30
+ },
31
+ {
32
+ "inputs": [],
33
+ "name": "factory",
34
+ "outputs": [
35
+ {
36
+ "internalType": "address",
37
+ "name": "",
38
+ "type": "address"
39
+ }
40
+ ],
41
+ "stateMutability": "view",
42
+ "type": "function"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "bytes",
48
+ "name": "path",
49
+ "type": "bytes"
50
+ },
51
+ {
52
+ "internalType": "uint256",
53
+ "name": "amountIn",
54
+ "type": "uint256"
55
+ }
56
+ ],
57
+ "name": "quoteExactInput",
58
+ "outputs": [
59
+ {
60
+ "internalType": "uint256",
61
+ "name": "amountOut",
62
+ "type": "uint256"
63
+ },
64
+ {
65
+ "internalType": "uint160[]",
66
+ "name": "sqrtPriceX96AfterList",
67
+ "type": "uint160[]"
68
+ },
69
+ {
70
+ "internalType": "uint32[]",
71
+ "name": "initializedTicksCrossedList",
72
+ "type": "uint32[]"
73
+ },
74
+ {
75
+ "internalType": "uint256",
76
+ "name": "gasEstimate",
77
+ "type": "uint256"
78
+ }
79
+ ],
80
+ "stateMutability": "nonpayable",
81
+ "type": "function"
82
+ },
83
+ {
84
+ "inputs": [
85
+ {
86
+ "components": [
87
+ {
88
+ "internalType": "address",
89
+ "name": "tokenIn",
90
+ "type": "address"
91
+ },
92
+ {
93
+ "internalType": "address",
94
+ "name": "tokenOut",
95
+ "type": "address"
96
+ },
97
+ {
98
+ "internalType": "uint256",
99
+ "name": "amountIn",
100
+ "type": "uint256"
101
+ },
102
+ {
103
+ "internalType": "uint24",
104
+ "name": "fee",
105
+ "type": "uint24"
106
+ },
107
+ {
108
+ "internalType": "uint160",
109
+ "name": "sqrtPriceLimitX96",
110
+ "type": "uint160"
111
+ }
112
+ ],
113
+ "internalType": "struct IQuoterV2.QuoteExactInputSingleParams",
114
+ "name": "params",
115
+ "type": "tuple"
116
+ }
117
+ ],
118
+ "name": "quoteExactInputSingle",
119
+ "outputs": [
120
+ {
121
+ "internalType": "uint256",
122
+ "name": "amountOut",
123
+ "type": "uint256"
124
+ },
125
+ {
126
+ "internalType": "uint160",
127
+ "name": "sqrtPriceX96After",
128
+ "type": "uint160"
129
+ },
130
+ {
131
+ "internalType": "uint32",
132
+ "name": "initializedTicksCrossed",
133
+ "type": "uint32"
134
+ },
135
+ {
136
+ "internalType": "uint256",
137
+ "name": "gasEstimate",
138
+ "type": "uint256"
139
+ }
140
+ ],
141
+ "stateMutability": "nonpayable",
142
+ "type": "function"
143
+ },
144
+ {
145
+ "inputs": [
146
+ {
147
+ "internalType": "bytes",
148
+ "name": "path",
149
+ "type": "bytes"
150
+ },
151
+ {
152
+ "internalType": "uint256",
153
+ "name": "amountOut",
154
+ "type": "uint256"
155
+ }
156
+ ],
157
+ "name": "quoteExactOutput",
158
+ "outputs": [
159
+ {
160
+ "internalType": "uint256",
161
+ "name": "amountIn",
162
+ "type": "uint256"
163
+ },
164
+ {
165
+ "internalType": "uint160[]",
166
+ "name": "sqrtPriceX96AfterList",
167
+ "type": "uint160[]"
168
+ },
169
+ {
170
+ "internalType": "uint32[]",
171
+ "name": "initializedTicksCrossedList",
172
+ "type": "uint32[]"
173
+ },
174
+ {
175
+ "internalType": "uint256",
176
+ "name": "gasEstimate",
177
+ "type": "uint256"
178
+ }
179
+ ],
180
+ "stateMutability": "nonpayable",
181
+ "type": "function"
182
+ },
183
+ {
184
+ "inputs": [
185
+ {
186
+ "components": [
187
+ {
188
+ "internalType": "address",
189
+ "name": "tokenIn",
190
+ "type": "address"
191
+ },
192
+ {
193
+ "internalType": "address",
194
+ "name": "tokenOut",
195
+ "type": "address"
196
+ },
197
+ {
198
+ "internalType": "uint256",
199
+ "name": "amount",
200
+ "type": "uint256"
201
+ },
202
+ {
203
+ "internalType": "uint24",
204
+ "name": "fee",
205
+ "type": "uint24"
206
+ },
207
+ {
208
+ "internalType": "uint160",
209
+ "name": "sqrtPriceLimitX96",
210
+ "type": "uint160"
211
+ }
212
+ ],
213
+ "internalType": "struct IQuoterV2.QuoteExactOutputSingleParams",
214
+ "name": "params",
215
+ "type": "tuple"
216
+ }
217
+ ],
218
+ "name": "quoteExactOutputSingle",
219
+ "outputs": [
220
+ {
221
+ "internalType": "uint256",
222
+ "name": "amountIn",
223
+ "type": "uint256"
224
+ },
225
+ {
226
+ "internalType": "uint160",
227
+ "name": "sqrtPriceX96After",
228
+ "type": "uint160"
229
+ },
230
+ {
231
+ "internalType": "uint32",
232
+ "name": "initializedTicksCrossed",
233
+ "type": "uint32"
234
+ },
235
+ {
236
+ "internalType": "uint256",
237
+ "name": "gasEstimate",
238
+ "type": "uint256"
239
+ }
240
+ ],
241
+ "stateMutability": "nonpayable",
242
+ "type": "function"
243
+ },
244
+ {
245
+ "inputs": [
246
+ {
247
+ "internalType": "int256",
248
+ "name": "amount0Delta",
249
+ "type": "int256"
250
+ },
251
+ {
252
+ "internalType": "int256",
253
+ "name": "amount1Delta",
254
+ "type": "int256"
255
+ },
256
+ {
257
+ "internalType": "bytes",
258
+ "name": "path",
259
+ "type": "bytes"
260
+ }
261
+ ],
262
+ "name": "uniswapV3SwapCallback",
263
+ "outputs": [],
264
+ "stateMutability": "view",
265
+ "type": "function"
266
+ }
267
+ ]