import { Interface } from "ethers"; import { MinimalContract } from "../MinimalContract.js"; import { CatchClassError } from "../../utils/index.js"; import type { BaseInstance, Instance } from "../../../types/adapter.js"; import type { OverridesAndLibs, OverridesAndName } from "../../../types/deployer.js"; @CatchClassError export abstract class Adapter { public constructor() {} public abstract fromInstance(instance: Instance, parameters: OverridesAndName): Promise; public abstract toInstance( instance: BaseInstance, address: string, parameters: OverridesAndLibs, ): Promise; public abstract getInterface(instance: BaseInstance): Interface; public abstract getRawBytecode(instance: Instance): string; public abstract getContractName(instance: BaseInstance, parameters: OverridesAndName): string; }