Commit Graph

519 Commits

Author SHA1 Message Date
Reckless_Satoshi
107cbe65e3
Fix handle empty country list 2024-05-01 03:46:08 +01:00
jerry
9071597b8c
improve/update documentation in api/oas_schemas.py (#1244)
Specify that the amount of the invoice sent in `update_invoice`
should take into consideration `routing_budget_ppm`.
Specify that the signed messages should be signed with SHA512.
Remove the warning that in the future canceling not taken orders
might result in losing the bond.
Fix a broken link.
Specify that the PGP key should be ed25519/cert,sign+cv25519/encr.
2024-04-29 23:12:40 +00:00
Reckless_Satoshi
34ef099573
Feat: add coordinator opt for geoblocked countries (#1258)
* Add location validator

* Add bad location tests
2024-04-29 22:58:03 +00:00
Reckless_Satoshi
c50b5c4f3b
perf(coordinator): remove avatar generator 2024-04-22 02:40:15 +01:00
Reckless_Satoshi
ee9b7147e9
fix(coordinator): warning on drf serialializer decimal 2024-04-21 22:09:06 +01:00
Aarav Mehta
9479f35afa
Fix coordinator chat env variable (#1232)
changed env variable
2024-04-20 14:36:21 +00:00
KoalaSat
22a93d630d
Notify coordinator admin for new disputes (#1204)
notify coordinator admin for new disputes
2024-03-28 01:23:24 +00:00
Reckless_Satoshi
035cf281c2
Add size limits and onchain swap status to coordinator prof 2024-02-11 17:17:06 +00:00
Reckless_Satoshi
683cca6900
Merge branch 'main' into the-federation-layer-v0.6.0 2024-02-11 14:59:52 +00:00
Reckless_Satoshi
5509340c99
add api info entries for limits and swap availability 2024-02-11 14:57:47 +00:00
Reckless_Satoshi
80b97f355b
Fix order log html format error 2024-01-30 16:22:57 +00:00
Reckless_Satoshi
0f8ebdc0b1
Merge branch 'main' into the-federation-layer-v0.6.0 2024-01-28 20:52:41 +00:00
Reckless_Satoshi
4aca6b9184
Add new admin action to close public order 2024-01-28 13:52:30 +00:00
Reckless_Satoshi
c22606023e
Fix devfund fraction validation 2024-01-22 16:28:27 +00:00
Reckless_Satoshi
fe7a806d9d
Fix mempool url 2024-01-10 15:27:37 +00:00
Reckless_Satoshi
5e58f0c8ce
Change default max_order_size 2024-01-09 14:37:00 +00:00
Reckless_Satoshi
ae27b18d30
Dev: replace isort, black, flake8 with ruff (#1057) 2024-01-09 01:22:50 +00:00
Reckless_Satoshi
84ea69344e
Fix simplify read pubkey from file 2024-01-09 00:43:38 +00:00
Reckless_Satoshi
3af8287da7
Add mempool.space as fee estimator and remote read devfund pubkey (#1055) 2024-01-08 14:13:37 +00:00
Reckless_Satoshi
bc9f8ae985
Add robot hash ids to order details and robot view 2023-12-01 12:56:55 +00:00
Reckless_Satoshi
07830fd2fd
Add currency Albanian LEK 2023-11-30 16:13:38 +00:00
Reckless_Satoshi
69537d4c00
Fix comment out unused functionalities and add LND 0.17.2 to tests 2023-11-30 15:53:30 +00:00
Reckless_Satoshi
92b041cb31
Add maker_hash_id to book response 2023-11-28 11:13:40 +00:00
Reckless_Satoshi
01c4a28dae
Refactor trade tests, add onchain payout test 2023-11-23 17:53:39 +00:00
Reckless_Satoshi
62ef86f1b4
Add order expiry tests 2023-11-22 13:16:25 +00:00
Reckless_Satoshi
6abb84ff5d Add historical api tests 2023-11-20 14:54:04 +00:00
Reckless_Satoshi
dd7534d64a Add order book test 2023-11-20 14:54:04 +00:00
Reckless_Satoshi
515133bb8e Add ticks test 2023-11-20 14:54:04 +00:00
Reckless_Satoshi
b2a130afca Add LN payout test 2023-11-20 14:54:04 +00:00
Reckless_Satoshi
f271d59172 Add pause/unpause tests 2023-11-17 13:02:30 +00:00
Reckless_Satoshi
5674337b32 Add fiat sent/received confirmation tests. Improve API documentation 2023-11-17 13:02:30 +00:00
Reckless_Satoshi
3e0d451e97 Add tests for onchain address, pgp sign verification. Improve Dockerfile 2023-11-17 13:02:30 +00:00
Reckless_Satoshi
79a3df66a2 Add lock escrow tests 2023-11-17 13:02:30 +00:00
Reckless_Satoshi
3a42195bba Fix tests failures when LND node is not used 2023-11-14 13:54:51 +00:00
Reckless_Satoshi
605a37bb87 Add CLN regtest to integration tests 2023-11-14 13:54:51 +00:00
Reckless_Satoshi
ebd0a287c3 Add dev dependencies and regtest test environments 2023-11-14 13:54:51 +00:00
Reckless_Satoshi
b4fe30e733 Add testing against API specs with assertResponse 2023-11-14 13:54:51 +00:00
Reckless_Satoshi
bece7c7d4e Refactor CLN stubs to allow for mocking 2023-11-14 13:54:51 +00:00
Reckless_Satoshi
4efc59d416 Refactor gRPC and mocks. Add coordinator info test. 2023-11-14 13:54:51 +00:00
Reckless_Satoshi
89ae6cd4a6 Add draft LND gRCP mocks 2023-11-14 13:54:51 +00:00
Reckless_Satoshi
4270f2d0a2 Add LND mock up classes 2023-11-14 13:54:51 +00:00
Reckless_Satoshi
8808ee85ae
Add order creation tests 2023-11-06 19:35:35 +00:00
Reckless_Satoshi
051c78ab9b
Add robot creation tests 2023-11-06 14:18:37 +00:00
Reckless_Satoshi
0ef59ad8e8
Fix exclude ARS from blockchain.info 2023-10-29 16:25:12 -07:00
Reckless_Satoshi
1ecd1ec7dc
Fix estimate minning fee on testnet 2023-10-27 09:45:18 -07:00
Reckless_Satoshi
d127d935a7
Fix allow blank on order geolocation 2023-10-24 16:10:36 -07:00
Reckless_Satoshi
54a59872fb
Add django utils tests (#911)
* Add util tests

* Enable coordinator test workflow
2023-10-23 22:48:38 +00:00
Reckless_Satoshi
77783e1502
Add migrations for env decoupling from models 2023-10-11 03:49:11 -07:00
Reckless_Satoshi
46cfa008b1
Update devfund donation pubkey 2023-10-11 02:54:11 -07:00
Reckless_Satoshi
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
KoalaSat
4d45b884cf
Add location to F2F payment option (backend) (#867)
* Add location to F2F payment option

* Fix py linterns

* Include migration

* Revert docker-compose changes

* Remove bond_size from migration

* Rename 0043_order_latitude_order_longitude_alter_order_bond_size.py to 0043_order_latitude_order_longitude.py
2023-10-10 12:47:22 +00:00
Reckless_Satoshi
28be4977e7
Fix order logging on automatic dispute resolution slashed bonds 2023-09-15 02:39:40 -07:00
Reckless_Satoshi
1015ba3433
Fix list out of range on contract formalized order logging 2023-09-14 02:31:42 -07:00
Reckless_Satoshi
4fe69da565
Add option to disable order logging 2023-09-11 09:24:03 -07:00
Reckless_Satoshi
c7a14fbc56
Fix order status change must happen exactly when last sats update on contract finalization 2023-09-11 08:23:11 -07:00
Reckless_Satoshi
1600b58bab
Fix contract finalization logging 2023-09-10 12:16:34 -07:00
Reckless_Satoshi
5d66e56f2a
Improve hodl invoice description 2023-09-08 08:42:04 -07:00
Reckless_Satoshi
19597ca8e5
Add coordinator maintainance notice 2023-09-08 08:33:00 -07:00
Reckless_Satoshi
96a6095dbf
Add migrations for new Order logs and Robot avatar defaults 2023-09-07 02:15:58 -07:00
daywalker90
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
Reckless_Satoshi
4e7963c90d
Fix pretty logs admin for orders with no logs recorded 2023-08-19 11:24:14 -07:00
Reckless_Satoshi
eaca597522
Remove /api/user endpoint from api.urls 2023-08-14 07:38:16 -07:00
Reckless_Satoshi
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
Reckless_Satoshi
ca3f7cb222
Delete user view, session auth and png avatars (#588) 2023-08-14 14:21:12 +00:00
Reckless_Satoshi
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
Reckless_Satoshi
9777a4987f
fix(infoview): 0 if marketticks are none 2023-08-06 08:37:03 -07:00
Reckless_Satoshi
00628413f2
feat(api/db); add hash_id order field (#763) 2023-08-03 09:51:41 +00:00
Felix
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
Reckless_Satoshi
a980c15974
Add object limit to /api/ticks (#747) 2023-07-23 19:27:37 +00:00
Reckless_Satoshi
143ab9ec5d
Add admin action to solve disputes as successful trades (#672) 2023-06-19 20:06:11 +00:00
Reckless_Satoshi
067ba38668
Fix exceptions for no CLN nodes 2023-05-25 04:19:45 -07:00
Reckless_Satoshi
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
Reckless_Satoshi
60c72e4239
Add tracking of old locked invoices to follow-invoices 2023-05-22 03:43:43 -07:00
Reckless_Satoshi
20f4a7b471
Add qualified lnd grpc variables 2023-05-21 15:22:15 -07:00
Reckless_Satoshi
547a7212a0
Do not watch all locked invoices in follow-invoices 2023-05-20 07:52:30 -07:00
Reckless_Satoshi
66f1a68963
Fix flake8 unused imported dep 2023-05-20 04:23:51 -07:00
Reckless_Satoshi
f5f78588c3
Add placeholder commit_sha 2023-05-19 04:45:22 -07:00
Reckless_Satoshi
5303186896
Allow blank order donated field on lnpayment admin edits 2023-05-18 07:27:24 -07:00
Reckless_Satoshi
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
Reckless_Satoshi
0a620901a7
Add keysend devfund donations functionality (#589) 2023-05-16 17:12:15 +00:00
Reckless_Satoshi
73eb4df291
Delete commited proto files 2023-05-15 04:11:27 -07:00
Reckless_Satoshi
7b6ebd0eab
Simplify coordinator updates, automatic migrations and collect statics (#583) 2023-05-15 09:46:59 +00:00
Reckless_Satoshi
b0ffe150c0
Refactor expiry_height into follow_invoices 2023-05-13 08:51:22 -07:00
Reckless_Satoshi
70b6d88321
Improve lookup invoice status updates delay 2023-05-13 08:38:13 -07:00
Reckless_Satoshi
1b347420fe
Fix bug automatic resolutions 2023-05-12 11:29:19 -07:00
Reckless_Satoshi
70740750f5
Fix soft time limits in api tasks 2023-05-12 03:10:14 -07:00
Reckless_Satoshi
0f28990bea
Add new api for external prices (non-tor only) bitpay 2023-05-10 14:05:52 -07:00
Reckless_Satoshi
5728c66cca
Add soft time limits to tasks 2023-05-10 12:07:28 -07:00
Reckless_Satoshi
89acecbc1c
Fix automatic dispute resolution typo 2023-05-09 06:23:59 -07:00
Reckless_Satoshi
899062ae70
Rename repository 2023-05-09 06:07:16 -07:00
Reckless_Satoshi
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
Reckless_Satoshi
af0289c264
Fix new WS middleware for old auth method, improve auth token admin panel 2023-05-07 14:51:17 -07:00
Reckless_Satoshi
8434a256cf
Fix last_login for tokeauth, replace maker/taker_last seen for last_login 2023-05-07 08:06:35 -07:00
Reckless_Satoshi
f2de58ca36
Add hash/preimage or address/txid to trade summary report 2023-05-07 04:11:40 -07:00
Reckless_Satoshi
25f0b0eea5
Fix token auth native (#558)
* Fix token auth on Native

* Fix pre-release action
2023-05-06 13:42:48 +00:00
Reckless_Satoshi
daa1127cfc
Increase max mining fee (#551) 2023-05-05 19:44:18 +00:00
Reckless_Satoshi
811cb4181d
Delete old user rating functionality 2023-05-05 05:40:29 -07:00
Reckless_Satoshi
4d62ea1549
Delete coordinator referral program functionality 2023-05-05 05:32:52 -07:00
Reckless_Satoshi
a10f7f2e21
Add slashed return as rewards when bonded stake is uneven (#538) 2023-05-05 12:07:13 +00:00
Reckless_Satoshi
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