@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.
79 lines (78 loc) • 2.39 kB
TypeScript
import { SDKError, type ErrorContext } from './base.js';
/**
* Transaction not found
*/
export declare class TransactionNotFoundError extends SDKError {
readonly signature: string;
constructor(signature: string, context?: ErrorContext, options?: {
cause?: Error;
});
toJSON(): Record<string, unknown>;
}
/**
* Transaction failed to process
*/
export declare class TransactionFailedError extends SDKError {
readonly signature?: string;
readonly errorCode?: string;
readonly logs?: string[];
constructor(message: string, signature?: string, errorCode?: string, logs?: string[], context?: ErrorContext, options?: {
cause?: Error;
});
toJSON(): Record<string, unknown>;
}
/**
* Transaction signature invalid
*/
export declare class InvalidTransactionSignatureError extends SDKError {
readonly signature: string;
constructor(signature: string, context?: ErrorContext, options?: {
cause?: Error;
});
toJSON(): Record<string, unknown>;
}
/**
* Transaction processing timeout
*/
export declare class TransactionTimeoutError extends SDKError {
readonly signature?: string;
readonly timeoutMs: number;
constructor(timeoutMs: number, signature?: string, context?: ErrorContext, options?: {
cause?: Error;
});
toJSON(): Record<string, unknown>;
}
/**
* Transaction simulation failed
*/
export declare class TransactionSimulationError extends SDKError {
readonly error?: string;
readonly logs?: string[];
constructor(message: string, error?: string, logs?: string[], context?: ErrorContext, options?: {
cause?: Error;
});
toJSON(): Record<string, unknown>;
}
/**
* Insufficient funds for transaction
*/
export declare class InsufficientFundsError extends SDKError {
readonly required?: number;
readonly available?: number;
readonly account?: string;
constructor(required?: number, available?: number, account?: string, context?: ErrorContext, options?: {
cause?: Error;
});
toJSON(): Record<string, unknown>;
}
/**
* Transaction too large
*/
export declare class TransactionTooLargeError extends SDKError {
readonly size?: number;
readonly maxSize?: number;
constructor(size?: number, maxSize?: number, context?: ErrorContext, options?: {
cause?: Error;
});
toJSON(): Record<string, unknown>;
}