@drift-labs/jit-proxy 0.19.1 → 0.19.2

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,3 +1,6 @@
1
+ /// <reference types="solana-bankrun/node_modules/@solana/web3.js" />
2
+ /// <reference types="@pythnetwork/pyth-solana-receiver/node_modules/@solana/web3.js" />
3
+ /// <reference types="jito-ts/node_modules/@solana/web3.js" />
1
4
  import { BN, DriftClient, MakerInfo, MarketType, PostOnlyParams, ReferrerInfo, SignedMsgOrderParams, TxParams, UserAccount } from '@drift-labs/sdk';
2
5
  import { PublicKey, TransactionInstruction } from '@solana/web3.js';
3
6
  import { TxSigAndSlot } from '@drift-labs/sdk';
@@ -1,9 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.JitProxyClient = exports.PriceType = exports.DEFAULT_CU_LIMIT = void 0;
4
- exports.validatePriceType = validatePriceType;
5
- exports.validatePostOnlyParams = validatePostOnlyParams;
6
- exports.validateMarketType = validateMarketType;
3
+ exports.JitProxyClient = exports.validateMarketType = exports.validatePostOnlyParams = exports.validatePriceType = exports.PriceType = exports.DEFAULT_CU_LIMIT = void 0;
7
4
  const sdk_1 = require("@drift-labs/sdk");
8
5
  const jit_proxy_1 = require("./types/jit_proxy");
9
6
  const web3_js_1 = require("@solana/web3.js");
@@ -26,6 +23,7 @@ function validatePriceType(priceType) {
26
23
  }
27
24
  throw new Error('Invalid price type');
28
25
  }
26
+ exports.validatePriceType = validatePriceType;
29
27
  /**
30
28
  * Validates the PostOnlyParams and returns the corresponding enum value. (required for type checking because of how anchor handles recursive types in IDL)
31
29
  */
@@ -47,6 +45,7 @@ function validatePostOnlyParams(postOnly) {
47
45
  }
48
46
  throw new Error('Invalid post only params');
49
47
  }
48
+ exports.validatePostOnlyParams = validatePostOnlyParams;
50
49
  /**
51
50
  * Validates the market type and returns the corresponding enum value. (required for type checking because of how anchor handles recursive types in IDL)
52
51
  */
@@ -59,6 +58,7 @@ function validateMarketType(marketType) {
59
58
  }
60
59
  throw new Error('Invalid market type');
61
60
  }
61
+ exports.validateMarketType = validateMarketType;
62
62
  class JitProxyClient {
63
63
  constructor({ driftClient, programId, }) {
64
64
  this.driftClient = driftClient;
@@ -1,3 +1,6 @@
1
+ /// <reference types="solana-bankrun/node_modules/@solana/web3.js" />
2
+ /// <reference types="@pythnetwork/pyth-solana-receiver/node_modules/@solana/web3.js" />
3
+ /// <reference types="jito-ts/node_modules/@solana/web3.js" />
1
4
  import { JitProxyClient, PriceType } from '../jitProxyClient';
2
5
  import { PublicKey } from '@solana/web3.js';
3
6
  import { AuctionSubscriber, BN, DriftClient, Order, PostOnlyParams, SwiftOrderSubscriber, SlotSubscriber, SignedMsgOrderParams, UserAccount, UserStatsMap } from '@drift-labs/sdk';
@@ -1,3 +1,6 @@
1
+ /// <reference types="solana-bankrun/node_modules/@solana/web3.js" />
2
+ /// <reference types="@pythnetwork/pyth-solana-receiver/node_modules/@solana/web3.js" />
3
+ /// <reference types="jito-ts/node_modules/@solana/web3.js" />
1
4
  import { JitProxyClient } from '../jitProxyClient';
2
5
  import { PublicKey } from '@solana/web3.js';
3
6
  import { AuctionSubscriber, DriftClient, Order, SlotSubscriber, SignedMsgOrderParams, SwiftOrderSubscriber, UserAccount, UserStatsMap } from '@drift-labs/sdk';
@@ -1,3 +1,6 @@
1
+ /// <reference types="solana-bankrun/node_modules/@solana/web3.js" />
2
+ /// <reference types="@pythnetwork/pyth-solana-receiver/node_modules/@solana/web3.js" />
3
+ /// <reference types="jito-ts/node_modules/@solana/web3.js" />
1
4
  import { JitProxyClient } from '../jitProxyClient';
2
5
  import { PublicKey } from '@solana/web3.js';
3
6
  import { AuctionSubscriber, DriftClient, OraclePriceData, Order, SignedMsgOrderParams, SwiftOrderSubscriber, SlotSubscriber, UserAccount, UserStatsMap } from '@drift-labs/sdk';
package/package.json CHANGED
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "name": "@drift-labs/jit-proxy",
3
- "version": "0.19.1",
3
+ "version": "0.19.2",
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.29.0",
10
- "@drift-labs/sdk": "2.133.0-beta.0",
11
- "@solana/web3.js": "1.91.7",
12
- "tweetnacl-util": "^0.15.1"
10
+ "@drift-labs/sdk": "2.133.0-beta.1",
11
+ "@solana/web3.js": "1.98.0",
12
+ "tweetnacl-util": "^0.15.1",
13
+ "typescript": "5.4.5"
13
14
  },
14
15
  "engines": {
15
16
  "node": ">=18"