@drift-labs/sdk 2.34.1-beta.6 → 2.34.1-beta.8

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/VERSION CHANGED
@@ -1 +1 @@
1
- 2.34.1-beta.6
1
+ 2.34.1-beta.8
@@ -48,7 +48,6 @@ async function fetchTransactionLogs(connection, signatures, finality) {
48
48
  args,
49
49
  });
50
50
  }
51
- console.log(requests);
52
51
  const rpcResponses = await (0, promiseTimeout_1.promiseTimeout)(
53
52
  // @ts-ignore
54
53
  connection._rpcBatchRequest(requests), 10 * 1000 // 10 second timeout
package/lib/types.d.ts CHANGED
@@ -949,6 +949,9 @@ export declare class PostOnlyParams {
949
949
  static readonly TRY_POST_ONLY: {
950
950
  tryPostOnly: {};
951
951
  };
952
+ static readonly SLIDE: {
953
+ slide: {};
954
+ };
952
955
  }
953
956
  export type NecessaryOrderParams = {
954
957
  orderType: OrderType;
package/lib/types.js CHANGED
@@ -248,6 +248,7 @@ exports.PostOnlyParams = PostOnlyParams;
248
248
  PostOnlyParams.NONE = { none: {} };
249
249
  PostOnlyParams.MUST_POST_ONLY = { mustPostOnly: {} }; // Tx fails if order can't be post only
250
250
  PostOnlyParams.TRY_POST_ONLY = { tryPostOnly: {} }; // Tx succeeds and order not placed if can't be post only
251
+ PostOnlyParams.SLIDE = { slide: {} }; // Modify price to be post only if can't be post only
251
252
  class ModifyOrderPolicy {
252
253
  }
253
254
  exports.ModifyOrderPolicy = ModifyOrderPolicy;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.34.1-beta.6",
3
+ "version": "2.34.1-beta.8",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "author": "crispheaney",
@@ -104,7 +104,6 @@ export async function fetchTransactionLogs(
104
104
  args,
105
105
  });
106
106
  }
107
- console.log(requests);
108
107
 
109
108
  const rpcResponses: any | null = await promiseTimeout(
110
109
  // @ts-ignore
package/src/types.ts CHANGED
@@ -899,6 +899,7 @@ export class PostOnlyParams {
899
899
  static readonly NONE = { none: {} };
900
900
  static readonly MUST_POST_ONLY = { mustPostOnly: {} }; // Tx fails if order can't be post only
901
901
  static readonly TRY_POST_ONLY = { tryPostOnly: {} }; // Tx succeeds and order not placed if can't be post only
902
+ static readonly SLIDE = { slide: {} }; // Modify price to be post only if can't be post only
902
903
  }
903
904
 
904
905
  export type NecessaryOrderParams = {