Is there a library for Ethereum types, for tests written in TypeScript?

For example, an address type would be better to use instead of a generic string for Ethereum accounts.


I realised that ethers.js contains many useful types. For instance, this is how you would use the Contract type:

import { Contract } from "ethers";

I haven't yet found an address type, but it should somewhere in there.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.