* Derive wallet status from logs * Add send/recv icons * Set status individually for send and recv * Move status logic into own function * Add LNbits, Blink, CLN, LND, phoenixd logo * Fix wallet.status.any not using Status enum * Fix WebLN being weird * Use phoenixd logo with text * Also use wallet logo on config page * Also poll logs for wallet status * Use logger.info for logs not relevant for wallet status * Remove no longer used wallet badges * Crop LND logo like other logos * Fix all wallets show 'configure' * Fix wallet status not respecting enabled * Fix wallet.def.requiresConfig undefined * Fix banner shown for WebLN * Fix attach shown when configured * Filter by context.status to determine wallet status * Fix +- shown without context * Fix missing theme support for wallet logos
		
			
				
	
	
		
			27 lines
		
	
	
		
			690 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			690 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import { lightningAddressValidator } from '@/lib/validate'
 | |
| 
 | |
| export const name = 'lightning-address'
 | |
| export const shortName = 'lnAddr'
 | |
| export const walletType = 'LIGHTNING_ADDRESS'
 | |
| export const walletField = 'walletLightningAddress'
 | |
| 
 | |
| export const fields = [
 | |
|   {
 | |
|     name: 'address',
 | |
|     label: 'lightning address',
 | |
|     type: 'text',
 | |
|     autoComplete: 'off',
 | |
|     serverOnly: true,
 | |
|     validate: lightningAddressValidator.test({
 | |
|       name: 'address',
 | |
|       test: addr => !addr.toLowerCase().endsWith('@stacker.news'),
 | |
|       message: 'automated withdrawals must be external'
 | |
|     })
 | |
|   }
 | |
| ]
 | |
| 
 | |
| export const card = {
 | |
|   title: 'lightning address',
 | |
|   subtitle: 'autowithdraw to a lightning address'
 | |
| }
 |