@drift-labs/jit-proxy 0.10.3 → 0.10.5

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.
@@ -1,8 +1,7 @@
1
- /// <reference types="bn.js" />
2
1
  import { BN, DriftClient, MarketType, PostOnlyParams, ReferrerInfo, TxParams, UserAccount } from '@drift-labs/sdk';
3
2
  import { PublicKey, TransactionInstruction } from '@solana/web3.js';
4
3
  import { TxSigAndSlot } from '@drift-labs/sdk/lib/tx/types';
5
- export declare type JitIxParams = {
4
+ export type JitIxParams = {
6
5
  takerKey: PublicKey;
7
6
  takerStatsKey: PublicKey;
8
7
  taker: UserAccount;
@@ -24,7 +23,7 @@ export declare class PriceType {
24
23
  oracle: {};
25
24
  };
26
25
  }
27
- export declare type OrderConstraint = {
26
+ export type OrderConstraint = {
28
27
  maxPosition: BN;
29
28
  minPosition: BN;
30
29
  marketIndex: number;
@@ -1,9 +1,8 @@
1
- /// <reference types="bn.js" />
2
1
  import { JitProxyClient, PriceType } from '../jitProxyClient';
3
2
  import { PublicKey } from '@solana/web3.js';
4
3
  import { AuctionSubscriber, BN, DriftClient, Order, UserAccount, UserStatsMap } from '@drift-labs/sdk';
5
- export declare type UserFilter = (userAccount: UserAccount, userKey: string, order: Order) => boolean;
6
- export declare type JitParams = {
4
+ export type UserFilter = (userAccount: UserAccount, userKey: string, order: Order) => boolean;
5
+ export type JitParams = {
7
6
  bid: BN;
8
7
  ask: BN;
9
8
  minPosition: BN;
@@ -1,10 +1,9 @@
1
- /// <reference types="bn.js" />
2
1
  import { JitProxyClient, PriceType } from '../jitProxyClient';
3
2
  import { PublicKey } from '@solana/web3.js';
4
3
  import { AuctionSubscriber, BN, DriftClient, Order, UserAccount, UserStatsMap } from '@drift-labs/sdk';
5
4
  import { BaseJitter } from './baseJitter';
6
- export declare type UserFilter = (userAccount: UserAccount, userKey: string, order: Order) => boolean;
7
- export declare type JitParams = {
5
+ export type UserFilter = (userAccount: UserAccount, userKey: string, order: Order) => boolean;
6
+ export type JitParams = {
8
7
  bid: BN;
9
8
  ask: BN;
10
9
  minPosition: BN;
@@ -2,7 +2,7 @@ import { JitProxyClient } from '../jitProxyClient';
2
2
  import { PublicKey } from '@solana/web3.js';
3
3
  import { AuctionSubscriber, DriftClient, OraclePriceData, Order, SlotSubscriber, UserAccount, UserStatsMap } from '@drift-labs/sdk';
4
4
  import { BaseJitter } from './baseJitter';
5
- declare type AuctionAndOrderDetails = {
5
+ type AuctionAndOrderDetails = {
6
6
  slotsTilCross: number;
7
7
  willCross: boolean;
8
8
  bid: number;
@@ -1,4 +1,4 @@
1
- export declare type JitProxy = {
1
+ export type JitProxy = {
2
2
  version: '0.10.3';
3
3
  name: 'jit_proxy';
4
4
  instructions: [
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@drift-labs/jit-proxy",
3
- "version": "0.10.3",
3
+ "version": "0.10.5",
4
4
  "scripts": {
5
5
  "clean": "rm -rf lib",
6
6
  "build": "yarn clean && tsc"
7
7
  },
8
8
  "dependencies": {
9
9
  "@coral-xyz/anchor": "^0.26.0",
10
- "@solana/web3.js": "1.73.2",
11
- "@drift-labs/sdk": "^2.38.1-beta.12"
10
+ "@drift-labs/sdk": "2.39.1-beta.0",
11
+ "@solana/web3.js": "1.73.2"
12
12
  },
13
13
  "engines": {
14
14
  "node": ">=16"