@solana/kit 6.3.1 → 6.3.2-canary-20260313143218
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 +6 -6
- package/dist/index.development.js.map +1 -1
- package/dist/index.production.min.js +32 -32
- package/package.json +27 -26
- package/src/airdrop-internal.ts +38 -0
- package/src/airdrop.ts +80 -0
- package/src/decompile-transaction-message-fetching-lookup-tables.ts +50 -0
- package/src/fetch-lookup-tables.ts +46 -0
- package/src/get-minimum-balance-for-rent-exemption.ts +26 -0
- package/src/index.ts +43 -0
- package/src/program-client-core.ts +1 -0
- package/src/send-and-confirm-durable-nonce-transaction.ts +172 -0
- package/src/send-and-confirm-transaction.ts +95 -0
- package/src/send-transaction-internal.ts +134 -0
- package/src/send-transaction-without-confirming.ts +52 -0
|
@@ -981,7 +981,7 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
|
981
981
|
}
|
|
982
982
|
var fixBytes = (bytes, length) => padBytes(bytes.length <= length ? bytes : bytes.slice(0, length), length);
|
|
983
983
|
function containsBytes(data, bytes, offset) {
|
|
984
|
-
const slice = offset === 0 && data.length === bytes.length ? data : data.slice(offset, offset + bytes.length);
|
|
984
|
+
const slice = (offset === 0 || offset <= -data.byteLength) && data.length === bytes.length ? data : data.slice(offset, offset + bytes.length);
|
|
985
985
|
return bytesEqual(slice, bytes);
|
|
986
986
|
}
|
|
987
987
|
function bytesEqual(bytes1, bytes2) {
|
|
@@ -1087,7 +1087,7 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
|
1087
1087
|
}
|
|
1088
1088
|
function addDecoderSentinel(decoder, sentinel) {
|
|
1089
1089
|
const read = ((bytes, offset) => {
|
|
1090
|
-
const candidateBytes = offset === 0 ? bytes : bytes.slice(offset);
|
|
1090
|
+
const candidateBytes = offset === 0 || offset <= -bytes.byteLength ? bytes : bytes.slice(offset);
|
|
1091
1091
|
const sentinelIndex = findSentinelIndex(candidateBytes, sentinel);
|
|
1092
1092
|
if (sentinelIndex === -1) {
|
|
1093
1093
|
throw new SolanaError(SOLANA_ERROR__CODECS__SENTINEL_MISSING_IN_DECODED_BYTES, {
|
|
@@ -1468,7 +1468,7 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
|
1468
1468
|
var getBaseXDecoder = (alphabet4) => {
|
|
1469
1469
|
return createDecoder({
|
|
1470
1470
|
read(rawBytes, offset) {
|
|
1471
|
-
const bytes = offset === 0 ? rawBytes : rawBytes.slice(offset);
|
|
1471
|
+
const bytes = offset === 0 || offset <= -rawBytes.byteLength ? rawBytes : rawBytes.slice(offset);
|
|
1472
1472
|
if (bytes.length === 0) return ["", 0];
|
|
1473
1473
|
let trailIndex = bytes.findIndex((n) => n !== 0);
|
|
1474
1474
|
trailIndex = trailIndex === -1 ? bytes.length : trailIndex;
|
|
@@ -1575,7 +1575,7 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
|
1575
1575
|
});
|
|
1576
1576
|
var getBaseXResliceDecoder = (alphabet4, bits) => createDecoder({
|
|
1577
1577
|
read(rawBytes, offset = 0) {
|
|
1578
|
-
const bytes = offset === 0 ? rawBytes : rawBytes.slice(offset);
|
|
1578
|
+
const bytes = offset === 0 || offset <= -rawBytes.byteLength ? rawBytes : rawBytes.slice(offset);
|
|
1579
1579
|
if (bytes.length === 0) return ["", rawBytes.length];
|
|
1580
1580
|
const charIndices = reslice([...bytes], 8, bits, true);
|
|
1581
1581
|
return [charIndices.map((i) => alphabet4[i]).join(""), rawBytes.length];
|
|
@@ -3626,7 +3626,7 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
|
3626
3626
|
var getBaseXDecoder2 = (alphabet4) => {
|
|
3627
3627
|
return createDecoder({
|
|
3628
3628
|
read(rawBytes, offset) {
|
|
3629
|
-
const bytes = offset === 0 ? rawBytes : rawBytes.slice(offset);
|
|
3629
|
+
const bytes = offset === 0 || offset <= -rawBytes.byteLength ? rawBytes : rawBytes.slice(offset);
|
|
3630
3630
|
if (bytes.length === 0) return ["", 0];
|
|
3631
3631
|
let trailIndex = bytes.findIndex((n) => n !== 0);
|
|
3632
3632
|
trailIndex = trailIndex === -1 ? bytes.length : trailIndex;
|
|
@@ -8397,7 +8397,7 @@ ${lastLines.map((line) => ` > ${line}`).join("\n")}`;
|
|
|
8397
8397
|
...config.headers ? normalizeHeaders2(config.headers) : void 0,
|
|
8398
8398
|
...{
|
|
8399
8399
|
// Keep these headers lowercase so they will override any user-supplied headers above.
|
|
8400
|
-
"solana-client": `js/${"6.3.
|
|
8400
|
+
"solana-client": `js/${"6.3.2-canary-20260313143218"}`
|
|
8401
8401
|
}
|
|
8402
8402
|
}
|
|
8403
8403
|
}),
|