@marinade.finance/web3js-common
Advanced tools
Comparing version 2.1.0 to 2.1.1
{ | ||
"name": "@marinade.finance/web3js-common", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Web3 JS reusable utilities", | ||
@@ -25,3 +25,3 @@ "repository": { | ||
"@solana/web3.js": "^1.78.5", | ||
"@marinade.finance/ts-common": "2.1.0", | ||
"@marinade.finance/ts-common": "2.1.1", | ||
"bn.js": "^5.2.1", | ||
@@ -33,3 +33,3 @@ "borsh": "^0.7.0", | ||
"@solana/web3.js": "^1.78.5", | ||
"@marinade.finance/ts-common": "2.1.0", | ||
"@marinade.finance/ts-common": "2.1.1", | ||
"bn.js": "^5.2.1", | ||
@@ -36,0 +36,0 @@ "borsh": "^0.7.0", |
@@ -46,3 +46,6 @@ import { Connection, Transaction, VersionedTransactionResponse, SimulatedTransactionResponse, Keypair, Signer, TransactionInstruction, TransactionResponse, PublicKey, SendOptions, VersionedTransaction } from '@solana/web3.js'; | ||
sendOpts?: SendOptions; | ||
}): Promise<VersionedTransactionResponse[] | SimulatedTransactionResponse[] | []>; | ||
}): Promise<{ | ||
result: VersionedTransactionResponse[] | SimulatedTransactionResponse[] | []; | ||
transactions: Transaction[]; | ||
}>; | ||
/** | ||
@@ -49,0 +52,0 @@ * Returns a string representation Transaction object. |
@@ -164,2 +164,3 @@ "use strict"; | ||
const result = []; | ||
const resultTransactions = []; | ||
// only to print in base64 | ||
@@ -177,2 +178,3 @@ if (!simulate && printOnly) { | ||
}); | ||
resultTransactions.push(transaction); | ||
} | ||
@@ -252,2 +254,3 @@ else { | ||
let executionCounter = 0; | ||
resultTransactions.push(...transactions); | ||
for (const transaction of transactions) { | ||
@@ -278,3 +281,3 @@ const txSigners = filterSignersForInstruction(transaction.instructions, signers).filter(s => !s.publicKey.equals(feePayerDefined)); | ||
} | ||
return result; | ||
return { result, transactions: resultTransactions }; | ||
} | ||
@@ -281,0 +284,0 @@ exports.splitAndExecuteTx = splitAndExecuteTx; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42394
637