@cks-systems/manifest-sdk
Version:
TypeScript SDK for Manifest
35 lines (34 loc) • 1.02 kB
TypeScript
/**
* This code was GENERATED using the solita package.
* Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
*
* See: https://github.com/metaplex-foundation/solita
*/
type ErrorWithCode = Error & {
code: number;
};
type MaybeErrorWithCode = ErrorWithCode | null | undefined;
/**
* InvalidDepositAccounts: 'Invalid deposit accounts error'
*
* @category Errors
* @category generated
*/
export declare class InvalidDepositAccountsError extends Error {
readonly code: number;
readonly name: string;
constructor();
}
/**
* Attempts to resolve a custom program error from the provided error code.
* @category Errors
* @category generated
*/
export declare function errorFromCode(code: number): MaybeErrorWithCode;
/**
* Attempts to resolve a custom program error from the provided error name, i.e. 'Unauthorized'.
* @category Errors
* @category generated
*/
export declare function errorFromName(name: string): MaybeErrorWithCode;
export {};