Files
hardhat-template/test/types.ts

17 lines
419 B
TypeScript

import type { SignerWithAddress } from "@nomiclabs/hardhat-ethers/dist/src/signer-with-address";
import type { Fixture } from "ethereum-waffle";
import type { Greeter } from "../src/types/Greeter";
declare module "mocha" {
export interface Context {
greeter: Greeter;
loadFixture: <T>(fixture: Fixture<T>) => Promise<T>;
signers: Signers;
}
}
export interface Signers {
admin: SignerWithAddress;
}