This project is a final assignment for the ACM Blockchain Summer Course 2024, designed to deploy a secure ERC20 token on the Ethereum blockchain.
-
TodoToken.sol File
This file contains incomplete code and functions allowing users to design and complete their own tokens. -
MyToken.sol File
This file contains a simple token contract that incorporates cryptographic mechanisms for controlled minting and features a global cooldown to prevent abuse.
- ERC20 Standard Compliance: The token follows the ERC20 standard, ensuring compatibility with existing Ethereum infrastructure and wallets.
- Controlled Minting: Only the contract owner can mint new tokens, with a global cooldown mechanism to prevent frequent minting.
- Cryptographic Proof: A simple proof-of-work (PoW) mechanism validates minting requests.
- Ownership Management: Functions to transfer ownership of the contract.
-
Prerequisites:
- MetaMask extension installed in your browser.
- An Ethereum account with ETH funds for deployment.
-
Clone the Repository:
git clone https://github.com/Mohta3b/ERC-20-Token-Deployment-on-Ethereum-Testnet cd ERC-20-Token-Deployment-on-Ethereum-Testnet
-
Open Remix IDE.
-
Import the Contract:
- Create a new file named
MyToken.sol
in Remix. - Copy and paste the code from
MyToken.sol
into Remix.
- Create a new file named
-
Compile the Contract:
- In the "Solidity Compiler" tab, select the appropriate compiler version.
- Click "Compile MyToken.sol".
-
Deploy the Contract:
- In the "Deploy & Run Transactions" tab, select "Injected Provider - MetaMask" from the Environment dropdown.
- Click "Deploy" and confirm the transaction in MetaMask.
-
Monitor the Token: To monitor transactions and interactions with your token, view your contract on Etherscan by entering your contract address in the search bar.
Note: To view the details and transactions of the token displayed in the image above, you can visit this Etherscan link.
This project is licensed under the GPL License.