Commit Graph

62 Commits

Author SHA1 Message Date
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
80b97f355b
Fix order log html format error 2024-01-30 16:22:57 +00:00
Reckless_Satoshi
fe7a806d9d
Fix mempool url 2024-01-10 15:27:37 +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
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
0ef59ad8e8
Fix exclude ARS from blockchain.info 2023-10-29 16:25:12 -07: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
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
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
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
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
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
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
ac24c310c5
Refactor LNNode, use versioner for LND get_version, refactor macaroon (#432)
* Add Versioner rpc, use versioner for LND get_version, refactor macaroon

* Move LND specific rpc calls from the follow-invoices thread to LNNode

* Move LND specific rpc calls from tasks to LNNode
2023-04-22 18:54:03 +00:00
redphix
4d5c60239f
Conform to pep8 rules (#295)
* Conform to pep8 rules

* Fix some more flake8 linting errors
2022-10-20 20:53:51 +00:00
Lint Action
3d3da78f8a Fix code style issues with Black 2022-10-20 09:56:10 +00:00
Reckless_Satoshi
f5f707bd4e
Add version mismatch detection, refactor GH workflows, draft release.yml, increase prettier scope (#250)
* Refactor GH workflows

* Add version mismatch checker and UpdateClient Dialog

* Fix finalize release workflow

* Increase prettier scope

* Increase prettier coverage, add some static to prettierignore

* Add CodeQL on PR
2022-09-22 15:22:51 -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
Reckless_Satoshi
6f1e865a15
Enable warnings logging to console via envvar 2022-08-01 05:55:43 -07:00
zx9r
f0cde287e1
Clean up and finish new adress validator method (#202)
* Removed coinaddrvalidator dependency

* Return generic "Ivalid address" error message instead of the error returned by bitcoind when validating an address

* Modified messages related to bitcoin addresses validation
2022-08-01 01:03:33 +00:00
merchero
56bc602d34
Compute percentile over orders of the same type (#201) 2022-07-31 19:43:46 +00: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
7d22dbd26d
Fix current commit sha on Docker CI images 2022-07-16 07:01:45 -07:00
satsbaba
41f3df570e
Hotfix for weighted median premium (#180)
* hotfix for empty array handling
2022-07-01 14:48:17 +00:00
Reckless_Satoshi
0866109072
Fix bug on weighted median 2022-06-29 02:41:59 -07:00
satsbaba
f4caa98eef
replaced weighted mean to weighted median
This commit changes the weighted mean to the weighted median for the calculation of the premium displayed on the robosats.
2022-06-25 12:47:35 +02:00
satsbaba
f2f90bd948
replaced weighted mean to weighted median
This commit changes the weighted mean to the weighted median for the calculation of the premium displayed on the robosats.
2022-06-25 12:44:32 +02:00
Reckless_Satoshi
164a960b62
Merge branch 'onchain-buyer-payouts' into main #160 2022-06-17 05:19:59 -07:00
Reckless_Satoshi
2289274251
Improve toggle button onchain/LN, add bad address messages 2022-06-17 04:36:27 -07:00
Reckless_Satoshi
31730e0a05
Exclude BTC swaps from avg premium calculation 2022-06-07 14:05:34 -07:00
Reckless_Satoshi
8d0b518222
Add onchain logics pt1 2022-06-06 10:57:04 -07:00
Reckless_Satoshi
6ce9957694
mend 2022-03-24 17:30:40 -07:00
Reckless_Satoshi
dc5f228fce
Fix percentile computing for ranges, fix limit adjusts by premium 2022-03-24 17:09:55 -07:00
Reckless_Satoshi
f383d20c37
Implement public API non-KYC BTC prices 2022-03-12 03:24:11 -08:00
Reckless_Satoshi
d146f522f3
Add frontend enable telegram button. Torify all requests. 2022-02-21 16:50:25 -08:00
Reckless_Satoshi
df320ea4d0
Add telegram functionality to backend. Messages: welcome and order taken. 2022-02-21 15:41:36 -08:00
Reckless_Satoshi
fc4ccd5281
Re-format all python code 2022-02-17 11:50:10 -08:00
Reckless_Satoshi
1e0bd51f1f
Add BTC (rBTC, wBTC, swaps...). Fix setup guide and env-sample. 2022-02-16 14:02:21 -08:00
Reckless_Satoshi
8fcad56e15
Fix LND version and correct onlion urls 2022-02-12 10:22:05 -08:00
Reckless_Satoshi
d257848940
Add statsfornerds: alternative site, node alias, node id, 1ML link 2022-02-12 05:59:59 -08:00
Reckless_Satoshi
243690899e
Add delay on annoying tooltips. Add more characters to default token. 2022-02-08 08:20:41 -08:00
Reckless_Satoshi
5a677067f7
Record expiry height into lnpayment and admin panel 2022-01-25 06:46:02 -08:00
Reckless_Satoshi
7c0e3a74fa
Fix premium percentile computation 2022-01-19 12:55:24 -08:00
Reckless_Satoshi
980a385528
Premium percentile computing 2022-01-18 10:24:45 -08:00