@nexex/api
Version:
support trade on nexex network
15 lines (14 loc) • 531 B
TypeScript
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;
}