Commit Graph

652 Commits

Author SHA1 Message Date
Reckless_Satoshi
e1ea7289b0
Fix tradebox phrase to be swap/fiat ambivalent 2023-05-26 05:44:54 -07:00
Reckless_Satoshi
42d8bf8b8e
Small style fixes, add sinpe as payment method 2023-05-26 04:56:43 -07:00
Reckless_Satoshi
2a06eeb02f
Disable maker submit button on bad payment methods field 2023-05-26 04:38:39 -07:00
João Leal
9a1007775f
Fix bug with negative premium textfield (#614)
Fixing the type handlePremiumChange function to handle the discount to the right type (React.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>)

Using the correct type of handlePremiumChange function, then deconstructing the "value" var from the event.target

Using Number(value) in declaration of "newPremium", instead of using multiplication with number and string

To not affect another methods using "premium" var, I used isNaN func to make a check and set the initial value of "premium" var to zero (if is NaN) or newPremium (when valid number is entered)

The fix in the bug is the line "premium: isNaN(newPremium) || value === '' ? '' : premium," in setMaker. That makes the "premium" var to be set to zero when the input is empty or not a number, allowing the user to input the "-" (minus sign) and not entering 0 as before.
2023-05-26 10:32:22 +00:00
Reckless_Satoshi
fccd49b3b3
Post CLN small fixes 2023-05-23 06:10:06 -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
+shyfire131
c9b70dc10d
Add support for multiline chat (#595)
* Support newlines for sender

- add multiline prop
- default behavior is not to submit the form when enter is hit, so listen for keypresses and trigger a synthetic button click when enter is hit
- however shift+enter is reserved for newlines, so we also check for those

* Support newlines for receiver

If decrypted message containes newlines, split and render on multiple lines

* Also add newline support for turtle mode senders

* Styling adjustment for send button

* Implement styling feedback

---------

Co-authored-by: +shyfire131 <shyfire131@shyfire131.net>
2023-05-21 20:25:12 +00:00
Reckless_Satoshi
0797a7d1ef
Fix robosats on blixt's react-native-webview (#594) 2023-05-18 13:29:49 +00:00
João Leal
8a04474934
Add switch Amount Exact/Range (#577)
Created new state var amountRangeEnabled to control the new switch when advanced options is enabled.

Created memo var makerHasAmountRange to control boolean state of amount exact/range switch using maker.advancedOptions and amountRangeEnabled.

Used makerHasAmountRange instead of maker.advancedOptions when testing if maker is  using amount range or exact amount (changeds places: handleCreateOrder, disableSubmit, amountToString in SummaryText, and in the Amount fields).

Change the default value of amountRageEnabled

Changed the default value of state var "amountRageEnabled" to true, and removed unnecessary use of the method "setAmountRangeEnabled" when chaging between advanced and default options.

Fix style of switch Exact/Range Amount

Fixing the style of the div of the "Exact/Range Amount" Switch removing the unecessary "width" and "height" props and adding a negative marginTop to reduce the gap between buy/sell buttons and the amount input commented in the PR, and added a padding bottom to the label of the amount (exact) to not hide the switch.

Inverting the position of the icon to match the style of the "Advanced Options" Switch.

Fixing the title from tooltip of the switch (the order of the titles was inversed and the text of the Exact Amount was wrong).

Define style of Exact/Range Amount Switch

Last change in the style of the new Exact/Range Amount Switch, following the review recommendations.
2023-05-18 11:38:23 +00:00
+shyfire131
3bd7ade298
Fix lnproxy support and add lnproxy relays workflow (#586)
* Use new lnproxy API

- Use POST instead of GET, so create and send a body parameter
- Path is /spec/ instead of /api/, and list of relays from lnproxy will contain /spec already, so path parameter for ApiClient.post() is an empty string

* add lnproxy sync workflow

* Use new lnproxy JSON structure

* Remove virtualenv

doing this so that the “scripts” subfolder in .github/workflows can be added

* Move workflow script to subfolder

* Add translation support

Locale strings not added yet

* Simplify coordinator updates, automatic migrations and collect statics (#583)

* Delete commited proto files

* Run sync workflow weekly instead of hourly

* Tweak display name for relays

* Update sync script to be append-only

* Use new naming convention for relays

* Fix bitcoinNetwork hydration

* PR Feedback

- Change hook deps from settings.network to settings
- routing_msat param updates for lnproxy API

* Actually set host in settings

* Updated parsing of LnProxy response

---------

Co-authored-by: +shyfire131 <shyfire131@shyfire131.net>
Co-authored-by: Reckless_Satoshi <90936742+Reckless-Satoshi@users.noreply.github.com>
Co-authored-by: Reckless_Satoshi <reckless.satoshi@protonmail.com>
2023-05-18 11:14:11 +00: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
1e39f32eb5
Fix usenavigate PRO (#571)
* Simplify and optimize nodeapp

* Add pro frontend

* Fix PRO errors
2023-05-12 12:51:52 +00:00
Reckless_Satoshi
eeb0094162
Small style fixes and new payment method 2023-05-12 03:01:17 -07:00
Reckless_Satoshi
2092a33f88
Simplify and optimize nodeapp (#565)
* Simplify and optimize nodeapp

* Add pro frontend
2023-05-11 16:22:01 +00:00
Dirty
ba529349b3
"Qiwi" Payment Method (#564)
Add Qiwi Payment Method (Russia)
2023-05-11 09:54:33 +00:00
Reckless_Satoshi
13e79df7c9
Decrease payment icons size, increase sharpness 2023-05-10 14:51:14 -07:00
Reckless_Satoshi
a97abff1e7
Small UI fixes 2023-05-09 15:30:06 -07:00
Reckless_Satoshi
899062ae70
Rename repository 2023-05-09 06:07:16 -07:00
Reckless_Satoshi
fa7b4676a9
Add new payment methods 2023-05-08 17:57:16 -07:00
Reckless_Satoshi
0d180ee7c9
Small fixes, fix reconnecting websockets, fix rewards webln 2023-05-08 17:37:23 -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
2293a8922d
Small fixes chat 2023-05-07 11:52:31 -07:00
Reckless_Satoshi
8ae18f8b2a
Small fixes, increase WS reconnection delay 2023-05-07 10:11:52 -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
3c78299dfc
Fix color depth/list button after MUI bump 2023-05-06 06:43:50 -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
7e5c9bcb70
Small fixes 2023-05-05 10:19:45 -07:00
Reckless_Satoshi
298ce130f7
Add switch for light QR codes on dark theme 2023-05-05 06:42:20 -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
Reckless_Satoshi
0477885998
Add maker summary to collected phrases 2023-05-02 03:54:18 -07:00
Reckless_Satoshi
8035f67515
Enable Japanese on Android app 2023-05-02 03:08:27 -07:00
Reckless_Satoshi
dacb9e9fa6
Disable CSRF checks 2023-05-01 12:12:01 -07:00
Reckless_Satoshi
a1f0a85646
Small fixes 2023-05-01 10:35:55 -07:00
Reckless_Satoshi
23a4f08be6
Remove typo 2023-05-01 03:39:46 -07:00
Reckless_Satoshi
fcd6e25073
Enable Japanese translation 2023-04-29 07:42:45 -07:00
Reckless_Satoshi
0e17121999
Fix routing to order on bookpage floating maker form 2023-04-29 07:14:23 -07:00
Reckless_Satoshi
c813da1b2e
Small book optimizations (#462) 2023-04-28 10:02:29 +00:00
Reckless_Satoshi
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
Reckless_Satoshi
f5ae7aab34
Remove animations (#460)
* Remove animations

* Disable background animation on avatar load
2023-04-27 19:06:03 +00:00
Reckless_Satoshi
275a68a7f0
Small fixes. Click through laoding overlay, take amount calc with no api/info. 2023-04-27 09:04:37 -07:00
Reckless_Satoshi
a0627a2028
Fix sats conversion on taker helper text for swaps 2023-04-27 04:26:07 -07:00
Reckless_Satoshi
91bbc4c9f5
Fix blank route and loading spinner on order page change 2023-04-27 02:57:52 -07:00
Reckless_Satoshi
09fb3cb3a1
Fix update matches when payment method changes 2023-04-26 05:12:49 -07:00
Reckless_Satoshi
edb8c8b3ff
Use premium to filter matches (#459) 2023-04-26 12:18:54 +00:00
Reckless_Satoshi
4f2ef09c6f
Simplify routing (#458)
* Fix payment methods as icons memo

* Simplify pages / router

* Load current order on robotfetch
2023-04-26 12:10:21 +00:00
Reckless_Satoshi
db5548ecca
Fix payment methods as icons memo 2023-04-26 04:47:26 -07:00
Reckless_Satoshi
e878299ae8
Add light weight webp avatars (#457)
* Add generate webp avatars, also small size

* Use new avatars in frontend
2023-04-25 18:40:46 +00:00