@pancakeswap/swap-sdk-core 1.4.0 → 1.5.1

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/utils.d.ts DELETED
@@ -1,22 +0,0 @@
1
- import { VMType } from './constants';
2
- import { Currency } from './currency';
3
- import { CurrencyAmount, Percent, Price } from './fractions';
4
- import { Token } from './token';
5
- export declare function validateVMTypeInstance(value: bigint, vmType: VMType): void;
6
- export declare function sqrt(y: bigint): bigint;
7
- export declare function sortedInsert<T>(items: T[], add: T, maxSize: number, comparator: (a: T, b: T) => number): T | null;
8
- /**
9
- * Returns the percent difference between the mid price and the execution price, i.e. price impact.
10
- * @param midPrice mid price before the trade
11
- * @param inputAmount the input amount of the trade
12
- * @param outputAmount the output amount of the trade
13
- */
14
- export declare function computePriceImpact<TBase extends Currency, TQuote extends Currency>(midPrice: Price<TBase, TQuote>, inputAmount: CurrencyAmount<TBase>, outputAmount: CurrencyAmount<TQuote>): Percent;
15
- export declare function getTokenComparator(balances: {
16
- [tokenAddress: string]: CurrencyAmount<Token> | undefined;
17
- }): (tokenA: Token, tokenB: Token) => number;
18
- export declare function sortCurrencies<T extends Currency>(currencies: T[]): T[];
19
- export declare const isCurrencySorted: (currencyA: Currency, currencyB: Currency) => boolean;
20
- export declare function getCurrencyAddress(currency: Currency): `0x${string}`;
21
- export declare function getMatchedCurrency(currency: Currency, list: Currency[], matchWrappedCurrency?: boolean): Currency | undefined;
22
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,MAAM,EAAsC,MAAM,aAAa,CAAA;AACzF,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM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