@drift-labs/sdk 2.74.0-beta.0 → 2.74.0-beta.1

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.74.0-beta.0
1
+ 2.74.0-beta.1
@@ -27,6 +27,7 @@ export declare class PriorityFeeSubscriber {
27
27
  private loadForHelius;
28
28
  getMaxPriorityFee(): number | undefined;
29
29
  updateMaxPriorityFee(newMaxFee: number | undefined): void;
30
+ updateCustomStrategy(newStrategy: PriorityFeeStrategy): void;
30
31
  getHeliusPriorityFeeLevel(level?: HeliusPriorityLevel): number;
31
32
  getCustomStrategyResult(): number;
32
33
  getAvgStrategyResult(): number;
@@ -87,6 +87,9 @@ class PriorityFeeSubscriber {
87
87
  updateMaxPriorityFee(newMaxFee) {
88
88
  this.maxFeeMicroLamports = newMaxFee;
89
89
  }
90
+ updateCustomStrategy(newStrategy) {
91
+ this.customStrategy = newStrategy;
92
+ }
90
93
  getHeliusPriorityFeeLevel(level = heliusPriorityFeeMethod_1.HeliusPriorityLevel.MEDIUM) {
91
94
  if (this.lastHeliusSample === undefined) {
92
95
  return 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.74.0-beta.0",
3
+ "version": "2.74.0-beta.1",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "author": "crispheaney",
@@ -126,6 +126,10 @@ export class PriorityFeeSubscriber {
126
126
  this.maxFeeMicroLamports = newMaxFee;
127
127
  }
128
128
 
129
+ public updateCustomStrategy(newStrategy: PriorityFeeStrategy) {
130
+ this.customStrategy = newStrategy;
131
+ }
132
+
129
133
  public getHeliusPriorityFeeLevel(
130
134
  level: HeliusPriorityLevel = HeliusPriorityLevel.MEDIUM
131
135
  ): number {