@pancakeswap/v2-sdk 1.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.
@@ -0,0 +1,561 @@
1
+ export declare const pancakePairV2ABI: readonly [{
2
+ readonly anonymous: false;
3
+ readonly inputs: readonly [{
4
+ readonly indexed: true;
5
+ readonly internalType: "address";
6
+ readonly name: "owner";
7
+ readonly type: "address";
8
+ }, {
9
+ readonly indexed: true;
10
+ readonly internalType: "address";
11
+ readonly name: "spender";
12
+ readonly type: "address";
13
+ }, {
14
+ readonly indexed: false;
15
+ readonly internalType: "uint256";
16
+ readonly name: "value";
17
+ readonly type: "uint256";
18
+ }];
19
+ readonly name: "Approval";
20
+ readonly type: "event";
21
+ }, {
22
+ readonly anonymous: false;
23
+ readonly inputs: readonly [{
24
+ readonly indexed: true;
25
+ readonly internalType: "address";
26
+ readonly name: "sender";
27
+ readonly type: "address";
28
+ }, {
29
+ readonly indexed: false;
30
+ readonly internalType: "uint256";
31
+ readonly name: "amount0";
32
+ readonly type: "uint256";
33
+ }, {
34
+ readonly indexed: false;
35
+ readonly internalType: "uint256";
36
+ readonly name: "amount1";
37
+ readonly type: "uint256";
38
+ }, {
39
+ readonly indexed: true;
40
+ readonly internalType: "address";
41
+ readonly name: "to";
42
+ readonly type: "address";
43
+ }];
44
+ readonly name: "Burn";
45
+ readonly type: "event";
46
+ }, {
47
+ readonly anonymous: false;
48
+ readonly inputs: readonly [{
49
+ readonly indexed: true;
50
+ readonly internalType: "address";
51
+ readonly name: "sender";
52
+ readonly type: "address";
53
+ }, {
54
+ readonly indexed: false;
55
+ readonly internalType: "uint256";
56
+ readonly name: "amount0";
57
+ readonly type: "uint256";
58
+ }, {
59
+ readonly indexed: false;
60
+ readonly internalType: "uint256";
61
+ readonly name: "amount1";
62
+ readonly type: "uint256";
63
+ }];
64
+ readonly name: "Mint";
65
+ readonly type: "event";
66
+ }, {
67
+ readonly anonymous: false;
68
+ readonly inputs: readonly [{
69
+ readonly indexed: true;
70
+ readonly internalType: "address";
71
+ readonly name: "sender";
72
+ readonly type: "address";
73
+ }, {
74
+ readonly indexed: false;
75
+ readonly internalType: "uint256";
76
+ readonly name: "amount0In";
77
+ readonly type: "uint256";
78
+ }, {
79
+ readonly indexed: false;
80
+ readonly internalType: "uint256";
81
+ readonly name: "amount1In";
82
+ readonly type: "uint256";
83
+ }, {
84
+ readonly indexed: false;
85
+ readonly internalType: "uint256";
86
+ readonly name: "amount0Out";
87
+ readonly type: "uint256";
88
+ }, {
89
+ readonly indexed: false;
90
+ readonly internalType: "uint256";
91
+ readonly name: "amount1Out";
92
+ readonly type: "uint256";
93
+ }, {
94
+ readonly indexed: true;
95
+ readonly internalType: "address";
96
+ readonly name: "to";
97
+ readonly type: "address";
98
+ }];
99
+ readonly name: "Swap";
100
+ readonly type: "event";
101
+ }, {
102
+ readonly anonymous: false;
103
+ readonly inputs: readonly [{
104
+ readonly indexed: false;
105
+ readonly internalType: "uint112";
106
+ readonly name: "reserve0";
107
+ readonly type: "uint112";
108
+ }, {
109
+ readonly indexed: false;
110
+ readonly internalType: "uint112";
111
+ readonly name: "reserve1";
112
+ readonly type: "uint112";
113
+ }];
114
+ readonly name: "Sync";
115
+ readonly type: "event";
116
+ }, {
117
+ readonly anonymous: false;
118
+ readonly inputs: readonly [{
119
+ readonly indexed: true;
120
+ readonly internalType: "address";
121
+ readonly name: "from";
122
+ readonly type: "address";
123
+ }, {
124
+ readonly indexed: true;
125
+ readonly internalType: "address";
126
+ readonly name: "to";
127
+ readonly type: "address";
128
+ }, {
129
+ readonly indexed: false;
130
+ readonly internalType: "uint256";
131
+ readonly name: "value";
132
+ readonly type: "uint256";
133
+ }];
134
+ readonly name: "Transfer";
135
+ readonly type: "event";
136
+ }, {
137
+ readonly constant: true;
138
+ readonly inputs: readonly [];
139
+ readonly name: "DOMAIN_SEPARATOR";
140
+ readonly outputs: readonly [{
141
+ readonly internalType: "bytes32";
142
+ readonly name: "";
143
+ readonly type: "bytes32";
144
+ }];
145
+ readonly payable: false;
146
+ readonly stateMutability: "view";
147
+ readonly type: "function";
148
+ }, {
149
+ readonly constant: true;
150
+ readonly inputs: readonly [];
151
+ readonly name: "MINIMUM_LIQUIDITY";
152
+ readonly outputs: readonly [{
153
+ readonly internalType: "uint256";
154
+ readonly name: "";
155
+ readonly type: "uint256";
156
+ }];
157
+ readonly payable: false;
158
+ readonly stateMutability: "pure";
159
+ readonly type: "function";
160
+ }, {
161
+ readonly constant: true;
162
+ readonly inputs: readonly [];
163
+ readonly name: "PERMIT_TYPEHASH";
164
+ readonly outputs: readonly [{
165
+ readonly internalType: "bytes32";
166
+ readonly name: "";
167
+ readonly type: "bytes32";
168
+ }];
169
+ readonly payable: false;
170
+ readonly stateMutability: "pure";
171
+ readonly type: "function";
172
+ }, {
173
+ readonly constant: true;
174
+ readonly inputs: readonly [{
175
+ readonly internalType: "address";
176
+ readonly name: "owner";
177
+ readonly type: "address";
178
+ }, {
179
+ readonly internalType: "address";
180
+ readonly name: "spender";
181
+ readonly type: "address";
182
+ }];
183
+ readonly name: "allowance";
184
+ readonly outputs: readonly [{
185
+ readonly internalType: "uint256";
186
+ readonly name: "";
187
+ readonly type: "uint256";
188
+ }];
189
+ readonly payable: false;
190
+ readonly stateMutability: "view";
191
+ readonly type: "function";
192
+ }, {
193
+ readonly constant: false;
194
+ readonly inputs: readonly [{
195
+ readonly internalType: "address";
196
+ readonly name: "spender";
197
+ readonly type: "address";
198
+ }, {
199
+ readonly internalType: "uint256";
200
+ readonly name: "value";
201
+ readonly type: "uint256";
202
+ }];
203
+ readonly name: "approve";
204
+ readonly outputs: readonly [{
205
+ readonly internalType: "bool";
206
+ readonly name: "";
207
+ readonly type: "bool";
208
+ }];
209
+ readonly payable: false;
210
+ readonly stateMutability: "nonpayable";
211
+ readonly type: "function";
212
+ }, {
213
+ readonly constant: true;
214
+ readonly inputs: readonly [{
215
+ readonly internalType: "address";
216
+ readonly name: "owner";
217
+ readonly type: "address";
218
+ }];
219
+ readonly name: "balanceOf";
220
+ readonly outputs: readonly [{
221
+ readonly internalType: "uint256";
222
+ readonly name: "";
223
+ readonly type: "uint256";
224
+ }];
225
+ readonly payable: false;
226
+ readonly stateMutability: "view";
227
+ readonly type: "function";
228
+ }, {
229
+ readonly constant: false;
230
+ readonly inputs: readonly [{
231
+ readonly internalType: "address";
232
+ readonly name: "to";
233
+ readonly type: "address";
234
+ }];
235
+ readonly name: "burn";
236
+ readonly outputs: readonly [{
237
+ readonly internalType: "uint256";
238
+ readonly name: "amount0";
239
+ readonly type: "uint256";
240
+ }, {
241
+ readonly internalType: "uint256";
242
+ readonly name: "amount1";
243
+ readonly type: "uint256";
244
+ }];
245
+ readonly payable: false;
246
+ readonly stateMutability: "nonpayable";
247
+ readonly type: "function";
248
+ }, {
249
+ readonly constant: true;
250
+ readonly inputs: readonly [];
251
+ readonly name: "decimals";
252
+ readonly outputs: readonly [{
253
+ readonly internalType: "uint8";
254
+ readonly name: "";
255
+ readonly type: "uint8";
256
+ }];
257
+ readonly payable: false;
258
+ readonly stateMutability: "pure";
259
+ readonly type: "function";
260
+ }, {
261
+ readonly constant: true;
262
+ readonly inputs: readonly [];
263
+ readonly name: "factory";
264
+ readonly outputs: readonly [{
265
+ readonly internalType: "address";
266
+ readonly name: "";
267
+ readonly type: "address";
268
+ }];
269
+ readonly payable: false;
270
+ readonly stateMutability: "view";
271
+ readonly type: "function";
272
+ }, {
273
+ readonly constant: true;
274
+ readonly inputs: readonly [];
275
+ readonly name: "getReserves";
276
+ readonly outputs: readonly [{
277
+ readonly internalType: "uint112";
278
+ readonly name: "reserve0";
279
+ readonly type: "uint112";
280
+ }, {
281
+ readonly internalType: "uint112";
282
+ readonly name: "reserve1";
283
+ readonly type: "uint112";
284
+ }, {
285
+ readonly internalType: "uint32";
286
+ readonly name: "blockTimestampLast";
287
+ readonly type: "uint32";
288
+ }];
289
+ readonly payable: false;
290
+ readonly stateMutability: "view";
291
+ readonly type: "function";
292
+ }, {
293
+ readonly constant: false;
294
+ readonly inputs: readonly [{
295
+ readonly internalType: "address";
296
+ readonly name: "";
297
+ readonly type: "address";
298
+ }, {
299
+ readonly internalType: "address";
300
+ readonly name: "";
301
+ readonly type: "address";
302
+ }];
303
+ readonly name: "initialize";
304
+ readonly outputs: readonly [];
305
+ readonly payable: false;
306
+ readonly stateMutability: "nonpayable";
307
+ readonly type: "function";
308
+ }, {
309
+ readonly constant: true;
310
+ readonly inputs: readonly [];
311
+ readonly name: "kLast";
312
+ readonly outputs: readonly [{
313
+ readonly internalType: "uint256";
314
+ readonly name: "";
315
+ readonly type: "uint256";
316
+ }];
317
+ readonly payable: false;
318
+ readonly stateMutability: "view";
319
+ readonly type: "function";
320
+ }, {
321
+ readonly constant: false;
322
+ readonly inputs: readonly [{
323
+ readonly internalType: "address";
324
+ readonly name: "to";
325
+ readonly type: "address";
326
+ }];
327
+ readonly name: "mint";
328
+ readonly outputs: readonly [{
329
+ readonly internalType: "uint256";
330
+ readonly name: "liquidity";
331
+ readonly type: "uint256";
332
+ }];
333
+ readonly payable: false;
334
+ readonly stateMutability: "nonpayable";
335
+ readonly type: "function";
336
+ }, {
337
+ readonly constant: true;
338
+ readonly inputs: readonly [];
339
+ readonly name: "name";
340
+ readonly outputs: readonly [{
341
+ readonly internalType: "string";
342
+ readonly name: "";
343
+ readonly type: "string";
344
+ }];
345
+ readonly payable: false;
346
+ readonly stateMutability: "pure";
347
+ readonly type: "function";
348
+ }, {
349
+ readonly constant: true;
350
+ readonly inputs: readonly [{
351
+ readonly internalType: "address";
352
+ readonly name: "owner";
353
+ readonly type: "address";
354
+ }];
355
+ readonly name: "nonces";
356
+ readonly outputs: readonly [{
357
+ readonly internalType: "uint256";
358
+ readonly name: "";
359
+ readonly type: "uint256";
360
+ }];
361
+ readonly payable: false;
362
+ readonly stateMutability: "view";
363
+ readonly type: "function";
364
+ }, {
365
+ readonly constant: false;
366
+ readonly inputs: readonly [{
367
+ readonly internalType: "address";
368
+ readonly name: "owner";
369
+ readonly type: "address";
370
+ }, {
371
+ readonly internalType: "address";
372
+ readonly name: "spender";
373
+ readonly type: "address";
374
+ }, {
375
+ readonly internalType: "uint256";
376
+ readonly name: "value";
377
+ readonly type: "uint256";
378
+ }, {
379
+ readonly internalType: "uint256";
380
+ readonly name: "deadline";
381
+ readonly type: "uint256";
382
+ }, {
383
+ readonly internalType: "uint8";
384
+ readonly name: "v";
385
+ readonly type: "uint8";
386
+ }, {
387
+ readonly internalType: "bytes32";
388
+ readonly name: "r";
389
+ readonly type: "bytes32";
390
+ }, {
391
+ readonly internalType: "bytes32";
392
+ readonly name: "s";
393
+ readonly type: "bytes32";
394
+ }];
395
+ readonly name: "permit";
396
+ readonly outputs: readonly [];
397
+ readonly payable: false;
398
+ readonly stateMutability: "nonpayable";
399
+ readonly type: "function";
400
+ }, {
401
+ readonly constant: true;
402
+ readonly inputs: readonly [];
403
+ readonly name: "price0CumulativeLast";
404
+ readonly outputs: readonly [{
405
+ readonly internalType: "uint256";
406
+ readonly name: "";
407
+ readonly type: "uint256";
408
+ }];
409
+ readonly payable: false;
410
+ readonly stateMutability: "view";
411
+ readonly type: "function";
412
+ }, {
413
+ readonly constant: true;
414
+ readonly inputs: readonly [];
415
+ readonly name: "price1CumulativeLast";
416
+ readonly outputs: readonly [{
417
+ readonly internalType: "uint256";
418
+ readonly name: "";
419
+ readonly type: "uint256";
420
+ }];
421
+ readonly payable: false;
422
+ readonly stateMutability: "view";
423
+ readonly type: "function";
424
+ }, {
425
+ readonly constant: false;
426
+ readonly inputs: readonly [{
427
+ readonly internalType: "address";
428
+ readonly name: "to";
429
+ readonly type: "address";
430
+ }];
431
+ readonly name: "skim";
432
+ readonly outputs: readonly [];
433
+ readonly payable: false;
434
+ readonly stateMutability: "nonpayable";
435
+ readonly type: "function";
436
+ }, {
437
+ readonly constant: false;
438
+ readonly inputs: readonly [{
439
+ readonly internalType: "uint256";
440
+ readonly name: "amount0Out";
441
+ readonly type: "uint256";
442
+ }, {
443
+ readonly internalType: "uint256";
444
+ readonly name: "amount1Out";
445
+ readonly type: "uint256";
446
+ }, {
447
+ readonly internalType: "address";
448
+ readonly name: "to";
449
+ readonly type: "address";
450
+ }, {
451
+ readonly internalType: "bytes";
452
+ readonly name: "data";
453
+ readonly type: "bytes";
454
+ }];
455
+ readonly name: "swap";
456
+ readonly outputs: readonly [];
457
+ readonly payable: false;
458
+ readonly stateMutability: "nonpayable";
459
+ readonly type: "function";
460
+ }, {
461
+ readonly constant: true;
462
+ readonly inputs: readonly [];
463
+ readonly name: "symbol";
464
+ readonly outputs: readonly [{
465
+ readonly internalType: "string";
466
+ readonly name: "";
467
+ readonly type: "string";
468
+ }];
469
+ readonly payable: false;
470
+ readonly stateMutability: "pure";
471
+ readonly type: "function";
472
+ }, {
473
+ readonly constant: false;
474
+ readonly inputs: readonly [];
475
+ readonly name: "sync";
476
+ readonly outputs: readonly [];
477
+ readonly payable: false;
478
+ readonly stateMutability: "nonpayable";
479
+ readonly type: "function";
480
+ }, {
481
+ readonly constant: true;
482
+ readonly inputs: readonly [];
483
+ readonly name: "token0";
484
+ readonly outputs: readonly [{
485
+ readonly internalType: "address";
486
+ readonly name: "";
487
+ readonly type: "address";
488
+ }];
489
+ readonly payable: false;
490
+ readonly stateMutability: "view";
491
+ readonly type: "function";
492
+ }, {
493
+ readonly constant: true;
494
+ readonly inputs: readonly [];
495
+ readonly name: "token1";
496
+ readonly outputs: readonly [{
497
+ readonly internalType: "address";
498
+ readonly name: "";
499
+ readonly type: "address";
500
+ }];
501
+ readonly payable: false;
502
+ readonly stateMutability: "view";
503
+ readonly type: "function";
504
+ }, {
505
+ readonly constant: true;
506
+ readonly inputs: readonly [];
507
+ readonly name: "totalSupply";
508
+ readonly outputs: readonly [{
509
+ readonly internalType: "uint256";
510
+ readonly name: "";
511
+ readonly type: "uint256";
512
+ }];
513
+ readonly payable: false;
514
+ readonly stateMutability: "view";
515
+ readonly type: "function";
516
+ }, {
517
+ readonly constant: false;
518
+ readonly inputs: readonly [{
519
+ readonly internalType: "address";
520
+ readonly name: "to";
521
+ readonly type: "address";
522
+ }, {
523
+ readonly internalType: "uint256";
524
+ readonly name: "value";
525
+ readonly type: "uint256";
526
+ }];
527
+ readonly name: "transfer";
528
+ readonly outputs: readonly [{
529
+ readonly internalType: "bool";
530
+ readonly name: "";
531
+ readonly type: "bool";
532
+ }];
533
+ readonly payable: false;
534
+ readonly stateMutability: "nonpayable";
535
+ readonly type: "function";
536
+ }, {
537
+ readonly constant: false;
538
+ readonly inputs: readonly [{
539
+ readonly internalType: "address";
540
+ readonly name: "from";
541
+ readonly type: "address";
542
+ }, {
543
+ readonly internalType: "address";
544
+ readonly name: "to";
545
+ readonly type: "address";
546
+ }, {
547
+ readonly internalType: "uint256";
548
+ readonly name: "value";
549
+ readonly type: "uint256";
550
+ }];
551
+ readonly name: "transferFrom";
552
+ readonly outputs: readonly [{
553
+ readonly internalType: "bool";
554
+ readonly name: "";
555
+ readonly type: "bool";
556
+ }];
557
+ readonly payable: false;
558
+ readonly stateMutability: "nonpayable";
559
+ readonly type: "function";
560
+ }];
561
+ //# sourceMappingURL=IPancakePair.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPancakePair.d.ts","sourceRoot":"","sources":["../../src/abis/IPancakePair.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAksBnB,CAAA"}
@@ -0,0 +1,47 @@
1
+ export declare const FACTORY_ADDRESS = "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73";
2
+ export declare const FACTORY_ADDRESS_MAP: {
3
+ readonly 1: "0x1097053Fd2ea711dad45caCcc45EfF7548fCB362";
4
+ readonly 5: "0x1097053Fd2ea711dad45caCcc45EfF7548fCB362";
5
+ readonly 56: "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73";
6
+ readonly 97: "0x6725F303b657a9451d8BA641348b6761A6CC7a17";
7
+ readonly 42161: "0x02a84c1b3BBD7401a5f7fa98a384EBC70bB5749E";
8
+ readonly 421613: "0x333EAE459075b1d7dE8eb57997b5d4eee5F1070a";
9
+ readonly 1101: "0x02a84c1b3BBD7401a5f7fa98a384EBC70bB5749E";
10
+ readonly 1442: "0xBA40c83026213F9cbc79998752721a0312bdB74a";
11
+ readonly 324: "0xd03D8D566183F0086d8D09A84E1e30b58Dd5619d";
12
+ readonly 280: "0x48a33610Cd0E130af2024D55F67aE72a8C51aC27";
13
+ readonly 59144: "0x02a84c1b3BBD7401a5f7fa98a384EBC70bB5749E";
14
+ readonly 59140: "0xB6FAfd4ADbCd21cF665909767e0eD0D05709abfB";
15
+ readonly 204: "0x02a84c1b3BBD7401a5f7fa98a384EBC70bB5749E";
16
+ readonly 5611: "0x776e4bD2f72de2176A59465e316335aaf8ed4E8F";
17
+ readonly 8453: "0x02a84c1b3BBD7401a5f7fa98a384EBC70bB5749E";
18
+ readonly 84531: "0x715303D2eF7dA7FFAbF637651D71FD11d41fAf7F";
19
+ readonly 534351: "0x2B3C5df29F73dbF028BA82C33e0A5A6e5800F75e";
20
+ readonly 11155111: "0x1bdc540dEB9Ed1fA29964DeEcCc524A8f5e2198e";
21
+ readonly 421614: "0x02a84c1b3BBD7401a5f7fa98a384EBC70bB5749E";
22
+ readonly 84532: "0x02a84c1b3BBD7401a5f7fa98a384EBC70bB5749E";
23
+ };
24
+ export declare const INIT_CODE_HASH = "0x00fb7f630766e6a796048ea87d01acd3068e8ff67d078148a3fa3f4a84f69bd5";
25
+ export declare const INIT_CODE_HASH_MAP: {
26
+ readonly 1: "0x57224589c67f3f30a6b0d7a1b54cf3153ab84563bc609ef41dfb34f8b2974d2d";
27
+ readonly 5: "0x57224589c67f3f30a6b0d7a1b54cf3153ab84563bc609ef41dfb34f8b2974d2d";
28
+ readonly 56: "0x00fb7f630766e6a796048ea87d01acd3068e8ff67d078148a3fa3f4a84f69bd5";
29
+ readonly 97: "0xd0d4c4cd0848c93cb4fd1f498d7013ee6bfb25783ea21593d5834f5d250ece66";
30
+ readonly 42161: "0x57224589c67f3f30a6b0d7a1b54cf3153ab84563bc609ef41dfb34f8b2974d2d";
31
+ readonly 421613: "0x57224589c67f3f30a6b0d7a1b54cf3153ab84563bc609ef41dfb34f8b2974d2d";
32
+ readonly 1101: "0x57224589c67f3f30a6b0d7a1b54cf3153ab84563bc609ef41dfb34f8b2974d2d";
33
+ readonly 1442: "0x57224589c67f3f30a6b0d7a1b54cf3153ab84563bc609ef41dfb34f8b2974d2d";
34
+ readonly 324: "0x0100045707a42494392b3558029b9869f865ff9df8f375dc1bf20b0555093f43";
35
+ readonly 280: "0x0100045707a42494392b3558029b9869f865ff9df8f375dc1bf20b0555093f43";
36
+ readonly 59144: "0x57224589c67f3f30a6b0d7a1b54cf3153ab84563bc609ef41dfb34f8b2974d2d";
37
+ readonly 59140: "0x57224589c67f3f30a6b0d7a1b54cf3153ab84563bc609ef41dfb34f8b2974d2d";
38
+ readonly 204: "0x57224589c67f3f30a6b0d7a1b54cf3153ab84563bc609ef41dfb34f8b2974d2d";
39
+ readonly 5611: "0x57224589c67f3f30a6b0d7a1b54cf3153ab84563bc609ef41dfb34f8b2974d2d";
40
+ readonly 8453: "0x57224589c67f3f30a6b0d7a1b54cf3153ab84563bc609ef41dfb34f8b2974d2d";
41
+ readonly 84531: "0xa5934690703a592a07e841ca29d5e5c79b5e22ed4749057bb216dc31100be1c0";
42
+ readonly 534351: "0x57224589c67f3f30a6b0d7a1b54cf3153ab84563bc609ef41dfb34f8b2974d2d";
43
+ readonly 11155111: "0x57224589c67f3f30a6b0d7a1b54cf3153ab84563bc609ef41dfb34f8b2974d2d";
44
+ readonly 421614: "0x57224589c67f3f30a6b0d7a1b54cf3153ab84563bc609ef41dfb34f8b2974d2d";
45
+ readonly 84532: "0x57224589c67f3f30a6b0d7a1b54cf3153ab84563bc609ef41dfb34f8b2974d2d";
46
+ };
47
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,+CAA+C,CAAA;AAI3E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;CAqBa,CAAA;AAE7C,eAAO,MAAM,cAAc,uEAAuE,CAAA;AAGlG,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;CAqBW,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './pair';
2
+ export * from './route';
3
+ export * from './trade';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
@@ -0,0 +1,46 @@
1
+ import { CurrencyAmount, Price, BigintIsh } from '@pancakeswap/swap-sdk-core';
2
+ import { Address } from 'viem';
3
+ import { ERC20Token } from '@pancakeswap/swap-sdk-evm';
4
+ export declare const computePairAddress: ({ factoryAddress, tokenA, tokenB, }: {
5
+ factoryAddress: Address;
6
+ tokenA: ERC20Token;
7
+ tokenB: ERC20Token;
8
+ }) => Address;
9
+ export declare class Pair {
10
+ readonly liquidityToken: ERC20Token;
11
+ private readonly tokenAmounts;
12
+ static getAddress(tokenA: ERC20Token, tokenB: ERC20Token): Address;
13
+ constructor(currencyAmountA: CurrencyAmount<ERC20Token>, tokenAmountB: CurrencyAmount<ERC20Token>);
14
+ /**
15
+ * Returns true if the token is either token0 or token1
16
+ * @param token to check
17
+ */
18
+ involvesToken(token: ERC20Token): boolean;
19
+ /**
20
+ * Returns the current mid price of the pair in terms of token0, i.e. the ratio of reserve1 to reserve0
21
+ */
22
+ get token0Price(): Price<ERC20Token, ERC20Token>;
23
+ /**
24
+ * Returns the current mid price of the pair in terms of token1, i.e. the ratio of reserve0 to reserve1
25
+ */
26
+ get token1Price(): Price<ERC20Token, ERC20Token>;
27
+ /**
28
+ * Return the price of the given token in terms of the other token in the pair.
29
+ * @param token token to return price of
30
+ */
31
+ priceOf(token: ERC20Token): Price<ERC20Token, ERC20Token>;
32
+ /**
33
+ * Returns the chain ID of the tokens in the pair.
34
+ */
35
+ get chainId(): number;
36
+ get token0(): ERC20Token;
37
+ get token1(): ERC20Token;
38
+ get reserve0(): CurrencyAmount<ERC20Token>;
39
+ get reserve1(): CurrencyAmount<ERC20Token>;
40
+ reserveOf(token: ERC20Token): CurrencyAmount<ERC20Token>;
41
+ getOutputAmount(inputAmount: CurrencyAmount<ERC20Token>): [CurrencyAmount<ERC20Token>, Pair];
42
+ getInputAmount(outputAmount: CurrencyAmount<ERC20Token>): [CurrencyAmount<ERC20Token>, Pair];
43
+ getLiquidityMinted(totalSupply: CurrencyAmount<ERC20Token>, tokenAmountA: CurrencyAmount<ERC20Token>, tokenAmountB: CurrencyAmount<ERC20Token>): CurrencyAmount<ERC20Token>;
44
+ getLiquidityValue(token: ERC20Token, totalSupply: CurrencyAmount<ERC20Token>, liquidity: CurrencyAmount<ERC20Token>, feeOn?: boolean, kLast?: BigintIsh): CurrencyAmount<ERC20Token>;
45
+ }
46
+ //# sourceMappingURL=pair.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pair.d.ts","sourceRoot":"","sources":["../../src/entities/pair.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,cAAc,EACd,KAAK,EAML,SAAS,EAEV,MAAM,4BAA4B,CAAA;AACnC,OAAO,EACL,OAAO,EAYR,MAAM,MAAM,CAAA;AAGb,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AA8BtD,eAAO,MAAM,kBAAkB;oBAKb,OAAO;YACf,UAAU;YACV,UAAU;MAChB,OAoBH,CAAA;AAED,qBAAa,IAAI;IACf,SAAgB,cAAc,EAAE,UAAU,CAAA;IAE1C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA0D;WAEzE,UAAU,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,GAAG,OAAO;gBAQtD,eAAe,EAAE,cAAc,CAAC,UAAU,CAAC,EAAE,YAAY,EAAE,cAAc,CAAC,UAAU,CAAC;IAcxG;;;OAGG;IACI,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO;IAIhD;;OAEG;IACH,IAAW,WAAW,IAAI,KAAK,CAAC,UAAU,EAAE,UAAU,CAAC,CAGtD;IAED;;OAEG;IACH,IAAW,WAAW,IAAI,KAAK,CAAC,UAAU,EAAE,UAAU,CAAC,CAGtD;IAED;;;OAGG;IACI,OAAO,CAAC,KAAK,EAAE,UAAU,GAAG,KAAK,CAAC,UAAU,EAAE,UAAU,CAAC;IAKhE;;OAEG;IACH,IAAW,OAAO,IAAI,MAAM,CAE3B;IAED,IAAW,MAAM,IAAI,UAAU,CAE9B;IAED,IAAW,MAAM,IAAI,UAAU,CAE9B;IAED,IAAW,QAAQ,IAAI,cAAc,CAAC,UAAU,CAAC,CAEhD;IAED,IAAW,QAAQ,IAAI,cAAc,CAAC,UAAU,CAAC,CAEhD;IAEM,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,cAAc,CAAC,UAAU,CAAC;IAKxD,eAAe,CAAC,WAAW,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC;IAoB5F,cAAc,CAAC,YAAY,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC;IAqB5F,kBAAkB,CACvB,WAAW,EAAE,cAAc,CAAC,UAAU,CAAC,EACvC,YAAY,EAAE,cAAc,CAAC,UAAU,CAAC,EACxC,YAAY,EAAE,cAAc,CAAC,UAAU,CAAC,GACvC,cAAc,CAAC,UAAU,CAAC;IAqBtB,iBAAiB,CACtB,KAAK,EAAE,UAAU,EACjB,WAAW,EAAE,cAAc,CAAC,UAAU,CAAC,EACvC,SAAS,EAAE,cAAc,CAAC,UAAU,CAAC,EACrC,KAAK,UAAQ,EACb,KAAK,CAAC,EAAE,SAAS,GAChB,cAAc,CAAC,UAAU,CAAC;CAiC9B"}
@@ -0,0 +1,13 @@
1
+ import { Token, Currency, Price } from '@pancakeswap/swap-sdk-core';
2
+ import { Pair } from './pair';
3
+ export declare class Route<TInput extends Currency, TOutput extends Currency> {
4
+ readonly pairs: Pair[];
5
+ readonly path: Token[];
6
+ readonly input: TInput;
7
+ readonly output: TOutput;
8
+ constructor(pairs: Pair[], input: TInput, output: TOutput);
9
+ private _midPrice;
10
+ get midPrice(): Price<TInput, TOutput>;
11
+ get chainId(): number;
12
+ }
13
+ //# sourceMappingURL=route.d.ts.map