@solana/errors 8.3.0 → 8.4.0-canary-20260918134912
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/cli.mjs +5 -1
- package/dist/index.browser.cjs +6 -0
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.mjs +5 -1
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.native.mjs +5 -1
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.node.cjs +6 -0
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.mjs +5 -1
- package/dist/index.node.mjs.map +1 -1
- package/dist/types/codes.d.ts +3 -1
- package/dist/types/codes.d.ts.map +1 -1
- package/dist/types/context.d.ts +6 -1
- package/dist/types/context.d.ts.map +1 -1
- package/dist/types/messages.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/codes.ts +4 -0
- package/src/context.ts +6 -0
- package/src/messages.ts +5 -0
package/dist/cli.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { Command, InvalidArgumentError } from 'commander';
|
|
|
4
4
|
// src/cli.ts
|
|
5
5
|
|
|
6
6
|
// package.json
|
|
7
|
-
var version = "8.
|
|
7
|
+
var version = "8.4.0-canary-20260918134912";
|
|
8
8
|
|
|
9
9
|
// src/context.ts
|
|
10
10
|
function decodeEncodedContext(encodedContext) {
|
|
@@ -298,6 +298,8 @@ var SOLANA_ERROR__CODECS__INVALID_PATTERN_MATCH_VALUE = 8078024;
|
|
|
298
298
|
var SOLANA_ERROR__CODECS__INVALID_PATTERN_MATCH_BYTES = 8078025;
|
|
299
299
|
var SOLANA_ERROR__CODECS__INVALID_UTF8_BYTES = 8078026;
|
|
300
300
|
var SOLANA_ERROR__CODECS__INVALID_UTF8_STRING = 8078027;
|
|
301
|
+
var SOLANA_ERROR__CODECS__SENTINEL_MISSING_AT_END_OF_BYTES = 8078028;
|
|
302
|
+
var SOLANA_ERROR__CODECS__SENTINEL_MUST_NOT_BE_EMPTY = 8078029;
|
|
301
303
|
var SOLANA_ERROR__FIXED_POINTS__INVALID_TOTAL_BITS = 809e4;
|
|
302
304
|
var SOLANA_ERROR__FIXED_POINTS__INVALID_FRACTIONAL_BITS = 8090001;
|
|
303
305
|
var SOLANA_ERROR__FIXED_POINTS__INVALID_DECIMALS = 8090002;
|
|
@@ -389,7 +391,9 @@ var SolanaErrorMessages = {
|
|
|
389
391
|
[SOLANA_ERROR__CODECS__LITERAL_UNION_DISCRIMINATOR_OUT_OF_RANGE]: "Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",
|
|
390
392
|
[SOLANA_ERROR__CODECS__NUMBER_OUT_OF_RANGE]: "Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",
|
|
391
393
|
[SOLANA_ERROR__CODECS__OFFSET_OUT_OF_RANGE]: "Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",
|
|
394
|
+
[SOLANA_ERROR__CODECS__SENTINEL_MISSING_AT_END_OF_BYTES]: "Codec [$codecDescription] expected sentinel [$hexSentinel] to terminate the collection, but reached the end of the byte array without it.",
|
|
392
395
|
[SOLANA_ERROR__CODECS__SENTINEL_MISSING_IN_DECODED_BYTES]: "Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",
|
|
396
|
+
[SOLANA_ERROR__CODECS__SENTINEL_MUST_NOT_BE_EMPTY]: "The sentinel must not be empty.",
|
|
393
397
|
[SOLANA_ERROR__CODECS__UNION_VARIANT_OUT_OF_RANGE]: "Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",
|
|
394
398
|
[SOLANA_ERROR__CODECS__EXPECTED_DECODER_TO_CONSUME_ENTIRE_BYTE_ARRAY]: "This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",
|
|
395
399
|
[SOLANA_ERROR__CODECS__INVALID_PATTERN_MATCH_VALUE]: "Invalid pattern match value. The provided value does not match any of the specified patterns.",
|
package/dist/index.browser.cjs
CHANGED
|
@@ -286,6 +286,8 @@ var SOLANA_ERROR__CODECS__INVALID_PATTERN_MATCH_VALUE = 8078024;
|
|
|
286
286
|
var SOLANA_ERROR__CODECS__INVALID_PATTERN_MATCH_BYTES = 8078025;
|
|
287
287
|
var SOLANA_ERROR__CODECS__INVALID_UTF8_BYTES = 8078026;
|
|
288
288
|
var SOLANA_ERROR__CODECS__INVALID_UTF8_STRING = 8078027;
|
|
289
|
+
var SOLANA_ERROR__CODECS__SENTINEL_MISSING_AT_END_OF_BYTES = 8078028;
|
|
290
|
+
var SOLANA_ERROR__CODECS__SENTINEL_MUST_NOT_BE_EMPTY = 8078029;
|
|
289
291
|
var SOLANA_ERROR__FIXED_POINTS__INVALID_TOTAL_BITS = 809e4;
|
|
290
292
|
var SOLANA_ERROR__FIXED_POINTS__INVALID_FRACTIONAL_BITS = 8090001;
|
|
291
293
|
var SOLANA_ERROR__FIXED_POINTS__INVALID_DECIMALS = 8090002;
|
|
@@ -408,7 +410,9 @@ var SolanaErrorMessages = {
|
|
|
408
410
|
[SOLANA_ERROR__CODECS__LITERAL_UNION_DISCRIMINATOR_OUT_OF_RANGE]: "Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",
|
|
409
411
|
[SOLANA_ERROR__CODECS__NUMBER_OUT_OF_RANGE]: "Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",
|
|
410
412
|
[SOLANA_ERROR__CODECS__OFFSET_OUT_OF_RANGE]: "Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",
|
|
413
|
+
[SOLANA_ERROR__CODECS__SENTINEL_MISSING_AT_END_OF_BYTES]: "Codec [$codecDescription] expected sentinel [$hexSentinel] to terminate the collection, but reached the end of the byte array without it.",
|
|
411
414
|
[SOLANA_ERROR__CODECS__SENTINEL_MISSING_IN_DECODED_BYTES]: "Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",
|
|
415
|
+
[SOLANA_ERROR__CODECS__SENTINEL_MUST_NOT_BE_EMPTY]: "The sentinel must not be empty.",
|
|
412
416
|
[SOLANA_ERROR__CODECS__UNION_VARIANT_OUT_OF_RANGE]: "Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",
|
|
413
417
|
[SOLANA_ERROR__CODECS__EXPECTED_DECODER_TO_CONSUME_ENTIRE_BYTE_ARRAY]: "This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",
|
|
414
418
|
[SOLANA_ERROR__CODECS__INVALID_PATTERN_MATCH_VALUE]: "Invalid pattern match value. The provided value does not match any of the specified patterns.",
|
|
@@ -1126,7 +1130,9 @@ exports.SOLANA_ERROR__CODECS__INVALID_UTF8_STRING = SOLANA_ERROR__CODECS__INVALI
|
|
|
1126
1130
|
exports.SOLANA_ERROR__CODECS__LITERAL_UNION_DISCRIMINATOR_OUT_OF_RANGE = SOLANA_ERROR__CODECS__LITERAL_UNION_DISCRIMINATOR_OUT_OF_RANGE;
|
|
1127
1131
|
exports.SOLANA_ERROR__CODECS__NUMBER_OUT_OF_RANGE = SOLANA_ERROR__CODECS__NUMBER_OUT_OF_RANGE;
|
|
1128
1132
|
exports.SOLANA_ERROR__CODECS__OFFSET_OUT_OF_RANGE = SOLANA_ERROR__CODECS__OFFSET_OUT_OF_RANGE;
|
|
1133
|
+
exports.SOLANA_ERROR__CODECS__SENTINEL_MISSING_AT_END_OF_BYTES = SOLANA_ERROR__CODECS__SENTINEL_MISSING_AT_END_OF_BYTES;
|
|
1129
1134
|
exports.SOLANA_ERROR__CODECS__SENTINEL_MISSING_IN_DECODED_BYTES = SOLANA_ERROR__CODECS__SENTINEL_MISSING_IN_DECODED_BYTES;
|
|
1135
|
+
exports.SOLANA_ERROR__CODECS__SENTINEL_MUST_NOT_BE_EMPTY = SOLANA_ERROR__CODECS__SENTINEL_MUST_NOT_BE_EMPTY;
|
|
1130
1136
|
exports.SOLANA_ERROR__CODECS__UNION_VARIANT_OUT_OF_RANGE = SOLANA_ERROR__CODECS__UNION_VARIANT_OUT_OF_RANGE;
|
|
1131
1137
|
exports.SOLANA_ERROR__CRYPTO__RANDOM_VALUES_FUNCTION_UNIMPLEMENTED = SOLANA_ERROR__CRYPTO__RANDOM_VALUES_FUNCTION_UNIMPLEMENTED;
|
|
1132
1138
|
exports.SOLANA_ERROR__FAILED_TO_SEND_TRANSACTION = SOLANA_ERROR__FAILED_TO_SEND_TRANSACTION;
|