* Add SVG icons for map pins
* Add federation basis and new coordinator form (#793)
* Add new coordinator entry issue form
* Add Federation basis
* Fix eslint errors from F2F and fix languages
* Redo eslint @typescript-eslint/strict-boolean-expressions
* Robot Page working
* Contexts Working
* Garage Working
* CurrentOrder working
* Federation model working
---------
Co-authored-by: Reckless_Satoshi <reckless.satoshi@protonmail.com>
Co-authored-by: Reckless_Satoshi <90936742+Reckless-Satoshi@users.noreply.github.com>
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.
* 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>
* 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>
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.
* 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>
* New payment methods and icons for Russia.
SBP, Tinkoff QR. New icon for Tinkoff.
* Fix to prevent Tinkoff and Tinkoff Qr collision.
"Tinkoff" is "Tinkoff Bank" now. And "Sberbank" is "Sber Bank" (which is true, actually).
* Improve clarity of swap orders
* Add descriptive send/receive amounts for swaps on Maker Page
* Add descriptive send/receive amounts for swaps on OrderDetails
* Collect new phrases
* Small fixes
* Add garage model
* Add robot select to profile
* Replace Robot for Garage init
* Add Garage inners, not re-rendering
* Revert
* Collect new phrases and small fixes
* Small fixes
* Fix unencrypted # hack on Turtle chat
* Small fixes and collect phrases
* Refactor fetchRobot
* Add appcontext
* Robot recovery fixes
* Add usecontext on maker and settings forms
* Add usecontext to booktable
* Add useContext to order page and main dialogs
* Small fixes