@solana/kit 4.0.0-canary-20251003105839 → 4.0.0-canary-20251003155620
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.development.js +21 -1
- package/dist/index.development.js.map +1 -1
- package/dist/index.production.min.js +398 -394
- package/package.json +20 -20
|
@@ -4517,6 +4517,22 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
|
4517
4517
|
};
|
|
4518
4518
|
}
|
|
4519
4519
|
}
|
|
4520
|
+
function isTransactionWithBlockhashLifetime(transaction) {
|
|
4521
|
+
return "lifetimeConstraint" in transaction && "blockhash" in transaction.lifetimeConstraint && typeof transaction.lifetimeConstraint.blockhash === "string" && typeof transaction.lifetimeConstraint.lastValidBlockHeight === "bigint" && isBlockhash(transaction.lifetimeConstraint.blockhash);
|
|
4522
|
+
}
|
|
4523
|
+
function assertIsTransactionWithBlockhashLifetime(transaction) {
|
|
4524
|
+
if (!isTransactionWithBlockhashLifetime(transaction)) {
|
|
4525
|
+
throw new SolanaError(SOLANA_ERROR__TRANSACTION__EXPECTED_BLOCKHASH_LIFETIME);
|
|
4526
|
+
}
|
|
4527
|
+
}
|
|
4528
|
+
function isTransactionWithDurableNonceLifetime(transaction) {
|
|
4529
|
+
return "lifetimeConstraint" in transaction && "nonce" in transaction.lifetimeConstraint && typeof transaction.lifetimeConstraint.nonce === "string" && typeof transaction.lifetimeConstraint.nonceAccountAddress === "string" && isAddress(transaction.lifetimeConstraint.nonceAccountAddress);
|
|
4530
|
+
}
|
|
4531
|
+
function assertIsTransactionWithDurableNonceLifetime(transaction) {
|
|
4532
|
+
if (!isTransactionWithDurableNonceLifetime(transaction)) {
|
|
4533
|
+
throw new SolanaError(SOLANA_ERROR__TRANSACTION__EXPECTED_NONCE_LIFETIME);
|
|
4534
|
+
}
|
|
4535
|
+
}
|
|
4520
4536
|
function compileTransaction(transactionMessage) {
|
|
4521
4537
|
const compiledMessage = compileTransactionMessage(transactionMessage);
|
|
4522
4538
|
const messageBytes = getCompiledTransactionMessageEncoder().encode(compiledMessage);
|
|
@@ -6174,7 +6190,7 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
|
6174
6190
|
...config.headers ? normalizeHeaders2(config.headers) : void 0,
|
|
6175
6191
|
...{
|
|
6176
6192
|
// Keep these headers lowercase so they will override any user-supplied headers above.
|
|
6177
|
-
"solana-client": `js/${"4.0.0-canary-
|
|
6193
|
+
"solana-client": `js/${"4.0.0-canary-20251003155620"}`
|
|
6178
6194
|
}
|
|
6179
6195
|
}
|
|
6180
6196
|
}),
|
|
@@ -8375,6 +8391,8 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
|
8375
8391
|
exports.assertIsTransactionPartialSigner = assertIsTransactionPartialSigner;
|
|
8376
8392
|
exports.assertIsTransactionSendingSigner = assertIsTransactionSendingSigner;
|
|
8377
8393
|
exports.assertIsTransactionSigner = assertIsTransactionSigner;
|
|
8394
|
+
exports.assertIsTransactionWithBlockhashLifetime = assertIsTransactionWithBlockhashLifetime;
|
|
8395
|
+
exports.assertIsTransactionWithDurableNonceLifetime = assertIsTransactionWithDurableNonceLifetime;
|
|
8378
8396
|
exports.assertIsTransactionWithinSizeLimit = assertIsTransactionWithinSizeLimit;
|
|
8379
8397
|
exports.assertIsUnixTimestamp = assertIsUnixTimestamp;
|
|
8380
8398
|
exports.assertIsVariableSize = assertIsVariableSize;
|
|
@@ -8637,6 +8655,8 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
|
8637
8655
|
exports.isTransactionPartialSigner = isTransactionPartialSigner;
|
|
8638
8656
|
exports.isTransactionSendingSigner = isTransactionSendingSigner;
|
|
8639
8657
|
exports.isTransactionSigner = isTransactionSigner;
|
|
8658
|
+
exports.isTransactionWithBlockhashLifetime = isTransactionWithBlockhashLifetime;
|
|
8659
|
+
exports.isTransactionWithDurableNonceLifetime = isTransactionWithDurableNonceLifetime;
|
|
8640
8660
|
exports.isTransactionWithinSizeLimit = isTransactionWithinSizeLimit;
|
|
8641
8661
|
exports.isUnixTimestamp = isUnixTimestamp;
|
|
8642
8662
|
exports.isVariableSize = isVariableSize;
|