You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
531 B
32 lines
531 B
5 years ago
|
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;
|
||
|
}
|
||
|
}
|