mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-03 20:07:11 +01:00
55 lines
921 B
JavaScript
55 lines
921 B
JavaScript
import { LegacyWallet } from './legacy-wallet';
|
|
import Frisbee from 'frisbee';
|
|
|
|
export class LightningCustodianWallet extends LegacyWallet {
|
|
constructor() {
|
|
super();
|
|
this.type = 'lightningCustodianWallet';
|
|
this.pendingTransactions = [];
|
|
this.token = false;
|
|
this.tokenRefreshedOn = 0;
|
|
this._api = new Frisbee({
|
|
baseURI: 'https://api.blockcypher.com/v1/btc/main/addrs/',
|
|
});
|
|
}
|
|
|
|
getTypeReadable() {
|
|
return 'Lightning (custodian)';
|
|
}
|
|
|
|
async createAccount() {}
|
|
|
|
async authorize() {}
|
|
|
|
async getToken() {}
|
|
|
|
async getBtcAddress() {}
|
|
|
|
async newBtcAddress() {}
|
|
|
|
async getPendngBalance() {}
|
|
|
|
async decodeInvoice() {}
|
|
|
|
async checkRoute() {}
|
|
|
|
async payInvoice() {}
|
|
|
|
async sendCoins() {}
|
|
|
|
getTransactions() {
|
|
return [];
|
|
}
|
|
|
|
async fetchTransactions() {
|
|
return [];
|
|
}
|
|
|
|
async getTransaction() {}
|
|
|
|
getBalance() {
|
|
return 0;
|
|
}
|
|
|
|
async getInfo() {}
|
|
}
|