@pancakeswap/pools 4.0.8 → 4.0.10
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/constants/contracts.d.ts +15 -0
- package/dist/constants/contracts.d.ts.map +1 -1
- package/dist/constants/pools/1101.d.ts +5 -0
- package/dist/constants/pools/1101.d.ts.map +1 -0
- package/dist/constants/pools/1442.d.ts +5 -0
- package/dist/constants/pools/1442.d.ts.map +1 -0
- package/dist/constants/pools/280.d.ts +5 -0
- package/dist/constants/pools/280.d.ts.map +1 -0
- package/dist/constants/pools/324.d.ts +5 -0
- package/dist/constants/pools/324.d.ts.map +1 -0
- package/dist/constants/pools/56.d.ts.map +1 -1
- package/dist/constants/pools/59140.d.ts +5 -0
- package/dist/constants/pools/59140.d.ts.map +1 -0
- package/dist/constants/pools/59144.d.ts +5 -0
- package/dist/constants/pools/59144.d.ts.map +1 -0
- package/dist/constants/pools/8453.d.ts +5 -0
- package/dist/constants/pools/8453.d.ts.map +1 -0
- package/dist/constants/pools/84531.d.ts +5 -0
- package/dist/constants/pools/84531.d.ts.map +1 -0
- package/dist/constants/pools/index.d.ts +2 -2
- package/dist/constants/pools/index.d.ts.map +1 -1
- package/dist/constants/supportedChains.d.ts +1 -1
- package/dist/constants/supportedChains.d.ts.map +1 -1
- package/dist/index.js +310 -34
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +311 -35
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -3
- package/.turbo/turbo-build.log +0 -18
- package/CHANGELOG.md +0 -132
- package/src/abis/ICake.ts +0 -59
- package/src/abis/ICakeFlexibleSideVaultV2.ts +0 -487
- package/src/abis/ICakeVaultV2.ts +0 -487
- package/src/abis/ISmartChef.ts +0 -326
- package/src/abis/ISousChef.ts +0 -122
- package/src/abis/ISousChefBNB.ts +0 -166
- package/src/abis/ISousChefV2.ts +0 -341
- package/src/abis/ISousChefV3.ts +0 -326
- package/src/constants/contracts.ts +0 -32
- package/src/constants/index.ts +0 -10
- package/src/constants/pools/1.ts +0 -80
- package/src/constants/pools/42161.ts +0 -26
- package/src/constants/pools/421613.ts +0 -69
- package/src/constants/pools/56.ts +0 -2942
- package/src/constants/pools/97.ts +0 -74
- package/src/constants/pools/index.ts +0 -50
- package/src/constants/supportedChains.ts +0 -11
- package/src/index.ts +0 -14
- package/src/queries/fetchPools.ts +0 -350
- package/src/queries/fetchUserIfo.ts +0 -53
- package/src/queries/fetchUserPoolsData.ts +0 -143
- package/src/queries/fetchVaultPublic.ts +0 -175
- package/src/queries/fetchVaultUser.ts +0 -106
- package/src/queries/getAddresses.ts +0 -12
- package/src/queries/index.ts +0 -6
- package/src/types.ts +0 -207
- package/src/utils/apr.ts +0 -35
- package/src/utils/getContractAddress.ts +0 -11
- package/src/utils/getPoolContractBySousId.ts +0 -111
- package/src/utils/index.ts +0 -5
- package/src/utils/isLegacyPool.ts +0 -15
- package/src/utils/isPoolsSupported.ts +0 -5
- package/tsconfig.json +0 -14
- package/tsup.config.ts +0 -26
- package/vitest.config.ts +0 -9
package/tsconfig.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@pancakeswap/tsconfig/base",
|
|
3
|
-
"include": ["./src"],
|
|
4
|
-
"exclude": ["**/*.test.ts", "./dist/**"],
|
|
5
|
-
"compilerOptions": {
|
|
6
|
-
"rootDir": "./src",
|
|
7
|
-
"outDir": "./dist",
|
|
8
|
-
"target": "es2020",
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"resolveJsonModule": true,
|
|
11
|
-
"isolatedModules": true,
|
|
12
|
-
"skipLibCheck": true
|
|
13
|
-
}
|
|
14
|
-
}
|
package/tsup.config.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'tsup'
|
|
2
|
-
import { exec } from 'child_process'
|
|
3
|
-
|
|
4
|
-
export default defineConfig((options) => ({
|
|
5
|
-
entry: {
|
|
6
|
-
index: './src/index.ts',
|
|
7
|
-
},
|
|
8
|
-
sourcemap: true,
|
|
9
|
-
noExternal: ['@pancakeswap/utils'],
|
|
10
|
-
skipNodeModulesBundle: true,
|
|
11
|
-
format: ['esm', 'cjs'],
|
|
12
|
-
dts: false,
|
|
13
|
-
clean: !options.watch,
|
|
14
|
-
treeshake: true,
|
|
15
|
-
splitting: true,
|
|
16
|
-
onSuccess: async () => {
|
|
17
|
-
exec('tsc --emitDeclarationOnly --declaration', (err, stdout) => {
|
|
18
|
-
if (err) {
|
|
19
|
-
console.error(stdout)
|
|
20
|
-
if (!options.watch) {
|
|
21
|
-
process.exit(1)
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
})
|
|
25
|
-
},
|
|
26
|
-
}))
|