@pancakeswap/sdk 3.1.4 → 3.2.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/index.d.ts CHANGED
@@ -258,10 +258,6 @@ interface SwapParameters {
258
258
  * Represents the Pancake Router, and has static methods for helping execute trades.
259
259
  */
260
260
  declare abstract class Router {
261
- /**
262
- * Cannot be constructed.
263
- */
264
- private constructor();
265
261
  /**
266
262
  * Produces the on-chain method name to call and the hex encoded parameters to pass as arguments for a given trade.
267
263
  * @param trade to produce call parameters for
@@ -270,4 +266,17 @@ declare abstract class Router {
270
266
  static swapCallParameters(trade: Trade<Currency, Currency, TradeType>, options: TradeOptions | TradeOptionsDeadline): SwapParameters;
271
267
  }
272
268
 
273
- export { BestTradeOptions, ChainId, ERC20Token, FACTORY_ADDRESS, FACTORY_ADDRESS_MAP, INIT_CODE_HASH, INIT_CODE_HASH_MAP, NATIVE, Native, ONE_HUNDRED_PERCENT, Pair, Route, Router, SwapParameters, Trade, TradeOptions, TradeOptionsDeadline, WBNB, WETH9, WNATIVE, ZERO_PERCENT, computePairAddress, inputOutputComparator, isTradeBetter, tradeComparator };
269
+ declare function validateAndParseAddress(address: string): string;
270
+
271
+ /**
272
+ * Ether is the main usage of a 'native' currency, i.e. for Ethereum mainnet and all testnets
273
+ */
274
+ declare class Ether extends NativeCurrency {
275
+ protected constructor(chainId: number);
276
+ get wrapped(): Token;
277
+ private static _etherCache;
278
+ static onChain(chainId: number): Ether;
279
+ equals(other: Currency): boolean;
280
+ }
281
+
282
+ export { BestTradeOptions, ChainId, ERC20Token, Ether, FACTORY_ADDRESS, FACTORY_ADDRESS_MAP, INIT_CODE_HASH, INIT_CODE_HASH_MAP, NATIVE, Native, ONE_HUNDRED_PERCENT, Pair, Route, Router, SwapParameters, Trade, TradeOptions, TradeOptionsDeadline, WBNB, WETH9, WNATIVE, ZERO_PERCENT, computePairAddress, inputOutputComparator, isTradeBetter, tradeComparator, validateAndParseAddress };