@unlock-protocol/hardhat-plugin
Version:
Hardhat Plugin for Unlock Protocol
34 lines • 2.04 kB
TypeScript
import { HardhatRuntimeEnvironment } from 'hardhat/types';
import type { Contract } from 'ethers';
export interface DeployProtocolFunction {
(unlockVersion?: number, lockVersion?: number, confirmations?: number): Promise<{
unlock: Contract;
publicLock: Contract;
}>;
}
export interface DeployAndSetTemplate {
(lockVersion?: number, confirmations?: number): Promise<Contract>;
}
export interface UnlockConfigArgs {
udtAddress?: string | null;
wethAddress?: string | null;
locksmithURI?: string;
chainId?: bigint;
estimatedGasForPurchase?: number;
symbol?: string;
}
export declare function deployUnlock(hre: HardhatRuntimeEnvironment, version?: number, confirmations?: number): Promise<Contract>;
export declare function deployAndSetTemplate(hre: HardhatRuntimeEnvironment, lockVersion?: number, confirmations?: number): Promise<import("ethers").BaseContract & {
deploymentTransaction(): import("ethers").ContractTransactionResponse;
} & Omit<import("ethers").BaseContract, keyof import("ethers").BaseContract>>;
export declare function deployPublicLock(hre: HardhatRuntimeEnvironment, version?: number, confirmations?: number): Promise<import("ethers").BaseContract & {
deploymentTransaction(): import("ethers").ContractTransactionResponse;
} & Omit<import("ethers").BaseContract, keyof import("ethers").BaseContract>>;
export declare function deployProtocol(hre: HardhatRuntimeEnvironment, unlockVersion?: number, lockVersion?: number, confirmations?: number): Promise<{
unlock: Contract;
publicLock: import("ethers").BaseContract & {
deploymentTransaction(): import("ethers").ContractTransactionResponse;
} & Omit<import("ethers").BaseContract, keyof import("ethers").BaseContract>;
}>;
export declare function configUnlock(hre: HardhatRuntimeEnvironment, unlockAddress: string, { udtAddress, wethAddress, locksmithURI, chainId, estimatedGasForPurchase, symbol, }: UnlockConfigArgs): Promise<UnlockConfigArgs>;
//# sourceMappingURL=deployProtocol.d.ts.map