@signumjs/wallets
Version:
Wallets communication package for DApps in the Signum Network
43 lines (42 loc) • 1.19 kB
TypeScript
import { ExtensionErrorType } from './messaging';
/**
* A generic and unknown/unexpected error with the extension
*/
export declare class ExtensionWalletError implements Error {
name: string;
message: string;
}
/**
* Error for rejected permissions, or similar permission errors
*/
export declare class NotGrantedWalletError extends ExtensionWalletError {
name: string;
message: string;
}
/**
* Error if no compatible extension wallet was found
*/
export declare class NotFoundWalletError extends ExtensionWalletError {
name: string;
message: string;
}
/**
* Error if request parameters do not match expectation of the wallet
*/
export declare class InvalidParamsWalletError extends ExtensionWalletError {
name: string;
message: string;
}
/**
* Error if the network is not allowed for the requesting application, i.e. requested network does not exist, or the currently selected node is not
* of requested network.
*/
export declare class InvalidNetworkError extends ExtensionWalletError {
name: string;
message: string;
}
/**
* @internal
* @ignore
*/
export declare function createError(payload: ExtensionErrorType): ExtensionWalletError;