Skip to content

Commit

Permalink
Merge pull request #73 from solendprotocol/sdk-refactor
Browse files Browse the repository at this point in the history
SDK refactor
  • Loading branch information
0xodia authored Apr 3, 2024
2 parents 8e1b892 + 4ceba7b commit efc3925
Show file tree
Hide file tree
Showing 59 changed files with 1,304 additions and 3,392 deletions.
1 change: 1 addition & 0 deletions solend-lite/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.17.0
2 changes: 1 addition & 1 deletion solend-lite/src/stores/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ export const selectedPoolAtom = atom(
getReservesOfPool(
new PublicKey(newSelectedPoolAddress),
connection,
switchboardProgram,
PROGRAM_ID,
currentSlot,
switchboardProgram,
DEBUG_MODE,
);

Expand Down
78 changes: 0 additions & 78 deletions solend-sdk/__tests__/flash_loan.test.ts

This file was deleted.

191 changes: 0 additions & 191 deletions solend-sdk/__tests__/market.test.ts

This file was deleted.

5 changes: 0 additions & 5 deletions solend-sdk/__tests__/obligation.test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import {
Connection,
Keypair,
Transaction,
LAMPORTS_PER_SOL,
PublicKey,
} from "@solana/web3.js";
import BN from "bn.js";
import * as anchor from "@project-serum/anchor";
import { parseObligation } from "../src";

jest.setTimeout(50_000);
Expand Down
11 changes: 2 additions & 9 deletions solend-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@solendprotocol/solend-sdk",
"version": "0.8.8",
"version": "0.9.0",
"private": true,
"main": "src/index.ts",
"module": "src/index.ts",
Expand All @@ -20,16 +20,13 @@
"release": "yarn build; ts-node ./prepublish.ts; yarn --cwd ./dist publish"
},
"dependencies": {
"@marinade.finance/marinade-ts-sdk": "^3.1.1",
"@mithraic-labs/psy-american": "^0.2.1",
"@project-serum/anchor": "^0.24.2",
"@pythnetwork/client": "^2.5.1",
"@solana/buffer-layout": "^4.0.0",
"@solana/spl-token": "^0.3.6",
"@solana/web3.js": "^1.78.7",
"@solflare-wallet/utl-sdk": "^1.4.0",
"@switchboard-xyz/sbv2-lite": "^0.2.4",
"@types/bn.js": "^5.1.1",
"axios": "^0.24.0",
"bignumber.js": "^9.0.2",
"bn.js": "^5.2.0",
Expand All @@ -42,12 +39,8 @@
"typedoc-plugin-cname": "^1.0.1"
},
"devDependencies": {
"@jup-ag/core": "^2.0.0-beta.3",
"@orca-so/sdk": "^1.2.25",
"@types/bs58": "^4.0.1",
"@types/bn.js": "^5.1.1",
"@types/jest": "^29.2.3",
"@types/node": "^20.8.6",
"@types/node-fetch": "^2.6.2",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"eslint": "^8.50.0",
Expand Down
Loading

0 comments on commit efc3925

Please sign in to comment.