Commit Graph

1175 Commits

Author SHA1 Message Date
ekzyis 1b6de0bb96 Return null if no wallet was found 2024-07-19 08:20:00 -05:00
keyan a0c1d4f602 make lnc work 2024-07-18 18:56:49 -05:00
ekzyis b777fdcddc Fix wallet.server usage
* I removed wallet.server in a previous commit
* the client couldn't determine which wallet was stored on the server since all server specific fields were set in server.js
* walletType and walletField are now set in index.js
* walletType is now used to determine if a wallet is stored on the server

* also included some formatting changes
2024-07-16 22:08:41 +02:00
ekzyis 5b2e835722 Separate client and server imports by files
* wallets now consist of an index.js, a client.js and a server.js file
* client.js is imported on the client and contains the client portion
* server.js is imported on the server and contains the server porition
* both reexport index.js so everything in index.js can be shared by client and server

* every wallet contains a client.js file since they are all imported on the client to show the cards

* client.js of every wallet is reexported as an array in wallets/client.js
* server.js of every wallet is reexported as an array in wallets/server.js

FIXME: for some reason, worker does not properly import the default export of wallets/server.js
2024-07-16 15:46:44 +02:00
ekzyis 7851366cd5 Put wallets into own folder 2024-07-16 07:54:27 +02:00
ekzyis cba76444dd Move wallets into top level directory wallet/ 2024-07-16 06:09:27 +02:00
ekzyis f01ce79afa Generate resolver name from walletField 2024-07-16 04:08:13 +02:00
ekzyis 03ca84629b Remove React dependency from wallet definitions 2024-07-15 16:23:24 +02:00
ekzyis 7749c14d3b Remove 'tor or clearnet' hint for LN addresses 2024-07-15 14:46:48 +02:00
ekzyis ee1574cf45 Fix leaking relay connections 2024-07-15 13:56:21 +02:00
keyan c767e106a0 merge master 2024-07-12 18:24:31 -05:00
keyan e1d6632445 fix action tooltip container 2024-07-12 17:34:46 -05:00
keyan da65191cd8 refine comment padding 2024-07-12 15:18:13 -05:00
keyan 3f9d509a52 more notification refinement 2024-07-12 10:55:24 -05:00
keyan bc2cb29c41 improve notification header styling 2024-07-12 10:38:47 -05:00
keyan cb6b85345c attempt fix for popovers 2024-07-12 10:15:57 -05:00
keyan 35cf792ff8 refine notifications some 2024-07-12 09:51:03 -05:00
keyan 2e90f02997 more popover leave events 2024-07-11 17:48:57 -05:00
keyan 0aea695d8a higher contrast outline for new notifications 2024-07-11 17:32:28 -05:00
keyan 729aab12eb better component reuse in notifications 2024-07-11 17:29:05 -05:00
keyan 07042c57ca improve UX of notifications 2024-07-11 16:59:07 -05:00
keyan 28c4fa160c fix item spacing 2024-07-11 16:58:55 -05:00
Keyan c6554d3ca7
Referral Rewards (#1262)
* referral rewards

* make referral notifications consistent

* remove plpgsql from earn job

* remove dead code

* remove debug logging
2024-07-10 19:23:05 -05:00
keyan 6cf16d3da7 don't toast on invoice cancellation 2024-07-09 13:10:41 -05:00
keyan 94d9d9513c hide overflow of toasts 2024-07-09 11:46:38 -05:00
keyan e0f91ace41 prevent lnc-web's wasm loading side effects from breaking everything 2024-07-08 16:10:19 -05:00
ekzyis 6e6af40eb9 Toast priority save errors 2024-07-08 13:20:03 +02:00
ekzyis 05c0f8a66e Remove console.log 2024-07-08 13:14:30 +02:00
ekzyis 80756f23a4 Remove TODOs
TODO in components/wallet-logger.js was handled.
I don't see a need for the TODO in lib/wallet.js anymore. This function will only be called with the wallet of type LIGHTNING_ADDRESS anyway.
2024-07-08 13:04:03 +02:00
ekzyis 24bdf0a099 Add example wallet def 2024-07-08 12:58:58 +02:00
ekzyis d9205b6d30 Add link to lnbits.com 2024-07-08 12:56:43 +02:00
ekzyis 7402885998 Use common sort 2024-07-08 11:34:05 +02:00
ekzyis 920478a72c Update LNC code
* remove LNC FIXMEs

Mhh, I guess the TURN server was down or something? It now magically works. Or maybe it only works once per mnemonic?

* also removed the lnc.lnd.lightning.getInfo() call since we don't ask and need permission for this RPC for payments.

* setting a password does not work though. It fails with 'The password provided is not valid' which is triggered at https://github.com/lightninglabs/lnc-web/blob/main/lib/util/credentialStore.ts#L81.
2024-07-08 10:59:04 +02:00
ekzyis 8ea4d0c8a7 Fix duplicate CLN error 2024-07-08 07:59:28 +02:00
ekzyis 459478036f Fix priority ignored when fetching enabled wallet 2024-07-08 05:49:54 +02:00
ekzyis 85464f93b9 Detach wallets and delete logs on logout 2024-07-07 18:35:57 +02:00
ekzyis dddbb53792 Add CLN autowithdrawal 2024-07-07 18:35:57 +02:00
ekzyis ebe741dc92 Add missing hints 2024-07-07 18:35:57 +02:00
ekzyis 7528e5c2b6 Add optional wallet short name for logging 2024-07-07 18:35:57 +02:00
ekzyis 1ce09051b1 Add autowithdrawal to lightning address 2024-07-07 18:35:56 +02:00
ekzyis 12bedae01a Use wallet.createInvoice for autowithdrawals 2024-07-07 18:31:41 +02:00
ekzyis ba00c3d9fa Generate wallet resolver from fields 2024-07-07 18:31:41 +02:00
ekzyis 00f78daadc Generate wallet mutation from fields 2024-07-07 18:31:41 +02:00
ekzyis 48ead97615 Run lnbits url.replace in validate and sendPayment 2024-07-07 18:31:41 +02:00
ekzyis 6463e6eec8 Split arguments into [value,] config, context 2024-07-07 18:31:41 +02:00
ekzyis 0ebe097a70 Fix noisy changes in lib/validate
I moved the schema for lnbits, nwc and lnc out of lib/validate only to put them back in there later.

This commit should make the changeset cleaner by removing noise.
2024-07-07 18:31:41 +02:00
ekzyis 850c534c91 Fix typo 2024-07-07 18:31:41 +02:00
ekzyis 83fd39b035 Fix onCanceled missing 2024-07-07 18:31:41 +02:00
ekzyis 9bbf2056e9 Save dedicated enabled flag for server wallets
* wallet table now contains boolean column 'enabled'
* 'priority' is now a number everywhere
* use consistent order between how autowithdrawals are attempted and server wallets cards
2024-07-07 18:31:41 +02:00
ekzyis 55928ac252 Save order as priority 2024-07-07 18:31:41 +02:00