@drift-labs/vaults-sdk 0.1.352 → 0.1.353
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bun.lockb +0 -0
- package/cli/utils.ts +3 -3
- package/package.json +3 -2
package/bun.lockb
CHANGED
|
Binary file
|
package/cli/utils.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { BASE_PRECISION, BN, DriftClient, OraclePriceData, PRICE_PRECISION, QUOT
|
|
|
2
2
|
import { VAULT_PROGRAM_ID, Vault, VaultClient, VaultDepositor, decodeName } from "../src";
|
|
3
3
|
import { Command } from "commander";
|
|
4
4
|
import { Connection, Keypair } from "@solana/web3.js";
|
|
5
|
-
import { AnchorProvider } from "@coral-xyz/anchor";
|
|
5
|
+
import { AnchorProvider, Wallet as AnchorWallet } from "@coral-xyz/anchor";
|
|
6
6
|
import * as anchor from '@coral-xyz/anchor';
|
|
7
7
|
import { IDL } from "../src/types/drift_vaults";
|
|
8
8
|
|
|
@@ -159,7 +159,7 @@ export async function getCommandContext(program: Command, needToSign: boolean):
|
|
|
159
159
|
});
|
|
160
160
|
await driftClient.subscribe();
|
|
161
161
|
|
|
162
|
-
const provider = new AnchorProvider(connection, wallet, {});
|
|
162
|
+
const provider = new AnchorProvider(connection, wallet as AnchorWallet, {});
|
|
163
163
|
anchor.setProvider(provider);
|
|
164
164
|
const vaultProgramId = VAULT_PROGRAM_ID;
|
|
165
165
|
const vaultProgram = new anchor.Program(IDL, vaultProgramId, provider);
|
|
@@ -174,4 +174,4 @@ export async function getCommandContext(program: Command, needToSign: boolean):
|
|
|
174
174
|
driftClient,
|
|
175
175
|
driftVault,
|
|
176
176
|
};
|
|
177
|
-
}
|
|
177
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drift-labs/vaults-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.353",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"directories": {
|
|
@@ -10,9 +10,10 @@
|
|
|
10
10
|
"@coral-xyz/anchor": "0.28.0",
|
|
11
11
|
"@drift-labs/competitions-sdk": "0.2.334",
|
|
12
12
|
"@drift-labs/sdk": "2.86.0-beta.14",
|
|
13
|
-
"@solana/web3.js": "1.
|
|
13
|
+
"@solana/web3.js": "1.92.3",
|
|
14
14
|
"commander": "^11.0.0",
|
|
15
15
|
"dotenv": "^16.3.1",
|
|
16
|
+
"rpc-websockets": "7.5.1",
|
|
16
17
|
"strict-event-emitter-types": "^2.0.0",
|
|
17
18
|
"ts-node": "^10.9.1",
|
|
18
19
|
"typescript": "^5.1.6"
|