b777fdcddc
* I removed wallet.server in a previous commit * the client couldn't determine which wallet was stored on the server since all server specific fields were set in server.js * walletType and walletField are now set in index.js * walletType is now used to determine if a wallet is stored on the server * also included some formatting changes
26 lines
564 B
JavaScript
26 lines
564 B
JavaScript
import { lnAddrAutowithdrawSchema } from '@/lib/validate'
|
|
|
|
export const name = 'lightning-address'
|
|
export const shortName = 'lnAddr'
|
|
|
|
export const fields = [
|
|
{
|
|
name: 'address',
|
|
label: 'lightning address',
|
|
type: 'text',
|
|
autoComplete: 'off'
|
|
}
|
|
]
|
|
|
|
export const card = {
|
|
title: 'lightning address',
|
|
subtitle: 'autowithdraw to a lightning address',
|
|
badges: ['receive only', 'non-custodialish']
|
|
}
|
|
|
|
export const schema = lnAddrAutowithdrawSchema
|
|
|
|
export const walletType = 'LIGHTNING_ADDRESS'
|
|
|
|
export const walletField = 'walletLightningAddress'
|