2024-10-23 12:22:32 -04:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
pragma solidity >=0.8.19 <0.9.0;
|
|
|
|
|
|
|
|
|
|
import { BaseScript } from "../script/Base.s.sol";
|
|
|
|
|
import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
|
2024-11-01 16:22:15 -04:00
|
|
|
import { ERC20Permit } from "@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol";
|
2024-10-23 12:22:32 -04:00
|
|
|
|
2024-11-01 16:22:15 -04:00
|
|
|
contract TestToken is ERC20, ERC20Permit {
|
|
|
|
|
constructor() ERC20("TestToken", "TTT") ERC20Permit("TestToken") { }
|
2024-10-23 12:22:32 -04:00
|
|
|
|
|
|
|
|
function mint(address to, uint256 amount) public {
|
|
|
|
|
_mint(to, amount);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
contract TestTokenFactory is BaseScript {
|
|
|
|
|
function run() public broadcast returns (address) {
|
|
|
|
|
return address(new TestToken());
|
|
|
|
|
}
|
|
|
|
|
}
|