@pancakeswap/sdk 5.6.0 → 5.7.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/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.mjs +1 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,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.
|
|
4
|
+
"version": "5.7.1",
|
|
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",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"tiny-invariant": "^1.1.0",
|
|
33
33
|
"tiny-warning": "^1.0.3",
|
|
34
34
|
"toformat": "^2.0.0",
|
|
35
|
-
"viem": "^1.
|
|
36
|
-
"@pancakeswap/chains": "^0.
|
|
35
|
+
"viem": "^1.15.1",
|
|
36
|
+
"@pancakeswap/chains": "^0.2.0",
|
|
37
37
|
"@pancakeswap/swap-sdk-core": "1.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|