UNPKG

dop-stick

Version:

Source control tooling for versionable-upgradeable smart contracts

26 lines 956 B
import { ethers } from 'ethers'; import { DopStickConfig } from '../types/config'; interface DeploymentResult { address: string; contract: ethers.Contract; gasUsed: ethers.BigNumber; gasPrice: ethers.BigNumber; transactionHash: string; blockNumber: number; } /** * Deploys a contract module * @param moduleName - Name of the module to deploy * @param config - DopStick configuration * @returns Promise resolving to deployment result */ export declare function deployContract(moduleName: string, config: DopStickConfig): Promise<DeploymentResult>; /** * Checks if a contract is already deployed * @param address - Contract address to check * @param provider - Ethers provider * @returns Promise resolving to boolean indicating if contract exists */ export declare function isContractDeployed(address: string, provider: ethers.providers.Provider): Promise<boolean>; export {}; //# sourceMappingURL=deploymentHelpers.d.ts.map