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.

56 lines
921 B

6 years ago
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)';
}
6 years ago
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 [];
}
6 years ago
async getTransaction() {}
getBalance() {
return 0;
}
6 years ago
async getInfo() {}
}