@merkl/contracts 0.1.103 → 0.2.0

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,423 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import { Contract, utils } from "ethers";
5
+ const _abi = [
6
+ {
7
+ inputs: [
8
+ {
9
+ internalType: "address",
10
+ name: "_evc",
11
+ type: "address",
12
+ },
13
+ {
14
+ internalType: "address",
15
+ name: "_positionManager",
16
+ type: "address",
17
+ },
18
+ {
19
+ internalType: "address",
20
+ name: "_weth",
21
+ type: "address",
22
+ },
23
+ ],
24
+ stateMutability: "nonpayable",
25
+ type: "constructor",
26
+ },
27
+ {
28
+ anonymous: false,
29
+ inputs: [
30
+ {
31
+ indexed: true,
32
+ internalType: "address",
33
+ name: "uniswapV4Wrapper",
34
+ type: "address",
35
+ },
36
+ {
37
+ indexed: true,
38
+ internalType: "address",
39
+ name: "fixedRateOracle",
40
+ type: "address",
41
+ },
42
+ {
43
+ indexed: true,
44
+ internalType: "PoolId",
45
+ name: "poolId",
46
+ type: "bytes32",
47
+ },
48
+ {
49
+ indexed: false,
50
+ internalType: "address",
51
+ name: "oracle",
52
+ type: "address",
53
+ },
54
+ {
55
+ indexed: false,
56
+ internalType: "address",
57
+ name: "unitOfAccount",
58
+ type: "address",
59
+ },
60
+ {
61
+ components: [
62
+ {
63
+ internalType: "Currency",
64
+ name: "currency0",
65
+ type: "address",
66
+ },
67
+ {
68
+ internalType: "Currency",
69
+ name: "currency1",
70
+ type: "address",
71
+ },
72
+ {
73
+ internalType: "uint24",
74
+ name: "fee",
75
+ type: "uint24",
76
+ },
77
+ {
78
+ internalType: "int24",
79
+ name: "tickSpacing",
80
+ type: "int24",
81
+ },
82
+ {
83
+ internalType: "contract IHooks",
84
+ name: "hooks",
85
+ type: "address",
86
+ },
87
+ ],
88
+ indexed: false,
89
+ internalType: "struct PoolKey",
90
+ name: "poolKey",
91
+ type: "tuple",
92
+ },
93
+ ],
94
+ name: "UniswapV4WrapperCreated",
95
+ type: "event",
96
+ },
97
+ {
98
+ inputs: [
99
+ {
100
+ internalType: "address",
101
+ name: "oracle",
102
+ type: "address",
103
+ },
104
+ {
105
+ internalType: "address",
106
+ name: "unitOfAccount",
107
+ type: "address",
108
+ },
109
+ {
110
+ components: [
111
+ {
112
+ internalType: "Currency",
113
+ name: "currency0",
114
+ type: "address",
115
+ },
116
+ {
117
+ internalType: "Currency",
118
+ name: "currency1",
119
+ type: "address",
120
+ },
121
+ {
122
+ internalType: "uint24",
123
+ name: "fee",
124
+ type: "uint24",
125
+ },
126
+ {
127
+ internalType: "int24",
128
+ name: "tickSpacing",
129
+ type: "int24",
130
+ },
131
+ {
132
+ internalType: "contract IHooks",
133
+ name: "hooks",
134
+ type: "address",
135
+ },
136
+ ],
137
+ internalType: "struct PoolKey",
138
+ name: "poolKey",
139
+ type: "tuple",
140
+ },
141
+ ],
142
+ name: "createUniswapV4Wrapper",
143
+ outputs: [
144
+ {
145
+ internalType: "address",
146
+ name: "uniswapV4Wrapper",
147
+ type: "address",
148
+ },
149
+ {
150
+ internalType: "address",
151
+ name: "fixedRateOracle",
152
+ type: "address",
153
+ },
154
+ ],
155
+ stateMutability: "nonpayable",
156
+ type: "function",
157
+ },
158
+ {
159
+ inputs: [],
160
+ name: "evc",
161
+ outputs: [
162
+ {
163
+ internalType: "address",
164
+ name: "",
165
+ type: "address",
166
+ },
167
+ ],
168
+ stateMutability: "view",
169
+ type: "function",
170
+ },
171
+ {
172
+ inputs: [
173
+ {
174
+ internalType: "address",
175
+ name: "uniswapWrapper",
176
+ type: "address",
177
+ },
178
+ {
179
+ internalType: "address",
180
+ name: "unitOfAccount",
181
+ type: "address",
182
+ },
183
+ ],
184
+ name: "getFixedRateOracleAddress",
185
+ outputs: [
186
+ {
187
+ internalType: "address",
188
+ name: "",
189
+ type: "address",
190
+ },
191
+ ],
192
+ stateMutability: "view",
193
+ type: "function",
194
+ },
195
+ {
196
+ inputs: [
197
+ {
198
+ internalType: "address",
199
+ name: "uniswapWrapper",
200
+ type: "address",
201
+ },
202
+ ],
203
+ name: "getFixedRateOracleAddress",
204
+ outputs: [
205
+ {
206
+ internalType: "address",
207
+ name: "",
208
+ type: "address",
209
+ },
210
+ ],
211
+ stateMutability: "view",
212
+ type: "function",
213
+ },
214
+ {
215
+ inputs: [
216
+ {
217
+ internalType: "address",
218
+ name: "uniswapWrapper",
219
+ type: "address",
220
+ },
221
+ {
222
+ internalType: "address",
223
+ name: "unitOfAccount",
224
+ type: "address",
225
+ },
226
+ ],
227
+ name: "getFixedRateOracleBytecode",
228
+ outputs: [
229
+ {
230
+ internalType: "bytes",
231
+ name: "",
232
+ type: "bytes",
233
+ },
234
+ ],
235
+ stateMutability: "view",
236
+ type: "function",
237
+ },
238
+ {
239
+ inputs: [
240
+ {
241
+ internalType: "address",
242
+ name: "oracle",
243
+ type: "address",
244
+ },
245
+ {
246
+ internalType: "address",
247
+ name: "unitOfAccount",
248
+ type: "address",
249
+ },
250
+ {
251
+ components: [
252
+ {
253
+ internalType: "Currency",
254
+ name: "currency0",
255
+ type: "address",
256
+ },
257
+ {
258
+ internalType: "Currency",
259
+ name: "currency1",
260
+ type: "address",
261
+ },
262
+ {
263
+ internalType: "uint24",
264
+ name: "fee",
265
+ type: "uint24",
266
+ },
267
+ {
268
+ internalType: "int24",
269
+ name: "tickSpacing",
270
+ type: "int24",
271
+ },
272
+ {
273
+ internalType: "contract IHooks",
274
+ name: "hooks",
275
+ type: "address",
276
+ },
277
+ ],
278
+ internalType: "struct PoolKey",
279
+ name: "poolKey",
280
+ type: "tuple",
281
+ },
282
+ ],
283
+ name: "getUniswapV4WrapperAddress",
284
+ outputs: [
285
+ {
286
+ internalType: "address",
287
+ name: "",
288
+ type: "address",
289
+ },
290
+ ],
291
+ stateMutability: "view",
292
+ type: "function",
293
+ },
294
+ {
295
+ inputs: [
296
+ {
297
+ internalType: "address",
298
+ name: "oracle",
299
+ type: "address",
300
+ },
301
+ {
302
+ internalType: "address",
303
+ name: "unitOfAccount",
304
+ type: "address",
305
+ },
306
+ {
307
+ components: [
308
+ {
309
+ internalType: "Currency",
310
+ name: "currency0",
311
+ type: "address",
312
+ },
313
+ {
314
+ internalType: "Currency",
315
+ name: "currency1",
316
+ type: "address",
317
+ },
318
+ {
319
+ internalType: "uint24",
320
+ name: "fee",
321
+ type: "uint24",
322
+ },
323
+ {
324
+ internalType: "int24",
325
+ name: "tickSpacing",
326
+ type: "int24",
327
+ },
328
+ {
329
+ internalType: "contract IHooks",
330
+ name: "hooks",
331
+ type: "address",
332
+ },
333
+ ],
334
+ internalType: "struct PoolKey",
335
+ name: "poolKey",
336
+ type: "tuple",
337
+ },
338
+ ],
339
+ name: "getUniswapV4WrapperBytecode",
340
+ outputs: [
341
+ {
342
+ internalType: "bytes",
343
+ name: "",
344
+ type: "bytes",
345
+ },
346
+ ],
347
+ stateMutability: "view",
348
+ type: "function",
349
+ },
350
+ {
351
+ inputs: [
352
+ {
353
+ internalType: "address",
354
+ name: "fixedRateOracleToCheck",
355
+ type: "address",
356
+ },
357
+ ],
358
+ name: "isFixedRateOracleValid",
359
+ outputs: [
360
+ {
361
+ internalType: "bool",
362
+ name: "",
363
+ type: "bool",
364
+ },
365
+ ],
366
+ stateMutability: "view",
367
+ type: "function",
368
+ },
369
+ {
370
+ inputs: [
371
+ {
372
+ internalType: "contract UniswapV4Wrapper",
373
+ name: "uniswapV4WrapperToCheck",
374
+ type: "address",
375
+ },
376
+ ],
377
+ name: "isUniswapV4WrapperValid",
378
+ outputs: [
379
+ {
380
+ internalType: "bool",
381
+ name: "",
382
+ type: "bool",
383
+ },
384
+ ],
385
+ stateMutability: "view",
386
+ type: "function",
387
+ },
388
+ {
389
+ inputs: [],
390
+ name: "positionManager",
391
+ outputs: [
392
+ {
393
+ internalType: "address",
394
+ name: "",
395
+ type: "address",
396
+ },
397
+ ],
398
+ stateMutability: "view",
399
+ type: "function",
400
+ },
401
+ {
402
+ inputs: [],
403
+ name: "weth",
404
+ outputs: [
405
+ {
406
+ internalType: "address",
407
+ name: "",
408
+ type: "address",
409
+ },
410
+ ],
411
+ stateMutability: "view",
412
+ type: "function",
413
+ },
414
+ ];
415
+ export class VIIUniswapV4WrapperFactory__factory {
416
+ static abi = _abi;
417
+ static createInterface() {
418
+ return new utils.Interface(_abi);
419
+ }
420
+ static connect(address, signerOrProvider) {
421
+ return new Contract(address, _abi, signerOrProvider);
422
+ }
423
+ }