78840f115f
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-10-12 14:24:29 +02:00
c58e4e330c
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-10-12 14:24:29 +02:00
7ebd809abc
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-10-12 14:24:29 +02:00
ee625a91e9
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-10-12 14:24:29 +02:00
fc761844b7
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-10-12 14:24:29 +02:00
Rafael Taranto
a6f4037041
fix: receipt paper null
2025-07-25 08:44:32 +01:00
Rafael Taranto
44410fe2a8
Merge pull request #1923 from RafaelTaranto/chore/log-exchange-error-on-getMarkets
...
LAM-1499 chore: log exchange errors on getMarkets
2025-07-23 14:38:10 +01:00
Rafael Taranto
bc4d41951a
Merge pull request #1921 from RafaelTaranto/fix/coin-change-with-empty-box
...
LAM-1496 fix: coin change with empty box
2025-07-23 14:37:46 +01:00
Rafael Taranto
5c2046e6d0
chore: log exchange errors on getMarkets
2025-07-23 08:48:20 +01:00
Rafael Taranto
bb91cac810
fix: coin change with empty box
2025-07-23 08:46:45 +01:00
Rafael Taranto
d3a2559429
chore: use same standard as other routes
2025-07-20 13:12:16 +01:00
Rafael Taranto
dfe512895a
fix: redeem with email
2025-07-20 13:10:54 +01:00
Rafael Taranto
ec38e7ad87
Merge pull request #1908 from RafaelTaranto/fix/batch-diagnostics
...
LAM-1425 fix: batch diagnostics
2025-07-10 13:50:16 +01:00
siiky
325d7ad511
fix: includes bills from re-paired machines
2025-07-10 10:45:22 +01:00
Rafael Taranto
3fc90e188a
fix: batch diagnostics
2025-07-10 10:10:59 +01:00
siiky
8654ad0b19
feat: add _Stuck booting up_ machine status
2025-07-02 12:52:09 +01:00
siiky
9ad884be5d
feat: add _Booting up_ machine status
2025-07-02 12:52:07 +01:00
siiky
ff3c51623f
refactor: prepare machine statuses code for new statuses
2025-07-02 12:52:00 +01:00
siiky
f7c42992d8
feat: don't try to parse already-parsed JSON note
2025-07-02 12:51:55 +01:00
siiky
dec172576c
refactor: clarify machine pings object construction
2025-07-02 12:51:51 +01:00
Rafael Taranto
9125b26e88
Merge pull request #1890 from RafaelTaranto/feat/async-autocomplete-on-loyalty-page
...
LAM-1453 feat: async autocomplete on loyalty page
2025-06-25 11:21:10 +01:00
Rafael Taranto
c006074e05
Merge pull request #1894 from RafaelTaranto/fix/update-counts-on-cash-units
...
LAM-1460 fix: update counts stale ui
2025-06-25 11:20:41 +01:00
Rafael Taranto
f1e5edd4ac
feat: async autocomplete on individual discounts
2025-06-24 12:27:03 +01:00
Rafael Taranto
d0aaf6c170
Merge pull request #1889 from RafaelTaranto/feat/txs-new-table
...
LAM-1439 feat: txs new table
2025-06-24 12:26:22 +01:00
Rafael Taranto
686dc3e992
chore: Promise all leftovers from complex selects
2025-06-24 12:19:47 +01:00
Rafael Taranto
ce1238c406
fix: use ID instead of string
2025-06-24 12:00:40 +01:00
Rafael Taranto
d9ea7407ee
fix: update counts stale ui
2025-06-24 11:12:10 +01:00
Rafael Taranto
801e7e54ff
fix: properly propagate errors to the machine
2025-06-24 10:50:29 +01:00
siiky
8b0ac8a182
refactor: simplify bills processing code
2025-06-23 17:17:53 +01:00
siiky
317660e8d9
chore: use meaningful names
2025-06-23 17:17:53 +01:00
siiky
2f7724bd12
fix: exclude unbatched bills of unpaired machines
2025-06-23 17:17:53 +01:00
siiky
1331aad0ac
refactor: simplify bills query building
2025-06-23 17:03:21 +01:00
siiky
e83e74f9d1
chore: format SQL queries
2025-06-23 13:18:57 +01:00
Rafael Taranto
790cdd8fec
fix: add csv fields to query
2025-06-19 11:56:25 +01:00
Rafael Taranto
d6166ce752
feat: transactions table
2025-06-19 11:23:12 +01:00
siiky
38d3c9de41
fix: drop all db.task.batch() uses
2025-06-18 14:16:57 +01:00
siiky
e9d219bc6c
fix: put diagnostic timestamps in the right fields
2025-06-17 11:58:41 +01:00
siiky
fc649a0b99
fix: update diagnostics timestamps depending on photo creation
2025-06-17 11:56:02 +01:00
siiky
70b72dc27b
feat: propagate photo creation success/failure
2025-06-17 11:55:35 +01:00
siiky
7d9df01eab
fix: don't let lack of photo data go unnoticed
2025-06-17 11:55:09 +01:00
siiky
77347ff29c
refactor: single pass through received frames
2025-06-17 11:54:31 +01:00
siiky
16761b0744
fix: don't drop pings out of the table
2025-06-16 17:35:49 +01:00
siiky
8cf68e480a
refactor: replace batch() with async/await
2025-06-16 17:34:28 +01:00
Rafael Taranto
af8a8d395c
Merge pull request #1883 from siiky/refactor/lam-1454/drop-configversion-pollqueries
...
LAM-1454 refactor: drop `configVersion` from `pollQueries()`
2025-06-12 17:48:48 +01:00
siiky
24847f173a
refactor: drop configVersion from pollQueries()
2025-06-12 17:45:04 +01:00
Rafael Taranto
298b4ccb6c
Merge pull request #1881 from siiky/fix/lam-1450/ping-interval
...
LAM-1450 fix: reduce ping timer
2025-06-12 17:36:04 +01:00
siiky
afae156ef9
refactor: use configs version from configs object
2025-06-12 16:19:14 +01:00
siiky
430ca16cc5
feat: add version to returned object in new-settings-loader.js:load()
2025-06-12 16:19:14 +01:00
siiky
e93c7f06c0
feat: fetch the operator ID before server startup
2025-06-12 16:19:14 +01:00
siiky
0f3df7f12c
feat: cache the operator ID
2025-06-12 16:19:14 +01:00