story-research-zapwall/lib/platformConfig.ts

30 lines
995 B
TypeScript

export const PLATFORM_NPUB = 'npub18s03s39fa80ce2n3cmm0zme3jqehc82h6ld9sxq03uejqm3d05gsae0fuu'
export const PLATFORM_BITCOIN_ADDRESS = 'bc1qerauk5yhqytl6z93ckvwkylup8s0256uenzg9y'
import { getPlatformLightningAddress as getAddress, getPlatformLightningAddressSync as getAddressSync } from './config'
/**
* Platform Lightning address for receiving commissions
* This should be configured with the platform's Lightning node
* Format: user@domain.com or LNURL
*
* @deprecated Use getPlatformLightningAddress() or getPlatformLightningAddressSync() instead
*/
export const PLATFORM_LIGHTNING_ADDRESS = ''
/**
* Get platform Lightning address (async)
* Uses IndexedDB if available, otherwise returns default
*/
export async function getPlatformLightningAddress(): Promise<string> {
return getAddress()
}
/**
* Get platform Lightning address (sync)
* Returns default if IndexedDB is not ready
*/
export function getPlatformLightningAddressSync(): string {
return getAddressSync()
}