Commit Graph

77 Commits

Author SHA1 Message Date
koalasat
a6c2130846
Testing 2024-08-07 22:43:46 +02: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
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
5e58f0c8ce
Change default max_order_size 2024-01-09 14:37:00 +00:00
Reckless_Satoshi
b85a3d655a Add cancel tests and api limits 2023-11-20 14:54:04 +00:00
Reckless_Satoshi
b4fe30e733 Add testing against API specs with assertResponse 2023-11-14 13:54:51 +00:00
Reckless_Satoshi
051c78ab9b
Add robot creation tests 2023-11-06 14:18:37 +00: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
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
Reckless_Satoshi
4fe69da565
Add option to disable order logging 2023-09-11 09:24:03 -07:00
Reckless_Satoshi
19597ca8e5
Add coordinator maintainance notice 2023-09-08 08:33:00 -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
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
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
0a620901a7
Add keysend devfund donations functionality (#589) 2023-05-16 17:12:15 +00:00
Reckless_Satoshi
7b6ebd0eab
Simplify coordinator updates, automatic migrations and collect statics (#583) 2023-05-15 09:46:59 +00:00
Reckless_Satoshi
0f28990bea
Add new api for external prices (non-tor only) bitpay 2023-05-10 14:05:52 -07:00
Reckless_Satoshi
4d62ea1549
Delete coordinator referral program functionality 2023-05-05 05:32:52 -07: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
Reckless_Satoshi
b9aaf9f1bc
Add permissioned payouts mode debugging envvar 2023-04-25 03:13:28 -07:00
Reckless_Satoshi
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
Reckless_Satoshi
7fdbebb2aa
Add envvars for target_conf 2023-03-18 03:39:37 -07:00
Reckless_Satoshi
82c8f2280b
Add MAX_SWAP_AMOUNT envvar (#389) 2023-03-14 19:54:31 +00:00
Reckless_Satoshi
ef55207812
Add envvar for spend_unconfirmed 2023-03-10 04:52:33 -08:00
Reckless_Satoshi
588691c4c8
Add new payment methods and rename posgres_db envvar 2022-08-09 02:44:29 -07:00
Reckless_Satoshi
5281176e3c
Add use_tor boolean to envvars 2022-08-08 08:58:06 -07:00
Reckless_Satoshi
5ed4245298
Add tor proxy setting to envvars 2022-08-03 14:21:02 -07:00
zx9r
3ae6087a87
Add bitcoin RPC methods for onchain address validation (#198)
* Added params to connect to bitcoin core daemon. Needed by api.utils.validate_onchain_address()

* Fixes issue#194

* Modified BITCOIND_RPCUSER and BITCOIND_RPCPASSWORD to default development environment

* Modified BITCOIND_RPCURL port number to default development environment
2022-07-31 14:35:12 +00:00
Reckless_Satoshi
8423896285
Tight CLTV expiry dynamically 2022-07-21 06:19:47 -07:00
Reckless_Satoshi
03e4bbc1a5
Create django.yml 2022-07-13 13:28:24 -07:00
Reckless_Satoshi
b76b333413
Fix clean onchain_payment, also deletes 'created' objects. Fix rewards timeout 2022-07-10 04:04:27 -07:00
Reckless_Satoshi
4dff7efbb7
Raise max amount to 3M Sats. Fix testnet/platform alternative site. Bump LND. 2022-07-10 03:54:00 -07:00
Reckless_Satoshi
65f781af43
functional, but chat does not send messages (it does receive) 2022-06-26 15:43:57 -07:00
Reckless_Satoshi
e8fb090f18
Raise max trade size to 2.2m. Update send/receive icon. 2022-06-18 08:30:57 -07:00
Reckless_Satoshi
164a960b62
Merge branch 'onchain-buyer-payouts' into main #160 2022-06-17 05:19:59 -07:00
Reckless_Satoshi
efed6b3c0a
Pay buyer onchain-tx 2022-06-16 08:31:30 -07:00
Reckless_Satoshi
b1d68a39f7
Add onchain logics pt3 2022-06-09 10:41:21 -07:00
Reckless_Satoshi
9da33b60e6
Lower time between retries to 1min. Disable ResetMC. Increase timeout. 2022-06-09 03:56:17 -07:00
Reckless_Satoshi
cf82a4d6ae
Add onchain logics pt2 2022-06-06 13:37:51 -07:00
Reckless_Satoshi
f538d26355
Create Balance model and log task 2022-06-06 02:32:39 -07:00
Reckless_Satoshi
4ac3618fd7
Add routing timeout to .env 2022-06-05 09:15:40 -07:00
Reckless_Satoshi
f20a7d5636
Raise max to 1.5m, update docs and fix links 2022-06-04 15:13:58 -07:00
Reckless_Satoshi
7623d30670
Add new PGP keys validation on backend. Raise default bond size to 3% and minimum to 2% 2022-06-01 16:49:27 -07:00
Reckless_Satoshi
d31bd63edc
Add maker selects fidelity bond size 2022-03-18 15:09:38 -07:00
Reckless_Satoshi
a36f23b572
Add maker selects public duration 2022-03-18 14:21:13 -07:00
Reckless_Satoshi
5c5e7918e8
Add datetime picker for public order expiration 2022-03-15 13:40:54 -07:00
Reckless_Satoshi
ce25a6b3c7
Reward robots for counterpart slashed bonds 2022-03-07 13:46:52 -08:00
Reckless_Satoshi
4677f73720
Increase max trade limit to 800K Sats 2022-03-07 09:04:29 -08:00
Reckless_Satoshi
87365b4b8b
Add envvar for reward routing fee limit 2022-03-06 10:10:05 -08:00
Reckless_Satoshi
4ee6778e11
Implement referral attributes and logics 2022-03-05 10:45:42 -08:00