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

@saberhq/solana-contrib

Package Overview
Dependencies
Maintainers
2
Versions
181
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@saberhq/solana-contrib - npm Package Compare versions

Comparing version 1.12.67 to 1.12.68

4

dist/cjs/transaction/PendingTransaction.d.ts
import type { Cluster, Connection, Finality, TransactionSignature } from "@solana/web3.js";
import type { OperationOptions } from "retry";
import type { WrapOptions } from "retry";
import { TransactionReceipt } from "../transaction";

@@ -7,3 +7,3 @@ /**

*/
export interface TransactionWaitOptions extends OperationOptions {
export interface TransactionWaitOptions extends WrapOptions {
/**

@@ -10,0 +10,0 @@ * Commitment of the transaction. Defaults to `confirmed`.

@@ -9,2 +9,3 @@ import type { Cluster, ConfirmOptions, RpcResponseAndContext, Signer, SimulatedTransactionResponse, TransactionInstruction } from "@solana/web3.js";

import type { SerializableInstruction } from "./utils";
export declare const PACKET_DATA_SIZE: number;
/**

@@ -11,0 +12,0 @@ * Options for simulating a transaction.

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TransactionEnvelope = void 0;
exports.TransactionEnvelope = exports.PACKET_DATA_SIZE = void 0;
const tslib_1 = require("tslib");

@@ -11,2 +11,3 @@ const web3_js_1 = require("@solana/web3.js");

const utils_2 = require("./utils");
exports.PACKET_DATA_SIZE = 1280 - 40 - 8;
const ASSOCIATED_TOKEN_PROGRAM_ID = new web3_js_1.PublicKey("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");

@@ -119,3 +120,3 @@ /**

const size = (0, txSizer_1.calculateTxSizeUnsafe)(builtTx);
if (size > web3_js_1.PACKET_DATA_SIZE) {
if (size > exports.PACKET_DATA_SIZE) {
return { error: new utils_1.EstimatedTXTooBigError(builtTx, size) };

@@ -160,4 +161,4 @@ }

this.instructions.slice(1).forEach((ix, i) => {
if (lastEstimation > web3_js_1.PACKET_DATA_SIZE) {
throw new Error(`cannot construct a valid partition: instruction ${i} is too large (${lastEstimation} > ${web3_js_1.PACKET_DATA_SIZE})`);
if (lastEstimation > exports.PACKET_DATA_SIZE) {
throw new Error(`cannot construct a valid partition: instruction ${i} is too large (${lastEstimation} > ${exports.PACKET_DATA_SIZE})`);
}

@@ -169,3 +170,3 @@ const nextIXs = [...lastTXEnv.instructions, ix];

// move to next tx envelope if too big
if (nextEstimation > web3_js_1.PACKET_DATA_SIZE) {
if (nextEstimation > exports.PACKET_DATA_SIZE) {
txs.push(lastTXEnv);

@@ -365,4 +366,4 @@ const nextIXs = [ix];

rest.forEach((addedTX, i) => {
if (lastEstimation > web3_js_1.PACKET_DATA_SIZE) {
throw new Error(`cannot construct a valid partition: instruction ${i} is too large (${lastEstimation} > ${web3_js_1.PACKET_DATA_SIZE})`);
if (lastEstimation > exports.PACKET_DATA_SIZE) {
throw new Error(`cannot construct a valid partition: instruction ${i} is too large (${lastEstimation} > ${exports.PACKET_DATA_SIZE})`);
}

@@ -377,3 +378,3 @@ const nextIXs = [...lastTXEnv.instructions, ...addedTX.instructions];

// move to next tx envelope if too big
if (nextEstimation > web3_js_1.PACKET_DATA_SIZE) {
if (nextEstimation > exports.PACKET_DATA_SIZE) {
partition.push(lastTXEnv);

@@ -380,0 +381,0 @@ lastTXEnv = addedTX;

import type { Cluster, Connection, Finality, TransactionSignature } from "@solana/web3.js";
import type { OperationOptions } from "retry";
import type { WrapOptions } from "retry";
import { TransactionReceipt } from "../transaction";

@@ -7,3 +7,3 @@ /**

*/
export interface TransactionWaitOptions extends OperationOptions {
export interface TransactionWaitOptions extends WrapOptions {
/**

@@ -10,0 +10,0 @@ * Commitment of the transaction. Defaults to `confirmed`.

@@ -9,2 +9,3 @@ import type { Cluster, ConfirmOptions, RpcResponseAndContext, Signer, SimulatedTransactionResponse, TransactionInstruction } from "@solana/web3.js";

import type { SerializableInstruction } from "./utils";
export declare const PACKET_DATA_SIZE: number;
/**

@@ -11,0 +12,0 @@ * Options for simulating a transaction.

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

import { PACKET_DATA_SIZE, PublicKey, Transaction } from "@solana/web3.js";
import { PublicKey, Transaction } from "@solana/web3.js";
import invariant from "tiny-invariant";

@@ -7,2 +7,3 @@ import { requestComputeUnitsInstruction, requestHeapFrameInstruction, } from "../computeBudget";

import { generateInspectLinkFromBase64, RECENT_BLOCKHASH_STUB } from "./utils";
export const PACKET_DATA_SIZE = 1280 - 40 - 8;
const ASSOCIATED_TOKEN_PROGRAM_ID = new PublicKey("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");

@@ -9,0 +10,0 @@ /**

{
"name": "@saberhq/solana-contrib",
"version": "1.12.67",
"version": "1.12.68",
"description": "Common types and libraries for Solana",

@@ -36,3 +36,3 @@ "author": "Ian Macalinao <ian@saber.so>",

"devDependencies": {
"@solana/web3.js": "^1.39.1",
"@solana/web3.js": "^1.41.1",
"@types/bn.js": "^5.1.0",

@@ -47,3 +47,3 @@ "@types/jest": "^27.4.1",

},
"gitHead": "8c2326383819d4dda1c21da554b2f706453c7484",
"gitHead": "b3d1872b1f0f48280cfca0f6d1d3156c89f04874",
"publishConfig": {

@@ -50,0 +50,0 @@ "access": "public"

@@ -8,3 +8,3 @@ import type {

import promiseRetry from "promise-retry";
import type { OperationOptions } from "retry";
import type { WrapOptions } from "retry";

@@ -16,3 +16,3 @@ import { TransactionReceipt } from "../transaction";

*/
export interface TransactionWaitOptions extends OperationOptions {
export interface TransactionWaitOptions extends WrapOptions {
/**

@@ -19,0 +19,0 @@ * Commitment of the transaction. Defaults to `confirmed`.

@@ -9,3 +9,3 @@ import type {

} from "@solana/web3.js";
import { PACKET_DATA_SIZE, PublicKey, Transaction } from "@solana/web3.js";
import { PublicKey, Transaction } from "@solana/web3.js";
import invariant from "tiny-invariant";

@@ -32,2 +32,4 @@

export const PACKET_DATA_SIZE = 1280 - 40 - 8;
const ASSOCIATED_TOKEN_PROGRAM_ID = new PublicKey(

@@ -34,0 +36,0 @@ "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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