@pancakeswap/v3-sdk 2.0.0 → 3.0.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.
- package/dist/abi/MasterChefV3.d.ts +1222 -0
- package/dist/abi/MasterChefV3.d.ts.map +1 -0
- package/dist/abi/NonfungiblePositionManager.d.ts +962 -0
- package/dist/abi/NonfungiblePositionManager.d.ts.map +1 -0
- package/dist/abi/PeripheryPaymentsWithFee.d.ts +88 -0
- package/dist/abi/PeripheryPaymentsWithFee.d.ts.map +1 -0
- package/dist/abi/Quoter.d.ts +162 -0
- package/dist/abi/Quoter.d.ts.map +1 -0
- package/dist/abi/QuoterV2.d.ts +220 -0
- package/dist/abi/QuoterV2.d.ts.map +1 -0
- package/dist/abi/SelfPermit.d.ts +122 -0
- package/dist/abi/SelfPermit.d.ts.map +1 -0
- package/dist/abi/SwapRouter.d.ts +453 -0
- package/dist/abi/SwapRouter.d.ts.map +1 -0
- package/dist/abi/V3Staker.d.ts +547 -0
- package/dist/abi/V3Staker.d.ts.map +1 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/entities/pool.d.ts +2 -1
- package/dist/entities/pool.d.ts.map +1 -1
- package/dist/entities/tick.d.ts.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1447 -1359
- package/dist/index.mjs +1447 -1367
- package/dist/masterchefV3.d.ts +1228 -9
- package/dist/masterchefV3.d.ts.map +1 -1
- package/dist/multicall.d.ts +16 -3
- package/dist/multicall.d.ts.map +1 -1
- package/dist/nonfungiblePositionManager.d.ts +976 -10
- package/dist/nonfungiblePositionManager.d.ts.map +1 -1
- package/dist/payments.d.ts +95 -6
- package/dist/payments.d.ts.map +1 -1
- package/dist/quoter.d.ts +385 -4
- package/dist/quoter.d.ts.map +1 -1
- package/dist/selfPermit.d.ts +128 -8
- package/dist/selfPermit.d.ts.map +1 -1
- package/dist/staker.d.ts +549 -3
- package/dist/staker.d.ts.map +1 -1
- package/dist/swapRouter.d.ts +452 -2
- package/dist/swapRouter.d.ts.map +1 -1
- package/dist/utils/calldata.d.ts +4 -3
- package/dist/utils/calldata.d.ts.map +1 -1
- package/dist/utils/computePoolAddress.d.ts +4 -3
- package/dist/utils/computePoolAddress.d.ts.map +1 -1
- package/dist/utils/encodeRouteToPath.d.ts +3 -2
- package/dist/utils/encodeRouteToPath.d.ts.map +1 -1
- package/dist/utils/encodeSqrtRatioX96.d.ts +1 -1
- package/dist/utils/encodeSqrtRatioX96.d.ts.map +1 -1
- package/dist/utils/feeCalculator.d.ts +1 -1
- package/dist/utils/feeCalculator.d.ts.map +1 -1
- package/dist/utils/parseProtocolFees.d.ts +1 -1
- package/dist/utils/parseProtocolFees.d.ts.map +1 -1
- package/dist/utils/positionMath.d.ts.map +1 -1
- package/dist/utils/priceTickConversions.d.ts +1 -1
- package/dist/utils/priceTickConversions.d.ts.map +1 -1
- package/package.json +6 -15
package/dist/staker.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BigintIsh, Token } from '@pancakeswap/sdk';
|
|
2
|
-
import { Interface } from '@ethersproject/abi';
|
|
3
2
|
import { MethodParameters } from './utils/calldata';
|
|
4
3
|
import { Pool } from './entities';
|
|
5
4
|
export type FullWithdrawOptions = ClaimOptions & WithdrawOptions;
|
|
@@ -59,7 +58,554 @@ export interface WithdrawOptions {
|
|
|
59
58
|
data?: string;
|
|
60
59
|
}
|
|
61
60
|
export declare abstract class Staker {
|
|
62
|
-
static
|
|
61
|
+
static ABI: readonly [{
|
|
62
|
+
readonly inputs: readonly [{
|
|
63
|
+
readonly internalType: "contract IUniswapV3Factory";
|
|
64
|
+
readonly name: "_factory";
|
|
65
|
+
readonly type: "address";
|
|
66
|
+
}, {
|
|
67
|
+
readonly internalType: "contract INonfungiblePositionManager";
|
|
68
|
+
readonly name: "_nonfungiblePositionManager";
|
|
69
|
+
readonly type: "address";
|
|
70
|
+
}, {
|
|
71
|
+
readonly internalType: "uint256";
|
|
72
|
+
readonly name: "_maxIncentiveStartLeadTime";
|
|
73
|
+
readonly type: "uint256";
|
|
74
|
+
}, {
|
|
75
|
+
readonly internalType: "uint256";
|
|
76
|
+
readonly name: "_maxIncentiveDuration";
|
|
77
|
+
readonly type: "uint256";
|
|
78
|
+
}];
|
|
79
|
+
readonly stateMutability: "nonpayable";
|
|
80
|
+
readonly type: "constructor";
|
|
81
|
+
}, {
|
|
82
|
+
readonly anonymous: false;
|
|
83
|
+
readonly inputs: readonly [{
|
|
84
|
+
readonly indexed: true;
|
|
85
|
+
readonly internalType: "uint256";
|
|
86
|
+
readonly name: "tokenId";
|
|
87
|
+
readonly type: "uint256";
|
|
88
|
+
}, {
|
|
89
|
+
readonly indexed: true;
|
|
90
|
+
readonly internalType: "address";
|
|
91
|
+
readonly name: "oldOwner";
|
|
92
|
+
readonly type: "address";
|
|
93
|
+
}, {
|
|
94
|
+
readonly indexed: true;
|
|
95
|
+
readonly internalType: "address";
|
|
96
|
+
readonly name: "newOwner";
|
|
97
|
+
readonly type: "address";
|
|
98
|
+
}]; /**
|
|
99
|
+
* The id of the NFT
|
|
100
|
+
*/
|
|
101
|
+
readonly name: "DepositTransferred";
|
|
102
|
+
readonly type: "event";
|
|
103
|
+
}, {
|
|
104
|
+
readonly anonymous: false;
|
|
105
|
+
readonly inputs: readonly [{
|
|
106
|
+
readonly indexed: true;
|
|
107
|
+
readonly internalType: "contract IERC20Minimal";
|
|
108
|
+
readonly name: "rewardToken";
|
|
109
|
+
readonly type: "address";
|
|
110
|
+
}, {
|
|
111
|
+
readonly indexed: true;
|
|
112
|
+
readonly internalType: "contract IUniswapV3Pool";
|
|
113
|
+
readonly name: "pool";
|
|
114
|
+
readonly type: "address";
|
|
115
|
+
}, {
|
|
116
|
+
readonly indexed: false;
|
|
117
|
+
readonly internalType: "uint256";
|
|
118
|
+
readonly name: "startTime";
|
|
119
|
+
readonly type: "uint256";
|
|
120
|
+
}, {
|
|
121
|
+
readonly indexed: false;
|
|
122
|
+
readonly internalType: "uint256";
|
|
123
|
+
readonly name: "endTime";
|
|
124
|
+
readonly type: "uint256";
|
|
125
|
+
}, {
|
|
126
|
+
readonly indexed: false;
|
|
127
|
+
readonly internalType: "address";
|
|
128
|
+
readonly name: "refundee";
|
|
129
|
+
readonly type: "address";
|
|
130
|
+
}, {
|
|
131
|
+
readonly indexed: false;
|
|
132
|
+
readonly internalType: "uint256";
|
|
133
|
+
readonly name: "reward";
|
|
134
|
+
readonly type: "uint256";
|
|
135
|
+
}];
|
|
136
|
+
readonly name: "IncentiveCreated";
|
|
137
|
+
readonly type: "event";
|
|
138
|
+
}, {
|
|
139
|
+
readonly anonymous: false;
|
|
140
|
+
readonly inputs: readonly [{
|
|
141
|
+
readonly indexed: true;
|
|
142
|
+
readonly internalType: "bytes32";
|
|
143
|
+
readonly name: "incentiveId";
|
|
144
|
+
readonly type: "bytes32";
|
|
145
|
+
}, {
|
|
146
|
+
readonly indexed: false;
|
|
147
|
+
readonly internalType: "uint256";
|
|
148
|
+
readonly name: "refund";
|
|
149
|
+
readonly type: "uint256";
|
|
150
|
+
}];
|
|
151
|
+
readonly name: "IncentiveEnded";
|
|
152
|
+
readonly type: "event";
|
|
153
|
+
}, {
|
|
154
|
+
readonly anonymous: false;
|
|
155
|
+
readonly inputs: readonly [{
|
|
156
|
+
readonly indexed: true;
|
|
157
|
+
readonly internalType: "address";
|
|
158
|
+
readonly name: "to";
|
|
159
|
+
readonly type: "address";
|
|
160
|
+
}, {
|
|
161
|
+
readonly indexed: false;
|
|
162
|
+
readonly internalType: "uint256";
|
|
163
|
+
readonly name: "reward";
|
|
164
|
+
readonly type: "uint256";
|
|
165
|
+
}];
|
|
166
|
+
readonly name: "RewardClaimed";
|
|
167
|
+
readonly type: "event";
|
|
168
|
+
}, {
|
|
169
|
+
readonly anonymous: false;
|
|
170
|
+
readonly inputs: readonly [{
|
|
171
|
+
readonly indexed: true;
|
|
172
|
+
readonly internalType: "uint256";
|
|
173
|
+
readonly name: "tokenId";
|
|
174
|
+
readonly type: "uint256";
|
|
175
|
+
}, {
|
|
176
|
+
readonly indexed: true;
|
|
177
|
+
readonly internalType: "bytes32";
|
|
178
|
+
readonly name: "incentiveId";
|
|
179
|
+
readonly type: "bytes32";
|
|
180
|
+
}, {
|
|
181
|
+
readonly indexed: false;
|
|
182
|
+
readonly internalType: "uint128";
|
|
183
|
+
readonly name: "liquidity";
|
|
184
|
+
readonly type: "uint128";
|
|
185
|
+
}];
|
|
186
|
+
readonly name: "TokenStaked";
|
|
187
|
+
readonly type: "event";
|
|
188
|
+
}, {
|
|
189
|
+
readonly anonymous: false;
|
|
190
|
+
readonly inputs: readonly [{
|
|
191
|
+
readonly indexed: true;
|
|
192
|
+
readonly internalType: "uint256";
|
|
193
|
+
readonly name: "tokenId";
|
|
194
|
+
readonly type: "uint256";
|
|
195
|
+
}, {
|
|
196
|
+
readonly indexed: true;
|
|
197
|
+
readonly internalType: "bytes32";
|
|
198
|
+
readonly name: "incentiveId";
|
|
199
|
+
readonly type: "bytes32";
|
|
200
|
+
}];
|
|
201
|
+
readonly name: "TokenUnstaked";
|
|
202
|
+
readonly type: "event";
|
|
203
|
+
}, {
|
|
204
|
+
readonly inputs: readonly [{
|
|
205
|
+
readonly internalType: "contract IERC20Minimal";
|
|
206
|
+
readonly name: "rewardToken";
|
|
207
|
+
readonly type: "address";
|
|
208
|
+
}, {
|
|
209
|
+
readonly internalType: "address";
|
|
210
|
+
readonly name: "to";
|
|
211
|
+
readonly type: "address";
|
|
212
|
+
}, {
|
|
213
|
+
readonly internalType: "uint256";
|
|
214
|
+
readonly name: "amountRequested";
|
|
215
|
+
readonly type: "uint256";
|
|
216
|
+
}];
|
|
217
|
+
readonly name: "claimReward";
|
|
218
|
+
readonly outputs: readonly [{
|
|
219
|
+
readonly internalType: "uint256";
|
|
220
|
+
readonly name: "reward";
|
|
221
|
+
readonly type: "uint256";
|
|
222
|
+
}];
|
|
223
|
+
readonly stateMutability: "nonpayable";
|
|
224
|
+
readonly type: "function";
|
|
225
|
+
}, {
|
|
226
|
+
readonly inputs: readonly [{
|
|
227
|
+
readonly components: readonly [{
|
|
228
|
+
readonly internalType: "contract IERC20Minimal";
|
|
229
|
+
readonly name: "rewardToken";
|
|
230
|
+
readonly type: "address";
|
|
231
|
+
}, {
|
|
232
|
+
readonly internalType: "contract IUniswapV3Pool";
|
|
233
|
+
readonly name: "pool";
|
|
234
|
+
readonly type: "address";
|
|
235
|
+
}, {
|
|
236
|
+
readonly internalType: "uint256";
|
|
237
|
+
readonly name: "startTime";
|
|
238
|
+
readonly type: "uint256";
|
|
239
|
+
}, {
|
|
240
|
+
readonly internalType: "uint256";
|
|
241
|
+
readonly name: "endTime";
|
|
242
|
+
readonly type: "uint256";
|
|
243
|
+
}, {
|
|
244
|
+
readonly internalType: "address";
|
|
245
|
+
readonly name: "refundee";
|
|
246
|
+
readonly type: "address";
|
|
247
|
+
}];
|
|
248
|
+
readonly internalType: "struct IUniswapV3Staker.IncentiveKey";
|
|
249
|
+
readonly name: "key";
|
|
250
|
+
readonly type: "tuple";
|
|
251
|
+
}, {
|
|
252
|
+
readonly internalType: "uint256";
|
|
253
|
+
readonly name: "reward";
|
|
254
|
+
readonly type: "uint256";
|
|
255
|
+
}];
|
|
256
|
+
readonly name: "createIncentive";
|
|
257
|
+
readonly outputs: readonly [];
|
|
258
|
+
readonly stateMutability: "nonpayable";
|
|
259
|
+
readonly type: "function";
|
|
260
|
+
}, {
|
|
261
|
+
readonly inputs: readonly [{
|
|
262
|
+
readonly internalType: "uint256";
|
|
263
|
+
readonly name: "";
|
|
264
|
+
readonly type: "uint256";
|
|
265
|
+
}];
|
|
266
|
+
readonly name: "deposits";
|
|
267
|
+
readonly outputs: readonly [{
|
|
268
|
+
readonly internalType: "address";
|
|
269
|
+
readonly name: "owner";
|
|
270
|
+
readonly type: "address";
|
|
271
|
+
}, {
|
|
272
|
+
readonly internalType: "uint48";
|
|
273
|
+
readonly name: "numberOfStakes";
|
|
274
|
+
readonly type: "uint48";
|
|
275
|
+
}, {
|
|
276
|
+
readonly internalType: "int24";
|
|
277
|
+
readonly name: "tickLower";
|
|
278
|
+
readonly type: "int24";
|
|
279
|
+
}, {
|
|
280
|
+
readonly internalType: "int24";
|
|
281
|
+
readonly name: "tickUpper";
|
|
282
|
+
readonly type: "int24";
|
|
283
|
+
}];
|
|
284
|
+
readonly stateMutability: "view";
|
|
285
|
+
readonly type: "function";
|
|
286
|
+
}, {
|
|
287
|
+
readonly inputs: readonly [{
|
|
288
|
+
readonly components: readonly [{
|
|
289
|
+
readonly internalType: "contract IERC20Minimal";
|
|
290
|
+
readonly name: "rewardToken";
|
|
291
|
+
readonly type: "address";
|
|
292
|
+
}, {
|
|
293
|
+
readonly internalType: "contract IUniswapV3Pool";
|
|
294
|
+
readonly name: "pool";
|
|
295
|
+
readonly type: "address";
|
|
296
|
+
}, {
|
|
297
|
+
readonly internalType: "uint256";
|
|
298
|
+
readonly name: "startTime";
|
|
299
|
+
readonly type: "uint256";
|
|
300
|
+
}, {
|
|
301
|
+
readonly internalType: "uint256";
|
|
302
|
+
readonly name: "endTime";
|
|
303
|
+
readonly type: "uint256";
|
|
304
|
+
}, {
|
|
305
|
+
readonly internalType: "address";
|
|
306
|
+
readonly name: "refundee";
|
|
307
|
+
readonly type: "address";
|
|
308
|
+
}];
|
|
309
|
+
readonly internalType: "struct IUniswapV3Staker.IncentiveKey";
|
|
310
|
+
readonly name: "key";
|
|
311
|
+
readonly type: "tuple";
|
|
312
|
+
}];
|
|
313
|
+
readonly name: "endIncentive";
|
|
314
|
+
readonly outputs: readonly [{
|
|
315
|
+
readonly internalType: "uint256";
|
|
316
|
+
readonly name: "refund";
|
|
317
|
+
readonly type: "uint256";
|
|
318
|
+
}];
|
|
319
|
+
readonly stateMutability: "nonpayable";
|
|
320
|
+
readonly type: "function";
|
|
321
|
+
}, {
|
|
322
|
+
readonly inputs: readonly [];
|
|
323
|
+
readonly name: "factory";
|
|
324
|
+
readonly outputs: readonly [{
|
|
325
|
+
readonly internalType: "contract IUniswapV3Factory";
|
|
326
|
+
readonly name: "";
|
|
327
|
+
readonly type: "address";
|
|
328
|
+
}];
|
|
329
|
+
readonly stateMutability: "view";
|
|
330
|
+
readonly type: "function";
|
|
331
|
+
}, {
|
|
332
|
+
readonly inputs: readonly [{
|
|
333
|
+
readonly components: readonly [{
|
|
334
|
+
readonly internalType: "contract IERC20Minimal";
|
|
335
|
+
readonly name: "rewardToken";
|
|
336
|
+
readonly type: "address";
|
|
337
|
+
}, {
|
|
338
|
+
readonly internalType: "contract IUniswapV3Pool";
|
|
339
|
+
readonly name: "pool";
|
|
340
|
+
readonly type: "address";
|
|
341
|
+
}, {
|
|
342
|
+
readonly internalType: "uint256";
|
|
343
|
+
readonly name: "startTime";
|
|
344
|
+
readonly type: "uint256";
|
|
345
|
+
}, {
|
|
346
|
+
readonly internalType: "uint256";
|
|
347
|
+
readonly name: "endTime";
|
|
348
|
+
readonly type: "uint256";
|
|
349
|
+
}, {
|
|
350
|
+
readonly internalType: "address";
|
|
351
|
+
readonly name: "refundee";
|
|
352
|
+
readonly type: "address";
|
|
353
|
+
}];
|
|
354
|
+
readonly internalType: "struct IUniswapV3Staker.IncentiveKey";
|
|
355
|
+
readonly name: "key";
|
|
356
|
+
readonly type: "tuple";
|
|
357
|
+
}, {
|
|
358
|
+
readonly internalType: "uint256";
|
|
359
|
+
readonly name: "tokenId";
|
|
360
|
+
readonly type: "uint256";
|
|
361
|
+
}];
|
|
362
|
+
readonly name: "getRewardInfo";
|
|
363
|
+
readonly outputs: readonly [{
|
|
364
|
+
readonly internalType: "uint256";
|
|
365
|
+
readonly name: "reward";
|
|
366
|
+
readonly type: "uint256";
|
|
367
|
+
}, {
|
|
368
|
+
readonly internalType: "uint160";
|
|
369
|
+
readonly name: "secondsInsideX128";
|
|
370
|
+
readonly type: "uint160";
|
|
371
|
+
}];
|
|
372
|
+
readonly stateMutability: "view";
|
|
373
|
+
readonly type: "function";
|
|
374
|
+
}, {
|
|
375
|
+
readonly inputs: readonly [{
|
|
376
|
+
readonly internalType: "bytes32";
|
|
377
|
+
readonly name: "";
|
|
378
|
+
readonly type: "bytes32";
|
|
379
|
+
}];
|
|
380
|
+
readonly name: "incentives";
|
|
381
|
+
readonly outputs: readonly [{
|
|
382
|
+
readonly internalType: "uint256";
|
|
383
|
+
readonly name: "totalRewardUnclaimed";
|
|
384
|
+
readonly type: "uint256";
|
|
385
|
+
}, {
|
|
386
|
+
readonly internalType: "uint160";
|
|
387
|
+
readonly name: "totalSecondsClaimedX128";
|
|
388
|
+
readonly type: "uint160";
|
|
389
|
+
}, {
|
|
390
|
+
readonly internalType: "uint96";
|
|
391
|
+
readonly name: "numberOfStakes";
|
|
392
|
+
readonly type: "uint96";
|
|
393
|
+
}];
|
|
394
|
+
readonly stateMutability: "view";
|
|
395
|
+
readonly type: "function";
|
|
396
|
+
}, {
|
|
397
|
+
readonly inputs: readonly [];
|
|
398
|
+
readonly name: "maxIncentiveDuration";
|
|
399
|
+
readonly outputs: readonly [{
|
|
400
|
+
readonly internalType: "uint256";
|
|
401
|
+
readonly name: "";
|
|
402
|
+
readonly type: "uint256";
|
|
403
|
+
}];
|
|
404
|
+
readonly stateMutability: "view";
|
|
405
|
+
readonly type: "function";
|
|
406
|
+
}, {
|
|
407
|
+
readonly inputs: readonly [];
|
|
408
|
+
readonly name: "maxIncentiveStartLeadTime";
|
|
409
|
+
readonly outputs: readonly [{
|
|
410
|
+
readonly internalType: "uint256";
|
|
411
|
+
readonly name: "";
|
|
412
|
+
readonly type: "uint256";
|
|
413
|
+
}];
|
|
414
|
+
readonly stateMutability: "view";
|
|
415
|
+
readonly type: "function";
|
|
416
|
+
}, {
|
|
417
|
+
readonly inputs: readonly [{
|
|
418
|
+
readonly internalType: "bytes[]";
|
|
419
|
+
readonly name: "data";
|
|
420
|
+
readonly type: "bytes[]";
|
|
421
|
+
}];
|
|
422
|
+
readonly name: "multicall";
|
|
423
|
+
readonly outputs: readonly [{
|
|
424
|
+
readonly internalType: "bytes[]";
|
|
425
|
+
readonly name: "results";
|
|
426
|
+
readonly type: "bytes[]";
|
|
427
|
+
}];
|
|
428
|
+
readonly stateMutability: "payable";
|
|
429
|
+
readonly type: "function";
|
|
430
|
+
}, {
|
|
431
|
+
readonly inputs: readonly [];
|
|
432
|
+
readonly name: "nonfungiblePositionManager";
|
|
433
|
+
readonly outputs: readonly [{
|
|
434
|
+
readonly internalType: "contract INonfungiblePositionManager";
|
|
435
|
+
readonly name: "";
|
|
436
|
+
readonly type: "address";
|
|
437
|
+
}];
|
|
438
|
+
readonly stateMutability: "view";
|
|
439
|
+
readonly type: "function";
|
|
440
|
+
}, {
|
|
441
|
+
readonly inputs: readonly [{
|
|
442
|
+
readonly internalType: "address";
|
|
443
|
+
readonly name: "";
|
|
444
|
+
readonly type: "address";
|
|
445
|
+
}, {
|
|
446
|
+
readonly internalType: "address";
|
|
447
|
+
readonly name: "from";
|
|
448
|
+
readonly type: "address";
|
|
449
|
+
}, {
|
|
450
|
+
readonly internalType: "uint256";
|
|
451
|
+
readonly name: "tokenId";
|
|
452
|
+
readonly type: "uint256";
|
|
453
|
+
}, {
|
|
454
|
+
readonly internalType: "bytes";
|
|
455
|
+
readonly name: "data";
|
|
456
|
+
readonly type: "bytes";
|
|
457
|
+
}];
|
|
458
|
+
readonly name: "onERC721Received";
|
|
459
|
+
readonly outputs: readonly [{
|
|
460
|
+
readonly internalType: "bytes4";
|
|
461
|
+
readonly name: "";
|
|
462
|
+
readonly type: "bytes4";
|
|
463
|
+
}];
|
|
464
|
+
readonly stateMutability: "nonpayable";
|
|
465
|
+
readonly type: "function";
|
|
466
|
+
}, {
|
|
467
|
+
readonly inputs: readonly [{
|
|
468
|
+
readonly internalType: "contract IERC20Minimal";
|
|
469
|
+
readonly name: "";
|
|
470
|
+
readonly type: "address";
|
|
471
|
+
}, {
|
|
472
|
+
readonly internalType: "address";
|
|
473
|
+
readonly name: "";
|
|
474
|
+
readonly type: "address";
|
|
475
|
+
}];
|
|
476
|
+
readonly name: "rewards";
|
|
477
|
+
readonly outputs: readonly [{
|
|
478
|
+
readonly internalType: "uint256";
|
|
479
|
+
readonly name: "";
|
|
480
|
+
readonly type: "uint256";
|
|
481
|
+
}];
|
|
482
|
+
readonly stateMutability: "view";
|
|
483
|
+
readonly type: "function";
|
|
484
|
+
}, {
|
|
485
|
+
readonly inputs: readonly [{
|
|
486
|
+
readonly components: readonly [{
|
|
487
|
+
readonly internalType: "contract IERC20Minimal";
|
|
488
|
+
readonly name: "rewardToken";
|
|
489
|
+
readonly type: "address";
|
|
490
|
+
}, {
|
|
491
|
+
readonly internalType: "contract IUniswapV3Pool";
|
|
492
|
+
readonly name: "pool";
|
|
493
|
+
readonly type: "address";
|
|
494
|
+
}, {
|
|
495
|
+
readonly internalType: "uint256";
|
|
496
|
+
readonly name: "startTime";
|
|
497
|
+
readonly type: "uint256";
|
|
498
|
+
}, {
|
|
499
|
+
readonly internalType: "uint256";
|
|
500
|
+
readonly name: "endTime";
|
|
501
|
+
readonly type: "uint256";
|
|
502
|
+
}, {
|
|
503
|
+
readonly internalType: "address";
|
|
504
|
+
readonly name: "refundee";
|
|
505
|
+
readonly type: "address";
|
|
506
|
+
}];
|
|
507
|
+
readonly internalType: "struct IUniswapV3Staker.IncentiveKey";
|
|
508
|
+
readonly name: "key";
|
|
509
|
+
readonly type: "tuple";
|
|
510
|
+
}, {
|
|
511
|
+
readonly internalType: "uint256";
|
|
512
|
+
readonly name: "tokenId";
|
|
513
|
+
readonly type: "uint256";
|
|
514
|
+
}];
|
|
515
|
+
readonly name: "stakeToken";
|
|
516
|
+
readonly outputs: readonly [];
|
|
517
|
+
readonly stateMutability: "nonpayable";
|
|
518
|
+
readonly type: "function";
|
|
519
|
+
}, {
|
|
520
|
+
readonly inputs: readonly [{
|
|
521
|
+
readonly internalType: "uint256";
|
|
522
|
+
readonly name: "tokenId";
|
|
523
|
+
readonly type: "uint256";
|
|
524
|
+
}, {
|
|
525
|
+
readonly internalType: "bytes32";
|
|
526
|
+
readonly name: "incentiveId";
|
|
527
|
+
readonly type: "bytes32";
|
|
528
|
+
}];
|
|
529
|
+
readonly name: "stakes";
|
|
530
|
+
readonly outputs: readonly [{
|
|
531
|
+
readonly internalType: "uint160";
|
|
532
|
+
readonly name: "secondsPerLiquidityInsideInitialX128";
|
|
533
|
+
readonly type: "uint160";
|
|
534
|
+
}, {
|
|
535
|
+
readonly internalType: "uint128";
|
|
536
|
+
readonly name: "liquidity";
|
|
537
|
+
readonly type: "uint128";
|
|
538
|
+
}];
|
|
539
|
+
readonly stateMutability: "view";
|
|
540
|
+
readonly type: "function";
|
|
541
|
+
}, {
|
|
542
|
+
readonly inputs: readonly [{
|
|
543
|
+
readonly internalType: "uint256";
|
|
544
|
+
readonly name: "tokenId";
|
|
545
|
+
readonly type: "uint256";
|
|
546
|
+
}, {
|
|
547
|
+
readonly internalType: "address";
|
|
548
|
+
readonly name: "to";
|
|
549
|
+
readonly type: "address";
|
|
550
|
+
}];
|
|
551
|
+
readonly name: "transferDeposit";
|
|
552
|
+
readonly outputs: readonly [];
|
|
553
|
+
readonly stateMutability: "nonpayable";
|
|
554
|
+
readonly type: "function";
|
|
555
|
+
}, {
|
|
556
|
+
readonly inputs: readonly [{
|
|
557
|
+
readonly components: readonly [{
|
|
558
|
+
readonly internalType: "contract IERC20Minimal";
|
|
559
|
+
readonly name: "rewardToken";
|
|
560
|
+
readonly type: "address";
|
|
561
|
+
}, {
|
|
562
|
+
readonly internalType: "contract IUniswapV3Pool";
|
|
563
|
+
readonly name: "pool";
|
|
564
|
+
readonly type: "address";
|
|
565
|
+
}, {
|
|
566
|
+
readonly internalType: "uint256";
|
|
567
|
+
readonly name: "startTime";
|
|
568
|
+
readonly type: "uint256";
|
|
569
|
+
}, {
|
|
570
|
+
readonly internalType: "uint256";
|
|
571
|
+
readonly name: "endTime";
|
|
572
|
+
readonly type: "uint256";
|
|
573
|
+
}, {
|
|
574
|
+
readonly internalType: "address";
|
|
575
|
+
readonly name: "refundee";
|
|
576
|
+
readonly type: "address";
|
|
577
|
+
}];
|
|
578
|
+
readonly internalType: "struct IUniswapV3Staker.IncentiveKey";
|
|
579
|
+
readonly name: "key";
|
|
580
|
+
readonly type: "tuple";
|
|
581
|
+
}, {
|
|
582
|
+
readonly internalType: "uint256";
|
|
583
|
+
readonly name: "tokenId";
|
|
584
|
+
readonly type: "uint256";
|
|
585
|
+
}];
|
|
586
|
+
readonly name: "unstakeToken";
|
|
587
|
+
readonly outputs: readonly [];
|
|
588
|
+
readonly stateMutability: "nonpayable";
|
|
589
|
+
readonly type: "function";
|
|
590
|
+
}, {
|
|
591
|
+
readonly inputs: readonly [{
|
|
592
|
+
readonly internalType: "uint256";
|
|
593
|
+
readonly name: "tokenId";
|
|
594
|
+
readonly type: "uint256";
|
|
595
|
+
}, {
|
|
596
|
+
readonly internalType: "address";
|
|
597
|
+
readonly name: "to";
|
|
598
|
+
readonly type: "address";
|
|
599
|
+
}, {
|
|
600
|
+
readonly internalType: "bytes";
|
|
601
|
+
readonly name: "data";
|
|
602
|
+
readonly type: "bytes";
|
|
603
|
+
}];
|
|
604
|
+
readonly name: "withdrawToken";
|
|
605
|
+
readonly outputs: readonly [];
|
|
606
|
+
readonly stateMutability: "nonpayable";
|
|
607
|
+
readonly type: "function";
|
|
608
|
+
}];
|
|
63
609
|
protected constructor();
|
|
64
610
|
private static INCENTIVE_KEY_ABI;
|
|
65
611
|
/**
|
|
@@ -95,7 +641,7 @@ export declare abstract class Staker {
|
|
|
95
641
|
/**
|
|
96
642
|
*
|
|
97
643
|
* @param incentiveKey An `IncentiveKey` which represents a unique staking program.
|
|
98
|
-
* @returns An encoded IncentiveKey to be read by
|
|
644
|
+
* @returns An encoded IncentiveKey to be read by viem
|
|
99
645
|
*/
|
|
100
646
|
private static _encodeIncentiveKey;
|
|
101
647
|
}
|
package/dist/staker.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"staker.d.ts","sourceRoot":"","sources":["../src/staker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAA2B,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"staker.d.ts","sourceRoot":"","sources":["../src/staker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAA2B,MAAM,kBAAkB,CAAA;AAG5E,OAAO,EAAE,gBAAgB,EAAS,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAGjC,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAAG,eAAe,CAAA;AAChE;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,WAAW,EAAE,KAAK,CAAA;IAClB;;OAEG;IACH,IAAI,EAAE,IAAI,CAAA;IACV;;OAEG;IACH,SAAS,EAAE,SAAS,CAAA;IACpB;;OAEG;IACH,OAAO,EAAE,SAAS,CAAA;IAClB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,OAAO,EAAE,SAAS,CAAA;IAElB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;CACnB;AACD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,8BAAsB,MAAM;IAC1B,OAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA/BjB;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6B4B;IAE/B,SAAS;IAET,OAAO,CAAC,MAAM,CAAC,iBAAiB,CACkE;IAElG;;;;;OAKG;IACH,OAAO,CAAC,MAAM,CAAC,WAAW;IAqB1B;;;;;;;;OAQG;WACW,cAAc,CAAC,aAAa,EAAE,YAAY,GAAG,YAAY,EAAE,EAAE,OAAO,EAAE,YAAY,GAAG,gBAAgB;IAwBnH;;;;;OAKG;WACW,aAAa,CACzB,aAAa,EAAE,YAAY,GAAG,YAAY,EAAE,EAC5C,eAAe,EAAE,mBAAmB,GACnC,gBAAgB;IA6BnB;;;;OAIG;WACW,aAAa,CAAC,aAAa,EAAE,YAAY,GAAG,YAAY,EAAE,GAAG,MAAM;IAmBjF;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,mBAAmB;CAWnC"}
|