@drift-labs/jit-proxy 0.10.9 → 0.10.11
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/lib/jitProxyClient.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
6
|
-
export
|
|
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
|
|
7
|
-
export
|
|
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
|
-
|
|
5
|
+
type AuctionAndOrderDetails = {
|
|
6
6
|
slotsTilCross: number;
|
|
7
7
|
willCross: boolean;
|
|
8
8
|
bid: number;
|
package/lib/types/jit_proxy.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drift-labs/jit-proxy",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.11",
|
|
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.40.0-beta.
|
|
10
|
+
"@drift-labs/sdk": "2.40.0-beta.3",
|
|
11
11
|
"@solana/web3.js": "1.73.2"
|
|
12
12
|
},
|
|
13
13
|
"engines": {
|