FlowArcadeNft
ChatGPT said: MyToken is a clean, secure ERC-20 smart contract built in Solidity and deployed on the Flow EVM Testnet. It demonstrates how to create and manage digital assets using familiar Ethereum
视频
描述
🧾 Contract Description — MyToken.sol (Flow EVM Testnet)
Contract Address - 0xb96F31bc07777f1f48De16533225f0964951E8f1
Overview
MyToken is a custom ERC-20 token smart contract written in Solidity (v0.8.19) and designed for deployment on the Flow EVM Testnet.
It follows OpenZeppelin’s secure and audited standards, ensuring both reliability and compatibility across all EVM environments.
This contract introduces a clean and minimal token architecture suitable for testnet experimentation, learning, and production-ready deployments with minor adjustments.
✨ Key Features
🧩 ERC-20 Standard: Fully compliant with the ERC-20 interface for token transfers, balances, and allowances.
🔐 Ownership Control: The deployer automatically becomes the owner and can mint or burn tokens.
⚡ Mint Function: The owner can mint new tokens to any address — useful for airdrops or supply adjustments.
🔥 Burn Function: Any holder can burn their own tokens, and the owner can also burn tokens from other accounts (with allowance).
🧱 Initial Supply: A specified initial supply is automatically minted to the deployer’s wallet upon contract creation.
🌐 Flow EVM Compatible: Fully operational on Flow’s EVM Testnet (chainId: 545) — deployable via Hardhat, Remix, or Foundry.
🔧 Technical Details
Language: Solidity
^0.8.19Frameworks/Libraries: OpenZeppelin ERC20, Ownable
Network: Flow EVM Testnet
RPC:
https://testnet.evm.nodes.onflow.orgChain ID:
545Symbol:
FLOW
🧠 Contract Structure
Constructor:
Initializes tokenname,symbol, andinitialSupply, minting all tokens to the deployer.constructor(string memory name, string memory symbol, uint256 initialSupply)Public Functions:
mint(address to, uint256 amount)— Mint tokens (only owner).burn(uint256 amount)— Burn tokens from caller.burnFrom(address from, uint256 amount)— Burn tokens from another account (only owner).
📜 Example Use Cases
💰 Learning & Testing: Perfect for developers exploring Flow’s EVM layer and Solidity fundamentals.
🎁 Airdrop & Rewards: Use the mint function to distribute test tokens during hackathons or dApp testing.
🧪 Integration Testing: Ideal for testing wallets, exchanges, and smart contracts that handle ERC-20s.
🚀 Prototype Launch: Can be extended for DeFi, DAO, or NFT projects as the native token.
🧩 Deployment Summary
Deployer receives the initial token supply.
Owner (deployer) can mint additional tokens or burn existing ones.
Compatible with MetaMask, Hardhat, and Remix on the Flow EVM Testnet.
🔒 Security Notes
Uses OpenZeppelin’s secure libraries — protecting against overflow/underflow bugs.
Ownership-restricted minting prevents unauthorized token creation.
Easily extendable with
AccessControlorPausablefor production-grade use.
本次黑客松进展
Had a grt experience and fun during the hackathon.