@solana/kit 5.1.0-experimental-20251205104522 → 5.1.1-canary-20251216193810
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 -7
- package/dist/index.development.js.map +1 -1
- package/dist/index.production.min.js +380 -377
- package/package.json +21 -21
|
@@ -1131,6 +1131,20 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
|
1131
1131
|
function addCodecSizePrefix(codec, prefix) {
|
|
1132
1132
|
return combineCodec(addEncoderSizePrefix(codec, prefix), addDecoderSizePrefix(codec, prefix));
|
|
1133
1133
|
}
|
|
1134
|
+
function toArrayBuffer(bytes, offset, length) {
|
|
1135
|
+
const bytesOffset = bytes.byteOffset + (offset != null ? offset : 0);
|
|
1136
|
+
const bytesLength = length != null ? length : bytes.byteLength;
|
|
1137
|
+
let buffer;
|
|
1138
|
+
if (typeof SharedArrayBuffer === "undefined") {
|
|
1139
|
+
buffer = bytes.buffer;
|
|
1140
|
+
} else if (bytes.buffer instanceof SharedArrayBuffer) {
|
|
1141
|
+
buffer = new ArrayBuffer(bytes.length);
|
|
1142
|
+
new Uint8Array(buffer).set(new Uint8Array(bytes));
|
|
1143
|
+
} else {
|
|
1144
|
+
buffer = bytes.buffer;
|
|
1145
|
+
}
|
|
1146
|
+
return (bytesOffset === 0 || bytesOffset === -bytes.byteLength) && bytesLength === bytes.byteLength ? buffer : buffer.slice(bytesOffset, bytesOffset + bytesLength);
|
|
1147
|
+
}
|
|
1134
1148
|
function createDecoderThatConsumesEntireByteArray(decoder) {
|
|
1135
1149
|
return createDecoder({
|
|
1136
1150
|
...decoder,
|
|
@@ -2099,11 +2113,6 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
|
2099
2113
|
}
|
|
2100
2114
|
});
|
|
2101
2115
|
}
|
|
2102
|
-
function toArrayBuffer(bytes, offset, length) {
|
|
2103
|
-
const bytesOffset = bytes.byteOffset + (offset != null ? offset : 0);
|
|
2104
|
-
const bytesLength = length != null ? length : bytes.byteLength;
|
|
2105
|
-
return bytes.buffer.slice(bytesOffset, bytesOffset + bytesLength);
|
|
2106
|
-
}
|
|
2107
2116
|
var getF32Encoder = (config = {}) => numberEncoderFactory({
|
|
2108
2117
|
config,
|
|
2109
2118
|
name: "f32",
|
|
@@ -4694,7 +4703,9 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
|
4694
4703
|
const wireTransactionBytes = getTransactionEncoder().encode(transaction);
|
|
4695
4704
|
return getBase64Decoder().decode(wireTransactionBytes);
|
|
4696
4705
|
}
|
|
4697
|
-
var
|
|
4706
|
+
var TRANSACTION_PACKET_SIZE = 1280;
|
|
4707
|
+
var TRANSACTION_PACKET_HEADER = 40 + 8;
|
|
4708
|
+
var TRANSACTION_SIZE_LIMIT = TRANSACTION_PACKET_SIZE - TRANSACTION_PACKET_HEADER;
|
|
4698
4709
|
function getTransactionSize(transaction) {
|
|
4699
4710
|
return getTransactionEncoder().getSizeFromValue(transaction);
|
|
4700
4711
|
}
|
|
@@ -7063,7 +7074,7 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
|
7063
7074
|
...config.headers ? normalizeHeaders2(config.headers) : void 0,
|
|
7064
7075
|
...{
|
|
7065
7076
|
// Keep these headers lowercase so they will override any user-supplied headers above.
|
|
7066
|
-
"solana-client": `js/${"5.1.
|
|
7077
|
+
"solana-client": `js/${"5.1.1-canary-20251216193810"}`
|
|
7067
7078
|
}
|
|
7068
7079
|
}
|
|
7069
7080
|
}),
|
|
@@ -9289,6 +9300,8 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
|
9289
9300
|
exports.SOLANA_ERROR__TRANSACTION__VERSION_NUMBER_NOT_SUPPORTED = SOLANA_ERROR__TRANSACTION__VERSION_NUMBER_NOT_SUPPORTED;
|
|
9290
9301
|
exports.SOLANA_ERROR__TRANSACTION__VERSION_NUMBER_OUT_OF_RANGE = SOLANA_ERROR__TRANSACTION__VERSION_NUMBER_OUT_OF_RANGE;
|
|
9291
9302
|
exports.SolanaError = SolanaError;
|
|
9303
|
+
exports.TRANSACTION_PACKET_HEADER = TRANSACTION_PACKET_HEADER;
|
|
9304
|
+
exports.TRANSACTION_PACKET_SIZE = TRANSACTION_PACKET_SIZE;
|
|
9292
9305
|
exports.TRANSACTION_SIZE_LIMIT = TRANSACTION_SIZE_LIMIT;
|
|
9293
9306
|
exports.addCodecSentinel = addCodecSentinel;
|
|
9294
9307
|
exports.addCodecSizePrefix = addCodecSizePrefix;
|
|
@@ -9713,6 +9726,7 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
|
9713
9726
|
exports.successfulSingleTransactionPlanResultFromSignature = successfulSingleTransactionPlanResultFromSignature;
|
|
9714
9727
|
exports.summarizeTransactionPlanResult = summarizeTransactionPlanResult;
|
|
9715
9728
|
exports.testnet = testnet;
|
|
9729
|
+
exports.toArrayBuffer = toArrayBuffer;
|
|
9716
9730
|
exports.transformChannelInboundMessages = transformChannelInboundMessages;
|
|
9717
9731
|
exports.transformChannelOutboundMessages = transformChannelOutboundMessages;
|
|
9718
9732
|
exports.transformCodec = transformCodec;
|