@triton-one/yellowstone-grpc
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -5,6 +5,7 @@ /** | ||
import { CommitmentLevel, GetLatestBlockhashResponse, GeyserClient, IsBlockhashValidResponse, SubscribeRequestAccountsDataSlice, SubscribeRequestFilterAccounts, SubscribeRequestFilterBlocks, SubscribeRequestFilterBlocksMeta, SubscribeRequestFilterEntry, SubscribeRequestFilterSlots, SubscribeRequestFilterTransactions } from "./grpc/geyser"; | ||
import { ChannelOptions } from "@grpc/grpc-js"; | ||
export { CommitmentLevel, SubscribeRequest, SubscribeRequestAccountsDataSlice, SubscribeRequestFilterAccounts, SubscribeRequestFilterAccountsFilter, SubscribeRequestFilterAccountsFilterMemcmp, SubscribeRequestFilterBlocks, SubscribeRequestFilterBlocksMeta, SubscribeRequestFilterEntry, SubscribeRequestFilterSlots, SubscribeRequestFilterTransactions, SubscribeRequest_AccountsEntry, SubscribeRequest_BlocksEntry, SubscribeRequest_BlocksMetaEntry, SubscribeRequest_SlotsEntry, SubscribeRequest_TransactionsEntry, SubscribeUpdate, SubscribeUpdateAccount, SubscribeUpdateAccountInfo, SubscribeUpdateBlock, SubscribeUpdateBlockMeta, SubscribeUpdatePing, SubscribeUpdateSlot, SubscribeUpdateTransaction, SubscribeUpdateTransactionInfo, } from "./grpc/geyser"; | ||
export default class Client { | ||
_client: GeyserClient; | ||
constructor(endpoint: string, xToken: string | undefined); | ||
constructor(endpoint: string, xToken: string | undefined, channelOptions: ChannelOptions | undefined); | ||
subscribe(): Promise<import("@grpc/grpc-js").ClientDuplexStream<import("./grpc/geyser").SubscribeRequest, import("./grpc/geyser").SubscribeUpdate>>; | ||
@@ -11,0 +12,0 @@ subscribeOnce(accounts: { |
@@ -85,3 +85,3 @@ "use strict"; | ||
var Client = /** @class */ (function () { | ||
function Client(endpoint, xToken) { | ||
function Client(endpoint, xToken, channelOptions) { | ||
var creds; | ||
@@ -102,3 +102,3 @@ var endpointURL = new URL(endpoint); | ||
} | ||
this._client = new geyser_1.GeyserClient(endpointURL.host, creds); | ||
this._client = new geyser_1.GeyserClient(endpointURL.host, creds, channelOptions); | ||
} | ||
@@ -105,0 +105,0 @@ Client.prototype.subscribe = function () { |
{ | ||
"name": "@triton-one/yellowstone-grpc", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"license": "Apache-2.0", | ||
@@ -12,3 +12,3 @@ "author": "Triton One", | ||
"fmt": "prettier -w .", | ||
"grpc-generate": "protoc -I../yellowstone-grpc-proto/proto --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_opt=forceLong=string --ts_proto_opt=outputServices=grpc-js --ts_proto_out=./src/grpc geyser.proto" | ||
"grpc-generate": "protoc -I../yellowstone-grpc-proto/proto --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_opt=forceLong=string --ts_proto_opt=outputServices=grpc-js --experimental_allow_proto3_optional --ts_proto_out=./src/grpc geyser.proto" | ||
}, | ||
@@ -15,0 +15,0 @@ "repository": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
816085
18812