@solana/web3.js 2.0.0-preview.3.20240626091908.cec9048b2f83535df7e499db5488c336981dfb5a → 2.0.0-preview.3.20240626201153.22a34aa08d1be7e9b43ccfea94a99eaa2694e491
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.development.js +16 -15
- package/dist/index.development.js.map +1 -1
- package/dist/index.production.min.js +49 -49
- package/package.json +18 -18
@@ -4015,7 +4015,7 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
4015
4015
|
...config.headers ? normalizeHeaders2(config.headers) : void 0,
|
4016
4016
|
...{
|
4017
4017
|
// Keep these headers lowercase so they will override any user-supplied headers above.
|
4018
|
-
"solana-client": (_a = `js/${"2.0.0-preview.3.
|
4018
|
+
"solana-client": (_a = `js/${"2.0.0-preview.3.20240626201153.22a34aa08d1be7e9b43ccfea94a99eaa2694e491"}`) != null ? _a : "UNKNOWN"
|
4019
4019
|
}
|
4020
4020
|
}
|
4021
4021
|
}),
|
@@ -6273,7 +6273,7 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
6273
6273
|
throw new SolanaError(SOLANA_ERROR__SIGNER__TRANSACTION_CANNOT_HAVE_MULTIPLE_SENDING_SIGNERS);
|
6274
6274
|
}
|
6275
6275
|
}
|
6276
|
-
async function partiallySignTransactionMessageWithSigners(transactionMessage, config
|
6276
|
+
async function partiallySignTransactionMessageWithSigners(transactionMessage, config) {
|
6277
6277
|
const { partialSigners, modifyingSigners } = categorizeTransactionSigners(
|
6278
6278
|
deduplicateSigners(getSignersFromTransactionMessage(transactionMessage).filter(isTransactionSigner)),
|
6279
6279
|
{ identifySendingSigner: false }
|
@@ -6282,17 +6282,17 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
6282
6282
|
transactionMessage,
|
6283
6283
|
modifyingSigners,
|
6284
6284
|
partialSigners,
|
6285
|
-
config
|
6285
|
+
config
|
6286
6286
|
);
|
6287
6287
|
}
|
6288
|
-
async function signTransactionMessageWithSigners(transactionMessage, config
|
6288
|
+
async function signTransactionMessageWithSigners(transactionMessage, config) {
|
6289
6289
|
const signedTransaction = await partiallySignTransactionMessageWithSigners(transactionMessage, config);
|
6290
6290
|
assertTransactionIsFullySigned(signedTransaction);
|
6291
6291
|
return signedTransaction;
|
6292
6292
|
}
|
6293
|
-
async function signAndSendTransactionMessageWithSigners(transaction, config
|
6293
|
+
async function signAndSendTransactionMessageWithSigners(transaction, config) {
|
6294
6294
|
assertIsTransactionMessageWithSingleSendingSigner(transaction);
|
6295
|
-
const abortSignal = config.abortSignal;
|
6295
|
+
const abortSignal = config == null ? void 0 : config.abortSignal;
|
6296
6296
|
const { partialSigners, modifyingSigners, sendingSigner } = categorizeTransactionSigners(
|
6297
6297
|
deduplicateSigners(getSignersFromTransactionMessage(transaction).filter(isTransactionSigner))
|
6298
6298
|
);
|
@@ -6301,13 +6301,13 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
6301
6301
|
transaction,
|
6302
6302
|
modifyingSigners,
|
6303
6303
|
partialSigners,
|
6304
|
-
|
6304
|
+
config
|
6305
6305
|
);
|
6306
6306
|
if (!sendingSigner) {
|
6307
6307
|
throw new SolanaError(SOLANA_ERROR__SIGNER__TRANSACTION_SENDING_SIGNER_MISSING);
|
6308
6308
|
}
|
6309
6309
|
abortSignal == null ? void 0 : abortSignal.throwIfAborted();
|
6310
|
-
const [signature2] = await sendingSigner.signAndSendTransactions([signedTransaction],
|
6310
|
+
const [signature2] = await sendingSigner.signAndSendTransactions([signedTransaction], config);
|
6311
6311
|
abortSignal == null ? void 0 : abortSignal.throwIfAborted();
|
6312
6312
|
return signature2;
|
6313
6313
|
}
|
@@ -6340,21 +6340,22 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
6340
6340
|
if (nonPartialSigners.length > 0) return nonPartialSigners;
|
6341
6341
|
return [modifyingSigners[0]];
|
6342
6342
|
}
|
6343
|
-
async function signModifyingAndPartialTransactionSigners(transactionMessage, modifyingSigners = [], partialSigners = [],
|
6344
|
-
var _a;
|
6343
|
+
async function signModifyingAndPartialTransactionSigners(transactionMessage, modifyingSigners = [], partialSigners = [], config) {
|
6344
|
+
var _a, _b;
|
6345
6345
|
const transaction = compileTransaction(transactionMessage);
|
6346
6346
|
const modifiedTransaction = await modifyingSigners.reduce(
|
6347
6347
|
async (transaction2, modifyingSigner) => {
|
6348
|
-
|
6349
|
-
|
6348
|
+
var _a2;
|
6349
|
+
(_a2 = config == null ? void 0 : config.abortSignal) == null ? void 0 : _a2.throwIfAborted();
|
6350
|
+
const [tx] = await modifyingSigner.modifyAndSignTransactions([await transaction2], config);
|
6350
6351
|
return Object.freeze(tx);
|
6351
6352
|
},
|
6352
6353
|
Promise.resolve(transaction)
|
6353
6354
|
);
|
6354
|
-
abortSignal == null ? void 0 :
|
6355
|
+
(_a = config == null ? void 0 : config.abortSignal) == null ? void 0 : _a.throwIfAborted();
|
6355
6356
|
const signatureDictionaries = await Promise.all(
|
6356
6357
|
partialSigners.map(async (partialSigner) => {
|
6357
|
-
const [signatures] = await partialSigner.signTransactions([modifiedTransaction],
|
6358
|
+
const [signatures] = await partialSigner.signTransactions([modifiedTransaction], config);
|
6358
6359
|
return signatures;
|
6359
6360
|
})
|
6360
6361
|
);
|
@@ -6363,7 +6364,7 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
6363
6364
|
signatures: Object.freeze(
|
6364
6365
|
signatureDictionaries.reduce((signatures, signatureDictionary) => {
|
6365
6366
|
return { ...signatures, ...signatureDictionary };
|
6366
|
-
}, (
|
6367
|
+
}, (_b = modifiedTransaction.signatures) != null ? _b : {})
|
6367
6368
|
)
|
6368
6369
|
};
|
6369
6370
|
return Object.freeze(signedTransaction);
|