@drift-labs/jit-proxy 0.10.7 → 0.10.9

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