UNPKG

@defi-wonderland/keep3r-v2

Version:

The Keep3r Network is a decentralized network for projects that need external devops, and for external teams to find keeper jobs

19 lines (17 loc) 597 B
import { ERC20ForTest, ERC20ForTest__factory } from '@types'; import { BigNumber } from 'ethers'; import { ethers } from 'hardhat'; export const deploy = async ({ name, symbol, initialAccount, initialAmount, }: { name?: string; symbol?: string; initialAccount: string; initialAmount: BigNumber; }): Promise<ERC20ForTest> => { const erc20MockContract = (await ethers.getContractFactory('contracts/for-test/ERC20ForTest.sol:ERC20ForTest')) as ERC20ForTest__factory; return await erc20MockContract.deploy(name || 'TestToken', symbol || 'TSTT', initialAccount, initialAmount); };