@pancakeswap/sdk 5.6.0 → 5.7.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
@@ -1,5 +1,6 @@
1
1
  export * from './constants';
2
2
  export * from './trade';
3
+ export { ChainId } from '@pancakeswap/chains';
3
4
  export * from './entities';
4
5
  export * from './router';
5
6
  export * from './utils';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AAEvB,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AAExB,cAAc,SAAS,CAAA;AAEvB,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AAEzB,cAAc,4BAA4B,CAAA;AAE1C,cAAc,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AAGvB,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAE7C,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AAExB,cAAc,SAAS,CAAA;AAEvB,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AAEzB,cAAc,4BAA4B,CAAA;AAE1C,cAAc,qBAAqB,CAAA"}
package/dist/index.js CHANGED
@@ -1781,6 +1781,10 @@ var Fetcher = class {
1781
1781
  }
1782
1782
  };
1783
1783
 
1784
+ Object.defineProperty(exports, 'ChainId', {
1785
+ enumerable: true,
1786
+ get: function () { return chains.ChainId; }
1787
+ });
1784
1788
  exports.ERC20Token = ERC20Token;
1785
1789
  exports.Ether = Ether;
1786
1790
  exports.FACTORY_ADDRESS = FACTORY_ADDRESS;
package/dist/index.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  import { Percent, Token, BaseCurrency, Price, ZERO, InsufficientReservesError, _9975, _10000, CurrencyAmount, InsufficientInputAmountError, ONE, sqrt, MINIMUM_LIQUIDITY, TradeType, computePriceImpact, Fraction, sortedInsert, NativeCurrency, FIVE } from '@pancakeswap/swap-sdk-core';
2
2
  export * from '@pancakeswap/swap-sdk-core';
3
3
  import { ChainId } from '@pancakeswap/chains';
4
+ export { ChainId } from '@pancakeswap/chains';
4
5
  import invariant5 from 'tiny-invariant';
5
6
  import { createPublicClient, http, getAddress, keccak256, encodePacked, getContract, toBytes, pad, isBytes, slice, concat } from 'viem';
6
7
  import warning from 'tiny-warning';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pancakeswap/sdk",
3
3
  "license": "MIT",
4
- "version": "5.6.0",
4
+ "version": "5.7.0",
5
5
  "description": "🛠 An SDK for building applications on top of Pancakeswap.",
6
6
  "main": "dist/index.js",
7
7
  "typings": "dist/index.d.ts",