Skip to main content

Module zap

Module zap 

Source
Expand description

The zap view for Avestruz: how much to zap a note, and then the invoice to pay, as a QR code for a wallet to scan.

Constantsยง

QR_RADIUS ๐Ÿ”’
QR_SIZE ๐Ÿ”’
How wide the QR code is shown, the white around it included.
ZAP_PRESETS ๐Ÿ”’
The amounts offered, in sats: Vegaโ€™s.

Functionsยง

invoice_code ๐Ÿ”’
The invoice as a QR code, on white whatever the theme, or word that there is none to show.
small_print ๐Ÿ”’
A line of small print, wrapped.