@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.
78 lines (77 loc) • 2.5 kB
TypeScript
import { SDKError, type ErrorContext } from './base.js';
/**
* Instruction decoding failed
*/
export declare class DecoderError extends SDKError {
readonly instructionData?: string;
readonly programId?: string;
constructor(message: string, instructionData?: string, programId?: string, context?: ErrorContext, options?: {
cause?: Error;
});
toJSON(): Record<string, unknown>;
}
/**
* No decoder registered for program
*/
export declare class DecoderNotFoundError extends SDKError {
readonly programId: string;
constructor(programId: string, context?: ErrorContext, options?: {
cause?: Error;
});
toJSON(): Record<string, unknown>;
}
/**
* Invalid instruction data format
*/
export declare class InvalidInstructionDataError extends SDKError {
readonly instructionData: string;
readonly expectedFormat?: string;
constructor(instructionData: string, expectedFormat?: string, context?: ErrorContext, options?: {
cause?: Error;
});
toJSON(): Record<string, unknown>;
}
/**
* Token metadata decoding failed
*/
export declare class TokenMetadataDecodingError extends SDKError {
readonly mintAddress?: string;
readonly metadataAccount?: string;
constructor(message: string, mintAddress?: string, metadataAccount?: string, context?: ErrorContext, options?: {
cause?: Error;
});
toJSON(): Record<string, unknown>;
}
/**
* NFT metadata decoding failed
*/
export declare class NFTMetadataDecodingError extends SDKError {
readonly nftAddress?: string;
readonly metadataUri?: string;
constructor(message: string, nftAddress?: string, metadataUri?: string, context?: ErrorContext, options?: {
cause?: Error;
});
toJSON(): Record<string, unknown>;
}
/**
* Account data decoding failed
*/
export declare class AccountDataDecodingError extends SDKError {
readonly accountAddress?: string;
readonly accountType?: string;
constructor(message: string, accountAddress?: string, accountType?: string, context?: ErrorContext, options?: {
cause?: Error;
});
toJSON(): Record<string, unknown>;
}
/**
* Swap instruction decoding failed
*/
export declare class SwapDecodingError extends SDKError {
readonly swapProgram?: string;
readonly swapType?: string;
constructor(message: string, swapProgram?: string, swapType?: string, context?: ErrorContext, options?: {
cause?: Error;
});
toJSON(): Record<string, unknown>;
}