Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@triton-one/yellowstone-grpc

Package Overview
Dependencies
Maintainers
2
Versions
17
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 1.2.0 to 1.3.0

3

dist/encoding/yellowstone_grpc_solana_encoding_wasm_bg.wasm.d.ts
/* tslint:disable */
/* eslint-disable */
export const memory: WebAssembly.Memory;
export function encode(a: number, b: number, c: number, d: number, e: number, f: number): void;
export function encode_tx(a: number, b: number, c: number, d: number, e: number, f: number): void;
export function decode_tx_error(a: number, b: number, c: number): void;
export function __wbg_hash_free(a: number, b: number): void;

@@ -6,0 +7,0 @@ export function hash_constructor(a: number, b: number): void;

@@ -10,4 +10,9 @@ /* tslint:disable */

*/
export function encode(data: Uint8Array, encoding: WasmUiTransactionEncoding, max_supported_transaction_version: number | undefined, show_rewards: boolean): string;
export function encode_tx(data: Uint8Array, encoding: WasmUiTransactionEncoding, max_supported_transaction_version: number | undefined, show_rewards: boolean): string;
/**
* @param {Uint8Array} err
* @returns {string}
*/
export function decode_tx_error(err: Uint8Array): string;
/**
* Initialize Javascript logging and panic handler

@@ -14,0 +19,0 @@ */

@@ -201,3 +201,3 @@

*/
module.exports.encode = function(data, encoding, max_supported_transaction_version, show_rewards) {
module.exports.encode_tx = function(data, encoding, max_supported_transaction_version, show_rewards) {
let deferred3_0;

@@ -209,3 +209,3 @@ let deferred3_1;

const len0 = WASM_VECTOR_LEN;
wasm.encode(retptr, ptr0, len0, encoding, isLikeNone(max_supported_transaction_version) ? 0xFFFFFF : max_supported_transaction_version, show_rewards);
wasm.encode_tx(retptr, ptr0, len0, encoding, isLikeNone(max_supported_transaction_version) ? 0xFFFFFF : max_supported_transaction_version, show_rewards);
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);

@@ -230,2 +230,33 @@ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);

/**
* @param {Uint8Array} err
* @returns {string}
*/
module.exports.decode_tx_error = function(err) {
let deferred3_0;
let deferred3_1;
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passArray8ToWasm0(err, wasm.__wbindgen_malloc);
const len0 = WASM_VECTOR_LEN;
wasm.decode_tx_error(retptr, ptr0, len0);
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
var ptr2 = r0;
var len2 = r1;
if (r3) {
ptr2 = 0; len2 = 0;
throw takeObject(r2);
}
deferred3_0 = ptr2;
deferred3_1 = len2;
return getStringFromWasm0(ptr2, len2);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
}
};
function handleError(f, args) {

@@ -232,0 +263,0 @@ try {

@@ -8,8 +8,12 @@ /**

import * as wasm from "./encoding/yellowstone_grpc_solana_encoding_wasm";
import { MapTransactionEncodingToReturnType } from "./types";
import type { TransactionErrorSolana, MapTransactionEncodingToReturnType } from "./types";
export declare const txEncode: {
encoding: typeof wasm.WasmUiTransactionEncoding;
encode_raw: typeof wasm.encode;
encode_raw: typeof wasm.encode_tx;
encode: <T extends wasm.WasmUiTransactionEncoding>(message: SubscribeUpdateTransactionInfo, encoding: T, max_supported_transaction_version: number | undefined, show_rewards: boolean) => MapTransactionEncodingToReturnType[T];
};
export declare const txErrDecode: {
decode_raw: typeof wasm.decode_tx_error;
decode: (buf: Uint8Array) => TransactionErrorSolana;
};
export default class Client {

@@ -16,0 +20,0 @@ _client: GeyserClient;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.txEncode = 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.SubscribeRequestFilterAccountsFilterLamports = exports.SubscribeRequestFilterAccountsFilterMemcmp = exports.SubscribeRequestFilterAccountsFilter = exports.SubscribeRequestFilterAccounts = exports.SubscribeRequestAccountsDataSlice = exports.SubscribeRequest = exports.CommitmentLevel = void 0;
exports.txErrDecode = exports.txEncode = 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.SubscribeRequestFilterAccountsFilterLamports = exports.SubscribeRequestFilterAccountsFilterMemcmp = exports.SubscribeRequestFilterAccountsFilter = exports.SubscribeRequestFilterAccounts = exports.SubscribeRequestAccountsDataSlice = exports.SubscribeRequest = exports.CommitmentLevel = void 0;
var grpc_js_1 = require("@grpc/grpc-js");

@@ -79,7 +79,13 @@ // Import generated gRPC client and types.

encoding: wasm.WasmUiTransactionEncoding,
encode_raw: wasm.encode,
encode_raw: wasm.encode_tx,
encode: function (message, encoding, max_supported_transaction_version, show_rewards) {
return JSON.parse(wasm.encode(geyser_1.SubscribeUpdateTransactionInfo.encode(message).finish(), encoding, max_supported_transaction_version, show_rewards));
return JSON.parse(wasm.encode_tx(geyser_1.SubscribeUpdateTransactionInfo.encode(message).finish(), encoding, max_supported_transaction_version, show_rewards));
},
};
exports.txErrDecode = {
decode_raw: wasm.decode_tx_error,
decode: function (buf) {
return JSON.parse(wasm.decode_tx_error(buf));
},
};
var Client = /** @class */ (function () {

@@ -86,0 +92,0 @@ function Client(endpoint, xToken, channelOptions) {

@@ -0,1 +1,2 @@

import { type TransactionError } from "@solana/rpc-types";
declare const base58: Readonly<{

@@ -7,3 +8,3 @@ blockTime: import("@solana/rpc-types").UnixTimestamp;

computeUnitsConsumed?: bigint;
err: import("@solana/rpc-types").TransactionError;
err: TransactionError;
fee: import("@solana/rpc-types").Lamports;

@@ -62,3 +63,3 @@ logMessages: readonly string[];

computeUnitsConsumed?: bigint;
err: import("@solana/rpc-types").TransactionError;
err: TransactionError;
fee: import("@solana/rpc-types").Lamports;

@@ -117,3 +118,3 @@ logMessages: readonly string[];

computeUnitsConsumed?: bigint;
err: import("@solana/rpc-types").TransactionError;
err: TransactionError;
fee: import("@solana/rpc-types").Lamports;

@@ -192,3 +193,3 @@ logMessages: readonly string[];

computeUnitsConsumed?: bigint;
err: import("@solana/rpc-types").TransactionError;
err: TransactionError;
fee: import("@solana/rpc-types").Lamports;

@@ -284,2 +285,3 @@ logMessages: readonly string[];

};
export type TransactionErrorSolana = TransactionError;
export {};
{
"name": "@triton-one/yellowstone-grpc",
"version": "1.2.0",
"version": "1.3.0",
"license": "Apache-2.0",

@@ -5,0 +5,0 @@ "author": "Triton One",

Sorry, the diff of this file is not supported yet

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