@@ -244,8 +244,8 @@ class LNDRPC {
244244 } ;
245245 }
246246
247- async call ( path , method = 'GET' , body = null ) {
248- const url = `http://${ this . host } :${ this . port } ${ path } ` ;
247+ async call ( apiPath , method = 'GET' , body = null ) {
248+ const url = `http://${ this . host } :${ this . port } ${ apiPath } ` ;
249249 const options = {
250250 method,
251251 headers : this . headers ,
@@ -275,8 +275,10 @@ class LNDRPC {
275275 const queryString = Object . keys ( params )
276276 . map ( ( key ) => `${ key } =${ params [ key ] } ` )
277277 . join ( '&' ) ;
278- const path = queryString ? `/v1/channels?${ queryString } ` : '/v1/channels' ;
279- return await this . call ( path ) ;
278+ const apiPath = queryString
279+ ? `/v1/channels?${ queryString } `
280+ : '/v1/channels' ;
281+ return await this . call ( apiPath ) ;
280282 }
281283
282284 async openChannelSync ( body ) {
@@ -356,7 +358,9 @@ const waitForActiveChannel = async (lnd, channelPoint, timeout = 60000) => {
356358 }
357359 await sleep ( 2000 ) ;
358360 }
359- throw new Error ( `Timeout waiting for channel ${ channelPoint } to become active` ) ;
361+ throw new Error (
362+ `Timeout waiting for channel ${ channelPoint } to become active` ,
363+ ) ;
360364} ;
361365
362366/**
@@ -387,21 +391,21 @@ const fundAddress = async (bitcoin, address, amount, confirmations = 6) => {
387391
388392/**
389393 * Wait for Electrum server to sync with Bitcoin Core
390- * @param {number } timeout - Timeout in milliseconds
394+ * @param {number } _timeout - Timeout in milliseconds (unused in simplified version)
391395 * @returns {Promise<void> }
392396 */
393- const waitForElectrumSync = async ( timeout = 30000 ) => {
397+ const waitForElectrumSync = async ( _timeout = 30000 ) => {
394398 // This is a simplified version - in production you'd connect to Electrum
395399 // For now, just wait a bit for sync to happen
396400 await sleep ( 2000 ) ;
397401} ;
398402
399403/**
400404 * Wait for backup to complete
401- * @param {number } timeout - Timeout in milliseconds
405+ * @param {number } _timeout - Timeout in milliseconds (unused in simplified version)
402406 * @returns {Promise<void> }
403407 */
404- const waitForBackup = async ( timeout = 10000 ) => {
408+ const waitForBackup = async ( _timeout = 10000 ) => {
405409 // Wait for backup state to update
406410 await sleep ( 2000 ) ;
407411 // In real implementation, you'd check backup server or app state
@@ -416,29 +420,32 @@ const getSeed = async () => {
416420 // Navigate to settings/backup to view seed
417421 // This is app-specific and would need to be implemented
418422 // based on the actual UI flow
419- throw new Error ( 'getSeed not implemented - app specific UI navigation required' ) ;
423+ throw new Error (
424+ 'getSeed not implemented - app specific UI navigation required' ,
425+ ) ;
420426} ;
421427
422428/**
423429 * Restore wallet from seed phrase
424430 * @param {string[] } seed - Array of seed words
425- * @param {string } passphrase - BIP39 passphrase (optional)
431+ * @param {string } _passphrase - BIP39 passphrase (optional)
426432 * @returns {Promise<void> }
427433 */
428- const restoreWallet = async ( seed , passphrase = '' ) => {
434+ const restoreWallet = async ( seed , _passphrase = '' ) => {
429435 // Navigate through restore flow
430436 // This is app-specific and would need to be implemented
437+ console . log ( 'Seed to restore:' , seed ) ;
431438 throw new Error (
432439 'restoreWallet not implemented - app specific UI navigation required' ,
433440 ) ;
434441} ;
435442
436443/**
437444 * Complete onboarding flow
438- * @param {object } options - Onboarding options
445+ * @param {object } _options - Onboarding options
439446 * @returns {Promise<void> }
440447 */
441- const completeOnboarding = async ( options = { } ) => {
448+ const completeOnboarding = async ( _options = { } ) => {
442449 // Navigate through onboarding screens
443450 // This is app-specific and would need to be implemented
444451 throw new Error (
0 commit comments