@@ -156,6 +156,19 @@ import {
156156 SOLANA_ERROR__MALFORMED_JSON_RPC_ERROR ,
157157 SOLANA_ERROR__MALFORMED_NUMBER_STRING ,
158158 SOLANA_ERROR__NONCE_ACCOUNT_NOT_FOUND ,
159+ SOLANA_ERROR__OFFCHAIN_MESSAGE__APPLICATION_DOMAIN_STRING_LENGTH_OUT_OF_RANGE ,
160+ SOLANA_ERROR__OFFCHAIN_MESSAGE__ENVELOPE_SIGNERS_MISMATCH ,
161+ SOLANA_ERROR__OFFCHAIN_MESSAGE__INVALID_APPLICATION_DOMAIN_BYTE_LENGTH ,
162+ SOLANA_ERROR__OFFCHAIN_MESSAGE__MAXIMUM_LENGTH_EXCEEDED ,
163+ SOLANA_ERROR__OFFCHAIN_MESSAGE__MESSAGE_FORMAT_MISMATCH ,
164+ SOLANA_ERROR__OFFCHAIN_MESSAGE__MESSAGE_LENGTH_MISMATCH ,
165+ SOLANA_ERROR__OFFCHAIN_MESSAGE__MESSAGE_MUST_BE_NON_EMPTY ,
166+ SOLANA_ERROR__OFFCHAIN_MESSAGE__NUM_ENVELOPE_SIGNATURES_CANNOT_BE_ZERO ,
167+ SOLANA_ERROR__OFFCHAIN_MESSAGE__NUM_REQUIRED_SIGNERS_CANNOT_BE_ZERO ,
168+ SOLANA_ERROR__OFFCHAIN_MESSAGE__NUM_SIGNATURES_MISMATCH ,
169+ SOLANA_ERROR__OFFCHAIN_MESSAGE__RESTRICTED_ASCII_BODY_CHARACTER_OUT_OF_RANGE ,
170+ SOLANA_ERROR__OFFCHAIN_MESSAGE__SIGNATURES_MISSING ,
171+ SOLANA_ERROR__OFFCHAIN_MESSAGE__VERSION_NUMBER_NOT_SUPPORTED ,
159172 SOLANA_ERROR__RPC__API_PLAN_MISSING_FOR_RPC_METHOD ,
160173 SOLANA_ERROR__RPC__INTEGER_OVERFLOW ,
161174 SOLANA_ERROR__RPC__TRANSPORT_HTTP_ERROR ,
@@ -487,6 +500,38 @@ export const SolanaErrorMessages: Readonly<{
487500 [ SOLANA_ERROR__MALFORMED_JSON_RPC_ERROR ] : '$message' ,
488501 [ SOLANA_ERROR__MALFORMED_NUMBER_STRING ] : '`$value` cannot be parsed as a `Number`' ,
489502 [ SOLANA_ERROR__NONCE_ACCOUNT_NOT_FOUND ] : 'No nonce account could be found at address `$nonceAccountAddress`' ,
503+ [ SOLANA_ERROR__OFFCHAIN_MESSAGE__INVALID_APPLICATION_DOMAIN_BYTE_LENGTH ] :
504+ 'Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.' ,
505+ [ SOLANA_ERROR__OFFCHAIN_MESSAGE__APPLICATION_DOMAIN_STRING_LENGTH_OUT_OF_RANGE ] :
506+ 'Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.' ,
507+ [ SOLANA_ERROR__OFFCHAIN_MESSAGE__ENVELOPE_SIGNERS_MISMATCH ] :
508+ 'The signer addresses in this offchain message envelope do not match the list of ' +
509+ 'required signers in the message preamble. These unexpected signers were present in the ' +
510+ 'envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope ' +
511+ '`[$missingSigners]`.' ,
512+ [ SOLANA_ERROR__OFFCHAIN_MESSAGE__MAXIMUM_LENGTH_EXCEEDED ] :
513+ 'The message body provided has a byte-length of $actualBytes. The maximum allowable ' +
514+ 'byte-length is $maxBytes' ,
515+ [ SOLANA_ERROR__OFFCHAIN_MESSAGE__MESSAGE_FORMAT_MISMATCH ] :
516+ 'Expected message format $expectedMessageFormat, got $actualMessageFormat' ,
517+ [ SOLANA_ERROR__OFFCHAIN_MESSAGE__MESSAGE_LENGTH_MISMATCH ] :
518+ 'The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.' ,
519+ [ SOLANA_ERROR__OFFCHAIN_MESSAGE__MESSAGE_MUST_BE_NON_EMPTY ] : 'Offchain message content must be non-empty' ,
520+ [ SOLANA_ERROR__OFFCHAIN_MESSAGE__NUM_REQUIRED_SIGNERS_CANNOT_BE_ZERO ] :
521+ 'Offchain message must specify the address of at least one required signer' ,
522+ [ SOLANA_ERROR__OFFCHAIN_MESSAGE__NUM_ENVELOPE_SIGNATURES_CANNOT_BE_ZERO ] :
523+ 'Offchain message envelope must reserve space for at least one signature' ,
524+ [ SOLANA_ERROR__OFFCHAIN_MESSAGE__NUM_SIGNATURES_MISMATCH ] :
525+ 'The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.' ,
526+ [ SOLANA_ERROR__OFFCHAIN_MESSAGE__SIGNATURES_MISSING ] :
527+ 'Offchain message is missing signatures for addresses: $addresses.' ,
528+ [ SOLANA_ERROR__OFFCHAIN_MESSAGE__RESTRICTED_ASCII_BODY_CHARACTER_OUT_OF_RANGE ] :
529+ 'The message body provided contains characters whose codes fall outside the allowed ' +
530+ 'range. In order to ensure clear-signing compatiblity with hardware wallets, the message ' +
531+ 'may only contain line feeds and characters in the range [\\x20-\\x7e].' ,
532+ [ SOLANA_ERROR__OFFCHAIN_MESSAGE__VERSION_NUMBER_NOT_SUPPORTED ] :
533+ 'This version of Kit does not support decoding offchain messages with version ' +
534+ '$unsupportedVersion. The current max supported version is 0.' ,
490535 [ SOLANA_ERROR__RPC_SUBSCRIPTIONS__CANNOT_CREATE_SUBSCRIPTION_PLAN ] :
491536 "The notification name must end in 'Notifications' and the API must supply a " +
492537 "subscription plan creator function for the notification '$notificationName'." ,
0 commit comments