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.1.5 to 0.2.0

6

dist/index.d.ts
/**
* TypeScript/JavaScript client for gRPC Geyser.
*/
import { CommitmentLevel, GetLatestBlockhashResponse, GeyserClient, IsBlockhashValidResponse, SubscribeRequestAccountsDataSlice, SubscribeRequestFilterAccounts, SubscribeRequestFilterBlocks, SubscribeRequestFilterBlocksMeta, SubscribeRequestFilterSlots, SubscribeRequestFilterTransactions } from "./grpc/geyser";
export { SubscribeRequest, SubscribeRequest_AccountsEntry, SubscribeRequest_SlotsEntry, SubscribeRequestFilterSlots, SubscribeRequest_TransactionsEntry, SubscribeRequestFilterTransactions, SubscribeRequest_BlocksEntry, SubscribeRequest_BlocksMetaEntry, SubscribeRequestFilterAccounts, SubscribeRequestFilterAccountsFilter, SubscribeRequestFilterAccountsFilterMemcmp, SubscribeRequestFilterBlocks, SubscribeRequestFilterBlocksMeta, SubscribeUpdate, SubscribeUpdateAccount, SubscribeUpdateAccountInfo, SubscribeUpdateSlot, CommitmentLevel, SubscribeUpdateTransaction, SubscribeUpdateTransactionInfo, SubscribeUpdateBlock, SubscribeUpdatePing, SubscribeUpdateBlockMeta, } from "./grpc/geyser";
import { CommitmentLevel, GetLatestBlockhashResponse, GeyserClient, IsBlockhashValidResponse, SubscribeRequestAccountsDataSlice, SubscribeRequestFilterAccounts, SubscribeRequestFilterBlocks, SubscribeRequestFilterBlocksMeta, SubscribeRequestFilterEntry, SubscribeRequestFilterSlots, SubscribeRequestFilterTransactions } from "./grpc/geyser";
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 {

@@ -16,2 +16,4 @@ _client: GeyserClient;

[key: string]: SubscribeRequestFilterTransactions;
}, entry: {
[key: string]: SubscribeRequestFilterEntry;
}, blocks: {

@@ -18,0 +20,0 @@ [key: string]: SubscribeRequestFilterBlocks;

@@ -53,3 +53,3 @@ "use strict";

exports.__esModule = true;
exports.SubscribeUpdateBlockMeta = exports.SubscribeUpdatePing = exports.SubscribeUpdateBlock = exports.SubscribeUpdateTransactionInfo = exports.SubscribeUpdateTransaction = exports.CommitmentLevel = exports.SubscribeUpdateSlot = exports.SubscribeUpdateAccountInfo = exports.SubscribeUpdateAccount = exports.SubscribeUpdate = exports.SubscribeRequestFilterBlocksMeta = exports.SubscribeRequestFilterBlocks = exports.SubscribeRequestFilterAccountsFilterMemcmp = exports.SubscribeRequestFilterAccountsFilter = exports.SubscribeRequestFilterAccounts = exports.SubscribeRequest_BlocksMetaEntry = exports.SubscribeRequest_BlocksEntry = exports.SubscribeRequestFilterTransactions = exports.SubscribeRequest_TransactionsEntry = exports.SubscribeRequestFilterSlots = exports.SubscribeRequest_SlotsEntry = exports.SubscribeRequest_AccountsEntry = exports.SubscribeRequest = void 0;
exports.SubscribeUpdateTransactionInfo = exports.SubscribeUpdateTransaction = exports.SubscribeUpdateSlot = exports.SubscribeUpdatePing = exports.SubscribeUpdateBlockMeta = exports.SubscribeUpdateBlock = exports.SubscribeUpdateAccountInfo = exports.SubscribeUpdateAccount = exports.SubscribeUpdate = exports.SubscribeRequest_TransactionsEntry = exports.SubscribeRequest_SlotsEntry = exports.SubscribeRequest_BlocksMetaEntry = exports.SubscribeRequest_BlocksEntry = exports.SubscribeRequest_AccountsEntry = exports.SubscribeRequestFilterTransactions = exports.SubscribeRequestFilterSlots = exports.SubscribeRequestFilterEntry = exports.SubscribeRequestFilterBlocksMeta = exports.SubscribeRequestFilterBlocks = exports.SubscribeRequestFilterAccountsFilterMemcmp = exports.SubscribeRequestFilterAccountsFilter = exports.SubscribeRequestFilterAccounts = exports.SubscribeRequestAccountsDataSlice = exports.SubscribeRequest = exports.CommitmentLevel = void 0;
// Import generated gRPC client and types.

@@ -60,10 +60,5 @@ var geyser_1 = require("./grpc/geyser");

var geyser_2 = require("./grpc/geyser");
__createBinding(exports, geyser_2, "CommitmentLevel");
__createBinding(exports, geyser_2, "SubscribeRequest");
__createBinding(exports, geyser_2, "SubscribeRequest_AccountsEntry");
__createBinding(exports, geyser_2, "SubscribeRequest_SlotsEntry");
__createBinding(exports, geyser_2, "SubscribeRequestFilterSlots");
__createBinding(exports, geyser_2, "SubscribeRequest_TransactionsEntry");
__createBinding(exports, geyser_2, "SubscribeRequestFilterTransactions");
__createBinding(exports, geyser_2, "SubscribeRequest_BlocksEntry");
__createBinding(exports, geyser_2, "SubscribeRequest_BlocksMetaEntry");
__createBinding(exports, geyser_2, "SubscribeRequestAccountsDataSlice");
__createBinding(exports, geyser_2, "SubscribeRequestFilterAccounts");

@@ -74,12 +69,19 @@ __createBinding(exports, geyser_2, "SubscribeRequestFilterAccountsFilter");

__createBinding(exports, geyser_2, "SubscribeRequestFilterBlocksMeta");
__createBinding(exports, geyser_2, "SubscribeRequestFilterEntry");
__createBinding(exports, geyser_2, "SubscribeRequestFilterSlots");
__createBinding(exports, geyser_2, "SubscribeRequestFilterTransactions");
__createBinding(exports, geyser_2, "SubscribeRequest_AccountsEntry");
__createBinding(exports, geyser_2, "SubscribeRequest_BlocksEntry");
__createBinding(exports, geyser_2, "SubscribeRequest_BlocksMetaEntry");
__createBinding(exports, geyser_2, "SubscribeRequest_SlotsEntry");
__createBinding(exports, geyser_2, "SubscribeRequest_TransactionsEntry");
__createBinding(exports, geyser_2, "SubscribeUpdate");
__createBinding(exports, geyser_2, "SubscribeUpdateAccount");
__createBinding(exports, geyser_2, "SubscribeUpdateAccountInfo");
__createBinding(exports, geyser_2, "SubscribeUpdateBlock");
__createBinding(exports, geyser_2, "SubscribeUpdateBlockMeta");
__createBinding(exports, geyser_2, "SubscribeUpdatePing");
__createBinding(exports, geyser_2, "SubscribeUpdateSlot");
__createBinding(exports, geyser_2, "CommitmentLevel");
__createBinding(exports, geyser_2, "SubscribeUpdateTransaction");
__createBinding(exports, geyser_2, "SubscribeUpdateTransactionInfo");
__createBinding(exports, geyser_2, "SubscribeUpdateBlock");
__createBinding(exports, geyser_2, "SubscribeUpdatePing");
__createBinding(exports, geyser_2, "SubscribeUpdateBlockMeta");
var Client = /** @class */ (function () {

@@ -114,3 +116,3 @@ function Client(endpoint, xToken) {

};
Client.prototype.subscribeOnce = function (accounts, slots, transactions, blocks, blocksMeta, commitment, accountsDataSlice) {
Client.prototype.subscribeOnce = function (accounts, slots, transactions, entry, blocks, blocksMeta, commitment, accountsDataSlice) {
return __awaiter(this, void 0, void 0, function () {

@@ -128,2 +130,3 @@ var stream;

transactions: transactions,
entry: entry,
blocks: blocks,

@@ -130,0 +133,0 @@ blocksMeta: blocksMeta,

{
"name": "@triton-one/yellowstone-grpc",
"version": "0.1.5",
"license": "Apache-2.0",
"author": "Triton One",
"description": "Yellowstone gRPC Geyser Node.js Client",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "npm run grpc-generate && tsc -p .",
"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"
},
"repository": {
"type": "git",
"url": "https://github.com/rpcpool/yellowstone-grpc.git"
},
"publishConfig": {
"access": "public"
},
"bugs": {
"url": "https://github.com/rpcpool/yellowstone-grpc/issues"
},
"keywords": [
"solana"
],
"homepage": "https://triton.one",
"dependencies": {
"@grpc/grpc-js": "^1.8.0"
},
"devDependencies": {
"prettier": "2.8.3",
"ts-proto": "^1.139.0",
"typescript": "^4.9.5"
},
"files": ["dist"]
"name": "@triton-one/yellowstone-grpc",
"version": "0.2.0",
"license": "Apache-2.0",
"author": "Triton One",
"description": "Yellowstone gRPC Geyser Node.js Client",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "npm run grpc-generate && tsc -p .",
"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"
},
"repository": {
"type": "git",
"url": "https://github.com/rpcpool/yellowstone-grpc.git"
},
"publishConfig": {
"access": "public"
},
"bugs": {
"url": "https://github.com/rpcpool/yellowstone-grpc/issues"
},
"keywords": [
"solana"
],
"homepage": "https://triton.one",
"dependencies": {
"@grpc/grpc-js": "^1.8.0"
},
"devDependencies": {
"prettier": "2.8.3",
"ts-proto": "^1.139.0",
"typescript": "^4.9.5"
},
"files": [
"dist"
]
}

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