@solana/errors 2.0.0-experimental.080a7d1 → 2.0.0-experimental.0af01ac
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.js +100 -4
- package/dist/index.browser.cjs +163 -8
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +114 -7
- package/dist/index.browser.js.map +1 -1
- package/dist/index.native.js +114 -7
- package/dist/index.native.js.map +1 -1
- package/dist/index.node.cjs +163 -8
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.js +114 -7
- package/dist/index.node.js.map +1 -1
- package/dist/types/codes.d.ts +51 -3
- package/dist/types/codes.d.ts.map +1 -1
- package/dist/types/context.d.ts +127 -7
- package/dist/types/context.d.ts.map +1 -1
- package/dist/types/error.d.ts +1 -1
- package/dist/types/error.d.ts.map +1 -1
- package/dist/types/messages.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.node.js
CHANGED
|
@@ -12,8 +12,8 @@ var SOLANA_ERROR__MULTIPLE_ACCOUNTS_NOT_FOUND = 9;
|
|
|
12
12
|
var SOLANA_ERROR__FAILED_TO_DECODE_ACCOUNT = 10;
|
|
13
13
|
var SOLANA_ERROR__EXPECTED_DECODED_ACCOUNT = 11;
|
|
14
14
|
var SOLANA_ERROR__NOT_ALL_ACCOUNTS_DECODED = 12;
|
|
15
|
-
var
|
|
16
|
-
var
|
|
15
|
+
var SOLANA_ERROR__ADDRESS_BYTE_LENGTH_OUT_OF_RANGE = 13;
|
|
16
|
+
var SOLANA_ERROR__ADDRESS_STRING_LENGTH_OUT_OF_RANGE = 14;
|
|
17
17
|
var SOLANA_ERROR__NOT_A_BASE58_ENCODED_ADDRESS = 15;
|
|
18
18
|
var SOLANA_ERROR__NOT_AN_ED25519_PUBLIC_KEY = 16;
|
|
19
19
|
var SOLANA_ERROR__MALFORMED_PROGRAM_DERIVED_ADDRESS = 17;
|
|
@@ -30,6 +30,17 @@ var SOLANA_ERROR__SUBTLE_CRYPTO_EXPORT_FUNCTION_MISSING = 27;
|
|
|
30
30
|
var SOLANA_ERROR__SUBTLE_CRYPTO_GENERATE_FUNCTION_MISSING = 28;
|
|
31
31
|
var SOLANA_ERROR__SUBTLE_CRYPTO_SIGN_FUNCTION_MISSING = 29;
|
|
32
32
|
var SOLANA_ERROR__SUBTLE_CRYPTO_VERIFY_FUNCTION_MISSING = 30;
|
|
33
|
+
var SOLANA_ERROR__BLOCKHASH_STRING_LENGTH_OUT_OF_RANGE = 48;
|
|
34
|
+
var SOLANA_ERROR__BLOCKHASH_BYTE_LENGTH_OUT_OF_RANGE = 49;
|
|
35
|
+
var SOLANA_ERROR__LAMPORTS_OUT_OF_RANGE = 50;
|
|
36
|
+
var SOLANA_ERROR__MALFORMED_BIGINT_STRING = 51;
|
|
37
|
+
var SOLANA_ERROR__MALFORMED_NUMBER_STRING = 52;
|
|
38
|
+
var SOLANA_ERROR__TIMESTAMP_OUT_OF_RANGE = 53;
|
|
39
|
+
var SOLANA_ERROR__RPC_TRANSPORT_HEADER_FORBIDDEN = 54;
|
|
40
|
+
var SOLANA_ERROR__RPC_TRANSPORT_HTTP_ERROR = 55;
|
|
41
|
+
var SOLANA_ERROR__EXPECTED_INSTRUCTION_TO_HAVE_ACCOUNTS = 70;
|
|
42
|
+
var SOLANA_ERROR__EXPECTED_INSTRUCTION_TO_HAVE_DATA = 71;
|
|
43
|
+
var SOLANA_ERROR__INSTRUCTION_PROGRAM_ID_MISMATCH = 72;
|
|
33
44
|
var SOLANA_ERROR__INSTRUCTION_ERROR_UNKNOWN = 4615e3;
|
|
34
45
|
var SOLANA_ERROR__INSTRUCTION_ERROR_GENERIC_ERROR = 4615001;
|
|
35
46
|
var SOLANA_ERROR__INSTRUCTION_ERROR_INVALID_ARGUMENT = 4615002;
|
|
@@ -85,6 +96,17 @@ var SOLANA_ERROR__INSTRUCTION_ERROR_MAX_ACCOUNTS_DATA_ALLOCATIONS_EXCEEDED = 461
|
|
|
85
96
|
var SOLANA_ERROR__INSTRUCTION_ERROR_MAX_ACCOUNTS_EXCEEDED = 4615052;
|
|
86
97
|
var SOLANA_ERROR__INSTRUCTION_ERROR_MAX_INSTRUCTION_TRACE_LENGTH_EXCEEDED = 4615053;
|
|
87
98
|
var SOLANA_ERROR__INSTRUCTION_ERROR_BUILTIN_PROGRAMS_MUST_CONSUME_COMPUTE_UNITS = 4615054;
|
|
99
|
+
var SOLANA_ERROR__SIGNER_ADDRESS_CANNOT_HAVE_MULTIPLE_SIGNERS = 5508e3;
|
|
100
|
+
var SOLANA_ERROR__SIGNER_EXPECTED_KEY_PAIR_SIGNER = 5508001;
|
|
101
|
+
var SOLANA_ERROR__SIGNER_EXPECTED_MESSAGE_SIGNER = 5508002;
|
|
102
|
+
var SOLANA_ERROR__SIGNER_EXPECTED_MESSAGE_MODIFYING_SIGNER = 5508003;
|
|
103
|
+
var SOLANA_ERROR__SIGNER_EXPECTED_MESSAGE_PARTIAL_SIGNER = 5508004;
|
|
104
|
+
var SOLANA_ERROR__SIGNER_EXPECTED_TRANSACTION_SIGNER = 5508005;
|
|
105
|
+
var SOLANA_ERROR__SIGNER_EXPECTED_TRANSACTION_MODIFYING_SIGNER = 5508006;
|
|
106
|
+
var SOLANA_ERROR__SIGNER_EXPECTED_TRANSACTION_PARTIAL_SIGNER = 5508007;
|
|
107
|
+
var SOLANA_ERROR__SIGNER_EXPECTED_TRANSACTION_SENDING_SIGNER = 5508008;
|
|
108
|
+
var SOLANA_ERROR__SIGNER_TRANSACTION_CANNOT_HAVE_MULTIPLE_SENDING_SIGNERS = 5508009;
|
|
109
|
+
var SOLANA_ERROR__SIGNER_TRANSACTION_SENDING_SIGNER_MISSING = 5508010;
|
|
88
110
|
var SOLANA_ERROR__TRANSACTION_INVOKED_PROGRAMS_CANNOT_PAY_FEES = 5663001;
|
|
89
111
|
var SOLANA_ERROR__TRANSACTION_INVOKED_PROGRAMS_MUST_NOT_BE_WRITABLE = 5663002;
|
|
90
112
|
var SOLANA_ERROR__TRANSACTION_EXPECTED_BLOCKHASH_LIFETIME = 5663003;
|
|
@@ -96,6 +118,10 @@ var SOLANA_ERROR__TRANSACTION_FAILED_TO_DECOMPILE_INSTRUCTION_PROGRAM_ADDRESS_NO
|
|
|
96
118
|
var SOLANA_ERROR__TRANSACTION_FAILED_TO_DECOMPILE_FEE_PAYER_MISSING = 5663009;
|
|
97
119
|
var SOLANA_ERROR__TRANSACTION_MISSING_SIGNATURES = 5663010;
|
|
98
120
|
var SOLANA_ERROR__TRANSACTION_SIGNATURE_NOT_COMPUTABLE = 5663011;
|
|
121
|
+
var SOLANA_ERROR__TRANSACTION_MISSING_ADDRESS = 5663012;
|
|
122
|
+
var SOLANA_ERROR__TRANSACTION_MISSING_FEE_PAYER = 5663013;
|
|
123
|
+
var SOLANA_ERROR__TRANSACTION_INVALID_NONCE_TRANSACTION_NO_INSTRUCTIONS = 5663014;
|
|
124
|
+
var SOLANA_ERROR__TRANSACTION_INVALID_NONCE_TRANSACTION_FIRST_INSTRUCTION_NOT_ADVANCE_NONCE = 5663015;
|
|
99
125
|
var SOLANA_ERROR__TRANSACTION_ERROR_UNKNOWN = 705e4;
|
|
100
126
|
var SOLANA_ERROR__TRANSACTION_ERROR_ACCOUNT_IN_USE = 7050001;
|
|
101
127
|
var SOLANA_ERROR__TRANSACTION_ERROR_ACCOUNT_LOADED_TWICE = 7050002;
|
|
@@ -133,16 +159,59 @@ var SOLANA_ERROR__TRANSACTION_ERROR_INVALID_LOADED_ACCOUNTS_DATA_SIZE_LIMIT = 70
|
|
|
133
159
|
var SOLANA_ERROR__TRANSACTION_ERROR_RESANITIZATION_NEEDED = 7050034;
|
|
134
160
|
var SOLANA_ERROR__TRANSACTION_ERROR_PROGRAM_EXECUTION_TEMPORARILY_RESTRICTED = 7050035;
|
|
135
161
|
var SOLANA_ERROR__TRANSACTION_ERROR_UNBALANCED_TRANSACTION = 7050036;
|
|
162
|
+
var SOLANA_ERROR__CODECS_CANNOT_DECODE_EMPTY_BYTE_ARRAY = 8078e3;
|
|
163
|
+
var SOLANA_ERROR__CODECS_WRONG_NUMBER_OF_BYTES = 8078001;
|
|
164
|
+
var SOLANA_ERROR__CODECS_EXPECTED_FIXED_LENGTH_GOT_VARIABLE_LENGTH = 8078002;
|
|
165
|
+
var SOLANA_ERROR__CODECS_EXPECTED_VARIABLE_LENGTH_GOT_FIXED_LENGTH = 8078003;
|
|
166
|
+
var SOLANA_ERROR__CODECS_ENCODER_DECODER_SIZE_COMPATIBILITY_MISMATCH = 8078004;
|
|
167
|
+
var SOLANA_ERROR__CODECS_FIXED_SIZE_ENCODER_DECODER_SIZE_MISMATCH = 8078005;
|
|
168
|
+
var SOLANA_ERROR__CODECS_VARIABLE_SIZE_ENCODER_DECODER_MAX_SIZE_MISMATCH = 8078006;
|
|
169
|
+
var SOLANA_ERROR__CODECS_CANNOT_REVERSE_CODEC_OF_VARIABLE_SIZE = 8078007;
|
|
170
|
+
var SOLANA_ERROR__CODECS_WRONG_NUMBER_OF_ITEMS = 8078008;
|
|
171
|
+
var SOLANA_ERROR__CODECS_ENUM_DISCRIMINATOR_OUT_OF_RANGE = 8078009;
|
|
172
|
+
var SOLANA_ERROR__CODECS_INVALID_DATA_ENUM_VARIANT = 8078010;
|
|
173
|
+
var SOLANA_ERROR__CODECS_INVALID_SCALAR_ENUM_VARIANT = 8078011;
|
|
174
|
+
var SOLANA_ERROR__CODECS_FIXED_NULLABLE_WITH_VARIABLE_SIZE_CODEC = 8078012;
|
|
175
|
+
var SOLANA_ERROR__CODECS_FIXED_NULLABLE_WITH_VARIABLE_SIZE_PREFIX = 8078013;
|
|
176
|
+
var SOLANA_ERROR__CODECS_CODEC_REQUIRES_FIXED_SIZE = 8078014;
|
|
177
|
+
var SOLANA_ERROR__CODECS_NUMBER_OUT_OF_RANGE = 8078015;
|
|
178
|
+
var SOLANA_ERROR__CODECS_INVALID_STRING_FOR_BASE = 8078016;
|
|
179
|
+
var SOLANA_ERROR__RPC_SUBSCRIPTIONS_CANNOT_CREATE_SUBSCRIPTION_REQUEST = 819e4;
|
|
180
|
+
var SOLANA_ERROR__RPC_SUBSCRIPTIONS_EXPECTED_SERVER_SUBSCRIPTION_ID = 8190001;
|
|
181
|
+
var SOLANA_ERROR__RPC_SUBSCRIPTIONS_TRANSPORT_CLOSED_BEFORE_MESSAGE_BUFFERED = 8190002;
|
|
182
|
+
var SOLANA_ERROR__RPC_SUBSCRIPTIONS_TRANSPORT_CONNECTION_CLOSED = 8190003;
|
|
183
|
+
var SOLANA_ERROR__RPC_SUBSCRIPTIONS_TRANSPORT_FAILED_TO_CONNECT = 8190004;
|
|
136
184
|
|
|
137
185
|
// src/messages.ts
|
|
138
186
|
var SolanaErrorMessages = {
|
|
139
187
|
[SOLANA_ERROR__ACCOUNT_NOT_FOUND]: "Account not found at address: $address",
|
|
188
|
+
[SOLANA_ERROR__ADDRESS_BYTE_LENGTH_OUT_OF_RANGE]: "Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",
|
|
189
|
+
[SOLANA_ERROR__ADDRESS_STRING_LENGTH_OUT_OF_RANGE]: "Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",
|
|
190
|
+
[SOLANA_ERROR__BLOCKHASH_BYTE_LENGTH_OUT_OF_RANGE]: "Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",
|
|
191
|
+
[SOLANA_ERROR__BLOCKHASH_STRING_LENGTH_OUT_OF_RANGE]: "Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",
|
|
140
192
|
[SOLANA_ERROR__BLOCK_HEIGHT_EXCEEDED]: "The network has progressed past the last block for which this transaction could have been committed.",
|
|
193
|
+
[SOLANA_ERROR__CODECS_CANNOT_DECODE_EMPTY_BYTE_ARRAY]: "Codec [$codecDescription] cannot decode empty byte arrays.",
|
|
194
|
+
[SOLANA_ERROR__CODECS_CANNOT_REVERSE_CODEC_OF_VARIABLE_SIZE]: "Cannot reverse a codec of variable size.",
|
|
195
|
+
[SOLANA_ERROR__CODECS_CODEC_REQUIRES_FIXED_SIZE]: "Codec [$codecDescription] requires a fixed size.",
|
|
196
|
+
[SOLANA_ERROR__CODECS_ENCODER_DECODER_SIZE_COMPATIBILITY_MISMATCH]: "Encoder and decoder must either both be fixed-size or variable-size.",
|
|
197
|
+
[SOLANA_ERROR__CODECS_ENUM_DISCRIMINATOR_OUT_OF_RANGE]: "Enum discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",
|
|
198
|
+
[SOLANA_ERROR__CODECS_EXPECTED_FIXED_LENGTH_GOT_VARIABLE_LENGTH]: "Expected a fixed-size codec, got a variable-size one.",
|
|
199
|
+
[SOLANA_ERROR__CODECS_EXPECTED_VARIABLE_LENGTH_GOT_FIXED_LENGTH]: "Expected a variable-size codec, got a fixed-size one.",
|
|
200
|
+
[SOLANA_ERROR__CODECS_FIXED_NULLABLE_WITH_VARIABLE_SIZE_CODEC]: "Fixed nullables can only be used with fixed-size codecs.",
|
|
201
|
+
[SOLANA_ERROR__CODECS_FIXED_NULLABLE_WITH_VARIABLE_SIZE_PREFIX]: "Fixed nullables can only be used with fixed-size prefix.",
|
|
202
|
+
[SOLANA_ERROR__CODECS_FIXED_SIZE_ENCODER_DECODER_SIZE_MISMATCH]: "Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",
|
|
203
|
+
[SOLANA_ERROR__CODECS_INVALID_DATA_ENUM_VARIANT]: "Invalid data enum variant. Expected one of [$variants], got $value.",
|
|
204
|
+
[SOLANA_ERROR__CODECS_INVALID_SCALAR_ENUM_VARIANT]: "Invalid scalar enum variant. Expected one of [$variants] or a number between $minRange and $maxRange, got $value.",
|
|
205
|
+
[SOLANA_ERROR__CODECS_INVALID_STRING_FOR_BASE]: "Invalid value $value for base $base with alphabet $alphabet.",
|
|
206
|
+
[SOLANA_ERROR__CODECS_NUMBER_OUT_OF_RANGE]: "Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",
|
|
207
|
+
[SOLANA_ERROR__CODECS_VARIABLE_SIZE_ENCODER_DECODER_MAX_SIZE_MISMATCH]: "Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",
|
|
208
|
+
[SOLANA_ERROR__CODECS_WRONG_NUMBER_OF_BYTES]: "Codec [$codecDescription] expected $expected bytes, got $bytesLength.",
|
|
209
|
+
[SOLANA_ERROR__CODECS_WRONG_NUMBER_OF_ITEMS]: "Expected [$codecDescription] to have $expected items, got $actual.",
|
|
141
210
|
[SOLANA_ERROR__COULD_NOT_FIND_VIABLE_PDA_BUMP_SEED]: "Unable to find a viable program address bump seed.",
|
|
142
211
|
[SOLANA_ERROR__EXPECTED_DECODED_ACCOUNT]: "Expected decoded account at address: $address",
|
|
212
|
+
[SOLANA_ERROR__EXPECTED_INSTRUCTION_TO_HAVE_ACCOUNTS]: "The instruction does not have any accounts.",
|
|
213
|
+
[SOLANA_ERROR__EXPECTED_INSTRUCTION_TO_HAVE_DATA]: "The instruction does not have any data.",
|
|
143
214
|
[SOLANA_ERROR__FAILED_TO_DECODE_ACCOUNT]: "Failed to decode account data at address: $address",
|
|
144
|
-
[SOLANA_ERROR__INCORRECT_BASE58_ADDRESS_BYTE_LENGTH]: "Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",
|
|
145
|
-
[SOLANA_ERROR__INCORRECT_BASE58_ADDRESS_LENGTH]: "Expected base58-encoded string of length between 32 and 44, got $actualLength.",
|
|
146
215
|
[SOLANA_ERROR__INSTRUCTION_ERROR_ACCOUNT_ALREADY_INITIALIZED]: "instruction requires an uninitialized account",
|
|
147
216
|
[SOLANA_ERROR__INSTRUCTION_ERROR_ACCOUNT_BORROW_FAILED]: "instruction tries to borrow reference for an account which is already borrowed",
|
|
148
217
|
[SOLANA_ERROR__INSTRUCTION_ERROR_ACCOUNT_BORROW_OUTSTANDING]: "instruction left account with an outstanding borrowed reference",
|
|
@@ -198,8 +267,12 @@ var SolanaErrorMessages = {
|
|
|
198
267
|
[SOLANA_ERROR__INSTRUCTION_ERROR_UNKNOWN]: "",
|
|
199
268
|
[SOLANA_ERROR__INSTRUCTION_ERROR_UNSUPPORTED_PROGRAM_ID]: "Unsupported program id",
|
|
200
269
|
[SOLANA_ERROR__INSTRUCTION_ERROR_UNSUPPORTED_SYSVAR]: "Unsupported sysvar",
|
|
270
|
+
[SOLANA_ERROR__INSTRUCTION_PROGRAM_ID_MISMATCH]: "Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",
|
|
201
271
|
[SOLANA_ERROR__INVALID_KEYPAIR_BYTES]: "Key pair bytes must be of length 64, got $byteLength.",
|
|
202
272
|
[SOLANA_ERROR__INVALID_SEEDS_POINT_ON_CURVE]: "Invalid seeds; point must fall off the Ed25519 curve.",
|
|
273
|
+
[SOLANA_ERROR__LAMPORTS_OUT_OF_RANGE]: "Lamports value must be in the range [0, 2e64-1]",
|
|
274
|
+
[SOLANA_ERROR__MALFORMED_BIGINT_STRING]: "`$value` cannot be parsed as a `BigInt`",
|
|
275
|
+
[SOLANA_ERROR__MALFORMED_NUMBER_STRING]: "`$value` cannot be parsed as a `Number`",
|
|
203
276
|
[SOLANA_ERROR__MALFORMED_PROGRAM_DERIVED_ADDRESS]: "Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",
|
|
204
277
|
[SOLANA_ERROR__MAX_NUMBER_OF_PDA_SEEDS_EXCEEDED]: "A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",
|
|
205
278
|
[SOLANA_ERROR__MAX_PDA_SEED_LENGTH_EXCEEDED]: "The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",
|
|
@@ -212,6 +285,24 @@ var SolanaErrorMessages = {
|
|
|
212
285
|
[SOLANA_ERROR__PROGRAM_ADDRESS_ENDS_WITH_PDA_MARKER]: "Program address cannot end with PDA marker.",
|
|
213
286
|
[SOLANA_ERROR__PROGRAM_DERIVED_ADDRESS_BUMP_SEED_OUT_OF_RANGE]: "Expected program derived address bump to be in the range [0, 255], got: $bump.",
|
|
214
287
|
[SOLANA_ERROR__RPC_INTEGER_OVERFLOW]: "The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",
|
|
288
|
+
[SOLANA_ERROR__RPC_SUBSCRIPTIONS_CANNOT_CREATE_SUBSCRIPTION_REQUEST]: "Either the notification name must end in 'Notifications' or the API must supply a subscription creator function for the notification '$notificationName' to map between the notification name and the subscribe/unsubscribe method names.",
|
|
289
|
+
[SOLANA_ERROR__RPC_SUBSCRIPTIONS_EXPECTED_SERVER_SUBSCRIPTION_ID]: "Failed to obtain a subscription id from the server",
|
|
290
|
+
[SOLANA_ERROR__RPC_SUBSCRIPTIONS_TRANSPORT_CLOSED_BEFORE_MESSAGE_BUFFERED]: "WebSocket was closed before payload could be added to the send buffer",
|
|
291
|
+
[SOLANA_ERROR__RPC_SUBSCRIPTIONS_TRANSPORT_CONNECTION_CLOSED]: "WebSocket connection closed",
|
|
292
|
+
[SOLANA_ERROR__RPC_SUBSCRIPTIONS_TRANSPORT_FAILED_TO_CONNECT]: "WebSocket failed to connect",
|
|
293
|
+
[SOLANA_ERROR__RPC_TRANSPORT_HEADER_FORBIDDEN]: "HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",
|
|
294
|
+
[SOLANA_ERROR__RPC_TRANSPORT_HTTP_ERROR]: "HTTP error ($statusCode): $message",
|
|
295
|
+
[SOLANA_ERROR__SIGNER_ADDRESS_CANNOT_HAVE_MULTIPLE_SIGNERS]: "Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",
|
|
296
|
+
[SOLANA_ERROR__SIGNER_EXPECTED_KEY_PAIR_SIGNER]: "The provided value does not implement the `KeyPairSigner` interface",
|
|
297
|
+
[SOLANA_ERROR__SIGNER_EXPECTED_MESSAGE_MODIFYING_SIGNER]: "The provided value does not implement the `MessageModifyingSigner` interface",
|
|
298
|
+
[SOLANA_ERROR__SIGNER_EXPECTED_MESSAGE_PARTIAL_SIGNER]: "The provided value does not implement the `MessagePartialSigner` interface",
|
|
299
|
+
[SOLANA_ERROR__SIGNER_EXPECTED_MESSAGE_SIGNER]: "The provided value does not implement any of the `MessageSigner` interfaces",
|
|
300
|
+
[SOLANA_ERROR__SIGNER_EXPECTED_TRANSACTION_MODIFYING_SIGNER]: "The provided value does not implement the `TransactionModifyingSigner` interface",
|
|
301
|
+
[SOLANA_ERROR__SIGNER_EXPECTED_TRANSACTION_PARTIAL_SIGNER]: "The provided value does not implement the `TransactionPartialSigner` interface",
|
|
302
|
+
[SOLANA_ERROR__SIGNER_EXPECTED_TRANSACTION_SENDING_SIGNER]: "The provided value does not implement the `TransactionSendingSigner` interface",
|
|
303
|
+
[SOLANA_ERROR__SIGNER_EXPECTED_TRANSACTION_SIGNER]: "The provided value does not implement any of the `TransactionSigner` interfaces",
|
|
304
|
+
[SOLANA_ERROR__SIGNER_TRANSACTION_CANNOT_HAVE_MULTIPLE_SENDING_SIGNERS]: "More than one `TransactionSendingSigner` was identified.",
|
|
305
|
+
[SOLANA_ERROR__SIGNER_TRANSACTION_SENDING_SIGNER_MISSING]: "No `TransactionSendingSigner` was identified. Please provide a valid `ITransactionWithSingleSendingSigner` transaction.",
|
|
215
306
|
[SOLANA_ERROR__SUBTLE_CRYPTO_DIGEST_MISSING]: "No digest implementation could be found.",
|
|
216
307
|
[SOLANA_ERROR__SUBTLE_CRYPTO_ED25519_ALGORITHM_MISSING]: "This runtime does not support the generation of Ed25519 key pairs.\n\nInstall and import `@solana/webcrypto-ed25519-polyfill` before generating keys in environments that do not support Ed25519.\n\nFor a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.",
|
|
217
308
|
[SOLANA_ERROR__SUBTLE_CRYPTO_EXPORT_FUNCTION_MISSING]: "No signature verification implementation could be found.",
|
|
@@ -219,6 +310,7 @@ var SolanaErrorMessages = {
|
|
|
219
310
|
[SOLANA_ERROR__SUBTLE_CRYPTO_MISSING]: "Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",
|
|
220
311
|
[SOLANA_ERROR__SUBTLE_CRYPTO_SIGN_FUNCTION_MISSING]: "No signing implementation could be found.",
|
|
221
312
|
[SOLANA_ERROR__SUBTLE_CRYPTO_VERIFY_FUNCTION_MISSING]: "No key export implementation could be found.",
|
|
313
|
+
[SOLANA_ERROR__TIMESTAMP_OUT_OF_RANGE]: "Timestamp value must be in the range [-8.64e15, 8.64e15]. `$value` given",
|
|
222
314
|
[SOLANA_ERROR__TRANSACTION_ERROR_ACCOUNT_BORROW_OUTSTANDING]: "Transaction processing left an account with an outstanding borrowed reference",
|
|
223
315
|
[SOLANA_ERROR__TRANSACTION_ERROR_ACCOUNT_IN_USE]: "Account in use",
|
|
224
316
|
[SOLANA_ERROR__TRANSACTION_ERROR_ACCOUNT_LOADED_TWICE]: "Account loaded twice",
|
|
@@ -262,8 +354,12 @@ var SolanaErrorMessages = {
|
|
|
262
354
|
[SOLANA_ERROR__TRANSACTION_FAILED_TO_DECOMPILE_ADDRESS_LOOKUP_TABLE_INDEX_OUT_OF_RANGE]: "Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",
|
|
263
355
|
[SOLANA_ERROR__TRANSACTION_FAILED_TO_DECOMPILE_FEE_PAYER_MISSING]: "No fee payer set in CompiledTransaction",
|
|
264
356
|
[SOLANA_ERROR__TRANSACTION_FAILED_TO_DECOMPILE_INSTRUCTION_PROGRAM_ADDRESS_NOT_FOUND]: "Could not find program address at index $index",
|
|
357
|
+
[SOLANA_ERROR__TRANSACTION_INVALID_NONCE_TRANSACTION_FIRST_INSTRUCTION_NOT_ADVANCE_NONCE]: "Transaction first instruction is not advance nonce account instruction.",
|
|
358
|
+
[SOLANA_ERROR__TRANSACTION_INVALID_NONCE_TRANSACTION_NO_INSTRUCTIONS]: "Transaction with no instructions cannot be durable nonce transaction.",
|
|
265
359
|
[SOLANA_ERROR__TRANSACTION_INVOKED_PROGRAMS_CANNOT_PAY_FEES]: "This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",
|
|
266
360
|
[SOLANA_ERROR__TRANSACTION_INVOKED_PROGRAMS_MUST_NOT_BE_WRITABLE]: "This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",
|
|
361
|
+
[SOLANA_ERROR__TRANSACTION_MISSING_ADDRESS]: "Transaction is missing an address at index: $index.",
|
|
362
|
+
[SOLANA_ERROR__TRANSACTION_MISSING_FEE_PAYER]: "Transaction is missing a fee payer.",
|
|
267
363
|
[SOLANA_ERROR__TRANSACTION_MISSING_SIGNATURES]: "Transaction is missing signatures for addresses: $addresses.",
|
|
268
364
|
[SOLANA_ERROR__TRANSACTION_SIGNATURE_NOT_COMPUTABLE]: "Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",
|
|
269
365
|
[SOLANA_ERROR__TRANSACTION_VERSION_NUMBER_OUT_OF_RANGE]: "Transaction version must be in the range [0, 127]. `$actualVersion` given"
|
|
@@ -335,9 +431,20 @@ function isSolanaError(e, code) {
|
|
|
335
431
|
}
|
|
336
432
|
var SolanaError = class extends Error {
|
|
337
433
|
context;
|
|
338
|
-
constructor(...[code,
|
|
434
|
+
constructor(...[code, contextAndErrorOptions]) {
|
|
435
|
+
let context;
|
|
436
|
+
let errorOptions;
|
|
437
|
+
if (contextAndErrorOptions) {
|
|
438
|
+
const { cause, ...contextRest } = contextAndErrorOptions;
|
|
439
|
+
if (cause) {
|
|
440
|
+
errorOptions = { cause };
|
|
441
|
+
}
|
|
442
|
+
if (Object.keys(contextRest).length > 0) {
|
|
443
|
+
context = contextRest;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
339
446
|
const message = getErrorMessage(code, context);
|
|
340
|
-
super(message);
|
|
447
|
+
super(message, errorOptions);
|
|
341
448
|
this.context = {
|
|
342
449
|
__code: code,
|
|
343
450
|
...context
|
|
@@ -532,6 +639,6 @@ function getSolanaErrorFromTransactionError(transactionError) {
|
|
|
532
639
|
);
|
|
533
640
|
}
|
|
534
641
|
|
|
535
|
-
export { SOLANA_ERROR__ACCOUNT_NOT_FOUND, SOLANA_ERROR__BLOCK_HEIGHT_EXCEEDED, SOLANA_ERROR__COULD_NOT_FIND_VIABLE_PDA_BUMP_SEED, SOLANA_ERROR__EXPECTED_DECODED_ACCOUNT,
|
|
642
|
+
export { SOLANA_ERROR__ACCOUNT_NOT_FOUND, SOLANA_ERROR__ADDRESS_BYTE_LENGTH_OUT_OF_RANGE, SOLANA_ERROR__ADDRESS_STRING_LENGTH_OUT_OF_RANGE, SOLANA_ERROR__BLOCKHASH_BYTE_LENGTH_OUT_OF_RANGE, SOLANA_ERROR__BLOCKHASH_STRING_LENGTH_OUT_OF_RANGE, SOLANA_ERROR__BLOCK_HEIGHT_EXCEEDED, SOLANA_ERROR__CODECS_CANNOT_DECODE_EMPTY_BYTE_ARRAY, SOLANA_ERROR__CODECS_CANNOT_REVERSE_CODEC_OF_VARIABLE_SIZE, SOLANA_ERROR__CODECS_CODEC_REQUIRES_FIXED_SIZE, SOLANA_ERROR__CODECS_ENCODER_DECODER_SIZE_COMPATIBILITY_MISMATCH, SOLANA_ERROR__CODECS_ENUM_DISCRIMINATOR_OUT_OF_RANGE, SOLANA_ERROR__CODECS_EXPECTED_FIXED_LENGTH_GOT_VARIABLE_LENGTH, SOLANA_ERROR__CODECS_EXPECTED_VARIABLE_LENGTH_GOT_FIXED_LENGTH, SOLANA_ERROR__CODECS_FIXED_NULLABLE_WITH_VARIABLE_SIZE_CODEC, SOLANA_ERROR__CODECS_FIXED_NULLABLE_WITH_VARIABLE_SIZE_PREFIX, SOLANA_ERROR__CODECS_FIXED_SIZE_ENCODER_DECODER_SIZE_MISMATCH, SOLANA_ERROR__CODECS_INVALID_DATA_ENUM_VARIANT, SOLANA_ERROR__CODECS_INVALID_SCALAR_ENUM_VARIANT, SOLANA_ERROR__CODECS_INVALID_STRING_FOR_BASE, SOLANA_ERROR__CODECS_NUMBER_OUT_OF_RANGE, SOLANA_ERROR__CODECS_VARIABLE_SIZE_ENCODER_DECODER_MAX_SIZE_MISMATCH, SOLANA_ERROR__CODECS_WRONG_NUMBER_OF_BYTES, SOLANA_ERROR__CODECS_WRONG_NUMBER_OF_ITEMS, SOLANA_ERROR__COULD_NOT_FIND_VIABLE_PDA_BUMP_SEED, SOLANA_ERROR__EXPECTED_DECODED_ACCOUNT, SOLANA_ERROR__EXPECTED_INSTRUCTION_TO_HAVE_ACCOUNTS, SOLANA_ERROR__EXPECTED_INSTRUCTION_TO_HAVE_DATA, SOLANA_ERROR__FAILED_TO_DECODE_ACCOUNT, SOLANA_ERROR__INSTRUCTION_ERROR_ACCOUNT_ALREADY_INITIALIZED, SOLANA_ERROR__INSTRUCTION_ERROR_ACCOUNT_BORROW_FAILED, SOLANA_ERROR__INSTRUCTION_ERROR_ACCOUNT_BORROW_OUTSTANDING, SOLANA_ERROR__INSTRUCTION_ERROR_ACCOUNT_DATA_SIZE_CHANGED, SOLANA_ERROR__INSTRUCTION_ERROR_ACCOUNT_DATA_TOO_SMALL, SOLANA_ERROR__INSTRUCTION_ERROR_ACCOUNT_NOT_EXECUTABLE, SOLANA_ERROR__INSTRUCTION_ERROR_ACCOUNT_NOT_RENT_EXEMPT, SOLANA_ERROR__INSTRUCTION_ERROR_ARITHMETIC_OVERFLOW, SOLANA_ERROR__INSTRUCTION_ERROR_BORSH_IO_ERROR, SOLANA_ERROR__INSTRUCTION_ERROR_BUILTIN_PROGRAMS_MUST_CONSUME_COMPUTE_UNITS, SOLANA_ERROR__INSTRUCTION_ERROR_CALL_DEPTH, SOLANA_ERROR__INSTRUCTION_ERROR_COMPUTATIONAL_BUDGET_EXCEEDED, SOLANA_ERROR__INSTRUCTION_ERROR_CUSTOM, SOLANA_ERROR__INSTRUCTION_ERROR_DUPLICATE_ACCOUNT_INDEX, SOLANA_ERROR__INSTRUCTION_ERROR_DUPLICATE_ACCOUNT_OUT_OF_SYNC, SOLANA_ERROR__INSTRUCTION_ERROR_EXECUTABLE_ACCOUNT_NOT_RENT_EXEMPT, SOLANA_ERROR__INSTRUCTION_ERROR_EXECUTABLE_DATA_MODIFIED, SOLANA_ERROR__INSTRUCTION_ERROR_EXECUTABLE_LAMPORT_CHANGE, SOLANA_ERROR__INSTRUCTION_ERROR_EXECUTABLE_MODIFIED, SOLANA_ERROR__INSTRUCTION_ERROR_EXTERNAL_ACCOUNT_DATA_MODIFIED, SOLANA_ERROR__INSTRUCTION_ERROR_EXTERNAL_ACCOUNT_LAMPORT_SPEND, SOLANA_ERROR__INSTRUCTION_ERROR_GENERIC_ERROR, SOLANA_ERROR__INSTRUCTION_ERROR_ILLEGAL_OWNER, SOLANA_ERROR__INSTRUCTION_ERROR_IMMUTABLE, SOLANA_ERROR__INSTRUCTION_ERROR_INCORRECT_AUTHORITY, SOLANA_ERROR__INSTRUCTION_ERROR_INCORRECT_PROGRAM_ID, SOLANA_ERROR__INSTRUCTION_ERROR_INSUFFICIENT_FUNDS, SOLANA_ERROR__INSTRUCTION_ERROR_INVALID_ACCOUNT_DATA, SOLANA_ERROR__INSTRUCTION_ERROR_INVALID_ACCOUNT_OWNER, SOLANA_ERROR__INSTRUCTION_ERROR_INVALID_ARGUMENT, SOLANA_ERROR__INSTRUCTION_ERROR_INVALID_ERROR, SOLANA_ERROR__INSTRUCTION_ERROR_INVALID_INSTRUCTION_DATA, SOLANA_ERROR__INSTRUCTION_ERROR_INVALID_REALLOC, SOLANA_ERROR__INSTRUCTION_ERROR_INVALID_SEEDS, SOLANA_ERROR__INSTRUCTION_ERROR_MAX_ACCOUNTS_DATA_ALLOCATIONS_EXCEEDED, SOLANA_ERROR__INSTRUCTION_ERROR_MAX_ACCOUNTS_EXCEEDED, SOLANA_ERROR__INSTRUCTION_ERROR_MAX_INSTRUCTION_TRACE_LENGTH_EXCEEDED, SOLANA_ERROR__INSTRUCTION_ERROR_MAX_SEED_LENGTH_EXCEEDED, SOLANA_ERROR__INSTRUCTION_ERROR_MISSING_ACCOUNT, SOLANA_ERROR__INSTRUCTION_ERROR_MISSING_REQUIRED_SIGNATURE, SOLANA_ERROR__INSTRUCTION_ERROR_MODIFIED_PROGRAM_ID, SOLANA_ERROR__INSTRUCTION_ERROR_NOT_ENOUGH_ACCOUNT_KEYS, SOLANA_ERROR__INSTRUCTION_ERROR_PRIVILEGE_ESCALATION, SOLANA_ERROR__INSTRUCTION_ERROR_PROGRAM_ENVIRONMENT_SETUP_FAILURE, SOLANA_ERROR__INSTRUCTION_ERROR_PROGRAM_FAILED_TO_COMPILE, SOLANA_ERROR__INSTRUCTION_ERROR_PROGRAM_FAILED_TO_COMPLETE, SOLANA_ERROR__INSTRUCTION_ERROR_READONLY_DATA_MODIFIED, SOLANA_ERROR__INSTRUCTION_ERROR_READONLY_LAMPORT_CHANGE, SOLANA_ERROR__INSTRUCTION_ERROR_REENTRANCY_NOT_ALLOWED, SOLANA_ERROR__INSTRUCTION_ERROR_RENT_EPOCH_MODIFIED, SOLANA_ERROR__INSTRUCTION_ERROR_UNBALANCED_INSTRUCTION, SOLANA_ERROR__INSTRUCTION_ERROR_UNINITIALIZED_ACCOUNT, SOLANA_ERROR__INSTRUCTION_ERROR_UNKNOWN, SOLANA_ERROR__INSTRUCTION_ERROR_UNSUPPORTED_PROGRAM_ID, SOLANA_ERROR__INSTRUCTION_ERROR_UNSUPPORTED_SYSVAR, SOLANA_ERROR__INSTRUCTION_PROGRAM_ID_MISMATCH, SOLANA_ERROR__INVALID_KEYPAIR_BYTES, SOLANA_ERROR__INVALID_SEEDS_POINT_ON_CURVE, SOLANA_ERROR__LAMPORTS_OUT_OF_RANGE, SOLANA_ERROR__MALFORMED_BIGINT_STRING, SOLANA_ERROR__MALFORMED_NUMBER_STRING, SOLANA_ERROR__MALFORMED_PROGRAM_DERIVED_ADDRESS, SOLANA_ERROR__MAX_NUMBER_OF_PDA_SEEDS_EXCEEDED, SOLANA_ERROR__MAX_PDA_SEED_LENGTH_EXCEEDED, SOLANA_ERROR__MULTIPLE_ACCOUNTS_NOT_FOUND, SOLANA_ERROR__NONCE_ACCOUNT_NOT_FOUND, SOLANA_ERROR__NONCE_INVALID, SOLANA_ERROR__NOT_ALL_ACCOUNTS_DECODED, SOLANA_ERROR__NOT_AN_ED25519_PUBLIC_KEY, SOLANA_ERROR__NOT_A_BASE58_ENCODED_ADDRESS, SOLANA_ERROR__PROGRAM_ADDRESS_ENDS_WITH_PDA_MARKER, SOLANA_ERROR__PROGRAM_DERIVED_ADDRESS_BUMP_SEED_OUT_OF_RANGE, SOLANA_ERROR__RPC_INTEGER_OVERFLOW, SOLANA_ERROR__RPC_SUBSCRIPTIONS_CANNOT_CREATE_SUBSCRIPTION_REQUEST, SOLANA_ERROR__RPC_SUBSCRIPTIONS_EXPECTED_SERVER_SUBSCRIPTION_ID, SOLANA_ERROR__RPC_SUBSCRIPTIONS_TRANSPORT_CLOSED_BEFORE_MESSAGE_BUFFERED, SOLANA_ERROR__RPC_SUBSCRIPTIONS_TRANSPORT_CONNECTION_CLOSED, SOLANA_ERROR__RPC_SUBSCRIPTIONS_TRANSPORT_FAILED_TO_CONNECT, SOLANA_ERROR__RPC_TRANSPORT_HEADER_FORBIDDEN, SOLANA_ERROR__RPC_TRANSPORT_HTTP_ERROR, SOLANA_ERROR__SIGNER_ADDRESS_CANNOT_HAVE_MULTIPLE_SIGNERS, SOLANA_ERROR__SIGNER_EXPECTED_KEY_PAIR_SIGNER, SOLANA_ERROR__SIGNER_EXPECTED_MESSAGE_MODIFYING_SIGNER, SOLANA_ERROR__SIGNER_EXPECTED_MESSAGE_PARTIAL_SIGNER, SOLANA_ERROR__SIGNER_EXPECTED_MESSAGE_SIGNER, SOLANA_ERROR__SIGNER_EXPECTED_TRANSACTION_MODIFYING_SIGNER, SOLANA_ERROR__SIGNER_EXPECTED_TRANSACTION_PARTIAL_SIGNER, SOLANA_ERROR__SIGNER_EXPECTED_TRANSACTION_SENDING_SIGNER, SOLANA_ERROR__SIGNER_EXPECTED_TRANSACTION_SIGNER, SOLANA_ERROR__SIGNER_TRANSACTION_CANNOT_HAVE_MULTIPLE_SENDING_SIGNERS, SOLANA_ERROR__SIGNER_TRANSACTION_SENDING_SIGNER_MISSING, SOLANA_ERROR__SUBTLE_CRYPTO_DIGEST_MISSING, SOLANA_ERROR__SUBTLE_CRYPTO_ED25519_ALGORITHM_MISSING, SOLANA_ERROR__SUBTLE_CRYPTO_EXPORT_FUNCTION_MISSING, SOLANA_ERROR__SUBTLE_CRYPTO_GENERATE_FUNCTION_MISSING, SOLANA_ERROR__SUBTLE_CRYPTO_MISSING, SOLANA_ERROR__SUBTLE_CRYPTO_SIGN_FUNCTION_MISSING, SOLANA_ERROR__SUBTLE_CRYPTO_VERIFY_FUNCTION_MISSING, SOLANA_ERROR__TIMESTAMP_OUT_OF_RANGE, SOLANA_ERROR__TRANSACTION_ERROR_ACCOUNT_BORROW_OUTSTANDING, SOLANA_ERROR__TRANSACTION_ERROR_ACCOUNT_IN_USE, SOLANA_ERROR__TRANSACTION_ERROR_ACCOUNT_LOADED_TWICE, SOLANA_ERROR__TRANSACTION_ERROR_ACCOUNT_NOT_FOUND, SOLANA_ERROR__TRANSACTION_ERROR_ADDRESS_LOOKUP_TABLE_NOT_FOUND, SOLANA_ERROR__TRANSACTION_ERROR_ALREADY_PROCESSED, SOLANA_ERROR__TRANSACTION_ERROR_BLOCKHASH_NOT_FOUND, SOLANA_ERROR__TRANSACTION_ERROR_CALL_CHAIN_TOO_DEEP, SOLANA_ERROR__TRANSACTION_ERROR_CLUSTER_MAINTENANCE, SOLANA_ERROR__TRANSACTION_ERROR_DUPLICATE_INSTRUCTION, SOLANA_ERROR__TRANSACTION_ERROR_INSUFFICIENT_FUNDS_FOR_FEE, SOLANA_ERROR__TRANSACTION_ERROR_INSUFFICIENT_FUNDS_FOR_RENT, SOLANA_ERROR__TRANSACTION_ERROR_INVALID_ACCOUNT_FOR_FEE, SOLANA_ERROR__TRANSACTION_ERROR_INVALID_ACCOUNT_INDEX, SOLANA_ERROR__TRANSACTION_ERROR_INVALID_ADDRESS_LOOKUP_TABLE_DATA, SOLANA_ERROR__TRANSACTION_ERROR_INVALID_ADDRESS_LOOKUP_TABLE_INDEX, SOLANA_ERROR__TRANSACTION_ERROR_INVALID_ADDRESS_LOOKUP_TABLE_OWNER, SOLANA_ERROR__TRANSACTION_ERROR_INVALID_LOADED_ACCOUNTS_DATA_SIZE_LIMIT, SOLANA_ERROR__TRANSACTION_ERROR_INVALID_PROGRAM_FOR_EXECUTION, SOLANA_ERROR__TRANSACTION_ERROR_INVALID_RENT_PAYING_ACCOUNT, SOLANA_ERROR__TRANSACTION_ERROR_INVALID_WRITABLE_ACCOUNT, SOLANA_ERROR__TRANSACTION_ERROR_MAX_LOADED_ACCOUNTS_DATA_SIZE_EXCEEDED, SOLANA_ERROR__TRANSACTION_ERROR_MISSING_SIGNATURE_FOR_FEE, SOLANA_ERROR__TRANSACTION_ERROR_PROGRAM_ACCOUNT_NOT_FOUND, SOLANA_ERROR__TRANSACTION_ERROR_PROGRAM_EXECUTION_TEMPORARILY_RESTRICTED, SOLANA_ERROR__TRANSACTION_ERROR_RESANITIZATION_NEEDED, SOLANA_ERROR__TRANSACTION_ERROR_SANITIZE_FAILURE, SOLANA_ERROR__TRANSACTION_ERROR_SIGNATURE_FAILURE, SOLANA_ERROR__TRANSACTION_ERROR_TOO_MANY_ACCOUNT_LOCKS, SOLANA_ERROR__TRANSACTION_ERROR_UNBALANCED_TRANSACTION, SOLANA_ERROR__TRANSACTION_ERROR_UNKNOWN, SOLANA_ERROR__TRANSACTION_ERROR_UNSUPPORTED_VERSION, SOLANA_ERROR__TRANSACTION_ERROR_WOULD_EXCEED_ACCOUNT_DATA_BLOCK_LIMIT, SOLANA_ERROR__TRANSACTION_ERROR_WOULD_EXCEED_ACCOUNT_DATA_TOTAL_LIMIT, SOLANA_ERROR__TRANSACTION_ERROR_WOULD_EXCEED_MAX_ACCOUNT_COST_LIMIT, SOLANA_ERROR__TRANSACTION_ERROR_WOULD_EXCEED_MAX_BLOCK_COST_LIMIT, SOLANA_ERROR__TRANSACTION_ERROR_WOULD_EXCEED_MAX_VOTE_COST_LIMIT, SOLANA_ERROR__TRANSACTION_EXPECTED_BLOCKHASH_LIFETIME, SOLANA_ERROR__TRANSACTION_EXPECTED_NONCE_LIFETIME, SOLANA_ERROR__TRANSACTION_FAILED_TO_DECOMPILE_ADDRESS_LOOKUP_TABLE_CONTENTS_MISSING, SOLANA_ERROR__TRANSACTION_FAILED_TO_DECOMPILE_ADDRESS_LOOKUP_TABLE_INDEX_OUT_OF_RANGE, SOLANA_ERROR__TRANSACTION_FAILED_TO_DECOMPILE_FEE_PAYER_MISSING, SOLANA_ERROR__TRANSACTION_FAILED_TO_DECOMPILE_INSTRUCTION_PROGRAM_ADDRESS_NOT_FOUND, SOLANA_ERROR__TRANSACTION_INVALID_NONCE_TRANSACTION_FIRST_INSTRUCTION_NOT_ADVANCE_NONCE, SOLANA_ERROR__TRANSACTION_INVALID_NONCE_TRANSACTION_NO_INSTRUCTIONS, SOLANA_ERROR__TRANSACTION_INVOKED_PROGRAMS_CANNOT_PAY_FEES, SOLANA_ERROR__TRANSACTION_INVOKED_PROGRAMS_MUST_NOT_BE_WRITABLE, SOLANA_ERROR__TRANSACTION_MISSING_ADDRESS, SOLANA_ERROR__TRANSACTION_MISSING_FEE_PAYER, SOLANA_ERROR__TRANSACTION_MISSING_SIGNATURES, SOLANA_ERROR__TRANSACTION_SIGNATURE_NOT_COMPUTABLE, SOLANA_ERROR__TRANSACTION_VERSION_NUMBER_OUT_OF_RANGE, SolanaError, getSolanaErrorFromInstructionError, getSolanaErrorFromTransactionError, isSolanaError };
|
|
536
643
|
//# sourceMappingURL=out.js.map
|
|
537
644
|
//# sourceMappingURL=index.node.js.map
|