Skip to content

Commit 69ed71c

Browse files
committed
Revert "chore: add laserstream client"
This reverts commit 8da91cb.
1 parent 48b4e99 commit 69ed71c

File tree

5 files changed

+12
-317
lines changed

5 files changed

+12
-317
lines changed

sdk/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
"@triton-one/yellowstone-grpc": "1.3.0",
5656
"anchor-bankrun": "0.3.0",
5757
"gill": "^0.10.2",
58-
"helius-laserstream": "^0.1.7",
5958
"nanoid": "3.3.4",
6059
"node-cache": "5.1.2",
6160
"rpc-websockets": "7.5.1",

sdk/src/accounts/lazerProgramAccountSubscriber.ts

Lines changed: 0 additions & 215 deletions
This file was deleted.

sdk/src/accounts/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ export type GrpcConfigs = {
234234
* Defaults to false, will throw on connection loss.
235235
*/
236236
enableReconnect?: boolean;
237-
client?: 'yellowstone' | 'lazer';
238237
};
239238

240239
export interface HighLeverageModeConfigAccountSubscriber {

sdk/src/orderSubscriber/grpcSubscription.ts

Lines changed: 12 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,14 @@ import { OrderSubscriber } from './OrderSubscriber';
55
import { GrpcConfigs, ResubOpts } from '../accounts/types';
66
import { UserAccount } from '../types';
77
import { getUserFilter, getNonIdleUserFilter } from '../memcmp';
8-
import { LaserstreamProgramAccountSubscriber } from '../accounts/lazerProgramAccountSubscriber';
98

109
export class grpcSubscription {
1110
private orderSubscriber: OrderSubscriber;
1211
private skipInitialLoad: boolean;
1312
private resubOpts?: ResubOpts;
1413
private resyncIntervalMs?: number;
1514

16-
private subscriber?:
17-
| grpcProgramAccountSubscriber<UserAccount>
18-
| LaserstreamProgramAccountSubscriber<UserAccount>;
15+
private subscriber?: grpcProgramAccountSubscriber<UserAccount>;
1916
private resyncTimeoutId?: ReturnType<typeof setTimeout>;
2017

2118
private decoded?: boolean;
@@ -50,32 +47,17 @@ export class grpcSubscription {
5047
return;
5148
}
5249

53-
if (this.grpcConfigs.client === 'lazer') {
54-
this.subscriber =
55-
await LaserstreamProgramAccountSubscriber.create<UserAccount>(
56-
this.grpcConfigs,
57-
'OrderSubscriber',
58-
'User',
59-
this.orderSubscriber.driftClient.program,
60-
this.orderSubscriber.decodeFn,
61-
{
62-
filters: [getUserFilter(), getNonIdleUserFilter()],
63-
},
64-
this.resubOpts
65-
);
66-
} else {
67-
this.subscriber = await grpcProgramAccountSubscriber.create<UserAccount>(
68-
this.grpcConfigs,
69-
'OrderSubscriber',
70-
'User',
71-
this.orderSubscriber.driftClient.program,
72-
this.orderSubscriber.decodeFn,
73-
{
74-
filters: [getUserFilter(), getNonIdleUserFilter()],
75-
},
76-
this.resubOpts
77-
);
78-
}
50+
this.subscriber = await grpcProgramAccountSubscriber.create<UserAccount>(
51+
this.grpcConfigs,
52+
'OrderSubscriber',
53+
'User',
54+
this.orderSubscriber.driftClient.program,
55+
this.orderSubscriber.decodeFn,
56+
{
57+
filters: [getUserFilter(), getNonIdleUserFilter()],
58+
},
59+
this.resubOpts
60+
);
7961

8062
await this.subscriber.subscribe(
8163
(

sdk/yarn.lock

Lines changed: 0 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,13 +1281,6 @@
12811281
dependencies:
12821282
undici-types "~5.26.4"
12831283

1284-
"@types/protobufjs@^6.0.0":
1285-
version "6.0.0"
1286-
resolved "https://registry.yarnpkg.com/@types/protobufjs/-/protobufjs-6.0.0.tgz#aeabb43f9507bb19c8adfb479584c151082353e4"
1287-
integrity sha512-A27RDExpAf3rdDjIrHKiJK6x8kqqJ4CmoChwtipfhVAn1p7+wviQFFP7dppn8FslSbHtQeVPvi8wNKkDjSYjHw==
1288-
dependencies:
1289-
protobufjs "*"
1290-
12911284
"@types/semver@^7.5.0":
12921285
version "7.7.0"
12931286
resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.7.0.tgz#64c441bdae033b378b6eef7d0c3d77c329b9378e"
@@ -2794,51 +2787,6 @@ he@^1.2.0:
27942787
resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f"
27952788
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==
27962789

2797-
2798-
version "0.1.7"
2799-
resolved "https://registry.yarnpkg.com/helius-laserstream-darwin-arm64/-/helius-laserstream-darwin-arm64-0.1.7.tgz#c84df402bdb8a2159bcfc2711bf2b64fe09edd24"
2800-
integrity sha512-oMkt6qr7EQLfgiOCVO/9lTQLi8futBVqhUSRvsCmYcAqmaFNsvmf+/rRVq/o56+iq0PseqV6DcRF+5s88tYEIg==
2801-
2802-
2803-
version "0.1.7"
2804-
resolved "https://registry.yarnpkg.com/helius-laserstream-darwin-x64/-/helius-laserstream-darwin-x64-0.1.7.tgz#fe15b0513a8d1f55075f27b1a5836bf73ec470ff"
2805-
integrity sha512-88utpg/ZMtsnF9RX268D50fl6B3kQOFS0nCzoenS1CwMvMprTqHSEDqYFgBX8O7t52gox5aw8+x3XqhHX0fIMQ==
2806-
2807-
2808-
version "0.1.7"
2809-
resolved "https://registry.yarnpkg.com/helius-laserstream-linux-arm64-gnu/-/helius-laserstream-linux-arm64-gnu-0.1.7.tgz#cc7a636bc12961d314a4c46008d63f4fb6fe6b03"
2810-
integrity sha512-4YQuISaa3OWOBQCUnslT+HguuGRMO1KRQeWSjtuSHDYn7oO/KXePCtEo9vqnQx7HtQFDnS1/kuFExIa2L4Sp2w==
2811-
2812-
2813-
version "0.1.7"
2814-
resolved "https://registry.yarnpkg.com/helius-laserstream-linux-arm64-musl/-/helius-laserstream-linux-arm64-musl-0.1.7.tgz#96dcf87b855698e9f28214d96031d0934324db45"
2815-
integrity sha512-VyN/5nzqUtBN88PLDIMVJmFDgImMCL1sjBWKf49ppAWKN3LVvYVYT8tGMi4nzb5vj7ObduIi1ZZ+cGWNM6H2kA==
2816-
2817-
2818-
version "0.1.7"
2819-
resolved "https://registry.yarnpkg.com/helius-laserstream-linux-x64-gnu/-/helius-laserstream-linux-x64-gnu-0.1.7.tgz#0bcaed9697b975033e86a74ab4d734ee3d4d3e1c"
2820-
integrity sha512-0//p5wlITWbWKBaW2CIYfS3/9fBJCvMn8fBvBKot28psIWSQ6Uc5u/IqS2ls438NvTiEvBp6pgScWoYHXKU+VQ==
2821-
2822-
2823-
version "0.1.7"
2824-
resolved "https://registry.yarnpkg.com/helius-laserstream-linux-x64-musl/-/helius-laserstream-linux-x64-musl-0.1.7.tgz#6c38ca7f97bd1ff46947794fd907ecd8492a0249"
2825-
integrity sha512-4VFxsKE+X3Jj/DBrdKQCUs/6ljuYadiPrF5QBMIyaflzZka/hOOvd2bDAo8Bi9/qGGCCaJG6F3U3OFKGKSiE9w==
2826-
2827-
helius-laserstream@^0.1.7:
2828-
version "0.1.7"
2829-
resolved "https://registry.yarnpkg.com/helius-laserstream/-/helius-laserstream-0.1.7.tgz#67f9d570f56ba9bb801d210ebff5e9cf1cc97faa"
2830-
integrity sha512-xsCbc8dApJpLb6OShOCeJ5/6pQMdGk6sQojEgihTNGZaGhaAzwYzJcxL5q4uszE3qG/viJO67Mi/MxArDb+QaQ==
2831-
dependencies:
2832-
"@types/protobufjs" "^6.0.0"
2833-
protobufjs "^7.5.3"
2834-
optionalDependencies:
2835-
helius-laserstream-darwin-arm64 "0.1.7"
2836-
helius-laserstream-darwin-x64 "0.1.7"
2837-
helius-laserstream-linux-arm64-gnu "0.1.7"
2838-
helius-laserstream-linux-arm64-musl "0.1.7"
2839-
helius-laserstream-linux-x64-gnu "0.1.7"
2840-
helius-laserstream-linux-x64-musl "0.1.7"
2841-
28422790
humanize-ms@^1.2.1:
28432791
version "1.2.1"
28442792
resolved "https://registry.yarnpkg.com/humanize-ms/-/humanize-ms-1.2.1.tgz#c46e3159a293f6b896da29316d8b6fe8bb79bbed"
@@ -3687,24 +3635,6 @@ pretty-ms@^7.0.1:
36873635
dependencies:
36883636
parse-ms "^2.1.0"
36893637

3690-
protobufjs@*, protobufjs@^7.5.3:
3691-
version "7.5.4"
3692-
resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-7.5.4.tgz#885d31fe9c4b37f25d1bb600da30b1c5b37d286a"
3693-
integrity sha512-CvexbZtbov6jW2eXAvLukXjXUW1TzFaivC46BpWc/3BpcCysb5Vffu+B3XHMm8lVEuy2Mm4XGex8hBSg1yapPg==
3694-
dependencies:
3695-
"@protobufjs/aspromise" "^1.1.2"
3696-
"@protobufjs/base64" "^1.1.2"
3697-
"@protobufjs/codegen" "^2.0.4"
3698-
"@protobufjs/eventemitter" "^1.1.0"
3699-
"@protobufjs/fetch" "^1.1.0"
3700-
"@protobufjs/float" "^1.0.2"
3701-
"@protobufjs/inquire" "^1.1.0"
3702-
"@protobufjs/path" "^1.1.2"
3703-
"@protobufjs/pool" "^1.1.0"
3704-
"@protobufjs/utf8" "^1.1.0"
3705-
"@types/node" ">=13.7.0"
3706-
long "^5.0.0"
3707-
37083638
protobufjs@^7.2.5, protobufjs@^7.4.0:
37093639
version "7.5.3"
37103640
resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-7.5.3.tgz#13f95a9e3c84669995ec3652db2ac2fb00b89363"

0 commit comments

Comments
 (0)