UNPKG

@syncswap/sdk

Version:

SyncSwap TypeScript SDK for building DeFi applications

14 lines 708 B
import { Contract, ethers, Signer } from "ethers"; import { ContractType } from "./contractTypes"; export default abstract class ContractRegistry { private static contractByAddress; private static contractByName; private static addressByName; static resetContracts(): void; static register(network: string, type: ContractType, name: string, address: string): Promise<void>; static getAddressByName(name: string): string; static getContractByName(name: string): Contract; static hasContract(name: string): boolean; static getContractByAddress(signerOrProvider: ethers.providers.Provider | Signer, address: string): Contract; } //# sourceMappingURL=contractRegistry.d.ts.map