1
0
forked from mico/idle_moloch
idle_moloch/lib/Baal/deploy/002_deploy_tribute.ts
2024-11-01 11:55:27 +01:00

28 lines
815 B
TypeScript

import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { DeployFunction } from 'hardhat-deploy/types';
const deployFn: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
const { deployments, ethers, getChainId, getNamedAccounts, network } = hre;
const { deployer } = await getNamedAccounts();
const chainId = await getChainId();
console.log('\n\nDeploying TributeMinion on network:', network.name);
console.log('Deployer address:', `${chainId}:${deployer}`);
console.log(
'Deployer balance:',
ethers.utils.formatEther(await ethers.provider.getBalance(deployer)),
);
const { deploy } = deployments;
await deploy('TributeMinion', {
contract: 'TributeMinion',
from: deployer,
args: [],
log: true,
});
}
export default deployFn;
deployFn.tags = ['TributeMinion'];