timelock-sdk 0.0.19 → 0.0.20

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.
@@ -1 +1,1119 @@
1
- const e=[{type:`constructor`,inputs:[{name:`_pool`,type:`address`,internalType:`contract IUniswapV3Pool`},{name:`_owner`,type:`address`,internalType:`address`}],stateMutability:`nonpayable`},{type:`function`,name:`BORROW`,inputs:[],outputs:[{name:``,type:`uint8`,internalType:`uint8`}],stateMutability:`view`},{type:`function`,name:`BURN`,inputs:[],outputs:[{name:``,type:`uint8`,internalType:`uint8`}],stateMutability:`view`},{type:`function`,name:`MINT`,inputs:[],outputs:[{name:``,type:`uint8`,internalType:`uint8`}],stateMutability:`view`},{type:`function`,name:`MIN_DUST_THRESHOLD`,inputs:[],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`REPAY`,inputs:[],outputs:[{name:``,type:`uint8`,internalType:`uint8`}],stateMutability:`view`},{type:`function`,name:`blocks`,inputs:[{name:``,type:`int24`,internalType:`int24`}],outputs:[{name:`tickLower`,type:`int24`,internalType:`int24`},{name:`tickUpper`,type:`int24`,internalType:`int24`},{name:`prevTickLower`,type:`int24`,internalType:`int24`},{name:`totalLiquidity`,type:`uint128`,internalType:`uint128`},{name:`borrowedLiquidity`,type:`uint128`,internalType:`uint128`}],stateMutability:`view`},{type:`function`,name:`blocksCount`,inputs:[],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`borrow`,inputs:[{name:`tickLower`,type:`int24`,internalType:`int24`},{name:`tickUpper`,type:`int24`,internalType:`int24`},{name:`liquidity`,type:`uint128`,internalType:`uint128`},{name:`refTick`,type:`int24`,internalType:`int24`}],outputs:[{name:`amount0`,type:`uint256`,internalType:`uint256`},{name:`amount1`,type:`uint256`,internalType:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`borrowerWhitelist`,inputs:[{name:``,type:`address`,internalType:`address`}],outputs:[{name:``,type:`bool`,internalType:`bool`}],stateMutability:`view`},{type:`function`,name:`burn`,inputs:[{name:`tickLower`,type:`int24`,internalType:`int24`},{name:`tickUpper`,type:`int24`,internalType:`int24`},{name:`liquidity`,type:`uint128`,internalType:`uint128`},{name:`refTick`,type:`int24`,internalType:`int24`}],outputs:[{name:`amount0`,type:`uint256`,internalType:`uint256`},{name:`amount1`,type:`uint256`,internalType:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`collectFees`,inputs:[{name:`tickLower`,type:`int24`,internalType:`int24`},{name:`tickUpper`,type:`int24`,internalType:`int24`}],outputs:[{name:`totalAmount0`,type:`uint256`,internalType:`uint256`},{name:`totalAmount1`,type:`uint256`,internalType:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`getBlock`,inputs:[{name:`tickLower`,type:`int24`,internalType:`int24`},{name:`refTick`,type:`int24`,internalType:`int24`}],outputs:[{name:``,type:`tuple`,internalType:`struct TimelockVaultCore.LiquidityBlock`,components:[{name:`tickLower`,type:`int24`,internalType:`int24`},{name:`tickUpper`,type:`int24`,internalType:`int24`},{name:`prevTickLower`,type:`int24`,internalType:`int24`},{name:`totalLiquidity`,type:`uint128`,internalType:`uint128`},{name:`borrowedLiquidity`,type:`uint128`,internalType:`uint128`}]}],stateMutability:`view`},{type:`function`,name:`highestTick`,inputs:[],outputs:[{name:``,type:`int24`,internalType:`int24`}],stateMutability:`view`},{type:`function`,name:`lowestTick`,inputs:[],outputs:[{name:``,type:`int24`,internalType:`int24`}],stateMutability:`view`},{type:`function`,name:`mint`,inputs:[{name:`tickLower`,type:`int24`,internalType:`int24`},{name:`tickUpper`,type:`int24`,internalType:`int24`},{name:`liquidity`,type:`uint128`,internalType:`uint128`},{name:`refTick`,type:`int24`,internalType:`int24`}],outputs:[{name:`amount0`,type:`uint256`,internalType:`uint256`},{name:`amount1`,type:`uint256`,internalType:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`multicall`,inputs:[{name:`data`,type:`bytes[]`,internalType:`bytes[]`}],outputs:[{name:`results`,type:`bytes[]`,internalType:`bytes[]`}],stateMutability:`nonpayable`},{type:`function`,name:`owner`,inputs:[],outputs:[{name:``,type:`address`,internalType:`address`}],stateMutability:`view`},{type:`function`,name:`pool`,inputs:[],outputs:[{name:``,type:`address`,internalType:`contract IUniswapV3Pool`}],stateMutability:`view`},{type:`function`,name:`pool_`,inputs:[],outputs:[{name:``,type:`address`,internalType:`contract IUniswapV3Pool`}],stateMutability:`view`},{type:`function`,name:`renounceOwnership`,inputs:[],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`repay`,inputs:[{name:`tickLower`,type:`int24`,internalType:`int24`},{name:`tickUpper`,type:`int24`,internalType:`int24`},{name:`liquidity`,type:`uint128`,internalType:`uint128`},{name:`refTick`,type:`int24`,internalType:`int24`}],outputs:[{name:`amount0`,type:`uint256`,internalType:`uint256`},{name:`amount1`,type:`uint256`,internalType:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`tickSpacing`,inputs:[],outputs:[{name:``,type:`int24`,internalType:`int24`}],stateMutability:`view`},{type:`function`,name:`token0`,inputs:[],outputs:[{name:``,type:`address`,internalType:`contract IERC20`}],stateMutability:`view`},{type:`function`,name:`token1`,inputs:[],outputs:[{name:``,type:`address`,internalType:`contract IERC20`}],stateMutability:`view`},{type:`function`,name:`transferOwnership`,inputs:[{name:`newOwner`,type:`address`,internalType:`address`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`uniswapV3MintCallback`,inputs:[{name:`amount0`,type:`uint256`,internalType:`uint256`},{name:`amount1`,type:`uint256`,internalType:`uint256`},{name:`data`,type:`bytes`,internalType:`bytes`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`whitelistBorrower`,inputs:[{name:`borrower`,type:`address`,internalType:`address`},{name:`status`,type:`bool`,internalType:`bool`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`withdrawTokens`,inputs:[{name:`tokens`,type:`address[]`,internalType:`contract IERC20[]`}],outputs:[],stateMutability:`nonpayable`}],t=[{type:`function`,name:`burn`,inputs:[{name:`tickLower`,type:`int24`,internalType:`int24`},{name:`tickUpper`,type:`int24`,internalType:`int24`},{name:`amount`,type:`uint128`,internalType:`uint128`}],outputs:[{name:`amount0`,type:`uint256`,internalType:`uint256`},{name:`amount1`,type:`uint256`,internalType:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`collect`,inputs:[{name:`recipient`,type:`address`,internalType:`address`},{name:`tickLower`,type:`int24`,internalType:`int24`},{name:`tickUpper`,type:`int24`,internalType:`int24`},{name:`amount0Requested`,type:`uint128`,internalType:`uint128`},{name:`amount1Requested`,type:`uint128`,internalType:`uint128`}],outputs:[{name:`amount0`,type:`uint128`,internalType:`uint128`},{name:`amount1`,type:`uint128`,internalType:`uint128`}],stateMutability:`nonpayable`},{type:`function`,name:`collectProtocol`,inputs:[{name:`recipient`,type:`address`,internalType:`address`},{name:`amount0Requested`,type:`uint128`,internalType:`uint128`},{name:`amount1Requested`,type:`uint128`,internalType:`uint128`}],outputs:[{name:`amount0`,type:`uint128`,internalType:`uint128`},{name:`amount1`,type:`uint128`,internalType:`uint128`}],stateMutability:`nonpayable`},{type:`function`,name:`factory`,inputs:[],outputs:[{name:``,type:`address`,internalType:`address`}],stateMutability:`view`},{type:`function`,name:`fee`,inputs:[],outputs:[{name:``,type:`uint24`,internalType:`uint24`}],stateMutability:`view`},{type:`function`,name:`feeGrowthGlobal0X128`,inputs:[],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`feeGrowthGlobal1X128`,inputs:[],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`flash`,inputs:[{name:`recipient`,type:`address`,internalType:`address`},{name:`amount0`,type:`uint256`,internalType:`uint256`},{name:`amount1`,type:`uint256`,internalType:`uint256`},{name:`data`,type:`bytes`,internalType:`bytes`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`increaseObservationCardinalityNext`,inputs:[{name:`observationCardinalityNext`,type:`uint16`,internalType:`uint16`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`initialize`,inputs:[{name:`sqrtPriceX96`,type:`uint160`,internalType:`uint160`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`liquidity`,inputs:[],outputs:[{name:``,type:`uint128`,internalType:`uint128`}],stateMutability:`view`},{type:`function`,name:`maxLiquidityPerTick`,inputs:[],outputs:[{name:``,type:`uint128`,internalType:`uint128`}],stateMutability:`view`},{type:`function`,name:`mint`,inputs:[{name:`recipient`,type:`address`,internalType:`address`},{name:`tickLower`,type:`int24`,internalType:`int24`},{name:`tickUpper`,type:`int24`,internalType:`int24`},{name:`amount`,type:`uint128`,internalType:`uint128`},{name:`data`,type:`bytes`,internalType:`bytes`}],outputs:[{name:`amount0`,type:`uint256`,internalType:`uint256`},{name:`amount1`,type:`uint256`,internalType:`uint256`}],stateMutability:`nonpayable`},{type:`function`,name:`observations`,inputs:[{name:`index`,type:`uint256`,internalType:`uint256`}],outputs:[{name:`blockTimestamp`,type:`uint32`,internalType:`uint32`},{name:`tickCumulative`,type:`int56`,internalType:`int56`},{name:`secondsPerLiquidityCumulativeX128`,type:`uint160`,internalType:`uint160`},{name:`initialized`,type:`bool`,internalType:`bool`}],stateMutability:`view`},{type:`function`,name:`observe`,inputs:[{name:`secondsAgos`,type:`uint32[]`,internalType:`uint32[]`}],outputs:[{name:`tickCumulatives`,type:`int56[]`,internalType:`int56[]`},{name:`secondsPerLiquidityCumulativeX128s`,type:`uint160[]`,internalType:`uint160[]`}],stateMutability:`view`},{type:`function`,name:`positions`,inputs:[{name:`key`,type:`bytes32`,internalType:`bytes32`}],outputs:[{name:`liquidity`,type:`uint128`,internalType:`uint128`},{name:`feeGrowthInside0LastX128`,type:`uint256`,internalType:`uint256`},{name:`feeGrowthInside1LastX128`,type:`uint256`,internalType:`uint256`},{name:`tokensOwed0`,type:`uint128`,internalType:`uint128`},{name:`tokensOwed1`,type:`uint128`,internalType:`uint128`}],stateMutability:`view`},{type:`function`,name:`protocolFees`,inputs:[],outputs:[{name:`token0`,type:`uint128`,internalType:`uint128`},{name:`token1`,type:`uint128`,internalType:`uint128`}],stateMutability:`view`},{type:`function`,name:`setFeeProtocol`,inputs:[{name:`feeProtocol0`,type:`uint8`,internalType:`uint8`},{name:`feeProtocol1`,type:`uint8`,internalType:`uint8`}],outputs:[],stateMutability:`nonpayable`},{type:`function`,name:`slot0`,inputs:[],outputs:[{name:`sqrtPriceX96`,type:`uint160`,internalType:`uint160`},{name:`tick`,type:`int24`,internalType:`int24`},{name:`observationIndex`,type:`uint16`,internalType:`uint16`},{name:`observationCardinality`,type:`uint16`,internalType:`uint16`},{name:`observationCardinalityNext`,type:`uint16`,internalType:`uint16`},{name:`feeProtocol`,type:`uint8`,internalType:`uint8`},{name:`unlocked`,type:`bool`,internalType:`bool`}],stateMutability:`view`},{type:`function`,name:`snapshotCumulativesInside`,inputs:[{name:`tickLower`,type:`int24`,internalType:`int24`},{name:`tickUpper`,type:`int24`,internalType:`int24`}],outputs:[{name:`tickCumulativeInside`,type:`int56`,internalType:`int56`},{name:`secondsPerLiquidityInsideX128`,type:`uint160`,internalType:`uint160`},{name:`secondsInside`,type:`uint32`,internalType:`uint32`}],stateMutability:`view`},{type:`function`,name:`swap`,inputs:[{name:`recipient`,type:`address`,internalType:`address`},{name:`zeroForOne`,type:`bool`,internalType:`bool`},{name:`amountSpecified`,type:`int256`,internalType:`int256`},{name:`sqrtPriceLimitX96`,type:`uint160`,internalType:`uint160`},{name:`data`,type:`bytes`,internalType:`bytes`}],outputs:[{name:`amount0`,type:`int256`,internalType:`int256`},{name:`amount1`,type:`int256`,internalType:`int256`}],stateMutability:`nonpayable`},{type:`function`,name:`tickBitmap`,inputs:[{name:`wordPosition`,type:`int16`,internalType:`int16`}],outputs:[{name:``,type:`uint256`,internalType:`uint256`}],stateMutability:`view`},{type:`function`,name:`tickSpacing`,inputs:[],outputs:[{name:``,type:`int24`,internalType:`int24`}],stateMutability:`view`},{type:`function`,name:`ticks`,inputs:[{name:`tick`,type:`int24`,internalType:`int24`}],outputs:[{name:`liquidityGross`,type:`uint128`,internalType:`uint128`},{name:`liquidityNet`,type:`int128`,internalType:`int128`},{name:`feeGrowthOutside0X128`,type:`uint256`,internalType:`uint256`},{name:`feeGrowthOutside1X128`,type:`uint256`,internalType:`uint256`},{name:`tickCumulativeOutside`,type:`int56`,internalType:`int56`},{name:`secondsPerLiquidityOutsideX128`,type:`uint160`,internalType:`uint160`},{name:`secondsOutside`,type:`uint32`,internalType:`uint32`},{name:`initialized`,type:`bool`,internalType:`bool`}],stateMutability:`view`},{type:`function`,name:`token0`,inputs:[],outputs:[{name:``,type:`address`,internalType:`address`}],stateMutability:`view`},{type:`function`,name:`token1`,inputs:[],outputs:[{name:``,type:`address`,internalType:`address`}],stateMutability:`view`}];export{e as singleOwnerVaultAbi,t as uniswapV3PoolAbi};
1
+ //#region src/abis/singleOwnerVault.ts
2
+ const singleOwnerVaultAbi = [
3
+ {
4
+ type: "constructor",
5
+ inputs: [{
6
+ name: "_pool",
7
+ type: "address",
8
+ internalType: "contract IUniswapV3Pool"
9
+ }, {
10
+ name: "_owner",
11
+ type: "address",
12
+ internalType: "address"
13
+ }],
14
+ stateMutability: "nonpayable"
15
+ },
16
+ {
17
+ type: "function",
18
+ name: "BORROW",
19
+ inputs: [],
20
+ outputs: [{
21
+ name: "",
22
+ type: "uint8",
23
+ internalType: "uint8"
24
+ }],
25
+ stateMutability: "view"
26
+ },
27
+ {
28
+ type: "function",
29
+ name: "BURN",
30
+ inputs: [],
31
+ outputs: [{
32
+ name: "",
33
+ type: "uint8",
34
+ internalType: "uint8"
35
+ }],
36
+ stateMutability: "view"
37
+ },
38
+ {
39
+ type: "function",
40
+ name: "MINT",
41
+ inputs: [],
42
+ outputs: [{
43
+ name: "",
44
+ type: "uint8",
45
+ internalType: "uint8"
46
+ }],
47
+ stateMutability: "view"
48
+ },
49
+ {
50
+ type: "function",
51
+ name: "MIN_DUST_THRESHOLD",
52
+ inputs: [],
53
+ outputs: [{
54
+ name: "",
55
+ type: "uint256",
56
+ internalType: "uint256"
57
+ }],
58
+ stateMutability: "view"
59
+ },
60
+ {
61
+ type: "function",
62
+ name: "REPAY",
63
+ inputs: [],
64
+ outputs: [{
65
+ name: "",
66
+ type: "uint8",
67
+ internalType: "uint8"
68
+ }],
69
+ stateMutability: "view"
70
+ },
71
+ {
72
+ type: "function",
73
+ name: "blocks",
74
+ inputs: [{
75
+ name: "",
76
+ type: "int24",
77
+ internalType: "int24"
78
+ }],
79
+ outputs: [
80
+ {
81
+ name: "tickLower",
82
+ type: "int24",
83
+ internalType: "int24"
84
+ },
85
+ {
86
+ name: "tickUpper",
87
+ type: "int24",
88
+ internalType: "int24"
89
+ },
90
+ {
91
+ name: "prevTickLower",
92
+ type: "int24",
93
+ internalType: "int24"
94
+ },
95
+ {
96
+ name: "totalLiquidity",
97
+ type: "uint128",
98
+ internalType: "uint128"
99
+ },
100
+ {
101
+ name: "borrowedLiquidity",
102
+ type: "uint128",
103
+ internalType: "uint128"
104
+ }
105
+ ],
106
+ stateMutability: "view"
107
+ },
108
+ {
109
+ type: "function",
110
+ name: "blocksCount",
111
+ inputs: [],
112
+ outputs: [{
113
+ name: "",
114
+ type: "uint256",
115
+ internalType: "uint256"
116
+ }],
117
+ stateMutability: "view"
118
+ },
119
+ {
120
+ type: "function",
121
+ name: "borrow",
122
+ inputs: [
123
+ {
124
+ name: "tickLower",
125
+ type: "int24",
126
+ internalType: "int24"
127
+ },
128
+ {
129
+ name: "tickUpper",
130
+ type: "int24",
131
+ internalType: "int24"
132
+ },
133
+ {
134
+ name: "liquidity",
135
+ type: "uint128",
136
+ internalType: "uint128"
137
+ },
138
+ {
139
+ name: "refTick",
140
+ type: "int24",
141
+ internalType: "int24"
142
+ }
143
+ ],
144
+ outputs: [{
145
+ name: "amount0",
146
+ type: "uint256",
147
+ internalType: "uint256"
148
+ }, {
149
+ name: "amount1",
150
+ type: "uint256",
151
+ internalType: "uint256"
152
+ }],
153
+ stateMutability: "nonpayable"
154
+ },
155
+ {
156
+ type: "function",
157
+ name: "borrowerWhitelist",
158
+ inputs: [{
159
+ name: "",
160
+ type: "address",
161
+ internalType: "address"
162
+ }],
163
+ outputs: [{
164
+ name: "",
165
+ type: "bool",
166
+ internalType: "bool"
167
+ }],
168
+ stateMutability: "view"
169
+ },
170
+ {
171
+ type: "function",
172
+ name: "burn",
173
+ inputs: [
174
+ {
175
+ name: "tickLower",
176
+ type: "int24",
177
+ internalType: "int24"
178
+ },
179
+ {
180
+ name: "tickUpper",
181
+ type: "int24",
182
+ internalType: "int24"
183
+ },
184
+ {
185
+ name: "liquidity",
186
+ type: "uint128",
187
+ internalType: "uint128"
188
+ },
189
+ {
190
+ name: "refTick",
191
+ type: "int24",
192
+ internalType: "int24"
193
+ }
194
+ ],
195
+ outputs: [{
196
+ name: "amount0",
197
+ type: "uint256",
198
+ internalType: "uint256"
199
+ }, {
200
+ name: "amount1",
201
+ type: "uint256",
202
+ internalType: "uint256"
203
+ }],
204
+ stateMutability: "nonpayable"
205
+ },
206
+ {
207
+ type: "function",
208
+ name: "collectFees",
209
+ inputs: [{
210
+ name: "tickLower",
211
+ type: "int24",
212
+ internalType: "int24"
213
+ }, {
214
+ name: "tickUpper",
215
+ type: "int24",
216
+ internalType: "int24"
217
+ }],
218
+ outputs: [{
219
+ name: "totalAmount0",
220
+ type: "uint256",
221
+ internalType: "uint256"
222
+ }, {
223
+ name: "totalAmount1",
224
+ type: "uint256",
225
+ internalType: "uint256"
226
+ }],
227
+ stateMutability: "nonpayable"
228
+ },
229
+ {
230
+ type: "function",
231
+ name: "getBlock",
232
+ inputs: [{
233
+ name: "tickLower",
234
+ type: "int24",
235
+ internalType: "int24"
236
+ }, {
237
+ name: "refTick",
238
+ type: "int24",
239
+ internalType: "int24"
240
+ }],
241
+ outputs: [{
242
+ name: "",
243
+ type: "tuple",
244
+ internalType: "struct TimelockVaultCore.LiquidityBlock",
245
+ components: [
246
+ {
247
+ name: "tickLower",
248
+ type: "int24",
249
+ internalType: "int24"
250
+ },
251
+ {
252
+ name: "tickUpper",
253
+ type: "int24",
254
+ internalType: "int24"
255
+ },
256
+ {
257
+ name: "prevTickLower",
258
+ type: "int24",
259
+ internalType: "int24"
260
+ },
261
+ {
262
+ name: "totalLiquidity",
263
+ type: "uint128",
264
+ internalType: "uint128"
265
+ },
266
+ {
267
+ name: "borrowedLiquidity",
268
+ type: "uint128",
269
+ internalType: "uint128"
270
+ }
271
+ ]
272
+ }],
273
+ stateMutability: "view"
274
+ },
275
+ {
276
+ type: "function",
277
+ name: "highestTick",
278
+ inputs: [],
279
+ outputs: [{
280
+ name: "",
281
+ type: "int24",
282
+ internalType: "int24"
283
+ }],
284
+ stateMutability: "view"
285
+ },
286
+ {
287
+ type: "function",
288
+ name: "lowestTick",
289
+ inputs: [],
290
+ outputs: [{
291
+ name: "",
292
+ type: "int24",
293
+ internalType: "int24"
294
+ }],
295
+ stateMutability: "view"
296
+ },
297
+ {
298
+ type: "function",
299
+ name: "mint",
300
+ inputs: [
301
+ {
302
+ name: "tickLower",
303
+ type: "int24",
304
+ internalType: "int24"
305
+ },
306
+ {
307
+ name: "tickUpper",
308
+ type: "int24",
309
+ internalType: "int24"
310
+ },
311
+ {
312
+ name: "liquidity",
313
+ type: "uint128",
314
+ internalType: "uint128"
315
+ },
316
+ {
317
+ name: "refTick",
318
+ type: "int24",
319
+ internalType: "int24"
320
+ }
321
+ ],
322
+ outputs: [{
323
+ name: "amount0",
324
+ type: "uint256",
325
+ internalType: "uint256"
326
+ }, {
327
+ name: "amount1",
328
+ type: "uint256",
329
+ internalType: "uint256"
330
+ }],
331
+ stateMutability: "nonpayable"
332
+ },
333
+ {
334
+ type: "function",
335
+ name: "multicall",
336
+ inputs: [{
337
+ name: "data",
338
+ type: "bytes[]",
339
+ internalType: "bytes[]"
340
+ }],
341
+ outputs: [{
342
+ name: "results",
343
+ type: "bytes[]",
344
+ internalType: "bytes[]"
345
+ }],
346
+ stateMutability: "nonpayable"
347
+ },
348
+ {
349
+ type: "function",
350
+ name: "owner",
351
+ inputs: [],
352
+ outputs: [{
353
+ name: "",
354
+ type: "address",
355
+ internalType: "address"
356
+ }],
357
+ stateMutability: "view"
358
+ },
359
+ {
360
+ type: "function",
361
+ name: "pool",
362
+ inputs: [],
363
+ outputs: [{
364
+ name: "",
365
+ type: "address",
366
+ internalType: "contract IUniswapV3Pool"
367
+ }],
368
+ stateMutability: "view"
369
+ },
370
+ {
371
+ type: "function",
372
+ name: "pool_",
373
+ inputs: [],
374
+ outputs: [{
375
+ name: "",
376
+ type: "address",
377
+ internalType: "contract IUniswapV3Pool"
378
+ }],
379
+ stateMutability: "view"
380
+ },
381
+ {
382
+ type: "function",
383
+ name: "renounceOwnership",
384
+ inputs: [],
385
+ outputs: [],
386
+ stateMutability: "nonpayable"
387
+ },
388
+ {
389
+ type: "function",
390
+ name: "repay",
391
+ inputs: [
392
+ {
393
+ name: "tickLower",
394
+ type: "int24",
395
+ internalType: "int24"
396
+ },
397
+ {
398
+ name: "tickUpper",
399
+ type: "int24",
400
+ internalType: "int24"
401
+ },
402
+ {
403
+ name: "liquidity",
404
+ type: "uint128",
405
+ internalType: "uint128"
406
+ },
407
+ {
408
+ name: "refTick",
409
+ type: "int24",
410
+ internalType: "int24"
411
+ }
412
+ ],
413
+ outputs: [{
414
+ name: "amount0",
415
+ type: "uint256",
416
+ internalType: "uint256"
417
+ }, {
418
+ name: "amount1",
419
+ type: "uint256",
420
+ internalType: "uint256"
421
+ }],
422
+ stateMutability: "nonpayable"
423
+ },
424
+ {
425
+ type: "function",
426
+ name: "tickSpacing",
427
+ inputs: [],
428
+ outputs: [{
429
+ name: "",
430
+ type: "int24",
431
+ internalType: "int24"
432
+ }],
433
+ stateMutability: "view"
434
+ },
435
+ {
436
+ type: "function",
437
+ name: "token0",
438
+ inputs: [],
439
+ outputs: [{
440
+ name: "",
441
+ type: "address",
442
+ internalType: "contract IERC20"
443
+ }],
444
+ stateMutability: "view"
445
+ },
446
+ {
447
+ type: "function",
448
+ name: "token1",
449
+ inputs: [],
450
+ outputs: [{
451
+ name: "",
452
+ type: "address",
453
+ internalType: "contract IERC20"
454
+ }],
455
+ stateMutability: "view"
456
+ },
457
+ {
458
+ type: "function",
459
+ name: "transferOwnership",
460
+ inputs: [{
461
+ name: "newOwner",
462
+ type: "address",
463
+ internalType: "address"
464
+ }],
465
+ outputs: [],
466
+ stateMutability: "nonpayable"
467
+ },
468
+ {
469
+ type: "function",
470
+ name: "uniswapV3MintCallback",
471
+ inputs: [
472
+ {
473
+ name: "amount0",
474
+ type: "uint256",
475
+ internalType: "uint256"
476
+ },
477
+ {
478
+ name: "amount1",
479
+ type: "uint256",
480
+ internalType: "uint256"
481
+ },
482
+ {
483
+ name: "data",
484
+ type: "bytes",
485
+ internalType: "bytes"
486
+ }
487
+ ],
488
+ outputs: [],
489
+ stateMutability: "nonpayable"
490
+ },
491
+ {
492
+ type: "function",
493
+ name: "whitelistBorrower",
494
+ inputs: [{
495
+ name: "borrower",
496
+ type: "address",
497
+ internalType: "address"
498
+ }, {
499
+ name: "status",
500
+ type: "bool",
501
+ internalType: "bool"
502
+ }],
503
+ outputs: [],
504
+ stateMutability: "nonpayable"
505
+ },
506
+ {
507
+ type: "function",
508
+ name: "withdrawTokens",
509
+ inputs: [{
510
+ name: "tokens",
511
+ type: "address[]",
512
+ internalType: "contract IERC20[]"
513
+ }],
514
+ outputs: [],
515
+ stateMutability: "nonpayable"
516
+ }
517
+ ];
518
+
519
+ //#endregion
520
+ //#region src/abis/uniswapV3Pool.ts
521
+ const uniswapV3PoolAbi = [
522
+ {
523
+ type: "function",
524
+ name: "burn",
525
+ inputs: [
526
+ {
527
+ name: "tickLower",
528
+ type: "int24",
529
+ internalType: "int24"
530
+ },
531
+ {
532
+ name: "tickUpper",
533
+ type: "int24",
534
+ internalType: "int24"
535
+ },
536
+ {
537
+ name: "amount",
538
+ type: "uint128",
539
+ internalType: "uint128"
540
+ }
541
+ ],
542
+ outputs: [{
543
+ name: "amount0",
544
+ type: "uint256",
545
+ internalType: "uint256"
546
+ }, {
547
+ name: "amount1",
548
+ type: "uint256",
549
+ internalType: "uint256"
550
+ }],
551
+ stateMutability: "nonpayable"
552
+ },
553
+ {
554
+ type: "function",
555
+ name: "collect",
556
+ inputs: [
557
+ {
558
+ name: "recipient",
559
+ type: "address",
560
+ internalType: "address"
561
+ },
562
+ {
563
+ name: "tickLower",
564
+ type: "int24",
565
+ internalType: "int24"
566
+ },
567
+ {
568
+ name: "tickUpper",
569
+ type: "int24",
570
+ internalType: "int24"
571
+ },
572
+ {
573
+ name: "amount0Requested",
574
+ type: "uint128",
575
+ internalType: "uint128"
576
+ },
577
+ {
578
+ name: "amount1Requested",
579
+ type: "uint128",
580
+ internalType: "uint128"
581
+ }
582
+ ],
583
+ outputs: [{
584
+ name: "amount0",
585
+ type: "uint128",
586
+ internalType: "uint128"
587
+ }, {
588
+ name: "amount1",
589
+ type: "uint128",
590
+ internalType: "uint128"
591
+ }],
592
+ stateMutability: "nonpayable"
593
+ },
594
+ {
595
+ type: "function",
596
+ name: "collectProtocol",
597
+ inputs: [
598
+ {
599
+ name: "recipient",
600
+ type: "address",
601
+ internalType: "address"
602
+ },
603
+ {
604
+ name: "amount0Requested",
605
+ type: "uint128",
606
+ internalType: "uint128"
607
+ },
608
+ {
609
+ name: "amount1Requested",
610
+ type: "uint128",
611
+ internalType: "uint128"
612
+ }
613
+ ],
614
+ outputs: [{
615
+ name: "amount0",
616
+ type: "uint128",
617
+ internalType: "uint128"
618
+ }, {
619
+ name: "amount1",
620
+ type: "uint128",
621
+ internalType: "uint128"
622
+ }],
623
+ stateMutability: "nonpayable"
624
+ },
625
+ {
626
+ type: "function",
627
+ name: "factory",
628
+ inputs: [],
629
+ outputs: [{
630
+ name: "",
631
+ type: "address",
632
+ internalType: "address"
633
+ }],
634
+ stateMutability: "view"
635
+ },
636
+ {
637
+ type: "function",
638
+ name: "fee",
639
+ inputs: [],
640
+ outputs: [{
641
+ name: "",
642
+ type: "uint24",
643
+ internalType: "uint24"
644
+ }],
645
+ stateMutability: "view"
646
+ },
647
+ {
648
+ type: "function",
649
+ name: "feeGrowthGlobal0X128",
650
+ inputs: [],
651
+ outputs: [{
652
+ name: "",
653
+ type: "uint256",
654
+ internalType: "uint256"
655
+ }],
656
+ stateMutability: "view"
657
+ },
658
+ {
659
+ type: "function",
660
+ name: "feeGrowthGlobal1X128",
661
+ inputs: [],
662
+ outputs: [{
663
+ name: "",
664
+ type: "uint256",
665
+ internalType: "uint256"
666
+ }],
667
+ stateMutability: "view"
668
+ },
669
+ {
670
+ type: "function",
671
+ name: "flash",
672
+ inputs: [
673
+ {
674
+ name: "recipient",
675
+ type: "address",
676
+ internalType: "address"
677
+ },
678
+ {
679
+ name: "amount0",
680
+ type: "uint256",
681
+ internalType: "uint256"
682
+ },
683
+ {
684
+ name: "amount1",
685
+ type: "uint256",
686
+ internalType: "uint256"
687
+ },
688
+ {
689
+ name: "data",
690
+ type: "bytes",
691
+ internalType: "bytes"
692
+ }
693
+ ],
694
+ outputs: [],
695
+ stateMutability: "nonpayable"
696
+ },
697
+ {
698
+ type: "function",
699
+ name: "increaseObservationCardinalityNext",
700
+ inputs: [{
701
+ name: "observationCardinalityNext",
702
+ type: "uint16",
703
+ internalType: "uint16"
704
+ }],
705
+ outputs: [],
706
+ stateMutability: "nonpayable"
707
+ },
708
+ {
709
+ type: "function",
710
+ name: "initialize",
711
+ inputs: [{
712
+ name: "sqrtPriceX96",
713
+ type: "uint160",
714
+ internalType: "uint160"
715
+ }],
716
+ outputs: [],
717
+ stateMutability: "nonpayable"
718
+ },
719
+ {
720
+ type: "function",
721
+ name: "liquidity",
722
+ inputs: [],
723
+ outputs: [{
724
+ name: "",
725
+ type: "uint128",
726
+ internalType: "uint128"
727
+ }],
728
+ stateMutability: "view"
729
+ },
730
+ {
731
+ type: "function",
732
+ name: "maxLiquidityPerTick",
733
+ inputs: [],
734
+ outputs: [{
735
+ name: "",
736
+ type: "uint128",
737
+ internalType: "uint128"
738
+ }],
739
+ stateMutability: "view"
740
+ },
741
+ {
742
+ type: "function",
743
+ name: "mint",
744
+ inputs: [
745
+ {
746
+ name: "recipient",
747
+ type: "address",
748
+ internalType: "address"
749
+ },
750
+ {
751
+ name: "tickLower",
752
+ type: "int24",
753
+ internalType: "int24"
754
+ },
755
+ {
756
+ name: "tickUpper",
757
+ type: "int24",
758
+ internalType: "int24"
759
+ },
760
+ {
761
+ name: "amount",
762
+ type: "uint128",
763
+ internalType: "uint128"
764
+ },
765
+ {
766
+ name: "data",
767
+ type: "bytes",
768
+ internalType: "bytes"
769
+ }
770
+ ],
771
+ outputs: [{
772
+ name: "amount0",
773
+ type: "uint256",
774
+ internalType: "uint256"
775
+ }, {
776
+ name: "amount1",
777
+ type: "uint256",
778
+ internalType: "uint256"
779
+ }],
780
+ stateMutability: "nonpayable"
781
+ },
782
+ {
783
+ type: "function",
784
+ name: "observations",
785
+ inputs: [{
786
+ name: "index",
787
+ type: "uint256",
788
+ internalType: "uint256"
789
+ }],
790
+ outputs: [
791
+ {
792
+ name: "blockTimestamp",
793
+ type: "uint32",
794
+ internalType: "uint32"
795
+ },
796
+ {
797
+ name: "tickCumulative",
798
+ type: "int56",
799
+ internalType: "int56"
800
+ },
801
+ {
802
+ name: "secondsPerLiquidityCumulativeX128",
803
+ type: "uint160",
804
+ internalType: "uint160"
805
+ },
806
+ {
807
+ name: "initialized",
808
+ type: "bool",
809
+ internalType: "bool"
810
+ }
811
+ ],
812
+ stateMutability: "view"
813
+ },
814
+ {
815
+ type: "function",
816
+ name: "observe",
817
+ inputs: [{
818
+ name: "secondsAgos",
819
+ type: "uint32[]",
820
+ internalType: "uint32[]"
821
+ }],
822
+ outputs: [{
823
+ name: "tickCumulatives",
824
+ type: "int56[]",
825
+ internalType: "int56[]"
826
+ }, {
827
+ name: "secondsPerLiquidityCumulativeX128s",
828
+ type: "uint160[]",
829
+ internalType: "uint160[]"
830
+ }],
831
+ stateMutability: "view"
832
+ },
833
+ {
834
+ type: "function",
835
+ name: "positions",
836
+ inputs: [{
837
+ name: "key",
838
+ type: "bytes32",
839
+ internalType: "bytes32"
840
+ }],
841
+ outputs: [
842
+ {
843
+ name: "liquidity",
844
+ type: "uint128",
845
+ internalType: "uint128"
846
+ },
847
+ {
848
+ name: "feeGrowthInside0LastX128",
849
+ type: "uint256",
850
+ internalType: "uint256"
851
+ },
852
+ {
853
+ name: "feeGrowthInside1LastX128",
854
+ type: "uint256",
855
+ internalType: "uint256"
856
+ },
857
+ {
858
+ name: "tokensOwed0",
859
+ type: "uint128",
860
+ internalType: "uint128"
861
+ },
862
+ {
863
+ name: "tokensOwed1",
864
+ type: "uint128",
865
+ internalType: "uint128"
866
+ }
867
+ ],
868
+ stateMutability: "view"
869
+ },
870
+ {
871
+ type: "function",
872
+ name: "protocolFees",
873
+ inputs: [],
874
+ outputs: [{
875
+ name: "token0",
876
+ type: "uint128",
877
+ internalType: "uint128"
878
+ }, {
879
+ name: "token1",
880
+ type: "uint128",
881
+ internalType: "uint128"
882
+ }],
883
+ stateMutability: "view"
884
+ },
885
+ {
886
+ type: "function",
887
+ name: "setFeeProtocol",
888
+ inputs: [{
889
+ name: "feeProtocol0",
890
+ type: "uint8",
891
+ internalType: "uint8"
892
+ }, {
893
+ name: "feeProtocol1",
894
+ type: "uint8",
895
+ internalType: "uint8"
896
+ }],
897
+ outputs: [],
898
+ stateMutability: "nonpayable"
899
+ },
900
+ {
901
+ type: "function",
902
+ name: "slot0",
903
+ inputs: [],
904
+ outputs: [
905
+ {
906
+ name: "sqrtPriceX96",
907
+ type: "uint160",
908
+ internalType: "uint160"
909
+ },
910
+ {
911
+ name: "tick",
912
+ type: "int24",
913
+ internalType: "int24"
914
+ },
915
+ {
916
+ name: "observationIndex",
917
+ type: "uint16",
918
+ internalType: "uint16"
919
+ },
920
+ {
921
+ name: "observationCardinality",
922
+ type: "uint16",
923
+ internalType: "uint16"
924
+ },
925
+ {
926
+ name: "observationCardinalityNext",
927
+ type: "uint16",
928
+ internalType: "uint16"
929
+ },
930
+ {
931
+ name: "feeProtocol",
932
+ type: "uint8",
933
+ internalType: "uint8"
934
+ },
935
+ {
936
+ name: "unlocked",
937
+ type: "bool",
938
+ internalType: "bool"
939
+ }
940
+ ],
941
+ stateMutability: "view"
942
+ },
943
+ {
944
+ type: "function",
945
+ name: "snapshotCumulativesInside",
946
+ inputs: [{
947
+ name: "tickLower",
948
+ type: "int24",
949
+ internalType: "int24"
950
+ }, {
951
+ name: "tickUpper",
952
+ type: "int24",
953
+ internalType: "int24"
954
+ }],
955
+ outputs: [
956
+ {
957
+ name: "tickCumulativeInside",
958
+ type: "int56",
959
+ internalType: "int56"
960
+ },
961
+ {
962
+ name: "secondsPerLiquidityInsideX128",
963
+ type: "uint160",
964
+ internalType: "uint160"
965
+ },
966
+ {
967
+ name: "secondsInside",
968
+ type: "uint32",
969
+ internalType: "uint32"
970
+ }
971
+ ],
972
+ stateMutability: "view"
973
+ },
974
+ {
975
+ type: "function",
976
+ name: "swap",
977
+ inputs: [
978
+ {
979
+ name: "recipient",
980
+ type: "address",
981
+ internalType: "address"
982
+ },
983
+ {
984
+ name: "zeroForOne",
985
+ type: "bool",
986
+ internalType: "bool"
987
+ },
988
+ {
989
+ name: "amountSpecified",
990
+ type: "int256",
991
+ internalType: "int256"
992
+ },
993
+ {
994
+ name: "sqrtPriceLimitX96",
995
+ type: "uint160",
996
+ internalType: "uint160"
997
+ },
998
+ {
999
+ name: "data",
1000
+ type: "bytes",
1001
+ internalType: "bytes"
1002
+ }
1003
+ ],
1004
+ outputs: [{
1005
+ name: "amount0",
1006
+ type: "int256",
1007
+ internalType: "int256"
1008
+ }, {
1009
+ name: "amount1",
1010
+ type: "int256",
1011
+ internalType: "int256"
1012
+ }],
1013
+ stateMutability: "nonpayable"
1014
+ },
1015
+ {
1016
+ type: "function",
1017
+ name: "tickBitmap",
1018
+ inputs: [{
1019
+ name: "wordPosition",
1020
+ type: "int16",
1021
+ internalType: "int16"
1022
+ }],
1023
+ outputs: [{
1024
+ name: "",
1025
+ type: "uint256",
1026
+ internalType: "uint256"
1027
+ }],
1028
+ stateMutability: "view"
1029
+ },
1030
+ {
1031
+ type: "function",
1032
+ name: "tickSpacing",
1033
+ inputs: [],
1034
+ outputs: [{
1035
+ name: "",
1036
+ type: "int24",
1037
+ internalType: "int24"
1038
+ }],
1039
+ stateMutability: "view"
1040
+ },
1041
+ {
1042
+ type: "function",
1043
+ name: "ticks",
1044
+ inputs: [{
1045
+ name: "tick",
1046
+ type: "int24",
1047
+ internalType: "int24"
1048
+ }],
1049
+ outputs: [
1050
+ {
1051
+ name: "liquidityGross",
1052
+ type: "uint128",
1053
+ internalType: "uint128"
1054
+ },
1055
+ {
1056
+ name: "liquidityNet",
1057
+ type: "int128",
1058
+ internalType: "int128"
1059
+ },
1060
+ {
1061
+ name: "feeGrowthOutside0X128",
1062
+ type: "uint256",
1063
+ internalType: "uint256"
1064
+ },
1065
+ {
1066
+ name: "feeGrowthOutside1X128",
1067
+ type: "uint256",
1068
+ internalType: "uint256"
1069
+ },
1070
+ {
1071
+ name: "tickCumulativeOutside",
1072
+ type: "int56",
1073
+ internalType: "int56"
1074
+ },
1075
+ {
1076
+ name: "secondsPerLiquidityOutsideX128",
1077
+ type: "uint160",
1078
+ internalType: "uint160"
1079
+ },
1080
+ {
1081
+ name: "secondsOutside",
1082
+ type: "uint32",
1083
+ internalType: "uint32"
1084
+ },
1085
+ {
1086
+ name: "initialized",
1087
+ type: "bool",
1088
+ internalType: "bool"
1089
+ }
1090
+ ],
1091
+ stateMutability: "view"
1092
+ },
1093
+ {
1094
+ type: "function",
1095
+ name: "token0",
1096
+ inputs: [],
1097
+ outputs: [{
1098
+ name: "",
1099
+ type: "address",
1100
+ internalType: "address"
1101
+ }],
1102
+ stateMutability: "view"
1103
+ },
1104
+ {
1105
+ type: "function",
1106
+ name: "token1",
1107
+ inputs: [],
1108
+ outputs: [{
1109
+ name: "",
1110
+ type: "address",
1111
+ internalType: "address"
1112
+ }],
1113
+ stateMutability: "view"
1114
+ }
1115
+ ];
1116
+
1117
+ //#endregion
1118
+ export { singleOwnerVaultAbi, uniswapV3PoolAbi };
1119
+ //# sourceMappingURL=uniswapV3Pool-Copswrde.js.map