464 Commits

Author SHA1 Message Date
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
19597ca8e5 Add coordinator maintainance notice 2023-09-08 08:33:00 -07:00
96a6095dbf Add migrations for new Order logs and Robot avatar defaults 2023-09-07 02:15:58 -07:00
ae9fdd72c6 Update to newer CLN hold plugin (#816)
* update to newer cln hold plugin

* fix docker stuff

* forgotten rename

* add proto files from cln repo

* add CLN_GRPC_HOLD_HOST to .env-sample
2023-09-06 15:18:22 +00:00
4e7963c90d Fix pretty logs admin for orders with no logs recorded 2023-08-19 11:24:14 -07:00
eaca597522 Remove /api/user endpoint from api.urls 2023-08-14 07:38:16 -07:00
9db89606cb Deprecate unsigned invoices (#633)
* Fix connected chat status

* Delete option to submit unsigned address and invoices
2023-08-14 14:22:15 +00:00
ca3f7cb222 Delete user view, session auth and png avatars (#588) 2023-08-14 14:21:12 +00: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
9777a4987f fix(infoview): 0 if marketticks are none 2023-08-06 08:37:03 -07:00
00628413f2 feat(api/db); add hash_id order field (#763) 2023-08-03 09:51:41 +00:00
af75c33b16 Add criptoya.com api to price providers (#748)
Co-authored-by: Reckless_Satoshi <90936742+Reckless-Satoshi@users.noreply.github.com>
2023-07-24 17:49:55 +00:00
a980c15974 Add object limit to /api/ticks (#747) 2023-07-23 19:27:37 +00:00
143ab9ec5d Add admin action to solve disputes as successful trades (#672) 2023-06-19 20:06:11 +00:00
067ba38668 Fix exceptions for no CLN nodes 2023-05-25 04:19:45 -07: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
60c72e4239 Add tracking of old locked invoices to follow-invoices 2023-05-22 03:43:43 -07:00
20f4a7b471 Add qualified lnd grpc variables 2023-05-21 15:22:15 -07:00
547a7212a0 Do not watch all locked invoices in follow-invoices 2023-05-20 07:52:30 -07:00
66f1a68963 Fix flake8 unused imported dep 2023-05-20 04:23:51 -07:00
f5f78588c3 Add placeholder commit_sha 2023-05-19 04:45:22 -07:00
5303186896 Allow blank order donated field on lnpayment admin edits 2023-05-18 07:27:24 -07:00
516537a38e Add pgp signature to sensitive client - coordinator messages (#592)
* Minor fixes on dev setup start up

* Add pgp cleartext signatures
2023-05-17 13:06:04 +00:00
0a620901a7 Add keysend devfund donations functionality (#589) 2023-05-16 17:12:15 +00:00
73eb4df291 Delete commited proto files 2023-05-15 04:11:27 -07:00
7b6ebd0eab Simplify coordinator updates, automatic migrations and collect statics (#583) 2023-05-15 09:46:59 +00:00
b0ffe150c0 Refactor expiry_height into follow_invoices 2023-05-13 08:51:22 -07:00
70b6d88321 Improve lookup invoice status updates delay 2023-05-13 08:38:13 -07:00
1b347420fe Fix bug automatic resolutions 2023-05-12 11:29:19 -07:00
70740750f5 Fix soft time limits in api tasks 2023-05-12 03:10:14 -07:00
0f28990bea Add new api for external prices (non-tor only) bitpay 2023-05-10 14:05:52 -07:00
5728c66cca Add soft time limits to tasks 2023-05-10 12:07:28 -07:00
89acecbc1c Fix automatic dispute resolution typo 2023-05-09 06:23:59 -07:00
899062ae70 Rename repository 2023-05-09 06:07:16 -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
af0289c264 Fix new WS middleware for old auth method, improve auth token admin panel 2023-05-07 14:51:17 -07:00
8434a256cf Fix last_login for tokeauth, replace maker/taker_last seen for last_login 2023-05-07 08:06:35 -07:00
f2de58ca36 Add hash/preimage or address/txid to trade summary report 2023-05-07 04:11:40 -07:00
25f0b0eea5 Fix token auth native (#558)
* Fix token auth on Native

* Fix pre-release action
2023-05-06 13:42:48 +00: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
ea6526f81c Fix and improve admin search fields 2023-05-02 04:04:24 -07:00
a1f0a85646 Small fixes 2023-05-01 10:35:55 -07: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
3a49902a7c Fix invoice-follower output logs and order_update 2023-04-30 09:32:15 -07:00
c693faacde Optimize follow-invoices service performance (#480) 2023-04-30 13:46:23 +00:00