3.0.0 • Published 3 years ago

@withtally/address-helper v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Tiny package for treating Ethereum addresses as types instead of strings in typescript.

Built on top of the ethers.js address helpers.

Usage

import { Address, BadAddressException } from '@withtally/address-helper';

try {
  const address = new Address('0x0000000000000000000000000000000000000000');
} catch (e) {
  if (e instanceof BadAddressException) {
    console.log('Bad address');
  } else {
    throw e;
  }
}
3.0.0

3 years ago

2.0.0

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago