@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.
Files changed (56) hide show
  1. package/dist/abi/MasterChefV3.d.ts +1222 -0
  2. package/dist/abi/MasterChefV3.d.ts.map +1 -0
  3. package/dist/abi/NonfungiblePositionManager.d.ts +962 -0
  4. package/dist/abi/NonfungiblePositionManager.d.ts.map +1 -0
  5. package/dist/abi/PeripheryPaymentsWithFee.d.ts +88 -0
  6. package/dist/abi/PeripheryPaymentsWithFee.d.ts.map +1 -0
  7. package/dist/abi/Quoter.d.ts +162 -0
  8. package/dist/abi/Quoter.d.ts.map +1 -0
  9. package/dist/abi/QuoterV2.d.ts +220 -0
  10. package/dist/abi/QuoterV2.d.ts.map +1 -0
  11. package/dist/abi/SelfPermit.d.ts +122 -0
  12. package/dist/abi/SelfPermit.d.ts.map +1 -0
  13. package/dist/abi/SwapRouter.d.ts +453 -0
  14. package/dist/abi/SwapRouter.d.ts.map +1 -0
  15. package/dist/abi/V3Staker.d.ts +547 -0
  16. package/dist/abi/V3Staker.d.ts.map +1 -0
  17. package/dist/constants.d.ts.map +1 -1
  18. package/dist/entities/pool.d.ts +2 -1
  19. package/dist/entities/pool.d.ts.map +1 -1
  20. package/dist/entities/tick.d.ts.map +1 -1
  21. package/dist/index.d.ts +8 -0
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +1447 -1359
  24. package/dist/index.mjs +1447 -1367
  25. package/dist/masterchefV3.d.ts +1228 -9
  26. package/dist/masterchefV3.d.ts.map +1 -1
  27. package/dist/multicall.d.ts +16 -3
  28. package/dist/multicall.d.ts.map +1 -1
  29. package/dist/nonfungiblePositionManager.d.ts +976 -10
  30. package/dist/nonfungiblePositionManager.d.ts.map +1 -1
  31. package/dist/payments.d.ts +95 -6
  32. package/dist/payments.d.ts.map +1 -1
  33. package/dist/quoter.d.ts +385 -4
  34. package/dist/quoter.d.ts.map +1 -1
  35. package/dist/selfPermit.d.ts +128 -8
  36. package/dist/selfPermit.d.ts.map +1 -1
  37. package/dist/staker.d.ts +549 -3
  38. package/dist/staker.d.ts.map +1 -1
  39. package/dist/swapRouter.d.ts +452 -2
  40. package/dist/swapRouter.d.ts.map +1 -1
  41. package/dist/utils/calldata.d.ts +4 -3
  42. package/dist/utils/calldata.d.ts.map +1 -1
  43. package/dist/utils/computePoolAddress.d.ts +4 -3
  44. package/dist/utils/computePoolAddress.d.ts.map +1 -1
  45. package/dist/utils/encodeRouteToPath.d.ts +3 -2
  46. package/dist/utils/encodeRouteToPath.d.ts.map +1 -1
  47. package/dist/utils/encodeSqrtRatioX96.d.ts +1 -1
  48. package/dist/utils/encodeSqrtRatioX96.d.ts.map +1 -1
  49. package/dist/utils/feeCalculator.d.ts +1 -1
  50. package/dist/utils/feeCalculator.d.ts.map +1 -1
  51. package/dist/utils/parseProtocolFees.d.ts +1 -1
  52. package/dist/utils/parseProtocolFees.d.ts.map +1 -1
  53. package/dist/utils/positionMath.d.ts.map +1 -1
  54. package/dist/utils/priceTickConversions.d.ts +1 -1
  55. package/dist/utils/priceTickConversions.d.ts.map +1 -1
  56. package/package.json +6 -15
@@ -0,0 +1,547 @@
1
+ export declare const v3StakerABI: readonly [{
2
+ readonly inputs: readonly [{
3
+ readonly internalType: "contract IUniswapV3Factory";
4
+ readonly name: "_factory";
5
+ readonly type: "address";
6
+ }, {
7
+ readonly internalType: "contract INonfungiblePositionManager";
8
+ readonly name: "_nonfungiblePositionManager";
9
+ readonly type: "address";
10
+ }, {
11
+ readonly internalType: "uint256";
12
+ readonly name: "_maxIncentiveStartLeadTime";
13
+ readonly type: "uint256";
14
+ }, {
15
+ readonly internalType: "uint256";
16
+ readonly name: "_maxIncentiveDuration";
17
+ readonly type: "uint256";
18
+ }];
19
+ readonly stateMutability: "nonpayable";
20
+ readonly type: "constructor";
21
+ }, {
22
+ readonly anonymous: false;
23
+ readonly inputs: readonly [{
24
+ readonly indexed: true;
25
+ readonly internalType: "uint256";
26
+ readonly name: "tokenId";
27
+ readonly type: "uint256";
28
+ }, {
29
+ readonly indexed: true;
30
+ readonly internalType: "address";
31
+ readonly name: "oldOwner";
32
+ readonly type: "address";
33
+ }, {
34
+ readonly indexed: true;
35
+ readonly internalType: "address";
36
+ readonly name: "newOwner";
37
+ readonly type: "address";
38
+ }];
39
+ readonly name: "DepositTransferred";
40
+ readonly type: "event";
41
+ }, {
42
+ readonly anonymous: false;
43
+ readonly inputs: readonly [{
44
+ readonly indexed: true;
45
+ readonly internalType: "contract IERC20Minimal";
46
+ readonly name: "rewardToken";
47
+ readonly type: "address";
48
+ }, {
49
+ readonly indexed: true;
50
+ readonly internalType: "contract IUniswapV3Pool";
51
+ readonly name: "pool";
52
+ readonly type: "address";
53
+ }, {
54
+ readonly indexed: false;
55
+ readonly internalType: "uint256";
56
+ readonly name: "startTime";
57
+ readonly type: "uint256";
58
+ }, {
59
+ readonly indexed: false;
60
+ readonly internalType: "uint256";
61
+ readonly name: "endTime";
62
+ readonly type: "uint256";
63
+ }, {
64
+ readonly indexed: false;
65
+ readonly internalType: "address";
66
+ readonly name: "refundee";
67
+ readonly type: "address";
68
+ }, {
69
+ readonly indexed: false;
70
+ readonly internalType: "uint256";
71
+ readonly name: "reward";
72
+ readonly type: "uint256";
73
+ }];
74
+ readonly name: "IncentiveCreated";
75
+ readonly type: "event";
76
+ }, {
77
+ readonly anonymous: false;
78
+ readonly inputs: readonly [{
79
+ readonly indexed: true;
80
+ readonly internalType: "bytes32";
81
+ readonly name: "incentiveId";
82
+ readonly type: "bytes32";
83
+ }, {
84
+ readonly indexed: false;
85
+ readonly internalType: "uint256";
86
+ readonly name: "refund";
87
+ readonly type: "uint256";
88
+ }];
89
+ readonly name: "IncentiveEnded";
90
+ readonly type: "event";
91
+ }, {
92
+ readonly anonymous: false;
93
+ readonly inputs: readonly [{
94
+ readonly indexed: true;
95
+ readonly internalType: "address";
96
+ readonly name: "to";
97
+ readonly type: "address";
98
+ }, {
99
+ readonly indexed: false;
100
+ readonly internalType: "uint256";
101
+ readonly name: "reward";
102
+ readonly type: "uint256";
103
+ }];
104
+ readonly name: "RewardClaimed";
105
+ readonly type: "event";
106
+ }, {
107
+ readonly anonymous: false;
108
+ readonly inputs: readonly [{
109
+ readonly indexed: true;
110
+ readonly internalType: "uint256";
111
+ readonly name: "tokenId";
112
+ readonly type: "uint256";
113
+ }, {
114
+ readonly indexed: true;
115
+ readonly internalType: "bytes32";
116
+ readonly name: "incentiveId";
117
+ readonly type: "bytes32";
118
+ }, {
119
+ readonly indexed: false;
120
+ readonly internalType: "uint128";
121
+ readonly name: "liquidity";
122
+ readonly type: "uint128";
123
+ }];
124
+ readonly name: "TokenStaked";
125
+ readonly type: "event";
126
+ }, {
127
+ readonly anonymous: false;
128
+ readonly inputs: readonly [{
129
+ readonly indexed: true;
130
+ readonly internalType: "uint256";
131
+ readonly name: "tokenId";
132
+ readonly type: "uint256";
133
+ }, {
134
+ readonly indexed: true;
135
+ readonly internalType: "bytes32";
136
+ readonly name: "incentiveId";
137
+ readonly type: "bytes32";
138
+ }];
139
+ readonly name: "TokenUnstaked";
140
+ readonly type: "event";
141
+ }, {
142
+ readonly inputs: readonly [{
143
+ readonly internalType: "contract IERC20Minimal";
144
+ readonly name: "rewardToken";
145
+ readonly type: "address";
146
+ }, {
147
+ readonly internalType: "address";
148
+ readonly name: "to";
149
+ readonly type: "address";
150
+ }, {
151
+ readonly internalType: "uint256";
152
+ readonly name: "amountRequested";
153
+ readonly type: "uint256";
154
+ }];
155
+ readonly name: "claimReward";
156
+ readonly outputs: readonly [{
157
+ readonly internalType: "uint256";
158
+ readonly name: "reward";
159
+ readonly type: "uint256";
160
+ }];
161
+ readonly stateMutability: "nonpayable";
162
+ readonly type: "function";
163
+ }, {
164
+ readonly inputs: readonly [{
165
+ readonly components: readonly [{
166
+ readonly internalType: "contract IERC20Minimal";
167
+ readonly name: "rewardToken";
168
+ readonly type: "address";
169
+ }, {
170
+ readonly internalType: "contract IUniswapV3Pool";
171
+ readonly name: "pool";
172
+ readonly type: "address";
173
+ }, {
174
+ readonly internalType: "uint256";
175
+ readonly name: "startTime";
176
+ readonly type: "uint256";
177
+ }, {
178
+ readonly internalType: "uint256";
179
+ readonly name: "endTime";
180
+ readonly type: "uint256";
181
+ }, {
182
+ readonly internalType: "address";
183
+ readonly name: "refundee";
184
+ readonly type: "address";
185
+ }];
186
+ readonly internalType: "struct IUniswapV3Staker.IncentiveKey";
187
+ readonly name: "key";
188
+ readonly type: "tuple";
189
+ }, {
190
+ readonly internalType: "uint256";
191
+ readonly name: "reward";
192
+ readonly type: "uint256";
193
+ }];
194
+ readonly name: "createIncentive";
195
+ readonly outputs: readonly [];
196
+ readonly stateMutability: "nonpayable";
197
+ readonly type: "function";
198
+ }, {
199
+ readonly inputs: readonly [{
200
+ readonly internalType: "uint256";
201
+ readonly name: "";
202
+ readonly type: "uint256";
203
+ }];
204
+ readonly name: "deposits";
205
+ readonly outputs: readonly [{
206
+ readonly internalType: "address";
207
+ readonly name: "owner";
208
+ readonly type: "address";
209
+ }, {
210
+ readonly internalType: "uint48";
211
+ readonly name: "numberOfStakes";
212
+ readonly type: "uint48";
213
+ }, {
214
+ readonly internalType: "int24";
215
+ readonly name: "tickLower";
216
+ readonly type: "int24";
217
+ }, {
218
+ readonly internalType: "int24";
219
+ readonly name: "tickUpper";
220
+ readonly type: "int24";
221
+ }];
222
+ readonly stateMutability: "view";
223
+ readonly type: "function";
224
+ }, {
225
+ readonly inputs: readonly [{
226
+ readonly components: readonly [{
227
+ readonly internalType: "contract IERC20Minimal";
228
+ readonly name: "rewardToken";
229
+ readonly type: "address";
230
+ }, {
231
+ readonly internalType: "contract IUniswapV3Pool";
232
+ readonly name: "pool";
233
+ readonly type: "address";
234
+ }, {
235
+ readonly internalType: "uint256";
236
+ readonly name: "startTime";
237
+ readonly type: "uint256";
238
+ }, {
239
+ readonly internalType: "uint256";
240
+ readonly name: "endTime";
241
+ readonly type: "uint256";
242
+ }, {
243
+ readonly internalType: "address";
244
+ readonly name: "refundee";
245
+ readonly type: "address";
246
+ }];
247
+ readonly internalType: "struct IUniswapV3Staker.IncentiveKey";
248
+ readonly name: "key";
249
+ readonly type: "tuple";
250
+ }];
251
+ readonly name: "endIncentive";
252
+ readonly outputs: readonly [{
253
+ readonly internalType: "uint256";
254
+ readonly name: "refund";
255
+ readonly type: "uint256";
256
+ }];
257
+ readonly stateMutability: "nonpayable";
258
+ readonly type: "function";
259
+ }, {
260
+ readonly inputs: readonly [];
261
+ readonly name: "factory";
262
+ readonly outputs: readonly [{
263
+ readonly internalType: "contract IUniswapV3Factory";
264
+ readonly name: "";
265
+ readonly type: "address";
266
+ }];
267
+ readonly stateMutability: "view";
268
+ readonly type: "function";
269
+ }, {
270
+ readonly inputs: readonly [{
271
+ readonly components: readonly [{
272
+ readonly internalType: "contract IERC20Minimal";
273
+ readonly name: "rewardToken";
274
+ readonly type: "address";
275
+ }, {
276
+ readonly internalType: "contract IUniswapV3Pool";
277
+ readonly name: "pool";
278
+ readonly type: "address";
279
+ }, {
280
+ readonly internalType: "uint256";
281
+ readonly name: "startTime";
282
+ readonly type: "uint256";
283
+ }, {
284
+ readonly internalType: "uint256";
285
+ readonly name: "endTime";
286
+ readonly type: "uint256";
287
+ }, {
288
+ readonly internalType: "address";
289
+ readonly name: "refundee";
290
+ readonly type: "address";
291
+ }];
292
+ readonly internalType: "struct IUniswapV3Staker.IncentiveKey";
293
+ readonly name: "key";
294
+ readonly type: "tuple";
295
+ }, {
296
+ readonly internalType: "uint256";
297
+ readonly name: "tokenId";
298
+ readonly type: "uint256";
299
+ }];
300
+ readonly name: "getRewardInfo";
301
+ readonly outputs: readonly [{
302
+ readonly internalType: "uint256";
303
+ readonly name: "reward";
304
+ readonly type: "uint256";
305
+ }, {
306
+ readonly internalType: "uint160";
307
+ readonly name: "secondsInsideX128";
308
+ readonly type: "uint160";
309
+ }];
310
+ readonly stateMutability: "view";
311
+ readonly type: "function";
312
+ }, {
313
+ readonly inputs: readonly [{
314
+ readonly internalType: "bytes32";
315
+ readonly name: "";
316
+ readonly type: "bytes32";
317
+ }];
318
+ readonly name: "incentives";
319
+ readonly outputs: readonly [{
320
+ readonly internalType: "uint256";
321
+ readonly name: "totalRewardUnclaimed";
322
+ readonly type: "uint256";
323
+ }, {
324
+ readonly internalType: "uint160";
325
+ readonly name: "totalSecondsClaimedX128";
326
+ readonly type: "uint160";
327
+ }, {
328
+ readonly internalType: "uint96";
329
+ readonly name: "numberOfStakes";
330
+ readonly type: "uint96";
331
+ }];
332
+ readonly stateMutability: "view";
333
+ readonly type: "function";
334
+ }, {
335
+ readonly inputs: readonly [];
336
+ readonly name: "maxIncentiveDuration";
337
+ readonly outputs: readonly [{
338
+ readonly internalType: "uint256";
339
+ readonly name: "";
340
+ readonly type: "uint256";
341
+ }];
342
+ readonly stateMutability: "view";
343
+ readonly type: "function";
344
+ }, {
345
+ readonly inputs: readonly [];
346
+ readonly name: "maxIncentiveStartLeadTime";
347
+ readonly outputs: readonly [{
348
+ readonly internalType: "uint256";
349
+ readonly name: "";
350
+ readonly type: "uint256";
351
+ }];
352
+ readonly stateMutability: "view";
353
+ readonly type: "function";
354
+ }, {
355
+ readonly inputs: readonly [{
356
+ readonly internalType: "bytes[]";
357
+ readonly name: "data";
358
+ readonly type: "bytes[]";
359
+ }];
360
+ readonly name: "multicall";
361
+ readonly outputs: readonly [{
362
+ readonly internalType: "bytes[]";
363
+ readonly name: "results";
364
+ readonly type: "bytes[]";
365
+ }];
366
+ readonly stateMutability: "payable";
367
+ readonly type: "function";
368
+ }, {
369
+ readonly inputs: readonly [];
370
+ readonly name: "nonfungiblePositionManager";
371
+ readonly outputs: readonly [{
372
+ readonly internalType: "contract INonfungiblePositionManager";
373
+ readonly name: "";
374
+ readonly type: "address";
375
+ }];
376
+ readonly stateMutability: "view";
377
+ readonly type: "function";
378
+ }, {
379
+ readonly inputs: readonly [{
380
+ readonly internalType: "address";
381
+ readonly name: "";
382
+ readonly type: "address";
383
+ }, {
384
+ readonly internalType: "address";
385
+ readonly name: "from";
386
+ readonly type: "address";
387
+ }, {
388
+ readonly internalType: "uint256";
389
+ readonly name: "tokenId";
390
+ readonly type: "uint256";
391
+ }, {
392
+ readonly internalType: "bytes";
393
+ readonly name: "data";
394
+ readonly type: "bytes";
395
+ }];
396
+ readonly name: "onERC721Received";
397
+ readonly outputs: readonly [{
398
+ readonly internalType: "bytes4";
399
+ readonly name: "";
400
+ readonly type: "bytes4";
401
+ }];
402
+ readonly stateMutability: "nonpayable";
403
+ readonly type: "function";
404
+ }, {
405
+ readonly inputs: readonly [{
406
+ readonly internalType: "contract IERC20Minimal";
407
+ readonly name: "";
408
+ readonly type: "address";
409
+ }, {
410
+ readonly internalType: "address";
411
+ readonly name: "";
412
+ readonly type: "address";
413
+ }];
414
+ readonly name: "rewards";
415
+ readonly outputs: readonly [{
416
+ readonly internalType: "uint256";
417
+ readonly name: "";
418
+ readonly type: "uint256";
419
+ }];
420
+ readonly stateMutability: "view";
421
+ readonly type: "function";
422
+ }, {
423
+ readonly inputs: readonly [{
424
+ readonly components: readonly [{
425
+ readonly internalType: "contract IERC20Minimal";
426
+ readonly name: "rewardToken";
427
+ readonly type: "address";
428
+ }, {
429
+ readonly internalType: "contract IUniswapV3Pool";
430
+ readonly name: "pool";
431
+ readonly type: "address";
432
+ }, {
433
+ readonly internalType: "uint256";
434
+ readonly name: "startTime";
435
+ readonly type: "uint256";
436
+ }, {
437
+ readonly internalType: "uint256";
438
+ readonly name: "endTime";
439
+ readonly type: "uint256";
440
+ }, {
441
+ readonly internalType: "address";
442
+ readonly name: "refundee";
443
+ readonly type: "address";
444
+ }];
445
+ readonly internalType: "struct IUniswapV3Staker.IncentiveKey";
446
+ readonly name: "key";
447
+ readonly type: "tuple";
448
+ }, {
449
+ readonly internalType: "uint256";
450
+ readonly name: "tokenId";
451
+ readonly type: "uint256";
452
+ }];
453
+ readonly name: "stakeToken";
454
+ readonly outputs: readonly [];
455
+ readonly stateMutability: "nonpayable";
456
+ readonly type: "function";
457
+ }, {
458
+ readonly inputs: readonly [{
459
+ readonly internalType: "uint256";
460
+ readonly name: "tokenId";
461
+ readonly type: "uint256";
462
+ }, {
463
+ readonly internalType: "bytes32";
464
+ readonly name: "incentiveId";
465
+ readonly type: "bytes32";
466
+ }];
467
+ readonly name: "stakes";
468
+ readonly outputs: readonly [{
469
+ readonly internalType: "uint160";
470
+ readonly name: "secondsPerLiquidityInsideInitialX128";
471
+ readonly type: "uint160";
472
+ }, {
473
+ readonly internalType: "uint128";
474
+ readonly name: "liquidity";
475
+ readonly type: "uint128";
476
+ }];
477
+ readonly stateMutability: "view";
478
+ readonly type: "function";
479
+ }, {
480
+ readonly inputs: readonly [{
481
+ readonly internalType: "uint256";
482
+ readonly name: "tokenId";
483
+ readonly type: "uint256";
484
+ }, {
485
+ readonly internalType: "address";
486
+ readonly name: "to";
487
+ readonly type: "address";
488
+ }];
489
+ readonly name: "transferDeposit";
490
+ readonly outputs: readonly [];
491
+ readonly stateMutability: "nonpayable";
492
+ readonly type: "function";
493
+ }, {
494
+ readonly inputs: readonly [{
495
+ readonly components: readonly [{
496
+ readonly internalType: "contract IERC20Minimal";
497
+ readonly name: "rewardToken";
498
+ readonly type: "address";
499
+ }, {
500
+ readonly internalType: "contract IUniswapV3Pool";
501
+ readonly name: "pool";
502
+ readonly type: "address";
503
+ }, {
504
+ readonly internalType: "uint256";
505
+ readonly name: "startTime";
506
+ readonly type: "uint256";
507
+ }, {
508
+ readonly internalType: "uint256";
509
+ readonly name: "endTime";
510
+ readonly type: "uint256";
511
+ }, {
512
+ readonly internalType: "address";
513
+ readonly name: "refundee";
514
+ readonly type: "address";
515
+ }];
516
+ readonly internalType: "struct IUniswapV3Staker.IncentiveKey";
517
+ readonly name: "key";
518
+ readonly type: "tuple";
519
+ }, {
520
+ readonly internalType: "uint256";
521
+ readonly name: "tokenId";
522
+ readonly type: "uint256";
523
+ }];
524
+ readonly name: "unstakeToken";
525
+ readonly outputs: readonly [];
526
+ readonly stateMutability: "nonpayable";
527
+ readonly type: "function";
528
+ }, {
529
+ readonly inputs: readonly [{
530
+ readonly internalType: "uint256";
531
+ readonly name: "tokenId";
532
+ readonly type: "uint256";
533
+ }, {
534
+ readonly internalType: "address";
535
+ readonly name: "to";
536
+ readonly type: "address";
537
+ }, {
538
+ readonly internalType: "bytes";
539
+ readonly name: "data";
540
+ readonly type: "bytes";
541
+ }];
542
+ readonly name: "withdrawToken";
543
+ readonly outputs: readonly [];
544
+ readonly stateMutability: "nonpayable";
545
+ readonly type: "function";
546
+ }];
547
+ //# sourceMappingURL=V3Staker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"V3Staker.d.ts","sourceRoot":"","sources":["../../src/abi/V3Staker.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAisBd,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,+CAA+C,CAAA;AAE3E,eAAO,MAAM,gBAAgB,+CAA+C,CAAA;AAC5E,eAAO,MAAM,kBAAkB;;;;;CAKa,CAAA;AAE5C,eAAO,MAAM,YAAY,+CAA+C,CAAA;AAExE,eAAO,MAAM,mBAAmB,uEAAuE,CAAA;AAEvG;;GAEG;AACH,oBAAY,SAAS;IACnB,MAAM,MAAM;IACZ,GAAG,MAAM;IACT,MAAM,OAAO;IACb,IAAI,QAAQ;CACb;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE;KAAG,MAAM,IAAI,SAAS,GAAG,MAAM;CAK1D,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,+CAA+C,CAAA;AAE3E,eAAO,MAAM,gBAAgB,+CAA+C,CAAA;AAC5E,eAAO,MAAM,kBAAkB;;;;;CAKc,CAAA;AAE7C,eAAO,MAAM,YAAY,+CAA+C,CAAA;AAExE,eAAO,MAAM,mBAAmB,uEAAuE,CAAA;AAEvG;;GAEG;AACH,oBAAY,SAAS;IACnB,MAAM,MAAM;IACZ,GAAG,MAAM;IACT,MAAM,OAAO;IACb,IAAI,QAAQ;CACb;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE;KAAG,MAAM,IAAI,SAAS,GAAG,MAAM;CAK1D,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import { BigintIsh, CurrencyAmount, Price, Token } from '@pancakeswap/sdk';
2
+ import { Address, Hash } from 'viem';
2
3
  import { FeeAmount } from '../constants';
3
4
  import { Tick, TickConstructorArgs } from './tick';
4
5
  import { TickDataProvider } from './tickDataProvider';
@@ -16,7 +17,7 @@ export declare class Pool {
16
17
  feeProtocol?: number;
17
18
  private _token0Price?;
18
19
  private _token1Price?;
19
- static getAddress(tokenA: Token, tokenB: Token, fee: FeeAmount, initCodeHashManualOverride?: string, deployerAddressOverride?: string): string;
20
+ static getAddress(tokenA: Token, tokenB: Token, fee: FeeAmount, initCodeHashManualOverride?: Hash, deployerAddressOverride?: Address): `0x${string}`;
20
21
  /**
21
22
  * Construct a pool
22
23
  * @param tokenA One of the tokens in the pool
@@ -1 +1 @@
1
- {"version":3,"file":"pool.d.ts","sourceRoot":"","sources":["../../src/entities/pool.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAW,cAAc,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAEnF,OAAO,EAAE,SAAS,EAAqC,MAAM,cAAc,CAAA;AAM3E,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAA;AAClD,OAAO,EAAsB,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAkBzE;;GAEG;AACH,qBAAa,IAAI;IACf,SAAgB,MAAM,EAAE,KAAK,CAAA;IAE7B,SAAgB,MAAM,EAAE,KAAK,CAAA;IAE7B,SAAgB,GAAG,EAAE,SAAS,CAAA;IAE9B,SAAgB,YAAY,EAAE,MAAM,CAAA;IAEpC,SAAgB,SAAS,EAAE,MAAM,CAAA;IAEjC,SAAgB,WAAW,EAAE,MAAM,CAAA;IAEnC,SAAgB,gBAAgB,EAAE,gBAAgB,CAAA;IAE3C,WAAW,CAAC,EAAE,MAAM,CAAA;IAE3B,OAAO,CAAC,YAAY,CAAC,CAAqB;IAE1C,OAAO,CAAC,YAAY,CAAC,CAAqB;WAE5B,UAAU,CACtB,MAAM,EAAE,KAAK,EACb,MAAM,EAAE,KAAK,EACb,GAAG,EAAE,SAAS,EACd,0BAA0B,CAAC,EAAE,MAAM,EACnC,uBAAuB,CAAC,EAAE,MAAM,GAC/B,MAAM;IAUT;;;;;;;;;OASG;gBAED,MAAM,EAAE,KAAK,EACb,MAAM,EAAE,KAAK,EACb,GAAG,EAAE,SAAS,EACd,YAAY,EAAE,SAAS,EACvB,SAAS,EAAE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I,MAAM,CAE3B;IAED;;;;;OAKG;IACU,eAAe,CAC1B,WAAW,EAAE,cAAc,CAAC,KAAK,CAAC,EAClC,iBAAiB,CAAC,EAAE,MAAM,GACzB,OAAO,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAC;IAkBzC;;;;;OAKG;IACU,cAAc,CACzB,YAAY,EAAE,cAAc,CAAC,KAAK,CAAC,EACnC,iBAAiB,CAAC,EAAE,MAAM,GACzB,OAAO,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAC;IAsBzC;;;;;;;;;OASG;YACW,IAAI;IAsGlB,IAAW,WAAW,IAAI,MAAM,CAE/B;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"tick.d.ts","sourceRoot":"","sources":["../../src/entities/tick.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAG5C,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAA;IACb,cAAc,EAAE,SAAS,CAAA;IACzB,YAAY,EAAE,SAAS,CAAA;CACxB;AAED,qBAAa,IAAI;IACf,SAAgB,KAAK,EAAE,MAAM,CAAA;IAE7B,SAAgB,cAAc,EAAE,MAAM,CAAA;IAEtC,SAAgB,YAAY,EAAE,MAAM,CAAA;gBAExB,EAAE,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,EAAE,mBAAmB;CAMzE"}
1
+ {"version":3,"file":"tick.d.ts","sourceRoot":"","sources":["../../src/entities/tick.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAI5C,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAA;IACb,cAAc,EAAE,SAAS,CAAA;IACzB,YAAY,EAAE,SAAS,CAAA;CACxB;AAED,qBAAa,IAAI;IACf,SAAgB,KAAK,EAAE,MAAM,CAAA;IAE7B,SAAgB,cAAc,EAAE,MAAM,CAAA;IAEtC,SAAgB,YAAY,EAAE,MAAM,CAAA;gBAExB,EAAE,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,EAAE,mBAAmB;CAMzE"}
package/dist/index.d.ts CHANGED
@@ -9,4 +9,12 @@ export * from './selfPermit';
9
9
  export * from './staker';
10
10
  export * from './swapRouter';
11
11
  export * from './masterchefV3';
12
+ export * from './abi/MasterChefV3';
13
+ export * from './abi/NonfungiblePositionManager';
14
+ export * from './abi/PeripheryPaymentsWithFee';
15
+ export * from './abi/Quoter';
16
+ export * from './abi/QuoterV2';
17
+ export * from './abi/SelfPermit';
18
+ export * from './abi/V3Staker';
19
+ export * from './abi/SwapRouter';
12
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AAEvB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,8BAA8B,CAAA;AAC5C,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AAEvB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,8BAA8B,CAAA;AAC5C,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAG9B,cAAc,oBAAoB,CAAA;AAClC,cAAc,kCAAkC,CAAA;AAChD,cAAc,gCAAgC,CAAA;AAC9C,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA"}