mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 15:04:50 +01:00
31 lines
531 B
JavaScript
31 lines
531 B
JavaScript
import { AbstractWallet } from './abstract-wallet';
|
|
|
|
export class PlaceholderWallet extends AbstractWallet {
|
|
static type = 'placeholder';
|
|
static typeReadable = 'Placeholder';
|
|
|
|
constructor() {
|
|
super();
|
|
this._isFailure = false;
|
|
}
|
|
|
|
allowSend() {
|
|
return false;
|
|
}
|
|
|
|
getLabel() {
|
|
return this.getIsFailure() ? 'Wallet Import' : 'Importing Wallet...';
|
|
}
|
|
|
|
allowReceive() {
|
|
return false;
|
|
}
|
|
|
|
getIsFailure() {
|
|
return this._isFailure;
|
|
}
|
|
|
|
setIsFailure(value) {
|
|
this._isFailure = value;
|
|
}
|
|
}
|