Commit Graph

10 Commits

Author SHA1 Message Date
ekzyis 5d03e08514 Remove validate.schema as a trap door 2024-07-17 03:32:00 +02:00
ekzyis 6a5713034b Make clear that message belongs to test
* validate.message was used in tandem with validate.test
* it might be confused as the message if the validation for validate.type failed
* now validate.test can be a function or an object of { test, message } shape which matches Yup.test
2024-07-17 03:31:16 +02:00
ekzyis c8d91bf42d Generate validation schema for CLN 2024-07-17 03:31:16 +02:00
ekzyis 08a5ce1a28 Remove stringTypes 2024-07-17 03:31:16 +02:00
ekzyis 4df0b460c3 Generate validation schema for LnAddr 2024-07-17 02:48:46 +02:00
ekzyis 587bfa34be Generate validation schema for LND 2024-07-17 02:38:04 +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 259ebef971 Fix generateMutation
* remove resolverName property from wallet defs
* move function into lib/wallet
* use function in generateMutation on client to fix wrongly generated mutation
2024-07-16 14:18:57 +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 1ce09051b1 Add autowithdrawal to lightning address 2024-07-07 18:35:56 +02:00