@drift-labs/sdk 2.42.0-beta.11 → 2.42.0-beta.12
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 +1 -1
- package/lib/accounts/bulkAccountLoader.d.ts +1 -2
- package/lib/orderSubscriber/PollingSubscription.d.ts +1 -2
- package/lib/priorityFee/priorityFeeSubscriber.d.ts +1 -2
- package/package.json +1 -1
- package/src/accounts/bulkAccountLoader.ts +1 -1
- package/src/events/pollingLogProvider.ts +1 -1
- package/src/orderSubscriber/PollingSubscription.ts +1 -1
- package/src/priorityFee/priorityFeeSubscriber.ts +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.42.0-beta.
|
|
1
|
+
2.42.0-beta.12
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
2
|
import { Commitment, Connection, PublicKey } from '@solana/web3.js';
|
|
4
3
|
import { BufferAndSlot } from './types';
|
|
5
4
|
type AccountToLoad = {
|
|
@@ -13,7 +12,7 @@ export declare class BulkAccountLoader {
|
|
|
13
12
|
accountsToLoad: Map<string, AccountToLoad>;
|
|
14
13
|
bufferAndSlotMap: Map<string, BufferAndSlot>;
|
|
15
14
|
errorCallbacks: Map<string, (e: any) => void>;
|
|
16
|
-
intervalId?:
|
|
15
|
+
intervalId?: ReturnType<typeof setTimeout>;
|
|
17
16
|
loadPromise?: Promise<void>;
|
|
18
17
|
loadPromiseResolver: () => void;
|
|
19
18
|
lastTimeLoadingPromiseCleared: number;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { OrderSubscriber } from './OrderSubscriber';
|
|
3
2
|
export declare class PollingSubscription {
|
|
4
3
|
private orderSubscriber;
|
|
5
4
|
private frequency;
|
|
6
|
-
intervalId?:
|
|
5
|
+
intervalId?: ReturnType<typeof setTimeout>;
|
|
7
6
|
constructor({ orderSubscriber, frequency, }: {
|
|
8
7
|
orderSubscriber: OrderSubscriber;
|
|
9
8
|
frequency: number;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { Connection, PublicKey } from '@solana/web3.js';
|
|
3
2
|
export declare class PriorityFeeSubscriber {
|
|
4
3
|
connection: Connection;
|
|
5
4
|
frequencyMs: number;
|
|
6
5
|
addresses: PublicKey[];
|
|
7
6
|
slotsToCheck: number;
|
|
8
|
-
intervalId?:
|
|
7
|
+
intervalId?: ReturnType<typeof setTimeout>;
|
|
9
8
|
latestPriorityFee: number;
|
|
10
9
|
avgPriorityFee: number;
|
|
11
10
|
maxPriorityFee: number;
|
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@ export class BulkAccountLoader {
|
|
|
19
19
|
accountsToLoad = new Map<string, AccountToLoad>();
|
|
20
20
|
bufferAndSlotMap = new Map<string, BufferAndSlot>();
|
|
21
21
|
errorCallbacks = new Map<string, (e) => void>();
|
|
22
|
-
intervalId?:
|
|
22
|
+
intervalId?: ReturnType<typeof setTimeout>;
|
|
23
23
|
// to handle clients spamming load
|
|
24
24
|
loadPromise?: Promise<void>;
|
|
25
25
|
loadPromiseResolver: () => void;
|
|
@@ -10,7 +10,7 @@ import { fetchLogs } from './fetchLogs';
|
|
|
10
10
|
|
|
11
11
|
export class PollingLogProvider implements LogProvider {
|
|
12
12
|
private finality: Finality;
|
|
13
|
-
private intervalId:
|
|
13
|
+
private intervalId: ReturnType<typeof setTimeout>;
|
|
14
14
|
private mostRecentSeenTx?: TransactionSignature;
|
|
15
15
|
private mutex: number;
|
|
16
16
|
private firstFetch = true;
|