Open ekzyis opened 1 week ago
This replaces all attached wallets with definitions that use a uniform interface.
The wallet definitions export following properties:
name
useWallet
fields
card
WalletCard
validate
schema
sendPayment
createInvoice
Other changes
WebLN
Wallet
useWebLN
Are your changes backwards compatible? Please answer below:
Did you QA this? Could we deploy this straight to production? Please answer below:
For frontend changes: Tested on mobile? Please answer below:
Did you introduce any new environment variables? If so, call them out explicitly here:
For this:
[ ] receiving wallets (server)
I began doing this in #1178 in api/createInvoice
edit: there's no regard for the frontend code though ... purely a backend thing, so maybe not super relevant
Description
This replaces all attached wallets with definitions that use a uniform interface.
The wallet definitions export following properties:
name
: the wallet name. will be used as a wallet identifier across the code (used withuseWallet
etc.)fields
: this defines which fields are required to configure this walletcard
: properties for use withWalletCard
validate
: will be called to validate configuration before saving itschema
: schema for formik validationsendPayment
: for wallets that support sendingcreateInvoice
: for wallets that support receivingOther changes
WebLN
withWallet
:useWebLN
->useWallet
TODO
Screenshots
Additional Context
Checklist
Are your changes backwards compatible? Please answer below:
Did you QA this? Could we deploy this straight to production? Please answer below:
For frontend changes: Tested on mobile? Please answer below:
Did you introduce any new environment variables? If so, call them out explicitly here: