import { HardhatRuntimeEnvironment } from "hardhat/types" ; import { DeployFunction } from "hardhat-deploy/types" ; import { Deployment } from "hardhat-deploy/dist/types" ; const func = async function ( hre ) { const { deployments , getNamedAccounts , getChainId } = hre ; const { execute , log , read , all } = deployments ; const { deployer } = await getNamedAccounts ( ) ; const allContracts = await all ( ) ; const arr = [ ] ; console . table ( Object . keys ( allContracts ) . map ( ( k ) => [ k , allContracts [ k ] . address ] ) ) ; } ; export default func ;