Skip to content

v0.2.0

Choose a tag to compare

@SpicyPete SpicyPete released this 19 Feb 00:14
· 13 commits to master since this release
d7e2db5

Major changes to internal workings of the library. Can now control amounts independently from Satoshis, should be the base work required to easily add SLP tokens in the near future.

BadgerBase

  • OP_RETURN support
  • Enabling crypto pricing. Can enter an absolute amount of BCH, not just fiat conversions
    • use props ticker and amount to price in BCH.
      • example: <BadgerButton ticker='BCH' amount={0.00000550} to=...
  • New props
    • watchAddress - Confirm if payment comes from any source or anyone
    • isRepeatable - Rest the button to fresh state after a brief period
    • repeatTimeout - Number of milliseconds to reset button to fresh after a repeatable payment
    • ticker - Crypto to price in, currently only supports BCH
    • amount - Amount of given ticker for payment

BadgerButton

  • Rename prop border => showBorder
  • Enable BCH only payments

BadgerBadge

  • Adding QR Code and Payment URI
    • prop showQR default true
    • Uses ButtonQR instead of Button
  • watch payments to address as well as QR
  • Handles BCH only payments
  • New props
    • showBorder
    • showQR

ButtonQR

  • Allow people to pay who don't have Badger installed. Now Badger handles all the payment methods with ease.
  • New component to show a QR code as a URI link, along with button