@drift-labs/sdk 2.72.0-beta.4 → 2.73.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.
|
|
1
|
+
2.73.0-beta.1
|
package/lib/idl/drift.json
CHANGED
|
@@ -26,6 +26,7 @@ export declare class PriorityFeeSubscriber {
|
|
|
26
26
|
private loadForSolana;
|
|
27
27
|
private loadForHelius;
|
|
28
28
|
getMaxPriorityFee(): number | undefined;
|
|
29
|
+
updateMaxPriorityFee(newMaxFee: number | undefined): void;
|
|
29
30
|
getHeliusPriorityFeeLevel(level?: HeliusPriorityLevel): number;
|
|
30
31
|
getCustomStrategyResult(): number;
|
|
31
32
|
getAvgStrategyResult(): number;
|
|
@@ -84,6 +84,9 @@ class PriorityFeeSubscriber {
|
|
|
84
84
|
getMaxPriorityFee() {
|
|
85
85
|
return this.maxFeeMicroLamports;
|
|
86
86
|
}
|
|
87
|
+
updateMaxPriorityFee(newMaxFee) {
|
|
88
|
+
this.maxFeeMicroLamports = newMaxFee;
|
|
89
|
+
}
|
|
87
90
|
getHeliusPriorityFeeLevel(level = heliusPriorityFeeMethod_1.HeliusPriorityLevel.MEDIUM) {
|
|
88
91
|
if (this.lastHeliusSample === undefined) {
|
|
89
92
|
return 0;
|
package/package.json
CHANGED
package/src/idl/drift.json
CHANGED
|
@@ -122,6 +122,10 @@ export class PriorityFeeSubscriber {
|
|
|
122
122
|
return this.maxFeeMicroLamports;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
+
public updateMaxPriorityFee(newMaxFee: number | undefined) {
|
|
126
|
+
this.maxFeeMicroLamports = newMaxFee;
|
|
127
|
+
}
|
|
128
|
+
|
|
125
129
|
public getHeliusPriorityFeeLevel(
|
|
126
130
|
level: HeliusPriorityLevel = HeliusPriorityLevel.MEDIUM
|
|
127
131
|
): number {
|