Commit graph

14 commits

Author SHA1 Message Date
84e6e81f04 fix: handle empty machines table in restrictionLevel query
Return 0 when no machines exist instead of throwing an error.
This fixes the authentication error on fresh installations where
the machines table is empty.
2025-12-31 19:05:01 +01:00
9762a935cb add 2fa bypass 2025-12-31 19:05:01 +01:00
8c5f78c50f fix: correct LNBits newFunding return format for funding page
Updates the newFunding function to return the expected interface:
- fundingPendingBalance: BN(0) for Lightning Network
- fundingConfirmedBalance: actual wallet balance as BN object
- fundingAddress: bolt11 invoice for funding

This fixes the TypeError "Cannot read properties of undefined (reading
'minus')"
that occurred when accessing the funding page in the admin UI.
2025-12-31 19:05:01 +01:00
c96df3af1e fix: update LNBits payment request handling
- Changed the response handling in the newAddress function to return the bolt11 invoice instead of the payment request.
- Updated error message to reflect the change in response structure from LNBits.
2025-12-31 19:05:01 +01:00
69d461c5e7 feat: implement LNURL payment handling in LNBits plugin
- Added a new function to handle LNURL payments, allowing users to send payments via LNURL addresses.
- Integrated LNURL payment processing into the existing sendCoins function, enhancing the wallet's capabilities for Lightning Network transactions.
2025-12-31 19:05:01 +01:00
58cb2c1565 feat: add bolt11 library for Lightning Network invoice handling
- Included the bolt11 library in the server package to facilitate the creation and parsing of Lightning Network invoices.
2025-12-31 19:05:01 +01:00
9970668b95 feat: integrate LNBits wallet schema and configuration
- Added LNBits wallet schema to the admin UI, including validation and input components.
- Updated the services index to include LNBits in the available wallet options.
- Enhanced the wallet selection component to handle LNBits configuration input.
2025-12-31 19:05:01 +01:00
c5c9ff6ee8 refactor: update LNBits migration to use configuration object
- Replaced SQL statements with a configuration object for LNBits settings, enhancing code clarity and maintainability.
- Simplified the migration process by utilizing the saveConfig function for applying configurations.
- Marked the down migration as a no-op to prevent breaking existing configurations.
2025-12-31 19:05:01 +01:00
d3493fb2d0 refactor: streamline LNBits migration SQL statements
- Updated the migration script for LNBits configuration to use an array for SQL statements, improving readability and maintainability.
- Consolidated the insertion and deletion operations for user configuration related to LNBits and Lightning Network wallet options.
2025-12-31 19:05:01 +01:00
eb3f1cf030 feat: add LNBits wallet plugin integration
- Introduced LNBits as a Lightning Network wallet provider for Lamassu ATMs.
- Added configuration options for LNBits in the environment variables.
- Implemented core functionalities including invoice creation, payment processing, balance monitoring, and payment status tracking.
- Created unit tests for the LNBits plugin to ensure functionality and error handling.
- Updated development environment setup to include LNBits configuration.
2025-12-31 19:05:01 +01:00
Rafael Taranto
4bd06e88d7 chore: version bump 2025-12-31 19:05:01 +01:00
Rafael Taranto
3151d0e7c9 fix: drop deprecated coin change lib 2025-12-31 19:05:01 +01:00
Rafael Taranto
38100a523e chore: better logs on sweep errors 2025-12-31 19:05:01 +01:00
e2c49ea43c v12.0.0 - initial commit 2025-12-31 19:04:13 +01:00