Socket
Socket
Sign inDemoInstall

@marinade.finance/web3js-common

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@marinade.finance/web3js-common - npm Package Compare versions

Comparing version 2.0.22 to 2.1.0

6

package.json
{
"name": "@marinade.finance/web3js-common",
"version": "2.0.22",
"version": "2.1.0",
"description": "Web3 JS reusable utilities",

@@ -25,3 +25,3 @@ "repository": {

"@solana/web3.js": "^1.78.5",
"@marinade.finance/ts-common": "2.0.22",
"@marinade.finance/ts-common": "2.1.0",
"bn.js": "^5.2.1",

@@ -33,3 +33,3 @@ "borsh": "^0.7.0",

"@solana/web3.js": "^1.78.5",
"@marinade.finance/ts-common": "2.0.22",
"@marinade.finance/ts-common": "2.1.0",
"bn.js": "^5.2.1",

@@ -36,0 +36,0 @@ "borsh": "^0.7.0",

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

import { Connection, Transaction, VersionedTransactionResponse, SimulatedTransactionResponse, Keypair, Signer, TransactionInstruction, TransactionResponse, PublicKey, SendOptions } from '@solana/web3.js';
import { Connection, Transaction, VersionedTransactionResponse, SimulatedTransactionResponse, Keypair, Signer, TransactionInstruction, TransactionResponse, PublicKey, SendOptions, VersionedTransaction } from '@solana/web3.js';
import { Wallet } from './wallet';

@@ -22,2 +22,6 @@ import { LoggerPlaceholder } from '@marinade.finance/ts-common';

/**
* Verified if object is the versioned transaction
*/
export declare function isVersionedTransaction(transaction: Transaction | VersionedTransaction): transaction is VersionedTransaction;
/**
* @returns signers that are required for the provided instructions

@@ -24,0 +28,0 @@ */

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.debugStr = exports.splitAndExecuteTx = exports.TRANSACTION_SAFE_SIZE = exports.filterSignersForInstruction = exports.isSimulatedTransactionResponse = exports.executeTxSimple = exports.executeTx = void 0;
exports.debugStr = exports.splitAndExecuteTx = exports.TRANSACTION_SAFE_SIZE = exports.filterSignersForInstruction = exports.isVersionedTransaction = exports.isSimulatedTransactionResponse = exports.executeTxSimple = exports.executeTx = void 0;
const web3_js_1 = require("@solana/web3.js");

@@ -38,2 +38,3 @@ const wallet_1 = require("./wallet");

}
let txSig = undefined;
try {

@@ -49,3 +50,3 @@ if (simulate) {

else if (!printOnly) {
const txSig = await connection.sendRawTransaction(transaction.serialize(), sendOpts);
txSig = await connection.sendRawTransaction(transaction.serialize(), sendOpts);
const res = await connection.confirmTransaction({

@@ -88,3 +89,3 @@ signature: txSig,

throw new error_1.ExecutionError({
msg: errMessage,
msg: txSig ? `${txSig} ` : '' + errMessage,
cause: e,

@@ -127,2 +128,9 @@ logs: e.logs

/**
* Verified if object is the versioned transaction
*/
function isVersionedTransaction(transaction) {
return 'version' in transaction;
}
exports.isVersionedTransaction = isVersionedTransaction;
/**
* @returns signers that are required for the provided instructions

@@ -129,0 +137,0 @@ */

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