@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.
Files changed (65) hide show
  1. package/dist/constants/contracts.d.ts +15 -0
  2. package/dist/constants/contracts.d.ts.map +1 -1
  3. package/dist/constants/pools/1101.d.ts +5 -0
  4. package/dist/constants/pools/1101.d.ts.map +1 -0
  5. package/dist/constants/pools/1442.d.ts +5 -0
  6. package/dist/constants/pools/1442.d.ts.map +1 -0
  7. package/dist/constants/pools/280.d.ts +5 -0
  8. package/dist/constants/pools/280.d.ts.map +1 -0
  9. package/dist/constants/pools/324.d.ts +5 -0
  10. package/dist/constants/pools/324.d.ts.map +1 -0
  11. package/dist/constants/pools/56.d.ts.map +1 -1
  12. package/dist/constants/pools/59140.d.ts +5 -0
  13. package/dist/constants/pools/59140.d.ts.map +1 -0
  14. package/dist/constants/pools/59144.d.ts +5 -0
  15. package/dist/constants/pools/59144.d.ts.map +1 -0
  16. package/dist/constants/pools/8453.d.ts +5 -0
  17. package/dist/constants/pools/8453.d.ts.map +1 -0
  18. package/dist/constants/pools/84531.d.ts +5 -0
  19. package/dist/constants/pools/84531.d.ts.map +1 -0
  20. package/dist/constants/pools/index.d.ts +2 -2
  21. package/dist/constants/pools/index.d.ts.map +1 -1
  22. package/dist/constants/supportedChains.d.ts +1 -1
  23. package/dist/constants/supportedChains.d.ts.map +1 -1
  24. package/dist/index.js +310 -34
  25. package/dist/index.js.map +1 -1
  26. package/dist/index.mjs +311 -35
  27. package/dist/index.mjs.map +1 -1
  28. package/package.json +6 -3
  29. package/.turbo/turbo-build.log +0 -18
  30. package/CHANGELOG.md +0 -132
  31. package/src/abis/ICake.ts +0 -59
  32. package/src/abis/ICakeFlexibleSideVaultV2.ts +0 -487
  33. package/src/abis/ICakeVaultV2.ts +0 -487
  34. package/src/abis/ISmartChef.ts +0 -326
  35. package/src/abis/ISousChef.ts +0 -122
  36. package/src/abis/ISousChefBNB.ts +0 -166
  37. package/src/abis/ISousChefV2.ts +0 -341
  38. package/src/abis/ISousChefV3.ts +0 -326
  39. package/src/constants/contracts.ts +0 -32
  40. package/src/constants/index.ts +0 -10
  41. package/src/constants/pools/1.ts +0 -80
  42. package/src/constants/pools/42161.ts +0 -26
  43. package/src/constants/pools/421613.ts +0 -69
  44. package/src/constants/pools/56.ts +0 -2942
  45. package/src/constants/pools/97.ts +0 -74
  46. package/src/constants/pools/index.ts +0 -50
  47. package/src/constants/supportedChains.ts +0 -11
  48. package/src/index.ts +0 -14
  49. package/src/queries/fetchPools.ts +0 -350
  50. package/src/queries/fetchUserIfo.ts +0 -53
  51. package/src/queries/fetchUserPoolsData.ts +0 -143
  52. package/src/queries/fetchVaultPublic.ts +0 -175
  53. package/src/queries/fetchVaultUser.ts +0 -106
  54. package/src/queries/getAddresses.ts +0 -12
  55. package/src/queries/index.ts +0 -6
  56. package/src/types.ts +0 -207
  57. package/src/utils/apr.ts +0 -35
  58. package/src/utils/getContractAddress.ts +0 -11
  59. package/src/utils/getPoolContractBySousId.ts +0 -111
  60. package/src/utils/index.ts +0 -5
  61. package/src/utils/isLegacyPool.ts +0 -15
  62. package/src/utils/isPoolsSupported.ts +0 -5
  63. package/tsconfig.json +0 -14
  64. package/tsup.config.ts +0 -26
  65. 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
- }))
package/vitest.config.ts DELETED
@@ -1,9 +0,0 @@
1
- import { defineConfig } from 'vitest/config'
2
-
3
- export default defineConfig({
4
- test: {
5
- environment: 'node',
6
- globals: true,
7
- passWithNoTests: true,
8
- },
9
- })