From 85cfda330b64911fe62c45ac87788961b054a817 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sun, 7 Jul 2024 17:53:49 +0200 Subject: [PATCH] Remove Wallet in lib/constants --- lib/constants.js | 17 ----------------- 1 file changed, 17 deletions(-) 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