diff --git a/ts-client/package.json b/ts-client/package.json index 8a374c1..5fb4f77 100644 --- a/ts-client/package.json +++ b/ts-client/package.json @@ -5,7 +5,7 @@ "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "scripts": { - "postclone": "pnpm rm @meteora-ag/vault-sdk && pnpm install @meteora-ag/vault-sdk", + "postclone": "concurrently 'pnpm rm @meteora-ag/vault-sdk && pnpm install @meteora-ag/vault-sdk' 'pnpm rm @meteora-ag/config && pnpm install @meteora-ag/config'", "build": "rm -rf dist && tsc -p tsconfig.build.json && tsc -p tsconfig.esm.json", "test": "jest ./src/amm/tests/*.test.ts --runInBand" }, @@ -17,8 +17,8 @@ "@mercurial-finance/token-math": "6.0.0", "@metaplex-foundation/mpl-token-metadata": "~2.13.0", "@meteora-ag/config": "workspace:*", - "@meteora-ag/vault-sdk": "workspace:*", "@meteora-ag/stake-for-fee": "1.0.28", + "@meteora-ag/vault-sdk": "workspace:*", "@solana/buffer-layout": "^4.0.1", "bn-sqrt": "^1.0.0", "bn.js": "5.2.1", @@ -34,6 +34,7 @@ "@types/jest": "^27.5.1", "@types/mocha": "^9.1.1", "chai": "^4.3.6", + "concurrently": "^9.1.0", "jest": "^28.1.0", "mocha": "^10.0.0", "ts-jest": "^28.0.2", @@ -41,8 +42,8 @@ "typescript": "^5.5.4" }, "peerDependencies": { - "@solana/buffer-layout": "^4.0.1", "@coral-xyz/anchor": "^0.28.0", + "@solana/buffer-layout": "^4.0.1", "@solana/spl-token": "^0.4.9", "@solana/web3.js": "^1.95.5", "bn.js": "^5.2.1" diff --git a/ts-client/pnpm-lock.yaml b/ts-client/pnpm-lock.yaml index 371f119..f3ba927 100644 --- a/ts-client/pnpm-lock.yaml +++ b/ts-client/pnpm-lock.yaml @@ -75,6 +75,9 @@ importers: chai: specifier: ^4.3.6 version: 4.3.7 + concurrently: + specifier: ^9.1.0 + version: 9.1.0 jest: specifier: ^28.1.0 version: 28.1.3(@types/node@18.15.11) @@ -852,6 +855,11 @@ packages: concat-map@0.0.1: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} + concurrently@9.1.0: + resolution: {integrity: sha512-VxkzwMAn4LP7WyMnJNbHN5mKV9L2IbyDjpzemKr99sXNR3GqRNMMHdm7prV1ws9wg7ETj6WUkNOigZVsptwbgg==} + engines: {node: '>=18'} + hasBin: true + convert-source-map@1.9.0: resolution: {integrity: sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==} @@ -1455,6 +1463,9 @@ packages: lodash.memoize@4.1.2: resolution: {integrity: sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==} + lodash@4.17.21: + resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} + log-symbols@4.1.0: resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==} engines: {node: '>=10'} @@ -1707,6 +1718,9 @@ packages: rpc-websockets@9.0.2: resolution: {integrity: sha512-YzggvfItxMY3Lwuax5rC18inhbjJv9Py7JXRHxTIi94JOLrqBsSsUUc5bbl5W6c11tXhdfpDPK0KzBhoGe8jjw==} + rxjs@7.8.1: + resolution: {integrity: sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==} + safe-buffer@5.2.1: resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} @@ -1734,6 +1748,10 @@ packages: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} + shell-quote@1.8.2: + resolution: {integrity: sha512-AzqKpGKjrj7EM6rKVQEPpB288oCfnrEIuyoT9cyF4nmGa7V8Zk6f7RRqYisX8X9m+Q7bd632aZW4ky7EhbQztA==} + engines: {node: '>= 0.4'} + signal-exit@3.0.7: resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} @@ -1853,6 +1871,10 @@ packages: tr46@0.0.3: resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} + tree-kill@1.2.2: + resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==} + hasBin: true + ts-jest@28.0.8: resolution: {integrity: sha512-5FaG0lXmRPzApix8oFG8RKjAz4ehtm8yMKOTy5HX3fY6W8kmvOrmcY0hKDElW52FJov+clhUbrKAqofnj4mXTg==} engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0} @@ -2015,6 +2037,10 @@ packages: resolution: {integrity: sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw==} engines: {node: '>=12'} + yargs@17.7.2: + resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==} + engines: {node: '>=12'} + yn@2.0.0: resolution: {integrity: sha512-uTv8J/wiWTgUTg+9vLTi//leUl5vDQS6uii/emeTb2ssY7vl6QWf2fFbIIGjnhjvbdKlU0ed7QPgY1htTC86jQ==} engines: {node: '>=4'} @@ -3101,6 +3127,16 @@ snapshots: concat-map@0.0.1: {} + concurrently@9.1.0: + dependencies: + chalk: 4.1.2 + lodash: 4.17.21 + rxjs: 7.8.1 + shell-quote: 1.8.2 + supports-color: 8.1.1 + tree-kill: 1.2.2 + yargs: 17.7.2 + convert-source-map@1.9.0: {} cross-fetch@3.1.5: @@ -3836,6 +3872,8 @@ snapshots: lodash.memoize@4.1.2: {} + lodash@4.17.21: {} + log-symbols@4.1.0: dependencies: chalk: 4.1.2 @@ -4088,6 +4126,10 @@ snapshots: bufferutil: 4.0.7 utf-8-validate: 5.0.10 + rxjs@7.8.1: + dependencies: + tslib: 2.6.3 + safe-buffer@5.2.1: {} semver@6.3.0: {} @@ -4115,6 +4157,8 @@ snapshots: shebang-regex@3.0.0: {} + shell-quote@1.8.2: {} + signal-exit@3.0.7: {} sisteransi@1.0.5: {} @@ -4220,6 +4264,8 @@ snapshots: tr46@0.0.3: {} + tree-kill@1.2.2: {} + ts-jest@28.0.8(@babel/core@7.21.4)(@jest/types@28.1.3)(babel-jest@28.1.3(@babel/core@7.21.4))(jest@28.1.3(@types/node@18.15.11))(typescript@5.5.4): dependencies: bs-logger: 0.2.6 @@ -4385,6 +4431,16 @@ snapshots: y18n: 5.0.8 yargs-parser: 21.1.1 + yargs@17.7.2: + dependencies: + cliui: 8.0.1 + escalade: 3.1.1 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + string-width: 4.2.3 + y18n: 5.0.8 + yargs-parser: 21.1.1 + yn@2.0.0: {} yocto-queue@0.1.0: {}