Skip to content
This repository was archived by the owner on Feb 9, 2024. It is now read-only.

useink@1.7.2

Choose a tag to compare

@DoubleOTheven DoubleOTheven released this 13 Jun 01:08
· 32 commits to main since this release

New Features

Add formatting helpers

  • Add planckToDecimal -> convert a balance to a decimal
  • Add planckToDecimalFormatted -> convert a balance to a decimal with the token symbol
  • Add decimalToPlanck -> convert a decimal to a planck

Add hooks

  • Add useChainDecimals() -> Get the decimals for a chain. e.g. 12
  • Add useTokenSymbol() -> Get the chain token symbol. e.g. ROC

Add core functions

  • Add chainDecimals() to useink/core -> Get the decimals for a chain. e.g. 12
  • Add chainTokenSymbol() to useink/core -> Get the chain token symbol. e.g. ROC

Feature Improvements

  • txPaymentInfo - use spread operator to avoid the necessity to pass in multiple args

Maintenance

  • Update polkadot-js dependencies