@drift-labs/sdk-browser 2.138.0-beta.3 → 2.138.0-beta.4
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/browser/accounts/types.d.ts +1 -1
- package/lib/browser/orderSubscriber/grpcSubscription.js +1 -1
- package/lib/node/accounts/types.d.ts +1 -1
- package/lib/node/orderSubscriber/grpcSubscription.js +1 -1
- package/package.json +1 -1
- package/src/accounts/types.ts +1 -1
- package/src/orderSubscriber/grpcSubscription.ts +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.138.0-beta.
|
|
1
|
+
2.138.0-beta.4
|
|
@@ -165,7 +165,7 @@ export type GrpcConfigs = {
|
|
|
165
165
|
* Defaults to false, will throw on connection loss.
|
|
166
166
|
*/
|
|
167
167
|
enableReconnect?: boolean;
|
|
168
|
-
client?: 'yellowstone' | '
|
|
168
|
+
client?: 'yellowstone' | 'laser';
|
|
169
169
|
};
|
|
170
170
|
export interface HighLeverageModeConfigAccountSubscriber {
|
|
171
171
|
eventEmitter: StrictEventEmitter<EventEmitter, HighLeverageModeConfigAccountEvents>;
|
|
@@ -17,7 +17,7 @@ class grpcSubscription {
|
|
|
17
17
|
if (this.subscriber) {
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
|
-
if (this.grpcConfigs.client === '
|
|
20
|
+
if (this.grpcConfigs.client === 'laser') {
|
|
21
21
|
this.subscriber =
|
|
22
22
|
await laserProgramAccountSubscriber_1.LaserstreamProgramAccountSubscriber.create(this.grpcConfigs, 'OrderSubscriber', 'User', this.orderSubscriber.driftClient.program, this.orderSubscriber.decodeFn, {
|
|
23
23
|
filters: [(0, memcmp_1.getUserFilter)(), (0, memcmp_1.getNonIdleUserFilter)()],
|
|
@@ -165,7 +165,7 @@ export type GrpcConfigs = {
|
|
|
165
165
|
* Defaults to false, will throw on connection loss.
|
|
166
166
|
*/
|
|
167
167
|
enableReconnect?: boolean;
|
|
168
|
-
client?: 'yellowstone' | '
|
|
168
|
+
client?: 'yellowstone' | 'laser';
|
|
169
169
|
};
|
|
170
170
|
export interface HighLeverageModeConfigAccountSubscriber {
|
|
171
171
|
eventEmitter: StrictEventEmitter<EventEmitter, HighLeverageModeConfigAccountEvents>;
|
|
@@ -17,7 +17,7 @@ class grpcSubscription {
|
|
|
17
17
|
if (this.subscriber) {
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
|
-
if (this.grpcConfigs.client === '
|
|
20
|
+
if (this.grpcConfigs.client === 'laser') {
|
|
21
21
|
this.subscriber =
|
|
22
22
|
await laserProgramAccountSubscriber_1.LaserstreamProgramAccountSubscriber.create(this.grpcConfigs, 'OrderSubscriber', 'User', this.orderSubscriber.driftClient.program, this.orderSubscriber.decodeFn, {
|
|
23
23
|
filters: [(0, memcmp_1.getUserFilter)(), (0, memcmp_1.getNonIdleUserFilter)()],
|
package/package.json
CHANGED
package/src/accounts/types.ts
CHANGED
|
@@ -234,7 +234,7 @@ export type GrpcConfigs = {
|
|
|
234
234
|
* Defaults to false, will throw on connection loss.
|
|
235
235
|
*/
|
|
236
236
|
enableReconnect?: boolean;
|
|
237
|
-
client?: 'yellowstone' | '
|
|
237
|
+
client?: 'yellowstone' | 'laser';
|
|
238
238
|
};
|
|
239
239
|
|
|
240
240
|
export interface HighLeverageModeConfigAccountSubscriber {
|