@alexangelj/web3-units

v0.1.0
Simple utility package extending ethers.js for better Web3 units
web3 ethers.js solidity ethereum typescript javascript bignumber dapp

Simple Web3 Units

This packagage includes several classes which extend ethers.js with clearer ways to convert between unit types. Not sure which to use for values from smart contract calls? BigNumbers? BigNumberishes? Strings? Numbers? BNs? Simple, just use the Wei class. Which has properties to easily convert to any of those types!

npm i @alexangelj/web3-units

Metadata

  • MIT
  • >=12
  • Alex Angel
  • released 7/6/2021

Downloads

Maintainers