UNPKG

@gorbchain-xyz/chaindecode

Version:

GorbchainSDK V1.3+ - Complete Solana development toolkit with advanced cryptography, messaging, and collaboration features. Build secure applications with blockchain, DeFi, and end-to-end encryption.

88 lines (87 loc) 2.61 kB
import { SDKError, type ErrorContext } from './base.js'; /** * Invalid address format */ export declare class InvalidAddressError extends SDKError { readonly address: string; readonly expectedFormat?: string; constructor(address: string, expectedFormat?: string, context?: ErrorContext, options?: { cause?: Error; }); toJSON(): Record<string, unknown>; } /** * Invalid parameter value */ export declare class InvalidParameterError extends SDKError { readonly parameterName: string; readonly parameterValue: unknown; readonly expectedType?: string; constructor(parameterName: string, parameterValue: unknown, expectedType?: string, context?: ErrorContext, options?: { cause?: Error; }); toJSON(): Record<string, unknown>; } /** * Missing required parameter */ export declare class MissingParameterError extends SDKError { readonly parameterName: string; constructor(parameterName: string, context?: ErrorContext, options?: { cause?: Error; }); toJSON(): Record<string, unknown>; } /** * Invalid configuration */ export declare class InvalidConfigurationError extends SDKError { readonly configField?: string; readonly configValue?: unknown; constructor(message: string, configField?: string, configValue?: unknown, context?: ErrorContext, options?: { cause?: Error; }); toJSON(): Record<string, unknown>; } /** * Invalid token amount */ export declare class InvalidTokenAmountError extends SDKError { readonly amount: unknown; readonly mintAddress?: string; constructor(amount: unknown, mintAddress?: string, context?: ErrorContext, options?: { cause?: Error; }); toJSON(): Record<string, unknown>; } /** * Invalid public key */ export declare class InvalidPublicKeyError extends SDKError { readonly publicKey: string; constructor(publicKey: string, context?: ErrorContext, options?: { cause?: Error; }); toJSON(): Record<string, unknown>; } /** * Invalid program ID */ export declare class InvalidProgramIdError extends SDKError { readonly programId: string; constructor(programId: string, context?: ErrorContext, options?: { cause?: Error; }); toJSON(): Record<string, unknown>; } /** * Invalid data format */ export declare class InvalidDataFormatError extends SDKError { readonly data: unknown; readonly expectedFormat?: string; constructor(data: unknown, expectedFormat?: string, context?: ErrorContext, options?: { cause?: Error; }); toJSON(): Record<string, unknown>; }