import { HardhatRuntimeEnvironment } from "hardhat/types" ; import { DeployFunction } from "hardhat-deploy/types" ; const func = async function ( hre ) { const { deployments , getNamedAccounts , getChainId } = hre ; const { deploy , get } = deployments ; const { libraryDeployer } = await getNamedAccounts ( ) ; await deploy ( "SwapFlashLoan" , { from : libraryDeployer , log : true , libraries : { SwapUtils : ( await get ( "SwapUtils" ) ) . address , AmplificationUtils : ( await get ( "AmplificationUtils" ) ) . address , } , skipIfAlreadyDeployed : true , } ) ; } ; export default func ; func . tags = [ "SwapFlashLoan" ] ; func . dependencies = [ "AmplificationUtils" , "SwapUtils" ] ;