Releases: badger-cash/badger-components-react
Releases · badger-cash/badger-components-react
v0.10.0 - Updated pricing APIs
- Adds support for wallet API package for multi-wallet support (https://developer.bitcoin.com/wallet-api/)
- Updating price conversion API endpoint to be consistent with other bitcoin.com prices
v0.8.0 - Success Trigger Improvement
- Success function triggers when non Badger invoices are paid
v0.7.0 - Invoice watching
- 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
- 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
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 whencoinType
is set toSLP
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.
- Renamed as many coins/tokens can share a ticker.
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 SLPcoinSymbol
- Symbol assigned to the coin or tokencoinName
- 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
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
andamount
to price in BCH.- example:
<BadgerButton ticker='BCH' amount={0.00000550} to=...
- example:
- use props
- New props
watchAddress
- Confirm if payment comes from any source or anyoneisRepeatable
- Rest the button tofresh
state after a brief periodrepeatTimeout
- Number of milliseconds to reset button tofresh
after a repeatable paymentticker
- Crypto to price in, currently only supports BCHamount
- Amount of given ticker for payment
BadgerButton
- Rename prop
border
=>showBorder
- Enable BCH only payments
BadgerBadge
- Adding QR Code and Payment URI
- prop
showQR
defaulttrue
- Uses
ButtonQR
instead ofButton
- prop
- 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
v0.1.2 - Static Rendering
- Library should now work with static rendering
- Removing an external dependency.
v0.1.0 - Badger Base Components
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