@drift-labs/sdk 2.58.0-beta.1 → 2.59.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.58.0-beta.1
1
+ 2.59.0-beta.1
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.57.0",
2
+ "version": "2.58.0",
3
3
  "name": "drift",
4
4
  "instructions": [
5
5
  {
@@ -1,4 +1,4 @@
1
- import { Connection } from '@solana/web3.js';
1
+ import { Connection, PublicKey } from '@solana/web3.js';
2
2
  import { PriorityFeeMethod, PriorityFeeStrategy, PriorityFeeSubscriberConfig } from './types';
3
3
  import { AverageOverSlotsStrategy } from './averageOverSlotsStrategy';
4
4
  import { MaxOverSlotsStrategy } from './maxOverSlotsStrategy';
@@ -30,4 +30,5 @@ export declare class PriorityFeeSubscriber {
30
30
  getMaxStrategyResult(): number;
31
31
  load(): Promise<void>;
32
32
  unsubscribe(): Promise<void>;
33
+ updateAddresses(addresses: PublicKey[]): void;
33
34
  }
@@ -107,5 +107,8 @@ class PriorityFeeSubscriber {
107
107
  this.intervalId = undefined;
108
108
  }
109
109
  }
110
+ updateAddresses(addresses) {
111
+ this.addresses = addresses.map((k) => k.toBase58());
112
+ }
110
113
  }
111
114
  exports.PriorityFeeSubscriber = PriorityFeeSubscriber;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.58.0-beta.1",
3
+ "version": "2.59.0-beta.1",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "author": "crispheaney",
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.57.0",
2
+ "version": "2.58.0",
3
3
  "name": "drift",
4
4
  "instructions": [
5
5
  {
@@ -1,4 +1,4 @@
1
- import { Connection } from '@solana/web3.js';
1
+ import { Connection, PublicKey } from '@solana/web3.js';
2
2
  import {
3
3
  PriorityFeeMethod,
4
4
  PriorityFeeStrategy,
@@ -150,4 +150,8 @@ export class PriorityFeeSubscriber {
150
150
  this.intervalId = undefined;
151
151
  }
152
152
  }
153
+
154
+ public updateAddresses(addresses: PublicKey[]) {
155
+ this.addresses = addresses.map((k) => k.toBase58());
156
+ }
153
157
  }