Skip to content

v0.3.0 - SLP Tokens

Choose a tag to compare

@SpicyPete SpicyPete released this 25 Feb 18:23
· 11 commits to master since this release
81bbfac

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.