diff --git a/lib/constants.js b/lib/constants.js index c19c3c49..9a55e1fe 100644 --- a/lib/constants.js +++ b/lib/constants.js @@ -139,21 +139,4 @@ export const NORMAL_POLL_INTERVAL = Number(process.env.NEXT_PUBLIC_NORMAL_POLL_I export const LONG_POLL_INTERVAL = Number(process.env.NEXT_PUBLIC_LONG_POLL_INTERVAL) export const EXTRA_LONG_POLL_INTERVAL = Number(process.env.NEXT_PUBLIC_EXTRA_LONG_POLL_INTERVAL) -// attached wallets -export const Wallet = { - LND: { logTag: 'lnd', server: true, type: 'LND', field: 'walletLND' }, - CLN: { logTag: 'cln', server: true, type: 'CLN', field: 'walletCLN' }, - LnAddr: { logTag: 'lnAddr', server: true, type: 'LIGHTNING_ADDRESS', field: 'walletLightningAddress' }, - NWC: { logTag: 'nwc', server: false }, - LNbits: { logTag: 'lnbits', server: false }, - LNC: { logTag: 'lnc', server: false } -} - -export const getWalletBy = (key, value) => { - for (const w of Object.values(Wallet)) { - if (w[key] === value) return w - } - throw new Error(`wallet not found: ${key}=${value}`) -} - export const ZAP_UNDO_DELAY_MS = 5_000