wallet-storage-client
Version:
Client only Wallet Storage
90 lines • 3.08 kB
TypeScript
import { WalletNetwork } from "@bsv/sdk";
import { WalletError } from "./WalletError";
/**
* Not implemented.
*/
export declare class WERR_NOT_IMPLEMENTED extends WalletError {
constructor(message?: string);
}
/**
* An internal error has occurred.
*
* This is an example of an error with an optional custom `message`.
*/
export declare class WERR_INTERNAL extends WalletError {
constructor(message?: string);
}
/**
* The ${parameter} parameter is invalid.
*
* This is an example of an error object with a custom property `parameter` and templated `message`.
*/
export declare class WERR_INVALID_OPERATION extends WalletError {
constructor(message?: string);
}
/**
* The ${parameter} parameter is invalid.
*
* This is an example of an error object with a custom property `parameter` and templated `message`.
*/
export declare class WERR_INVALID_PARAMETER extends WalletError {
parameter: string;
constructor(parameter: string, mustBe?: string);
}
/**
* The required ${parameter} parameter is missing.
*
* This is an example of an error object with a custom property `parameter`
*/
export declare class WERR_MISSING_PARAMETER extends WalletError {
parameter: string;
constructor(parameter: string);
}
/**
* The request is invalid.
*/
export declare class WERR_BAD_REQUEST extends WalletError {
constructor(message?: string);
}
/**
* Configured network chain is invalid or does not match across services.
*/
export declare class WERR_NETWORK_CHAIN extends WalletError {
constructor(message?: string);
}
/**
* Access is denied due to an authorization error.
*/
export declare class WERR_UNAUTHORIZED extends WalletError {
constructor(message?: string);
}
/**
* WalletStorageManager is not accessing user's active storage.
*/
export declare class WERR_NOT_ACTIVE extends WalletError {
constructor(message?: string);
}
/**
* Insufficient funds in the available inputs to cover the cost of the required outputs
* and the transaction fee (${moreSatoshisNeeded} more satoshis are needed,
* for a total of ${totalSatoshisNeeded}), plus whatever would be required in order
* to pay the fee to unlock and spend the outputs used to provide the additional satoshis.
*/
export declare class WERR_INSUFFICIENT_FUNDS extends WalletError {
totalSatoshisNeeded: number;
moreSatoshisNeeded: number;
/**
* @param totalSatoshisNeeded Total satoshis required to fund transactions after net of required inputs and outputs.
* @param moreSatoshisNeeded Shortfall on total satoshis required to fund transactions after net of required inputs and outputs.
*/
constructor(totalSatoshisNeeded: number, moreSatoshisNeeded: number);
}
export declare class WERR_INVALID_PUBLIC_KEY extends WalletError {
key: string;
/**
* @param key The invalid public key that caused the error.
* @param environment Optional environment flag to control whether the key is included in the message.
*/
constructor(key: string, network?: WalletNetwork);
}
//# sourceMappingURL=WERR_errors.d.ts.map