timelock-sdk 0.0.19 → 0.0.21

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