types.ts 410 B

1234567891011121314151617
  1. import type { SignerWithAddress } from "@nomicfoundation/hardhat-ethers/dist/src/signer-with-address";
  2. import type { Greeter } from "../types/Greeter";
  3. type Fixture<T> = () => Promise<T>;
  4. declare module "mocha" {
  5. export interface Context {
  6. greeter: Greeter;
  7. loadFixture: <T>(fixture: Fixture<T>) => Promise<T>;
  8. signers: Signers;
  9. }
  10. }
  11. export interface Signers {
  12. admin: SignerWithAddress;
  13. }