@cetusprotocol/dlmm-sdk 0.0.4 → 0.0.5
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/.turbo/turbo-build.log +16 -16
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/config/mainnet.ts +1 -1
- package/src/utils/strategyUtils.ts +2 -2
- package/src/utils/weightUtils.ts +13 -3
- package/tests/bin.test.ts +29 -14
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @cetusprotocol/dlmm-sdk@0.0.
|
|
3
|
+
> @cetusprotocol/dlmm-sdk@0.0.5 build /Users/sunny/Desktop/cetus-ts-sdk-desktop/packages/dlmm
|
|
4
4
|
> pnpm run build:tsup
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
> @cetusprotocol/dlmm-sdk@0.0.
|
|
7
|
+
> @cetusprotocol/dlmm-sdk@0.0.5 build:tsup /Users/sunny/Desktop/cetus-ts-sdk-desktop/packages/dlmm
|
|
8
8
|
> npm run build:clean && npm run _build:node
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
> @cetusprotocol/dlmm-sdk@0.0.
|
|
11
|
+
> @cetusprotocol/dlmm-sdk@0.0.5 build:clean
|
|
12
12
|
> rm -rf dist
|
|
13
13
|
|
|
14
14
|
[1G[0K[1G[0K⠙[1G[0K
|
|
15
|
-
> @cetusprotocol/dlmm-sdk@0.0.
|
|
15
|
+
> @cetusprotocol/dlmm-sdk@0.0.5 _build:node
|
|
16
16
|
> tsup --format cjs,esm --dts
|
|
17
17
|
|
|
18
18
|
[1G[0K[34mCLI[39m Building entry: src/index.ts
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
[34mCLI[39m Target: esnext
|
|
23
23
|
[34mCJS[39m Build start
|
|
24
24
|
[34mESM[39m Build start
|
|
25
|
-
[
|
|
26
|
-
[
|
|
27
|
-
[
|
|
28
|
-
[
|
|
29
|
-
[
|
|
30
|
-
[
|
|
25
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m136.90 KB[39m
|
|
26
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m609.87 KB[39m
|
|
27
|
+
[32mESM[39m ⚡️ Build success in 164ms
|
|
28
|
+
[32mCJS[39m [1mdist/index.js [22m[32m140.64 KB[39m
|
|
29
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m608.87 KB[39m
|
|
30
|
+
[32mCJS[39m ⚡️ Build success in 165ms
|
|
31
31
|
DTS Build start
|
|
32
32
|
======== Resolving module './sdk' from '/Users/sunny/Desktop/cetus-ts-sdk-desktop/packages/dlmm/src/index.ts'. ========
|
|
33
33
|
Explicitly specified module resolution kind: 'Node10'.
|
|
@@ -109,7 +109,7 @@ Loading module as file / folder, candidate module location '/Users/sunny/Desktop
|
|
|
109
109
|
File '/Users/sunny/Desktop/cetus-ts-sdk-desktop/packages/dlmm/src/modules/poolModule.ts' exists - use it as a name resolution result.
|
|
110
110
|
======== Module name './modules/poolModule' was successfully resolved to '/Users/sunny/Desktop/cetus-ts-sdk-desktop/packages/dlmm/src/modules/poolModule.ts'. ========
|
|
111
111
|
======== Resolving module './config/testnet' from '/Users/sunny/Desktop/cetus-ts-sdk-desktop/packages/dlmm/src/sdk.ts'. ========
|
|
112
|
-
Explicitly specified module resolution kind: 'Node10'.
|
|
112
|
+
Explicitly specified module resolution kind: 'Node10'.
|
|
113
113
|
Loading module as file / folder, candidate module location '/Users/sunny/Desktop/cetus-ts-sdk-desktop/packages/dlmm/src/config/testnet', target file types: TypeScript, Declaration.
|
|
114
114
|
File '/Users/sunny/Desktop/cetus-ts-sdk-desktop/packages/dlmm/src/config/testnet.ts' exists - use it as a name resolution result.
|
|
115
115
|
======== Module name './config/testnet' was successfully resolved to '/Users/sunny/Desktop/cetus-ts-sdk-desktop/packages/dlmm/src/config/testnet.ts'. ========
|
|
@@ -2881,7 +2881,7 @@ Resolution for module 'stream' was found in cache from location '/Users/sunny/De
|
|
|
2881
2881
|
Resolution for module './dispatcher' was found in cache from location '/Users/sunny/Desktop/cetus-ts-sdk-desktop/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types'.
|
|
2882
2882
|
======== Module name './dispatcher' was successfully resolved to '/Users/sunny/Desktop/cetus-ts-sdk-desktop/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts' with Package ID 'undici-types/dispatcher.d.ts@6.21.0'. ========
|
|
2883
2883
|
File '/Users/sunny/Desktop/cetus-ts-sdk-desktop/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/package.json' exists according to earlier cached lookups.
|
|
2884
|
-
======== Resolving module './dispatcher' from '/Users/sunny/Desktop/cetus-ts-sdk-desktop/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts'. ========
|
|
2884
|
+
======== Resolving module './dispatcher' from '/Users/sunny/Desktop/cetus-ts-sdk-desktop/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts'. ========
|
|
2885
2885
|
Resolution for module './dispatcher' was found in cache from location '/Users/sunny/Desktop/cetus-ts-sdk-desktop/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types'.
|
|
2886
2886
|
======== Module name './dispatcher' was successfully resolved to '/Users/sunny/Desktop/cetus-ts-sdk-desktop/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts' with Package ID 'undici-types/dispatcher.d.ts@6.21.0'. ========
|
|
2887
2887
|
======== Resolving module './retry-handler' from '/Users/sunny/Desktop/cetus-ts-sdk-desktop/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts'. ========
|
|
@@ -2988,7 +2988,7 @@ Resolution for type reference directive 'node' was found in cache from location
|
|
|
2988
2988
|
======== Type reference directive 'node' was successfully resolved to '/Users/sunny/Desktop/cetus-ts-sdk-desktop/node_modules/.pnpm/@types+node@22.18.6/node_modules/@types/node/index.d.ts' with Package ID '@types/node/index.d.ts@22.18.6', primary: true. ========
|
|
2989
2989
|
======== Resolving module 'buffer' from '/Users/sunny/Desktop/cetus-ts-sdk-desktop/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts'. ========
|
|
2990
2990
|
Resolution for module 'buffer' was found in cache from location '/Users/sunny/Desktop/cetus-ts-sdk-desktop/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types'.
|
|
2991
|
-
======== Module name 'buffer' was successfully resolved to '/Users/sunny/Desktop/cetus-ts-sdk-desktop/node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.d.ts' with Package ID 'buffer/index.d.ts@6.0.3'. ========
|
|
2991
|
+
======== Module name 'buffer' was successfully resolved to '/Users/sunny/Desktop/cetus-ts-sdk-desktop/node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.d.ts' with Package ID 'buffer/index.d.ts@6.0.3'. ========
|
|
2992
2992
|
======== Resolving module './patch' from '/Users/sunny/Desktop/cetus-ts-sdk-desktop/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts'. ========
|
|
2993
2993
|
Resolution for module './patch' was found in cache from location '/Users/sunny/Desktop/cetus-ts-sdk-desktop/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types'.
|
|
2994
2994
|
======== Module name './patch' was successfully resolved to '/Users/sunny/Desktop/cetus-ts-sdk-desktop/node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/patch.d.ts' with Package ID 'undici-types/patch.d.ts@6.21.0'. ========
|
|
@@ -6901,7 +6901,7 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
|
|
|
6901
6901
|
'baseUrl' option is set to '/Users/sunny/Desktop/cetus-ts-sdk-desktop', using this value to resolve non-relative module name 'zlib'.
|
|
6902
6902
|
Resolving module name 'zlib' relative to base url '/Users/sunny/Desktop/cetus-ts-sdk-desktop' - '/Users/sunny/Desktop/cetus-ts-sdk-desktop/zlib'.
|
|
6903
6903
|
Loading module as file / folder, candidate module location '/Users/sunny/Desktop/cetus-ts-sdk-desktop/zlib', target file types: JavaScript, JSON.
|
|
6904
|
-
File '/Users/sunny/Desktop/cetus-ts-sdk-desktop/zlib.js' does not exist.
|
|
6904
|
+
File '/Users/sunny/Desktop/cetus-ts-sdk-desktop/zlib.js' does not exist.
|
|
6905
6905
|
File '/Users/sunny/Desktop/cetus-ts-sdk-desktop/zlib.jsx' does not exist.
|
|
6906
6906
|
Directory '/Users/sunny/Desktop/cetus-ts-sdk-desktop/zlib' does not exist, skipping all lookups in it.
|
|
6907
6907
|
Loading module 'zlib' from 'node_modules' folder, target file types: JavaScript, JSON.
|
|
@@ -9261,7 +9261,7 @@ Resolving real path for '/Users/sunny/Desktop/cetus-ts-sdk-desktop/node_modules/
|
|
|
9261
9261
|
Resolving real path for '/Users/sunny/Desktop/cetus-ts-sdk-desktop/node_modules/@types/jest/index.d.ts', result '/Users/sunny/Desktop/cetus-ts-sdk-desktop/node_modules/.pnpm/@types+jest@29.5.14/node_modules/@types/jest/index.d.ts'.
|
|
9262
9262
|
======== Type reference directive 'jest' was successfully resolved to '/Users/sunny/Desktop/cetus-ts-sdk-desktop/node_modules/.pnpm/@types+jest@29.5.14/node_modules/@types/jest/index.d.ts' with Package ID '@types/jest/index.d.ts@29.5.14', primary: true. ========
|
|
9263
9263
|
Found 'package.json' at '/Users/sunny/Desktop/cetus-ts-sdk-desktop/node_modules/.pnpm/@types+jest@29.5.14/node_modules/@types/jest/package.json'.
|
|
9264
|
-
======== Resolving module 'expect' from '/Users/sunny/Desktop/cetus-ts-sdk-desktop/node_modules/.pnpm/@types+jest@29.5.14/node_modules/@types/jest/index.d.ts'. ========
|
|
9264
|
+
======== Resolving module 'expect' from '/Users/sunny/Desktop/cetus-ts-sdk-desktop/node_modules/.pnpm/@types+jest@29.5.14/node_modules/@types/jest/index.d.ts'. ========
|
|
9265
9265
|
Explicitly specified module resolution kind: 'Node10'.
|
|
9266
9266
|
'baseUrl' option is set to '/Users/sunny/Desktop/cetus-ts-sdk-desktop', using this value to resolve non-relative module name 'expect'.
|
|
9267
9267
|
'paths' option is specified, looking for a pattern to match module name 'expect'.
|
|
@@ -10479,7 +10479,7 @@ Directory '/node_modules' does not exist, skipping all lookups in it.
|
|
|
10479
10479
|
======== Module name '@typescript/lib-dom' was not resolved. ========
|
|
10480
10480
|
File '/Users/sunny/Desktop/cetus-ts-sdk-desktop/node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/lib/package.json' does not exist according to earlier cached lookups.
|
|
10481
10481
|
File '/Users/sunny/Desktop/cetus-ts-sdk-desktop/node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/package.json' exists according to earlier cached lookups.
|
|
10482
|
-
DTS ⚡️ Build success in
|
|
10482
|
+
DTS ⚡️ Build success in 2296ms
|
|
10483
10483
|
DTS dist/index.d.ts 40.78 KB
|
|
10484
10484
|
DTS dist/index.d.mts 40.78 KB
|
|
10485
10485
|
[1G[0K⠙[1G[0K
|