@blockassetlabs/blaze
Version:
Blockasset Blaze
18 lines • 600 B
TypeScript
import type { Idl } from '@project-serum/anchor';
import type { PublicKey } from '@solana/web3.js';
export declare type ErrorCode = {
code: string;
message: string;
};
export declare const NATIVE_ERRORS: ErrorCode[];
export declare type ErrorOptions = {
/** ProgramIdls in priority order */
programIdls?: {
idl: Idl;
programId: PublicKey;
}[];
/** Additional errors by code */
additionalErrors?: ErrorCode[];
};
export declare const handleError: (e: unknown, fallBackMessage?: string, options?: ErrorOptions) => string;
//# sourceMappingURL=errors.d.ts.map