@drift-labs/jit-proxy 0.10.2 → 0.10.4
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 +2 -3
- package/lib/jitter/baseJitter.d.ts +2 -3
- package/lib/jitter/jitterShotgun.d.ts +2 -3
- package/lib/jitter/jitterSniper.d.ts +1 -1
- package/lib/types/jit_proxy.d.ts +2 -2
- package/lib/types/jit_proxy.js +1 -1
- package/package.json +3 -3
- package/src/types/jit_proxy.ts +2 -2
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/lib/types/jit_proxy.js
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drift-labs/jit-proxy",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.4",
|
|
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
|
-
"@
|
|
11
|
-
"@
|
|
10
|
+
"@drift-labs/sdk": "^2.38.1-beta.12",
|
|
11
|
+
"@solana/web3.js": "1.73.2"
|
|
12
12
|
},
|
|
13
13
|
"engines": {
|
|
14
14
|
"node": ">=16"
|
package/src/types/jit_proxy.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type JitProxy = {
|
|
2
|
-
version: '0.10.
|
|
2
|
+
version: '0.10.3';
|
|
3
3
|
name: 'jit_proxy';
|
|
4
4
|
instructions: [
|
|
5
5
|
{
|
|
@@ -211,7 +211,7 @@ export type JitProxy = {
|
|
|
211
211
|
};
|
|
212
212
|
|
|
213
213
|
export const IDL: JitProxy = {
|
|
214
|
-
version: '0.10.
|
|
214
|
+
version: '0.10.3',
|
|
215
215
|
name: 'jit_proxy',
|
|
216
216
|
instructions: [
|
|
217
217
|
{
|