How leid19/lab3-comp5521-2026 works
This is a classroom ERC20 token demo: deploy My Simple Token (MST) to Sepolia, mint tokens to an account, and inspect balances. The contract provides token metadata and owner-only minting; the interaction scripts read and write its on-chain state. Etherscan verification is an optional deployment capability. The README describes a later HTLC exchange lesson, but no HTLC implementation appears in this repository. The graph reflects the sampled scripts and contract; it omits local tests and build configuration.
Main entry points: deploy.js Deploy MST · MySimpleToken.sol MST contract · interact.js Mint tokens · checkBalance.js Check balance
Components 8
Deployment
- Deploy MST
scripts/deploy.js
Token contract
- MST contract
contracts/MySimpleToken.sol
Token operations
- Mint tokens
scripts/interact.js - Check balance
scripts/checkBalance.js
Other components
- Operator
- Sepolia
- Etherscan
- Token recipient
Connections 10
- Operator → Deploy MST: runs
- Deploy MST → MST contract: deploys
- Deploy MST → Sepolia: broadcasts deployment
- Sepolia → MST contract: stores
- Operator → Mint tokens: runs
- Mint tokens → MST contract: reads and mints
- Mint tokens → Token recipient: mints to
- Operator → Check balance: runs
- Check balance → MST contract: reads balance
- Deploy MST → Etherscan: verifies optionally