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 whencoinTypeis set toSLPstepControlled- 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.
coinTypedenotes the coin or token protocol.BCH,SLPsupported 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.