Socket
Socket
Sign inDemoInstall

@triton-one/yellowstone-grpc

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@triton-one/yellowstone-grpc - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

3

dist/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc