212 Commits

Author SHA1 Message Date
3a164f95d9 Update logics.py
Remove word RoboSats from transaction description
2025-06-19 21:00:26 +02:00
ce6e19882e change lnd down errors to general node errors 2025-05-28 22:59:35 +02:00
a72bd9f454 Merge pull request #1826 from RoboSats/fix-invoice-cleanup
Fix invoice cleanup
2025-04-08 10:12:53 +00:00
c1897458e0 Fix tests 2025-03-25 18:02:28 +01:00
c9c9971601 Fix invoice cleanup 2025-03-24 00:11:04 +01:00
f80f1dfb0c Add cancel_status to POST /api/order 2025-03-19 22:35:41 -03:00
e486b87948 Display amount correctly 2025-03-14 18:17:30 +01:00
c12c579497 Calculate right amount scrow and bond 2025-03-14 16:11:17 +01:00
26802f114a Retro compatible 2025-03-10 10:11:52 +01:00
ffa75ba87f Revert "Frontend"
This reverts commit 18a0edf9de880ef7b6e7f541d29778546facdb38.
2025-03-10 10:10:02 +01:00
18a0edf9de Frontend 2025-03-05 10:40:35 +01:00
537707d464 Fix early bond expiration 2025-03-04 13:09:28 +01:00
4f8139bb01 Try to fix 2025-02-28 23:48:30 +01:00
9498fe5b47 Test taker invoice failure 2025-02-28 22:46:06 +01:00
ee4fe15c6c Allow multiple takers 2025-02-28 21:26:08 +01:00
925a194b0b Nostr order should hide when a taker sends the action 2024-11-06 11:35:03 +01:00
2e05561cd1 Add node alias to invoice description 2024-10-18 22:43:48 +02:00
2fc61ba4ae Add node alias to invoice description 2024-10-18 22:43:47 +02:00
7d7a3a39e7 Revert "Store status notifications" 2024-10-01 19:35:57 +00:00
0a33147a4f Fix Rebase 2024-09-16 16:05:21 +02:00
4f2ec020a9 Store status notifications 2024-09-16 15:54:14 +02:00
cbb063f06d NIP corrections 2024-08-07 22:43:44 +02:00
3e460bb255 Use nostr as cache system 2024-08-07 22:43:41 +02:00
3143144315 fix(coordinator): cannot update_or_create with relate named on django v5 (#1263)
* Fix for django v5

* Fix re-submit invoice
2024-05-05 19:58:18 +00:00
107cbe65e3 Fix handle empty country list 2024-05-01 03:46:08 +01:00
34ef099573 Feat: add coordinator opt for geoblocked countries (#1258)
* Add location validator

* Add bad location tests
2024-04-29 22:58:03 +00:00
5e58f0c8ce Change default max_order_size 2024-01-09 14:37:00 +00:00
3af8287da7 Add mempool.space as fee estimator and remote read devfund pubkey (#1055) 2024-01-08 14:13:37 +00:00
f271d59172 Add pause/unpause tests 2023-11-17 13:02:30 +00:00
5674337b32 Add fiat sent/received confirmation tests. Improve API documentation 2023-11-17 13:02:30 +00:00
a555f204ca Fix models decoupling (#874)
* Fix move order model constrains to env to settings.py

* Remove lnpayment, tick, onchain model contraints based on .env
2023-10-10 12:48:05 +00:00
28be4977e7 Fix order logging on automatic dispute resolution slashed bonds 2023-09-15 02:39:40 -07:00
1015ba3433 Fix list out of range on contract formalized order logging 2023-09-14 02:31:42 -07:00
c7a14fbc56 Fix order status change must happen exactly when last sats update on contract finalization 2023-09-11 08:23:11 -07:00
1600b58bab Fix contract finalization logging 2023-09-10 12:16:34 -07:00
5d66e56f2a Improve hodl invoice description 2023-09-08 08:42:04 -07:00
4383d14f88 feat(coordinator): add verbose order logs as table to admin (#764)
* add logs field

* Log some order events

* Add more logs. Format as table.

* Add more logs

* Add admin panel hyperlinks to order logs

* Add lasts set of logs

* Some fixes
2023-08-06 17:48:20 +00:00
5ff70bccb7 Add core-lightning as backend lightning node vendor (#611)
* Add CLN node backend image and service (#418)

* Add cln service

* Add hodlvoice Dockerfile and entrypoint

* Add lnnode vendor switch (#431)

* Add LNNode vendor switch

* Add CLN version to frontend and other fixes

* init

* first draft

* add unsettled_local_balance and unsettled_remote_balance

* gen_hold_invoice now takes 3 more variables to build a label for cln

* remove unneeded payment_hash from gen_hold_invoice

* remove comment

* add get_cln_version

* first draft of clns follow_send_payment

* fix name of get_lnd_version

* enable flake8

* flake8 fixes

* renaming cln file, class and get_version

* remove lnd specific commented code

* get_version: add try/except, refactor to top to mimic lnd.py

* rename htlc_cltv to htlc_expiry

* add clns lookup_invoice_status

* refactored double_check_htlc_is_settled to the end to match lnds file

* fix generate_rpc

* Add sample environmental variables, small fixes

* Fix CLN gRPC port

* Fix gen_hold_invoice, plus some other tiny fixes (#435)

* Fix channel_balance to use int object inside Amount (#438)

* Add CLN/LND volume to celery-beat service

* Add CLN/LND volume to celery-beat service

* Bump CLN to v23.05

* changes for 0.5 and some small fixes

* change invoice expiry from absolute to relative duration

* add try/except to catch timeout error

* fix failure_reason to be ln_payment failure reasons, albeit inaccurate sometimes

* refactor follow_send_payment and add pending check to expired case

* fix status comments

* add send_keysend method

* fix wrong state ints in cancel and settle

* switch to use hodlinvoicelookup in double_check

* move pay command after lnpayment status update

* remove loop in follow_send_payment and add error result for edge case

* fix typeerror for payment_hash

* rework follow_send_payment logic and payment_hash, watch harder if pending

* use fully qualified names for status instead of raw int

* missed 2 status from prev commit

* Always copy the cln-grpc-hodl plugin on start up

* Fix ALLOW_SELF_KEYSEND linting error

* Fix missing definition of failure_reason

---------

Co-authored-by: daywalker90 <admin@noserver4u.de>
2023-05-22 14:56:15 +00:00
0a620901a7 Add keysend devfund donations functionality (#589) 2023-05-16 17:12:15 +00:00
1b347420fe Fix bug automatic resolutions 2023-05-12 11:29:19 -07:00
89acecbc1c Fix automatic dispute resolution typo 2023-05-09 06:23:59 -07:00
3b77a473f8 Coordinator db performance clean up (#561)
* Improve DB writes performance and concurrency. Add order coordinator proceeds field.

* Fix checks on order GET inducing 400
2023-05-08 12:49:21 -07:00
f2de58ca36 Add hash/preimage or address/txid to trade summary report 2023-05-07 04:11:40 -07:00
daa1127cfc Increase max mining fee (#551) 2023-05-05 19:44:18 +00:00
811cb4181d Delete old user rating functionality 2023-05-05 05:40:29 -07:00
4d62ea1549 Delete coordinator referral program functionality 2023-05-05 05:32:52 -07:00
a10f7f2e21 Add slashed return as rewards when bonded stake is uneven (#538) 2023-05-05 12:07:13 +00:00
e6ddcf9e4b Add RobotTokenSHA256 middleware, /api/robot and frontend entropy calc (#512)
* Add RobotTokenSHA256 middleware for in-the-fly robot generation/login

* Add RobotView, fix middleware, upgrade frontend

* Token header as base91

* Add OAS schema of RobotView

* Use RobotView on new fetchRobot(), mimick old fetchRobot() functionality

* Upgrade websockets for token based authentication

* Small fixes

* Add frontend token entropy checks, add token on route /robot/<token>

* Rename admin panel

* Collect phrases
2023-05-05 10:12:38 +00:00
75f04579ed Refactor models into a module (#481)
* Refactor models into a module

* Rename Profile model as Robot

* Underscore numeric literals
2023-05-01 10:30:53 +00:00
fc4f3e1593 Add undo confirm fiat sent action (#461)
* Add undo confirm fiat sent action

* Collect phrases

* Small fixes
2023-04-28 09:19:18 +00:00