Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wphan committed Jun 4, 2024
1 parent 96767f0 commit 27dd43a
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 22 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,22 @@ soon^TM


[did you see the CLI?](./ts/sdk/README.md) and the [wiki?](https://github.com/drift-labs/drift-vaults/wiki)


# Development

Developed using Anchor 0.26.0:
```
avm use 0.26.0
```

## Run tests
```
cd ts/sdk
yarn
yarn build
cd ..
export ANCHOR_WALLET=~/.config/solana/id.json
anchor test
```
1 change: 1 addition & 0 deletions tests/driftVaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ describe('driftVaults', () => {
const vaultClient = new VaultClient({
driftClient: adminClient,
program: program,
cliMode: true,
});

let usdcMint: Keypair;
Expand Down
4 changes: 2 additions & 2 deletions ts/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"dependencies": {
"@coral-xyz/anchor": "^0.26.0",
"@drift-labs/competitions-sdk": "0.2.303",
"@drift-labs/competitions-sdk": "0.2.325",
"@drift-labs/sdk": "2.83.0-beta.13",
"@solana/web3.js": "1.73.2",
"commander": "^11.0.0",
Expand All @@ -25,4 +25,4 @@
"clean": "rm -rf lib",
"build": "yarn clean && tsc"
}
}
}
25 changes: 5 additions & 20 deletions ts/sdk/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@
dependencies:
"@jridgewell/trace-mapping" "0.3.9"

"@drift-labs/competitions-sdk@0.2.303":
version "0.2.303"
resolved "https://registry.yarnpkg.com/@drift-labs/competitions-sdk/-/competitions-sdk-0.2.303.tgz#8d23b6d7899a0598f53711c965fba0295afdd93a"
integrity sha512-c3WkxLT2zvHze6WUXlX9JsBGiQ1hHgSBDz5nBsRTEYLWPiHgswv7TQvQ3sU831Ux+Mnkk+prsr9KJPOKDK7yDg==
"@drift-labs/competitions-sdk@0.2.325":
version "0.2.325"
resolved "https://registry.yarnpkg.com/@drift-labs/competitions-sdk/-/competitions-sdk-0.2.325.tgz#e625d3fb81db0f4c0f94f29a9a0b2e267b8959a0"
integrity sha512-VW+t0x2+RDI+jEdlOltuuPQweN34nkt1GpcpRJJGcgqnSrlUSqxA7PnFEhRTaHA8CEoh8WeG3SbgTAVsL48uVQ==
dependencies:
"@coral-xyz/anchor" "^0.26.0"
"@drift-labs/sdk" "2.82.0-beta.12"
"@drift-labs/sdk" "2.83.0-beta.13"
"@solana/web3.js" "1.73.2"
"@switchboard-xyz/solana.js" "^2.7.1"
cerializr "^3.1.4"
Expand All @@ -124,21 +124,6 @@
ts-node "^10.9.1"
typescript "^5.1.6"

"@drift-labs/sdk@2.82.0-beta.12":
version "2.82.0-beta.12"
resolved "https://registry.yarnpkg.com/@drift-labs/sdk/-/sdk-2.82.0-beta.12.tgz#851236430458a9be43d625f88d5ac636605a6a2a"
integrity sha512-gbhn1/cuS0venSZvGFAOtfPsqbl/E6VBx66CxcpvVurDE3lmV8OjSkB58r7TzwFH1wcWXK1T3xRrr0BJ4s1FJQ==
dependencies:
"@coral-xyz/anchor" "0.28.1-beta.2"
"@ellipsis-labs/phoenix-sdk" "^1.4.2"
"@project-serum/serum" "^0.13.38"
"@pythnetwork/client" "2.5.3"
"@solana/spl-token" "^0.3.7"
"@solana/web3.js" "1.91.7"
strict-event-emitter-types "^2.0.0"
uuid "^8.3.2"
zstddec "^0.1.0"

"@drift-labs/sdk@2.83.0-beta.13":
version "2.83.0-beta.13"
resolved "https://registry.yarnpkg.com/@drift-labs/sdk/-/sdk-2.83.0-beta.13.tgz#25a78962ed59eb22c2f24927cf3a126e06dc91c0"
Expand Down

0 comments on commit 27dd43a

Please sign in to comment.