mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 01:40:12 +01:00
Signed-off-by: veryyet <zhengxingru@outlook.com> (#6305)
This commit is contained in:
parent
60b931ed87
commit
6c18e6ecf6
@ -60,7 +60,7 @@ function encodeURv1(arg1, arg2) {
|
||||
/**
|
||||
*
|
||||
* @param str {string} For PSBT, or coordination setup (translates to `bytes`) it expects hex string. For ms cosigner it expects plain json string
|
||||
* @param len {number} lenght of each fragment
|
||||
* @param len {number} length of each fragment
|
||||
* @return {string[]} txt fragments ready to be displayed in dynamic QR
|
||||
*/
|
||||
function encodeURv2(str, len) {
|
||||
|
@ -183,7 +183,7 @@ class DeeplinkSchemaMatch {
|
||||
},
|
||||
]);
|
||||
} else if (Lnurl.isLightningAddress(event.url)) {
|
||||
// this might be not just an email but a lightning addres
|
||||
// this might be not just an email but a lightning address
|
||||
// @see https://lightningaddress.com
|
||||
completionHandler([
|
||||
'ScanLndInvoiceRoot',
|
||||
|
@ -1443,7 +1443,7 @@ export class AbstractHDElectrumWallet extends AbstractHDWallet {
|
||||
|
||||
/**
|
||||
* @param seed {Buffer} Buffer object with seed
|
||||
* @returns {string} Hex string of fingerprint derived from mnemonics. Always has lenght of 8 chars and correct leading zeroes. All caps
|
||||
* @returns {string} Hex string of fingerprint derived from mnemonics. Always has length of 8 chars and correct leading zeroes. All caps
|
||||
*/
|
||||
static seedToFingerprint(seed: Buffer) {
|
||||
const root = bip32.fromSeed(seed);
|
||||
@ -1462,7 +1462,7 @@ export class AbstractHDElectrumWallet extends AbstractHDWallet {
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {string} Hex string of fingerprint derived from wallet mnemonics. Always has lenght of 8 chars and correct leading zeroes
|
||||
* @returns {string} Hex string of fingerprint derived from wallet mnemonics. Always has length of 8 chars and correct leading zeroes
|
||||
*/
|
||||
getMasterFingerprintHex() {
|
||||
const seed = this._getSeed();
|
||||
|
@ -370,8 +370,8 @@ export class LightningLdkWallet extends LightningCustodianWallet {
|
||||
const newInvoices: any[] = [];
|
||||
let found = false;
|
||||
|
||||
// okay, so the idea is that `this._listInvoices` is a persistant storage of invoices, while
|
||||
// `RnLdk.receivedPayments` is only a temp storage of emited events
|
||||
// okay, so the idea is that `this._listInvoices` is a persistent storage of invoices, while
|
||||
// `RnLdk.receivedPayments` is only a temp storage of emitted events
|
||||
|
||||
// we iterate through all stored invoices
|
||||
for (const invoice of this._listInvoices) {
|
||||
@ -563,7 +563,7 @@ export class LightningLdkWallet extends LightningCustodianWallet {
|
||||
console.log('fetching balance...');
|
||||
await wallet.fetchUtxo();
|
||||
console.log(wallet.getBalance(), wallet.getUtxo());
|
||||
console.log('creating transation...');
|
||||
console.log('creating transaction...');
|
||||
// @ts-ignore wtf wallet.getUtxo() and first arg of createTransaction are not compatible
|
||||
const { tx } = wallet.createTransaction(wallet.getUtxo(), [{ address }], 2, address, 0, false, 0);
|
||||
if (!tx) throw new Error('claimCoins: could not create transaction');
|
||||
|
@ -356,7 +356,7 @@ export class LightningLdkWallet extends LightningCustodianWallet {
|
||||
console.log('fetching balance...');
|
||||
await wallet.fetchUtxo();
|
||||
console.log(wallet.getBalance(), wallet.getUtxo());
|
||||
console.log('creating transation...');
|
||||
console.log('creating transaction...');
|
||||
const { tx } = wallet.createTransaction(wallet.getUtxo(), [{ address }], 2, address, 0, false, 0);
|
||||
if (!tx) throw new Error('claimCoins: could not create transaction');
|
||||
console.log('broadcasting...');
|
||||
|
Loading…
Reference in New Issue
Block a user