Skip to content

Commit

Permalink
fix: typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
00xSam committed Dec 4, 2024
1 parent 6c23099 commit 39aa4bf
Show file tree
Hide file tree
Showing 13 changed files with 101 additions and 126 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ ts-client/dist/
ts-client/package-lock.json

ts-client/.env
ts-client/.turbo/

commands
4 changes: 2 additions & 2 deletions ts-client/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VaultIdl as Vault, IDL as VaultIdl } from '@mercurial-finance/vault-sdk';
import { VaultIdl as Vault, IDL as VaultIdl } from '@meteora-ag/vault-sdk';
import AmmImpl from './src/amm';
import DynamicAmmError from './src/amm/error';
import { StableSwap, ConstantProductSwap } from './src/amm/curve';
Expand Down Expand Up @@ -64,5 +64,5 @@ export type {
SwapQuoteParam,
Bootstrapping,
} from './src/amm/types';
export type { VaultState } from '@mercurial-finance/vault-sdk';
export type { VaultState } from '@meteora-ag/vault-sdk';
export type { Amm, Vault };
12 changes: 6 additions & 6 deletions ts-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,33 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"scripts": {
"postclone": "pnpm rm @meteora-ag/vault-sdk @meteora-ag/config && pnpm install @meteora-ag/vault-sdk @meteora-ag/config",
"postclone": "pnpm rm @meteora-ag/vault-sdk @meteora-ag/config && pnpm i @meteora-ag/vault-sdk && pnpm i -D @meteora-ag/config",
"dev": "rm -rf dist && tsc -p tsconfig.dev.json --watch",
"build": "rm -rf dist && tsc -p tsconfig.build.json && tsc -p tsconfig.esm.json",
"test": "jest ./src/amm/tests/*.test.ts --runInBand"
},
"files": [
"dist"
],
"dependencies": {
"@meteora-ag/config": "workspace:*",
"@meteora-ag/vault-sdk": "workspace:*",
"@coral-xyz/borsh": "^0.28.0",
"@mercurial-finance/token-math": "6.0.0",
"@metaplex-foundation/mpl-token-metadata": "~2.13.0",
"@meteora-ag/stake-for-fee": "1.0.28",
"@meteora-ag/vault-sdk": "workspace:*",
"@solana/buffer-layout": "^4.0.1",
"bn-sqrt": "^1.0.0",
"dotenv": "^16.0.1",
"invariant": "^2.2.4"
},
"devDependencies": {
"@tsconfig/recommended": "^1.0.1",
"@meteora-ag/config": "workspace:*",
"@types/bn.js": "^5.1.6",
"@types/chai": "^4.3.1",
"@types/invariant": "^2.2.35",
"@types/jest": "^27.5.1",
"@types/mocha": "^9.1.1",
"@types/node": "^22.10.1",
"chai": "^4.3.6",
"concurrently": "^9.1.0",
"jest": "^28.1.0",
"mocha": "^10.0.0",
"ts-jest": "^28.0.2",
Expand All @@ -41,6 +40,7 @@
},
"peerDependencies": {
"@coral-xyz/anchor": "^0.28.0",
"@coral-xyz/borsh": "^0.28.0",
"@solana/buffer-layout": "^4.0.1",
"@solana/spl-token": "^0.4.9",
"@solana/web3.js": "^1.95.5",
Expand Down
Loading

0 comments on commit 39aa4bf

Please sign in to comment.