Files

21 lines
507 B
TypeScript

import type { SignerWithAddress } from "@nomicfoundation/hardhat-ethers/dist/src/signer-with-address";
import type { Ticket } from "../types";
import type { FheContract } from "../utils/instance";
type Fixture<T> = () => Promise<T>;
declare module "mocha" {
export interface Context {
ticket: Ticket;
instance: FheContract;
loadFixture: <T>(fixture: Fixture<T>) => Promise<T>;
signers: Signers;
}
}
export interface Signers {
admin: SignerWithAddress;
user: SignerWithAddress;
}