mirror of
https://github.com/luxfhe/example-ticketing.git
synced 2026-10-30 18:13:12 +00:00
21 lines
507 B
TypeScript
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;
|
|
}
|