@helium/spl-utils
Advanced tools
Comparing version 0.6.9 to 0.6.10
@@ -309,3 +309,3 @@ "use strict"; | ||
commitment: "confirmed", | ||
maxSupportedTransactionVersion: 0 | ||
maxSupportedTransactionVersion: 0, | ||
}); | ||
@@ -325,3 +325,3 @@ console.error((_b = (_a = tx === null || tx === void 0 ? void 0 : tx.meta) === null || _a === void 0 ? void 0 : _a.logMessages) === null || _b === void 0 ? void 0 : _b.join("\n")); | ||
commitment: "confirmed", | ||
maxSupportedTransactionVersion: 0 | ||
maxSupportedTransactionVersion: 0, | ||
}); | ||
@@ -390,3 +390,3 @@ if (tx && tx.meta && tx.meta.logMessages) { | ||
return onProgress && | ||
onProgress(Object.assign(Object.assign({}, rest), { totalProgress: totalProgress + ret.length + thisRet.length })); | ||
onProgress(Object.assign(Object.assign({}, rest), { totalTxs: txs.length, totalProgress: totalProgress + ret.length + thisRet.length })); | ||
}, recentBlockhash.lastValidBlockHeight, | ||
@@ -455,2 +455,3 @@ // Hail mary, try with preflight enabled. Sometimes this causes | ||
onProgress({ | ||
totalTxs: txs.length, | ||
totalProgress: totalProgress, | ||
@@ -468,3 +469,3 @@ currentBatchProgress: currentBatchProgress, | ||
ret.push(...txids | ||
.map((txid, idx) => statuses[idx] == null ? null : txid) | ||
.map((txid, idx) => (statuses[idx] == null ? null : txid)) | ||
.filter(truthy)); | ||
@@ -471,0 +472,0 @@ chunk = chunk.filter((_, index) => statuses[index] === null); |
@@ -262,3 +262,3 @@ import { Transaction, } from "@solana/web3.js"; | ||
commitment: "confirmed", | ||
maxSupportedTransactionVersion: 0 | ||
maxSupportedTransactionVersion: 0, | ||
}); | ||
@@ -278,3 +278,3 @@ console.error(tx?.meta?.logMessages?.join("\n")); | ||
commitment: "confirmed", | ||
maxSupportedTransactionVersion: 0 | ||
maxSupportedTransactionVersion: 0, | ||
}); | ||
@@ -334,3 +334,7 @@ if (tx && tx.meta && tx.meta.logMessages) { | ||
const confirmedTxs = await bulkSendRawTransactions(provider.connection, signedTxs.map((s) => s.serialize()), ({ totalProgress, ...rest }) => onProgress && | ||
onProgress({ ...rest, totalProgress: totalProgress + ret.length + thisRet.length }), recentBlockhash.lastValidBlockHeight, | ||
onProgress({ | ||
...rest, | ||
totalTxs: txs.length, | ||
totalProgress: totalProgress + ret.length + thisRet.length, | ||
}), recentBlockhash.lastValidBlockHeight, | ||
// Hail mary, try with preflight enabled. Sometimes this causes | ||
@@ -395,2 +399,3 @@ // errors that wouldn't otherwise happen | ||
onProgress({ | ||
totalTxs: txs.length, | ||
totalProgress: totalProgress, | ||
@@ -408,3 +413,3 @@ currentBatchProgress: currentBatchProgress, | ||
ret.push(...txids | ||
.map((txid, idx) => statuses[idx] == null ? null : txid) | ||
.map((txid, idx) => (statuses[idx] == null ? null : txid)) | ||
.filter(truthy)); | ||
@@ -411,0 +416,0 @@ chunk = chunk.filter((_, index) => statuses[index] === null); |
@@ -30,2 +30,3 @@ /// <reference types="node" /> | ||
export type Status = { | ||
totalTxs: number; | ||
totalProgress: number; | ||
@@ -32,0 +33,0 @@ currentBatchProgress: number; |
{ | ||
"name": "@helium/spl-utils", | ||
"version": "0.6.9", | ||
"version": "0.6.10", | ||
"description": "Utils shared across spl suite", | ||
@@ -35,5 +35,5 @@ "publishConfig": { | ||
"@coral-xyz/anchor": "^0.28.0", | ||
"@helium/account-fetch-cache": "^0.6.9", | ||
"@helium/account-fetch-cache": "^0.6.10", | ||
"@helium/address": "^4.10.2", | ||
"@helium/anchor-resolvers": "^0.6.9", | ||
"@helium/anchor-resolvers": "^0.6.10", | ||
"@metaplex-foundation/mpl-token-metadata": "^2.10.0", | ||
@@ -53,3 +53,3 @@ "@solana/spl-account-compression": "^0.1.7", | ||
}, | ||
"gitHead": "834837ed4ccd997029a5489450deb2cd8879adb4" | ||
"gitHead": "d01d03b0da1d9d483b84c9a2787d51c1ed3d5b57" | ||
} |
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
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
373924
3371