import { HardhatRuntimeEnvironment } from "hardhat/types" ; import { DeployFunction } from "hardhat-deploy/types" ; import { ethers , upgrades } from "hardhat" ; import { ProxyWalletFactory__factory } from "../../../../../typechain" ; const func = async function ( hre ) { console . log ( ">> Deploying a ProxyWalletFactory contract" ) ; const ProxyWalletFactory = ( await ethers . getContractFactory ( "ProxyWalletFactory" , ( await ethers . getSigners ( ) ) [ 0 ] ) ) as ProxyWalletFactory__factory ; const proxyWalletFactory = await ProxyWalletFactory . deploy ( ) ; await proxyWalletFactory . deployed ( ) ; console . log ( `>> Deployed at ${ proxyWalletFactory . address }` ) ; const tx = await proxyWalletFactory . deployTransaction . wait ( ) ; console . log ( `>> Deploy block ${ tx . blockNumber }` ) ; } ; export default func ; func . tags = [ "ProxyWalletFactory" ] ;