import '@nomicfoundation/hardhat-ethers' import 'hardhat-deploy' import { HardhatRuntimeEnvironment } from 'hardhat/types' import { DeployFunction } from 'hardhat-deploy/types' import { parseEther } from 'ethers' const deployFuc: DeployFunction = async (env: HardhatRuntimeEnvironment) => { const { deployments, ethers } = env const { deploy } = deployments const signers = await ethers.getSigners() const from = await signers[0].getAddress() const depositBaseFee = parseEther('0.001') const depositFeeRate = 100 // 0.01% const finalizeTxGas = 100000 // const depositorWithdrawGas = 200000 const args = [ [ depositBaseFee, depositFeeRate, finalizeTxGas, // depositorWithdrawGas ] ] await deploy('ETHDeliver', { from, args }) } deployFuc.tags = ['ETHDeliver'] export default deployFuc