@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,453 @@
1
+ export declare const swapRouterABI: readonly [{
2
+ readonly inputs: readonly [{
3
+ readonly internalType: "address";
4
+ readonly name: "_deployer";
5
+ readonly type: "address";
6
+ }, {
7
+ readonly internalType: "address";
8
+ readonly name: "_factory";
9
+ readonly type: "address";
10
+ }, {
11
+ readonly internalType: "address";
12
+ readonly name: "_WETH9";
13
+ readonly type: "address";
14
+ }];
15
+ readonly stateMutability: "nonpayable";
16
+ readonly type: "constructor";
17
+ }, {
18
+ readonly inputs: readonly [];
19
+ readonly name: "WETH9";
20
+ readonly outputs: readonly [{
21
+ readonly internalType: "address";
22
+ readonly name: "";
23
+ readonly type: "address";
24
+ }];
25
+ readonly stateMutability: "view";
26
+ readonly type: "function";
27
+ }, {
28
+ readonly inputs: readonly [];
29
+ readonly name: "deployer";
30
+ readonly outputs: readonly [{
31
+ readonly internalType: "address";
32
+ readonly name: "";
33
+ readonly type: "address";
34
+ }];
35
+ readonly stateMutability: "view";
36
+ readonly type: "function";
37
+ }, {
38
+ readonly inputs: readonly [{
39
+ readonly components: readonly [{
40
+ readonly internalType: "bytes";
41
+ readonly name: "path";
42
+ readonly type: "bytes";
43
+ }, {
44
+ readonly internalType: "address";
45
+ readonly name: "recipient";
46
+ readonly type: "address";
47
+ }, {
48
+ readonly internalType: "uint256";
49
+ readonly name: "deadline";
50
+ readonly type: "uint256";
51
+ }, {
52
+ readonly internalType: "uint256";
53
+ readonly name: "amountIn";
54
+ readonly type: "uint256";
55
+ }, {
56
+ readonly internalType: "uint256";
57
+ readonly name: "amountOutMinimum";
58
+ readonly type: "uint256";
59
+ }];
60
+ readonly internalType: "struct ISwapRouter.ExactInputParams";
61
+ readonly name: "params";
62
+ readonly type: "tuple";
63
+ }];
64
+ readonly name: "exactInput";
65
+ readonly outputs: readonly [{
66
+ readonly internalType: "uint256";
67
+ readonly name: "amountOut";
68
+ readonly type: "uint256";
69
+ }];
70
+ readonly stateMutability: "payable";
71
+ readonly type: "function";
72
+ }, {
73
+ readonly inputs: readonly [{
74
+ readonly components: readonly [{
75
+ readonly internalType: "address";
76
+ readonly name: "tokenIn";
77
+ readonly type: "address";
78
+ }, {
79
+ readonly internalType: "address";
80
+ readonly name: "tokenOut";
81
+ readonly type: "address";
82
+ }, {
83
+ readonly internalType: "uint24";
84
+ readonly name: "fee";
85
+ readonly type: "uint24";
86
+ }, {
87
+ readonly internalType: "address";
88
+ readonly name: "recipient";
89
+ readonly type: "address";
90
+ }, {
91
+ readonly internalType: "uint256";
92
+ readonly name: "deadline";
93
+ readonly type: "uint256";
94
+ }, {
95
+ readonly internalType: "uint256";
96
+ readonly name: "amountIn";
97
+ readonly type: "uint256";
98
+ }, {
99
+ readonly internalType: "uint256";
100
+ readonly name: "amountOutMinimum";
101
+ readonly type: "uint256";
102
+ }, {
103
+ readonly internalType: "uint160";
104
+ readonly name: "sqrtPriceLimitX96";
105
+ readonly type: "uint160";
106
+ }];
107
+ readonly internalType: "struct ISwapRouter.ExactInputSingleParams";
108
+ readonly name: "params";
109
+ readonly type: "tuple";
110
+ }];
111
+ readonly name: "exactInputSingle";
112
+ readonly outputs: readonly [{
113
+ readonly internalType: "uint256";
114
+ readonly name: "amountOut";
115
+ readonly type: "uint256";
116
+ }];
117
+ readonly stateMutability: "payable";
118
+ readonly type: "function";
119
+ }, {
120
+ readonly inputs: readonly [{
121
+ readonly components: readonly [{
122
+ readonly internalType: "bytes";
123
+ readonly name: "path";
124
+ readonly type: "bytes";
125
+ }, {
126
+ readonly internalType: "address";
127
+ readonly name: "recipient";
128
+ readonly type: "address";
129
+ }, {
130
+ readonly internalType: "uint256";
131
+ readonly name: "deadline";
132
+ readonly type: "uint256";
133
+ }, {
134
+ readonly internalType: "uint256";
135
+ readonly name: "amountOut";
136
+ readonly type: "uint256";
137
+ }, {
138
+ readonly internalType: "uint256";
139
+ readonly name: "amountInMaximum";
140
+ readonly type: "uint256";
141
+ }];
142
+ readonly internalType: "struct ISwapRouter.ExactOutputParams";
143
+ readonly name: "params";
144
+ readonly type: "tuple";
145
+ }];
146
+ readonly name: "exactOutput";
147
+ readonly outputs: readonly [{
148
+ readonly internalType: "uint256";
149
+ readonly name: "amountIn";
150
+ readonly type: "uint256";
151
+ }];
152
+ readonly stateMutability: "payable";
153
+ readonly type: "function";
154
+ }, {
155
+ readonly inputs: readonly [{
156
+ readonly components: readonly [{
157
+ readonly internalType: "address";
158
+ readonly name: "tokenIn";
159
+ readonly type: "address";
160
+ }, {
161
+ readonly internalType: "address";
162
+ readonly name: "tokenOut";
163
+ readonly type: "address";
164
+ }, {
165
+ readonly internalType: "uint24";
166
+ readonly name: "fee";
167
+ readonly type: "uint24";
168
+ }, {
169
+ readonly internalType: "address";
170
+ readonly name: "recipient";
171
+ readonly type: "address";
172
+ }, {
173
+ readonly internalType: "uint256";
174
+ readonly name: "deadline";
175
+ readonly type: "uint256";
176
+ }, {
177
+ readonly internalType: "uint256";
178
+ readonly name: "amountOut";
179
+ readonly type: "uint256";
180
+ }, {
181
+ readonly internalType: "uint256";
182
+ readonly name: "amountInMaximum";
183
+ readonly type: "uint256";
184
+ }, {
185
+ readonly internalType: "uint160";
186
+ readonly name: "sqrtPriceLimitX96";
187
+ readonly type: "uint160";
188
+ }];
189
+ readonly internalType: "struct ISwapRouter.ExactOutputSingleParams";
190
+ readonly name: "params";
191
+ readonly type: "tuple";
192
+ }];
193
+ readonly name: "exactOutputSingle";
194
+ readonly outputs: readonly [{
195
+ readonly internalType: "uint256";
196
+ readonly name: "amountIn";
197
+ readonly type: "uint256";
198
+ }];
199
+ readonly stateMutability: "payable";
200
+ readonly type: "function";
201
+ }, {
202
+ readonly inputs: readonly [];
203
+ readonly name: "factory";
204
+ readonly outputs: readonly [{
205
+ readonly internalType: "address";
206
+ readonly name: "";
207
+ readonly type: "address";
208
+ }];
209
+ readonly stateMutability: "view";
210
+ readonly type: "function";
211
+ }, {
212
+ readonly inputs: readonly [{
213
+ readonly internalType: "bytes[]";
214
+ readonly name: "data";
215
+ readonly type: "bytes[]";
216
+ }];
217
+ readonly name: "multicall";
218
+ readonly outputs: readonly [{
219
+ readonly internalType: "bytes[]";
220
+ readonly name: "results";
221
+ readonly type: "bytes[]";
222
+ }];
223
+ readonly stateMutability: "payable";
224
+ readonly type: "function";
225
+ }, {
226
+ readonly inputs: readonly [{
227
+ readonly internalType: "int256";
228
+ readonly name: "amount0Delta";
229
+ readonly type: "int256";
230
+ }, {
231
+ readonly internalType: "int256";
232
+ readonly name: "amount1Delta";
233
+ readonly type: "int256";
234
+ }, {
235
+ readonly internalType: "bytes";
236
+ readonly name: "_data";
237
+ readonly type: "bytes";
238
+ }];
239
+ readonly name: "pancakeV3SwapCallback";
240
+ readonly outputs: readonly [];
241
+ readonly stateMutability: "nonpayable";
242
+ readonly type: "function";
243
+ }, {
244
+ readonly inputs: readonly [];
245
+ readonly name: "refundETH";
246
+ readonly outputs: readonly [];
247
+ readonly stateMutability: "payable";
248
+ readonly type: "function";
249
+ }, {
250
+ readonly inputs: readonly [{
251
+ readonly internalType: "address";
252
+ readonly name: "token";
253
+ readonly type: "address";
254
+ }, {
255
+ readonly internalType: "uint256";
256
+ readonly name: "value";
257
+ readonly type: "uint256";
258
+ }, {
259
+ readonly internalType: "uint256";
260
+ readonly name: "deadline";
261
+ readonly type: "uint256";
262
+ }, {
263
+ readonly internalType: "uint8";
264
+ readonly name: "v";
265
+ readonly type: "uint8";
266
+ }, {
267
+ readonly internalType: "bytes32";
268
+ readonly name: "r";
269
+ readonly type: "bytes32";
270
+ }, {
271
+ readonly internalType: "bytes32";
272
+ readonly name: "s";
273
+ readonly type: "bytes32";
274
+ }];
275
+ readonly name: "selfPermit";
276
+ readonly outputs: readonly [];
277
+ readonly stateMutability: "payable";
278
+ readonly type: "function";
279
+ }, {
280
+ readonly inputs: readonly [{
281
+ readonly internalType: "address";
282
+ readonly name: "token";
283
+ readonly type: "address";
284
+ }, {
285
+ readonly internalType: "uint256";
286
+ readonly name: "nonce";
287
+ readonly type: "uint256";
288
+ }, {
289
+ readonly internalType: "uint256";
290
+ readonly name: "expiry";
291
+ readonly type: "uint256";
292
+ }, {
293
+ readonly internalType: "uint8";
294
+ readonly name: "v";
295
+ readonly type: "uint8";
296
+ }, {
297
+ readonly internalType: "bytes32";
298
+ readonly name: "r";
299
+ readonly type: "bytes32";
300
+ }, {
301
+ readonly internalType: "bytes32";
302
+ readonly name: "s";
303
+ readonly type: "bytes32";
304
+ }];
305
+ readonly name: "selfPermitAllowed";
306
+ readonly outputs: readonly [];
307
+ readonly stateMutability: "payable";
308
+ readonly type: "function";
309
+ }, {
310
+ readonly inputs: readonly [{
311
+ readonly internalType: "address";
312
+ readonly name: "token";
313
+ readonly type: "address";
314
+ }, {
315
+ readonly internalType: "uint256";
316
+ readonly name: "nonce";
317
+ readonly type: "uint256";
318
+ }, {
319
+ readonly internalType: "uint256";
320
+ readonly name: "expiry";
321
+ readonly type: "uint256";
322
+ }, {
323
+ readonly internalType: "uint8";
324
+ readonly name: "v";
325
+ readonly type: "uint8";
326
+ }, {
327
+ readonly internalType: "bytes32";
328
+ readonly name: "r";
329
+ readonly type: "bytes32";
330
+ }, {
331
+ readonly internalType: "bytes32";
332
+ readonly name: "s";
333
+ readonly type: "bytes32";
334
+ }];
335
+ readonly name: "selfPermitAllowedIfNecessary";
336
+ readonly outputs: readonly [];
337
+ readonly stateMutability: "payable";
338
+ readonly type: "function";
339
+ }, {
340
+ readonly inputs: readonly [{
341
+ readonly internalType: "address";
342
+ readonly name: "token";
343
+ readonly type: "address";
344
+ }, {
345
+ readonly internalType: "uint256";
346
+ readonly name: "value";
347
+ readonly type: "uint256";
348
+ }, {
349
+ readonly internalType: "uint256";
350
+ readonly name: "deadline";
351
+ readonly type: "uint256";
352
+ }, {
353
+ readonly internalType: "uint8";
354
+ readonly name: "v";
355
+ readonly type: "uint8";
356
+ }, {
357
+ readonly internalType: "bytes32";
358
+ readonly name: "r";
359
+ readonly type: "bytes32";
360
+ }, {
361
+ readonly internalType: "bytes32";
362
+ readonly name: "s";
363
+ readonly type: "bytes32";
364
+ }];
365
+ readonly name: "selfPermitIfNecessary";
366
+ readonly outputs: readonly [];
367
+ readonly stateMutability: "payable";
368
+ readonly type: "function";
369
+ }, {
370
+ readonly inputs: readonly [{
371
+ readonly internalType: "address";
372
+ readonly name: "token";
373
+ readonly type: "address";
374
+ }, {
375
+ readonly internalType: "uint256";
376
+ readonly name: "amountMinimum";
377
+ readonly type: "uint256";
378
+ }, {
379
+ readonly internalType: "address";
380
+ readonly name: "recipient";
381
+ readonly type: "address";
382
+ }];
383
+ readonly name: "sweepToken";
384
+ readonly outputs: readonly [];
385
+ readonly stateMutability: "payable";
386
+ readonly type: "function";
387
+ }, {
388
+ readonly inputs: readonly [{
389
+ readonly internalType: "address";
390
+ readonly name: "token";
391
+ readonly type: "address";
392
+ }, {
393
+ readonly internalType: "uint256";
394
+ readonly name: "amountMinimum";
395
+ readonly type: "uint256";
396
+ }, {
397
+ readonly internalType: "address";
398
+ readonly name: "recipient";
399
+ readonly type: "address";
400
+ }, {
401
+ readonly internalType: "uint256";
402
+ readonly name: "feeBips";
403
+ readonly type: "uint256";
404
+ }, {
405
+ readonly internalType: "address";
406
+ readonly name: "feeRecipient";
407
+ readonly type: "address";
408
+ }];
409
+ readonly name: "sweepTokenWithFee";
410
+ readonly outputs: readonly [];
411
+ readonly stateMutability: "payable";
412
+ readonly type: "function";
413
+ }, {
414
+ readonly inputs: readonly [{
415
+ readonly internalType: "uint256";
416
+ readonly name: "amountMinimum";
417
+ readonly type: "uint256";
418
+ }, {
419
+ readonly internalType: "address";
420
+ readonly name: "recipient";
421
+ readonly type: "address";
422
+ }];
423
+ readonly name: "unwrapWETH9";
424
+ readonly outputs: readonly [];
425
+ readonly stateMutability: "payable";
426
+ readonly type: "function";
427
+ }, {
428
+ readonly inputs: readonly [{
429
+ readonly internalType: "uint256";
430
+ readonly name: "amountMinimum";
431
+ readonly type: "uint256";
432
+ }, {
433
+ readonly internalType: "address";
434
+ readonly name: "recipient";
435
+ readonly type: "address";
436
+ }, {
437
+ readonly internalType: "uint256";
438
+ readonly name: "feeBips";
439
+ readonly type: "uint256";
440
+ }, {
441
+ readonly internalType: "address";
442
+ readonly name: "feeRecipient";
443
+ readonly type: "address";
444
+ }];
445
+ readonly name: "unwrapWETH9WithFee";
446
+ readonly outputs: readonly [];
447
+ readonly stateMutability: "payable";
448
+ readonly type: "function";
449
+ }, {
450
+ readonly stateMutability: "payable";
451
+ readonly type: "receive";
452
+ }];
453
+ //# sourceMappingURL=SwapRouter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwapRouter.d.ts","sourceRoot":"","sources":["../../src/abi/SwapRouter.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAskBhB,CAAA"}