Skip to content

Commit

Permalink
fix dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wphan committed Jul 12, 2024
1 parent b978589 commit a6a0ea8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Binary file modified ts/sdk/bun.lockb
Binary file not shown.
6 changes: 3 additions & 3 deletions ts/sdk/cli/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { BASE_PRECISION, BN, DriftClient, OraclePriceData, PRICE_PRECISION, QUOT
import { VAULT_PROGRAM_ID, Vault, VaultClient, VaultDepositor, decodeName } from "../src";
import { Command } from "commander";
import { Connection, Keypair } from "@solana/web3.js";
import { AnchorProvider } from "@coral-xyz/anchor";
import { AnchorProvider, Wallet as AnchorWallet } from "@coral-xyz/anchor";
import * as anchor from '@coral-xyz/anchor';
import { IDL } from "../src/types/drift_vaults";

Expand Down Expand Up @@ -159,7 +159,7 @@ export async function getCommandContext(program: Command, needToSign: boolean):
});
await driftClient.subscribe();

const provider = new AnchorProvider(connection, wallet, {});
const provider = new AnchorProvider(connection, wallet as AnchorWallet, {});
anchor.setProvider(provider);
const vaultProgramId = VAULT_PROGRAM_ID;
const vaultProgram = new anchor.Program(IDL, vaultProgramId, provider);
Expand All @@ -174,4 +174,4 @@ export async function getCommandContext(program: Command, needToSign: boolean):
driftClient,
driftVault,
};
}
}
3 changes: 2 additions & 1 deletion ts/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
"@coral-xyz/anchor": "0.28.0",
"@drift-labs/competitions-sdk": "0.2.334",
"@drift-labs/sdk": "2.86.0-beta.14",
"@solana/web3.js": "1.73.2",
"@solana/web3.js": "1.92.3",
"commander": "^11.0.0",
"dotenv": "^16.3.1",
"strict-event-emitter-types": "^2.0.0",
"ts-node": "^10.9.1",
"rpc-websockets": "7.5.1",
"typescript": "^5.1.6"
},
"engines": {
Expand Down

0 comments on commit a6a0ea8

Please sign in to comment.