@quartz-labs/sdk 0.0.6 → 0.0.8

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/dist/client.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { DriftClient } from "@drift-labs/sdk";
2
- import { Quartz } from "./types/quartz.js";
3
- import { Program, Wallet } from "@coral-xyz/anchor";
4
- import { Connection, AddressLookupTableAccount } from "@solana/web3.js";
5
- import { PublicKey } from "@solana/web3.js";
6
- import { QuartzUser } from "./user";
1
+ import type { DriftClient } from "@drift-labs/sdk";
2
+ import type { Quartz } from "./types/quartz.js";
3
+ import type { Program, Wallet } from "@coral-xyz/anchor";
4
+ import type { Connection, AddressLookupTableAccount } from "@solana/web3.js";
5
+ import type { PublicKey } from "@solana/web3.js";
6
+ import type { QuartzUser } from "./user";
7
7
  export declare class QuartzClient {
8
8
  private connection;
9
9
  private wallet;
@@ -1,4 +1,4 @@
1
- import { PublicKey } from "@solana/web3.js";
1
+ import type { PublicKey } from "@solana/web3.js";
2
2
  export declare const QUARTZ_PROGRAM_ID: PublicKey;
3
3
  export declare const QUARTZ_ADDRESS_TABLE: PublicKey;
4
4
  export declare const QUARTZ_HEALTH_BUFFER = 0.1;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { QuartzClient } from "./client";
2
+ import { QuartzUser } from "./user";
2
3
  export * from "./config/constants";
3
4
  export * from "./utils/helpers";
4
- export { QuartzClient };
5
+ export { QuartzClient, QuartzUser };
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { QuartzClient } from "./client";
2
+ import { QuartzUser } from "./user";
2
3
  export * from "./config/constants";
3
4
  export * from "./utils/helpers";
4
- export { QuartzClient };
5
+ export { QuartzClient, QuartzUser };
@@ -1,5 +1,5 @@
1
- import { BN, DriftClient, MarginCategory, UserAccount } from "@drift-labs/sdk";
2
- import { Connection, PublicKey } from "@solana/web3.js";
1
+ import type { BN, DriftClient, MarginCategory, UserAccount } from "@drift-labs/sdk";
2
+ import type { Connection, PublicKey } from "@solana/web3.js";
3
3
  export declare class DriftUser {
4
4
  private isInitialized;
5
5
  private authority;
@@ -1,5 +1,5 @@
1
- import { DriftClient } from "@drift-labs/sdk";
2
- import { Connection } from "@solana/web3.js";
1
+ import type { DriftClient } from "@drift-labs/sdk";
2
+ import type { Connection } from "@solana/web3.js";
3
3
  export declare class DriftClientService {
4
4
  private static instance;
5
5
  private driftClient;
package/dist/user.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { AddressLookupTableAccount, PublicKey, TransactionInstruction } from "@solana/web3.js";
2
- import { DriftClient, QuoteResponse, UserAccount } from "@drift-labs/sdk";
3
- import { Connection } from "@solana/web3.js";
4
- import { Quartz } from "./types/quartz";
5
- import { Program } from "@coral-xyz/anchor";
1
+ import type { AddressLookupTableAccount, PublicKey, TransactionInstruction } from "@solana/web3.js";
2
+ import type { DriftClient, QuoteResponse, UserAccount } from "@drift-labs/sdk";
3
+ import type { Connection } from "@solana/web3.js";
4
+ import type { Quartz } from "./types/quartz";
5
+ import type { Program } from "@coral-xyz/anchor";
6
6
  export declare class QuartzUser {
7
7
  readonly pubkey: PublicKey;
8
8
  readonly vaultPubkey: PublicKey;
@@ -1,4 +1,4 @@
1
- import { PublicKey } from "@solana/web3.js";
1
+ import type { PublicKey } from "@solana/web3.js";
2
2
  export declare const getVaultPublicKey: (user: PublicKey) => PublicKey;
3
3
  export declare const getVaultSplPublicKey: (user: PublicKey, mint: PublicKey) => PublicKey;
4
4
  export declare const getDriftUserPublicKey: (vaultPda: PublicKey) => PublicKey;
@@ -1,6 +1,6 @@
1
- import { PublicKey, Connection, TransactionInstruction } from "@solana/web3.js";
2
- import { QuoteResponse } from "@jup-ag/api";
3
- import { AddressLookupTableAccount } from "@solana/web3.js";
1
+ import type { PublicKey, Connection, TransactionInstruction } from "@solana/web3.js";
2
+ import type { QuoteResponse } from "@jup-ag/api";
3
+ import type { AddressLookupTableAccount } from "@solana/web3.js";
4
4
  export declare function getJupiterSwapIx(walletPubkey: PublicKey, connection: Connection, quoteResponse: QuoteResponse): Promise<{
5
5
  ix_jupiterSwap: TransactionInstruction;
6
6
  jupiterLookupTables: AddressLookupTableAccount[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quartz-labs/sdk",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "SDK for interacting with the Quartz Protocol",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -29,6 +29,7 @@
29
29
  },
30
30
  "homepage": "https://quartzpay.io",
31
31
  "devDependencies": {
32
+ "@biomejs/biome": "1.9.4",
32
33
  "@types/jest": "^29.5.14",
33
34
  "@types/node": "^22.10.1",
34
35
  "jest": "^29.7.0",