1

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.

0

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.

| improve this answer | |

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.