UNPKG

@nexex/api

Version:
15 lines (14 loc) 531 B
import { Artifact } from '@nexex/types'; import { Contract } from 'ethers'; import { Provider } from 'ethers/providers'; export declare abstract class BaseContract { protected eth: Provider; protected network: string; protected addressIfExists: string; protected _contract: Contract; constructor(eth: Provider, network: string, addressIfExists?: string); getContractAddress(): string; readonly contract: Contract; protected getAbiDefinition(): any; protected abstract getArtifact(): Artifact; }