5b2e835722
* 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
20 lines
342 B
JavaScript
20 lines
342 B
JavaScript
import { nwcSchema } from '@/lib/validate'
|
|
|
|
export const name = 'nwc'
|
|
|
|
export const fields = [
|
|
{
|
|
name: 'nwcUrl',
|
|
label: 'connection',
|
|
type: 'password'
|
|
}
|
|
]
|
|
|
|
export const card = {
|
|
title: 'NWC',
|
|
subtitle: 'use Nostr Wallet Connect for payments',
|
|
badges: ['send only', 'non-custodialish']
|
|
}
|
|
|
|
export const schema = nwcSchema
|