186 Commits

Author SHA1 Message Date
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
7e47fb60bf Add automatic dispute resolution (#437)
* Add automatic dispute resolution logic

* Small fixes
2023-04-24 11:05:52 +00:00
399f8102f2 Add notification for new in-app chat messages (#403)
* Add TG message for new in-app chat messages

* Add emojis and collect phrases
2023-03-27 09:37:36 +00:00
7fdbebb2aa Add envvars for target_conf 2023-03-18 03:39:37 -07:00
9158bd4c98 Fix reject too low mining fees (< 12 blocks conf target) 2023-03-17 15:06:15 -07:00
82c8f2280b Add MAX_SWAP_AMOUNT envvar (#389) 2023-03-14 19:54:31 +00:00
42f208fad4 Fix race condition onchain (#388)
* Fix race condition swaps

* Collect new phrases

* Increase random delay interval
2023-03-14 17:23:11 +00:00
09027deffc Fix order click on matches. Fix existing PGP on deleted robot rebuild. 2023-03-03 11:00:08 -08:00
6ef62a1fa4 Update minimum swap mining fee to 2 Sats/vbyte 2023-02-13 05:57:00 -08:00
b02fdcb084 Deprecate old routing budget pipeline (#347)
Delete old routing budget routines. Clients older than 0.3.1 are now incompatible!
2023-02-10 13:34:35 +00:00
d3851784e2 Fix confusing prompt title for submission of payout information 2023-01-14 04:52:47 -08:00
62ec832c2e Fix routing hint checks for rewards invoices 2023-01-14 04:38:27 -08:00
b7925ac5bc Fix adjust onchain reserve closer to LND's default anchor reserve 2023-01-14 04:12:10 -08:00
6feed1046c Fix spinning wheel of death at trade summary generation w onchain payouts 2022-12-01 10:17:25 -08:00
53dd8777cb Fix claim rewards 2022-11-28 08:23:37 -08:00
b4072b95da Small fixes missing finalization time and unit trade_satoshis response 2022-11-25 16:06:40 -08:00
86e6bed37c Add advanced options to LN payout form (#326)
* Add advanced options to LN payout form

* Complete amount calcs

* Temporary working solution for lnproxy web only (uses text instead of json)

* Update LNpayment model and logics to use user's routing budget

* Add handle lnproxyserver networks (i2p, tor, clearnet) / (mainnet,testnet)

* Small fixes
2022-11-24 17:42:30 +00:00
5723cde20e Fix onchain payouts bug 2022-10-22 07:23:22 -07:00
aa445418d5 Annoy black (#293) 2022-10-20 20:57:46 +00:00
4d5c60239f Conform to pep8 rules (#295)
* Conform to pep8 rules

* Fix some more flake8 linting errors
2022-10-20 20:53:51 +00:00
3d3da78f8a Fix code style issues with Black 2022-10-20 09:56:10 +00:00
1ba94b2abc Add Telegram notifications for order takers (#244)
* Create EnableTelegramDialog functional component

* Move Enable TG button to Profile dialog

* Add TG bot_name, token and state to API /info/

* Add messages for order takers to Telegram class
2022-09-15 15:42:33 +00:00
f8e879a3f7 Fix unreproducible bug (at least try) when order does not advance into CHA status. 2022-08-18 11:13:20 -07:00
eff58dc91d Add stealth invoices (#210)
* Add stealth invoice switch to profile

* Add stealth invoice including only order uuid

* Add explanatory tooltip for stealth invoices and fix code smells
2022-08-12 17:41:06 +00:00
5281176e3c Add use_tor boolean to envvars 2022-08-08 08:58:06 -07:00
aad87e7d98 Increase Max trade size to 4M, increase max range size from 5 to 8 2022-07-30 05:27:15 -07:00
ff0efd7664 Update Phoenix wallet compatibility. Fix escrow cltv expiry blocks computation 2022-07-22 08:13:37 -07:00