RetroReceiver.ts 494 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
/* Imports: External */
import { DeployFunction } from 'hardhat-deploy/dist/types'

const deployFn: DeployFunction = async (hre) => {
  const { deployer } = await hre.getNamedAccounts()

  const { deploy } = await hre.deployments.deterministic('AssetReceiver', {
    salt: hre.ethers.utils.solidityKeccak256(['string'], ['RetroReceiver']),
    from: deployer,
10
    args: [hre.deployConfig.ddd],
11 12 13 14 15 16 17 18 19
    log: true,
  })

  await deploy()
}

deployFn.tags = ['RetroReceiver']

export default deployFn