Skip to content

Releases: badger-cash/badger-components-react

v0.10.0 - Updated pricing APIs

10 Mar 16:11
Compare
Choose a tag to compare

v0.8.0 - Success Trigger Improvement

17 Jan 17:10
Compare
Choose a tag to compare
  • Success function triggers when non Badger invoices are paid

v0.7.0 - Invoice watching

18 Nov 18:00
Compare
Choose a tag to compare
  • Basic BIP70 invoice support
  • Added invoice timer for BIP 70 invoices
  • Added status animations for BIP 70 invoices (paid, expired), checked via websocket (support for pay.bitcoin.com BIP70 invoices only)
  • If paymentRequestUrl is passed to BadgerButton or BadgerBadge, countdown timer will display automatically

v0.5.0 - Updates and minor fixes

26 Jul 15:45
084ebd6
Compare
Choose a tag to compare
  • Updating a lot of packages so technical debt doesn't accumulate
  • Using storybook v5 for development
  • Fixing some minor math error and using BigNumber throughout for math operations

v0.3.0 - SLP Tokens

25 Feb 18:23
81bbfac
Compare
Choose a tag to compare

SLP support added 🎉

BadgerBase (HOC)

  • Added SLP support to BadgerBase and all components which use this HOC
  • Amounts of coins/tokens show as many decimals as needed rather than the most possible
  • new props
    • tokenId - ID of SLP token when coinType is set to SLP
    • stepControlled - Step of payment passed into component. Useful for when the payment is tracked and validated from a backend.
  • changed props
    • ticker => coinType
      • Renamed as many coins/tokens can share a ticker. coinType denotes the coin or token protocol. BCH, SLP supported currently, with others potentially in the future.
    • showQR - Will only show a QR code if the transaction and options can be encoded in BIP44 URI's
  • New props passed to wrapped components
    • coinDecimals - Number of decimals the coin or token support. 8 for BCH, variable for SLP
    • coinSymbol - Symbol assigned to the coin or token
    • coinName - Name assigned to the coin or token

PriceDisplay

New component PriceDisplay contains all the logic to display amounts in fiat, BCH, and SLP tokens.
Used in both BadgerButton and BadgerBadge to display the price information. Useful for custom Badger integrations, letting the developers focus on building the app, not formatting prices.

v0.2.0

19 Feb 00:14
d7e2db5
Compare
Choose a tag to compare

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

v0.1.2 - Static Rendering

04 Feb 18:44
9d16175
Compare
Choose a tag to compare

v0.1.2 - Static Rendering

  • Library should now work with static rendering
  • Removing an external dependency.

v0.1.0 - Badger Base Components

30 Jan 23:25
26ddb76
Compare
Choose a tag to compare

Summary

  • BadgerBase - Higher Order Component to contain all the Badger required logic and interactions
  • BadgerButton - Simple ready-to-use button using BadgerBase
  • BadgerBadge - Simple ready-to-use badge