@mania-labs/mania-sdk 1.0.2 → 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,236 @@
1
+ [
2
+ {
3
+ "inputs": [],
4
+ "stateMutability": "nonpayable",
5
+ "type": "constructor"
6
+ },
7
+ {
8
+ "anonymous": false,
9
+ "inputs": [
10
+ {
11
+ "indexed": true,
12
+ "internalType": "uint24",
13
+ "name": "fee",
14
+ "type": "uint24"
15
+ },
16
+ {
17
+ "indexed": true,
18
+ "internalType": "int24",
19
+ "name": "tickSpacing",
20
+ "type": "int24"
21
+ }
22
+ ],
23
+ "name": "FeeAmountEnabled",
24
+ "type": "event"
25
+ },
26
+ {
27
+ "anonymous": false,
28
+ "inputs": [
29
+ {
30
+ "indexed": true,
31
+ "internalType": "address",
32
+ "name": "oldOwner",
33
+ "type": "address"
34
+ },
35
+ {
36
+ "indexed": true,
37
+ "internalType": "address",
38
+ "name": "newOwner",
39
+ "type": "address"
40
+ }
41
+ ],
42
+ "name": "OwnerChanged",
43
+ "type": "event"
44
+ },
45
+ {
46
+ "anonymous": false,
47
+ "inputs": [
48
+ {
49
+ "indexed": true,
50
+ "internalType": "address",
51
+ "name": "token0",
52
+ "type": "address"
53
+ },
54
+ {
55
+ "indexed": true,
56
+ "internalType": "address",
57
+ "name": "token1",
58
+ "type": "address"
59
+ },
60
+ {
61
+ "indexed": true,
62
+ "internalType": "uint24",
63
+ "name": "fee",
64
+ "type": "uint24"
65
+ },
66
+ {
67
+ "indexed": false,
68
+ "internalType": "int24",
69
+ "name": "tickSpacing",
70
+ "type": "int24"
71
+ },
72
+ {
73
+ "indexed": false,
74
+ "internalType": "address",
75
+ "name": "pool",
76
+ "type": "address"
77
+ }
78
+ ],
79
+ "name": "PoolCreated",
80
+ "type": "event"
81
+ },
82
+ {
83
+ "inputs": [
84
+ {
85
+ "internalType": "address",
86
+ "name": "tokenA",
87
+ "type": "address"
88
+ },
89
+ {
90
+ "internalType": "address",
91
+ "name": "tokenB",
92
+ "type": "address"
93
+ },
94
+ {
95
+ "internalType": "uint24",
96
+ "name": "fee",
97
+ "type": "uint24"
98
+ }
99
+ ],
100
+ "name": "createPool",
101
+ "outputs": [
102
+ {
103
+ "internalType": "address",
104
+ "name": "pool",
105
+ "type": "address"
106
+ }
107
+ ],
108
+ "stateMutability": "nonpayable",
109
+ "type": "function"
110
+ },
111
+ {
112
+ "inputs": [
113
+ {
114
+ "internalType": "uint24",
115
+ "name": "fee",
116
+ "type": "uint24"
117
+ },
118
+ {
119
+ "internalType": "int24",
120
+ "name": "tickSpacing",
121
+ "type": "int24"
122
+ }
123
+ ],
124
+ "name": "enableFeeAmount",
125
+ "outputs": [],
126
+ "stateMutability": "nonpayable",
127
+ "type": "function"
128
+ },
129
+ {
130
+ "inputs": [
131
+ {
132
+ "internalType": "uint24",
133
+ "name": "",
134
+ "type": "uint24"
135
+ }
136
+ ],
137
+ "name": "feeAmountTickSpacing",
138
+ "outputs": [
139
+ {
140
+ "internalType": "int24",
141
+ "name": "",
142
+ "type": "int24"
143
+ }
144
+ ],
145
+ "stateMutability": "view",
146
+ "type": "function"
147
+ },
148
+ {
149
+ "inputs": [
150
+ {
151
+ "internalType": "address",
152
+ "name": "",
153
+ "type": "address"
154
+ },
155
+ {
156
+ "internalType": "address",
157
+ "name": "",
158
+ "type": "address"
159
+ },
160
+ {
161
+ "internalType": "uint24",
162
+ "name": "",
163
+ "type": "uint24"
164
+ }
165
+ ],
166
+ "name": "getPool",
167
+ "outputs": [
168
+ {
169
+ "internalType": "address",
170
+ "name": "",
171
+ "type": "address"
172
+ }
173
+ ],
174
+ "stateMutability": "view",
175
+ "type": "function"
176
+ },
177
+ {
178
+ "inputs": [],
179
+ "name": "owner",
180
+ "outputs": [
181
+ {
182
+ "internalType": "address",
183
+ "name": "",
184
+ "type": "address"
185
+ }
186
+ ],
187
+ "stateMutability": "view",
188
+ "type": "function"
189
+ },
190
+ {
191
+ "inputs": [],
192
+ "name": "parameters",
193
+ "outputs": [
194
+ {
195
+ "internalType": "address",
196
+ "name": "factory",
197
+ "type": "address"
198
+ },
199
+ {
200
+ "internalType": "address",
201
+ "name": "token0",
202
+ "type": "address"
203
+ },
204
+ {
205
+ "internalType": "address",
206
+ "name": "token1",
207
+ "type": "address"
208
+ },
209
+ {
210
+ "internalType": "uint24",
211
+ "name": "fee",
212
+ "type": "uint24"
213
+ },
214
+ {
215
+ "internalType": "int24",
216
+ "name": "tickSpacing",
217
+ "type": "int24"
218
+ }
219
+ ],
220
+ "stateMutability": "view",
221
+ "type": "function"
222
+ },
223
+ {
224
+ "inputs": [
225
+ {
226
+ "internalType": "address",
227
+ "name": "_owner",
228
+ "type": "address"
229
+ }
230
+ ],
231
+ "name": "setOwner",
232
+ "outputs": [],
233
+ "stateMutability": "nonpayable",
234
+ "type": "function"
235
+ }
236
+ ]
@@ -0,0 +1,443 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "components": [
6
+ {
7
+ "internalType": "address",
8
+ "name": "permit2",
9
+ "type": "address"
10
+ },
11
+ {
12
+ "internalType": "address",
13
+ "name": "weth9",
14
+ "type": "address"
15
+ },
16
+ {
17
+ "internalType": "address",
18
+ "name": "v2Factory",
19
+ "type": "address"
20
+ },
21
+ {
22
+ "internalType": "address",
23
+ "name": "v3Factory",
24
+ "type": "address"
25
+ },
26
+ {
27
+ "internalType": "bytes32",
28
+ "name": "pairInitCodeHash",
29
+ "type": "bytes32"
30
+ },
31
+ {
32
+ "internalType": "bytes32",
33
+ "name": "poolInitCodeHash",
34
+ "type": "bytes32"
35
+ },
36
+ {
37
+ "internalType": "address",
38
+ "name": "v4PoolManager",
39
+ "type": "address"
40
+ },
41
+ {
42
+ "internalType": "address",
43
+ "name": "v3NFTPositionManager",
44
+ "type": "address"
45
+ },
46
+ {
47
+ "internalType": "address",
48
+ "name": "v4PositionManager",
49
+ "type": "address"
50
+ }
51
+ ],
52
+ "internalType": "struct RouterParameters",
53
+ "name": "params",
54
+ "type": "tuple"
55
+ }
56
+ ],
57
+ "stateMutability": "nonpayable",
58
+ "type": "constructor"
59
+ },
60
+ {
61
+ "inputs": [],
62
+ "name": "BalanceTooLow",
63
+ "type": "error"
64
+ },
65
+ {
66
+ "inputs": [],
67
+ "name": "ContractLocked",
68
+ "type": "error"
69
+ },
70
+ {
71
+ "inputs": [
72
+ {
73
+ "internalType": "Currency",
74
+ "name": "currency",
75
+ "type": "address"
76
+ }
77
+ ],
78
+ "name": "DeltaNotNegative",
79
+ "type": "error"
80
+ },
81
+ {
82
+ "inputs": [
83
+ {
84
+ "internalType": "Currency",
85
+ "name": "currency",
86
+ "type": "address"
87
+ }
88
+ ],
89
+ "name": "DeltaNotPositive",
90
+ "type": "error"
91
+ },
92
+ {
93
+ "inputs": [],
94
+ "name": "ETHNotAccepted",
95
+ "type": "error"
96
+ },
97
+ {
98
+ "inputs": [
99
+ {
100
+ "internalType": "uint256",
101
+ "name": "commandIndex",
102
+ "type": "uint256"
103
+ },
104
+ {
105
+ "internalType": "bytes",
106
+ "name": "message",
107
+ "type": "bytes"
108
+ }
109
+ ],
110
+ "name": "ExecutionFailed",
111
+ "type": "error"
112
+ },
113
+ {
114
+ "inputs": [],
115
+ "name": "FromAddressIsNotOwner",
116
+ "type": "error"
117
+ },
118
+ {
119
+ "inputs": [],
120
+ "name": "InputLengthMismatch",
121
+ "type": "error"
122
+ },
123
+ {
124
+ "inputs": [],
125
+ "name": "InsufficientBalance",
126
+ "type": "error"
127
+ },
128
+ {
129
+ "inputs": [],
130
+ "name": "InsufficientETH",
131
+ "type": "error"
132
+ },
133
+ {
134
+ "inputs": [],
135
+ "name": "InsufficientToken",
136
+ "type": "error"
137
+ },
138
+ {
139
+ "inputs": [
140
+ {
141
+ "internalType": "bytes4",
142
+ "name": "action",
143
+ "type": "bytes4"
144
+ }
145
+ ],
146
+ "name": "InvalidAction",
147
+ "type": "error"
148
+ },
149
+ {
150
+ "inputs": [],
151
+ "name": "InvalidBips",
152
+ "type": "error"
153
+ },
154
+ {
155
+ "inputs": [
156
+ {
157
+ "internalType": "uint256",
158
+ "name": "commandType",
159
+ "type": "uint256"
160
+ }
161
+ ],
162
+ "name": "InvalidCommandType",
163
+ "type": "error"
164
+ },
165
+ {
166
+ "inputs": [],
167
+ "name": "InvalidEthSender",
168
+ "type": "error"
169
+ },
170
+ {
171
+ "inputs": [],
172
+ "name": "InvalidPath",
173
+ "type": "error"
174
+ },
175
+ {
176
+ "inputs": [],
177
+ "name": "InvalidReserves",
178
+ "type": "error"
179
+ },
180
+ {
181
+ "inputs": [],
182
+ "name": "LengthMismatch",
183
+ "type": "error"
184
+ },
185
+ {
186
+ "inputs": [
187
+ {
188
+ "internalType": "uint256",
189
+ "name": "tokenId",
190
+ "type": "uint256"
191
+ }
192
+ ],
193
+ "name": "NotAuthorizedForToken",
194
+ "type": "error"
195
+ },
196
+ {
197
+ "inputs": [],
198
+ "name": "NotPoolManager",
199
+ "type": "error"
200
+ },
201
+ {
202
+ "inputs": [],
203
+ "name": "OnlyMintAllowed",
204
+ "type": "error"
205
+ },
206
+ {
207
+ "inputs": [],
208
+ "name": "SliceOutOfBounds",
209
+ "type": "error"
210
+ },
211
+ {
212
+ "inputs": [],
213
+ "name": "TransactionDeadlinePassed",
214
+ "type": "error"
215
+ },
216
+ {
217
+ "inputs": [],
218
+ "name": "UnsafeCast",
219
+ "type": "error"
220
+ },
221
+ {
222
+ "inputs": [
223
+ {
224
+ "internalType": "uint256",
225
+ "name": "action",
226
+ "type": "uint256"
227
+ }
228
+ ],
229
+ "name": "UnsupportedAction",
230
+ "type": "error"
231
+ },
232
+ {
233
+ "inputs": [],
234
+ "name": "V2InvalidPath",
235
+ "type": "error"
236
+ },
237
+ {
238
+ "inputs": [],
239
+ "name": "V2TooLittleReceived",
240
+ "type": "error"
241
+ },
242
+ {
243
+ "inputs": [],
244
+ "name": "V2TooMuchRequested",
245
+ "type": "error"
246
+ },
247
+ {
248
+ "inputs": [],
249
+ "name": "V3InvalidAmountOut",
250
+ "type": "error"
251
+ },
252
+ {
253
+ "inputs": [],
254
+ "name": "V3InvalidCaller",
255
+ "type": "error"
256
+ },
257
+ {
258
+ "inputs": [],
259
+ "name": "V3InvalidSwap",
260
+ "type": "error"
261
+ },
262
+ {
263
+ "inputs": [],
264
+ "name": "V3TooLittleReceived",
265
+ "type": "error"
266
+ },
267
+ {
268
+ "inputs": [],
269
+ "name": "V3TooMuchRequested",
270
+ "type": "error"
271
+ },
272
+ {
273
+ "inputs": [
274
+ {
275
+ "internalType": "uint256",
276
+ "name": "minAmountOutReceived",
277
+ "type": "uint256"
278
+ },
279
+ {
280
+ "internalType": "uint256",
281
+ "name": "amountReceived",
282
+ "type": "uint256"
283
+ }
284
+ ],
285
+ "name": "V4TooLittleReceived",
286
+ "type": "error"
287
+ },
288
+ {
289
+ "inputs": [
290
+ {
291
+ "internalType": "uint256",
292
+ "name": "maxAmountInRequested",
293
+ "type": "uint256"
294
+ },
295
+ {
296
+ "internalType": "uint256",
297
+ "name": "amountRequested",
298
+ "type": "uint256"
299
+ }
300
+ ],
301
+ "name": "V4TooMuchRequested",
302
+ "type": "error"
303
+ },
304
+ {
305
+ "inputs": [],
306
+ "name": "V3_POSITION_MANAGER",
307
+ "outputs": [
308
+ {
309
+ "internalType": "contract INonfungiblePositionManager",
310
+ "name": "",
311
+ "type": "address"
312
+ }
313
+ ],
314
+ "stateMutability": "view",
315
+ "type": "function"
316
+ },
317
+ {
318
+ "inputs": [],
319
+ "name": "V4_POSITION_MANAGER",
320
+ "outputs": [
321
+ {
322
+ "internalType": "contract IPositionManager",
323
+ "name": "",
324
+ "type": "address"
325
+ }
326
+ ],
327
+ "stateMutability": "view",
328
+ "type": "function"
329
+ },
330
+ {
331
+ "inputs": [
332
+ {
333
+ "internalType": "bytes",
334
+ "name": "commands",
335
+ "type": "bytes"
336
+ },
337
+ {
338
+ "internalType": "bytes[]",
339
+ "name": "inputs",
340
+ "type": "bytes[]"
341
+ }
342
+ ],
343
+ "name": "execute",
344
+ "outputs": [],
345
+ "stateMutability": "payable",
346
+ "type": "function"
347
+ },
348
+ {
349
+ "inputs": [
350
+ {
351
+ "internalType": "bytes",
352
+ "name": "commands",
353
+ "type": "bytes"
354
+ },
355
+ {
356
+ "internalType": "bytes[]",
357
+ "name": "inputs",
358
+ "type": "bytes[]"
359
+ },
360
+ {
361
+ "internalType": "uint256",
362
+ "name": "deadline",
363
+ "type": "uint256"
364
+ }
365
+ ],
366
+ "name": "execute",
367
+ "outputs": [],
368
+ "stateMutability": "payable",
369
+ "type": "function"
370
+ },
371
+ {
372
+ "inputs": [],
373
+ "name": "msgSender",
374
+ "outputs": [
375
+ {
376
+ "internalType": "address",
377
+ "name": "",
378
+ "type": "address"
379
+ }
380
+ ],
381
+ "stateMutability": "view",
382
+ "type": "function"
383
+ },
384
+ {
385
+ "inputs": [],
386
+ "name": "poolManager",
387
+ "outputs": [
388
+ {
389
+ "internalType": "contract IPoolManager",
390
+ "name": "",
391
+ "type": "address"
392
+ }
393
+ ],
394
+ "stateMutability": "view",
395
+ "type": "function"
396
+ },
397
+ {
398
+ "inputs": [
399
+ {
400
+ "internalType": "int256",
401
+ "name": "amount0Delta",
402
+ "type": "int256"
403
+ },
404
+ {
405
+ "internalType": "int256",
406
+ "name": "amount1Delta",
407
+ "type": "int256"
408
+ },
409
+ {
410
+ "internalType": "bytes",
411
+ "name": "data",
412
+ "type": "bytes"
413
+ }
414
+ ],
415
+ "name": "uniswapV3SwapCallback",
416
+ "outputs": [],
417
+ "stateMutability": "nonpayable",
418
+ "type": "function"
419
+ },
420
+ {
421
+ "inputs": [
422
+ {
423
+ "internalType": "bytes",
424
+ "name": "data",
425
+ "type": "bytes"
426
+ }
427
+ ],
428
+ "name": "unlockCallback",
429
+ "outputs": [
430
+ {
431
+ "internalType": "bytes",
432
+ "name": "",
433
+ "type": "bytes"
434
+ }
435
+ ],
436
+ "stateMutability": "nonpayable",
437
+ "type": "function"
438
+ },
439
+ {
440
+ "stateMutability": "payable",
441
+ "type": "receive"
442
+ }
443
+ ]