mirror of
https://github.com/luxfhe/example-voting.git
synced 2026-10-30 18:13:10 +00:00
20 lines
483 B
TypeScript
20 lines
483 B
TypeScript
import type { SignerWithAddress } from "@nomicfoundation/hardhat-ethers/dist/src/signer-with-address";
|
|
|
|
import type { Counter } from "../types";
|
|
import type { FheContract } from "../utils/instance";
|
|
|
|
type Fixture<T> = () => Promise<T>;
|
|
|
|
declare module "mocha" {
|
|
export interface Context {
|
|
counter: Counter;
|
|
instance: FheContract;
|
|
loadFixture: <T>(fixture: Fixture<T>) => Promise<T>;
|
|
signers: Signers;
|
|
}
|
|
}
|
|
|
|
export interface Signers {
|
|
admin: SignerWithAddress;
|
|
}
|