Skip to content

Commit

Permalink
chore: refactor to remove tokeninfo
Browse files Browse the repository at this point in the history
  • Loading branch information
00xSam committed Dec 2, 2024
1 parent b4304ab commit c215233
Show file tree
Hide file tree
Showing 12 changed files with 192 additions and 493 deletions.
4 changes: 4 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { config } from '@meteora-ag/config/eslint/base';

/** @type {import("eslint").Linter.Config} */
export default config;
8 changes: 4 additions & 4 deletions ts-client/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Mercurial Amm Dynamic SDK

<p align="center">
<img align="center" src="https://vaults.mercurial.finance/icons/logo.svg" width="180" height="180" />
<img align="center" src="https://app.meteora.ag/icons/logo.svg" width="180" height="180" />
</p>
<br>

## Getting started

NPM: https://www.npmjs.com/package/@mercurial-finance/dynamic-amm-sdk
NPM: https://www.npmjs.com/package/@meteora-ag/dynamic-amm-sdk

SDK: https://github.com/mercurial-finance/mercurial-dynamic-amm-sdk

Expand All @@ -22,13 +22,13 @@ Discord: https://discord.com/channels/841152225564950528/864859354335412224
1. Install deps

```
npm i @mercurial-finance/dynamic-amm-sdk @project-serum/anchor @solana/web3.js @solana/spl-token @solana/spl-token-registry
npm i @meteora-ag/dynamic-amm-sdk @project-serum/anchor @solana/web3.js @solana/spl-token
```

2. Initialize AmmImpl instance

```ts
import AmmImpl, { MAINNET_POOL } from '@mercurial-finance/dynamic-amm-sdk';
import AmmImpl, { MAINNET_POOL } from '@meteora-ag/dynamic-amm-sdk';
import { PublicKey } from '@solana/web3.js';
import { Wallet, AnchorProvider } from '@project-serum/anchor';

Expand Down
22 changes: 10 additions & 12 deletions ts-client/package.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,25 @@
{
"name": "@mercurial-finance/dynamic-amm-sdk",
"name": "@meteora-ag/dynamic-amm-sdk",
"version": "1.1.18",
"description": "Mercurial Vaults SDK is a typescript library that allows you to interact with Mercurial v2's AMM.",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"scripts": {
"postclone": "pnpm rm @meteora-ag/vault-sdk && pnpm install @meteora-ag/vault-sdk",
"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": {
"@coral-xyz/anchor": "^0.28.0",
"@coral-xyz/borsh": "^0.28.0",
"@mercurial-finance/token-math": "6.0.0",
"@mercurial-finance/vault-sdk": "2.2.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",
"@project-serum/anchor": "^0.24.2",
"@solana/buffer-layout": "^3 || ^4",
"@solana/spl-token": "^0.4.6",
"@solana/spl-token-registry": "^0.2.4574",
"@solana/web3.js": "^1.95.4",
"@solana/buffer-layout": "^4.0.1",
"bn-sqrt": "^1.0.0",
"bn.js": "5.2.1",
"decimal.js": "^10.4.1",
Expand All @@ -44,10 +41,11 @@
"typescript": "^5.5.4"
},
"peerDependencies": {
"@solana/buffer-layout": "^3 || ^4"
},
"resolutions": {
"@solana/buffer-layout": "^4"
"@solana/buffer-layout": "^4.0.1",
"@coral-xyz/anchor": "^0.28.0",
"@solana/spl-token": "^0.4.9",
"@solana/web3.js": "^1.95.5",
"bn.js": "^5.2.1"
},
"directories": {
"test": "tests"
Expand Down
Loading

0 comments on commit c215233

Please sign in to comment.