A custom ERC20 token implementation built with Solidity and tested with Foundry.
AbelleToken is an ERC20-compliant token contract that demonstrates best practices for token development. It provides a solid foundation for token-based projects with comprehensive test coverage.
- Name: AbelleToken
- Symbol: AB
- Decimals: 18
- Initial Supply: 1,000,000 tokens
- Standard: ERC20 (OpenZeppelin)
- License: MIT
- Foundry installed on your system
- Solidity ^0.8.0
git clone https://github.com/its-abelle/ABELLE-TOKEN && cd AbelleToken
forge install
forge build
Testing:
Bash
forge test # Execute standard test suite
forge test --gas-report # Analyze gas consumption
forge coverage # Verify test coverage mapping
#Deployment Protocols
Local Environment:
Bash
forge script script/DeployAbelleToken.s.sol --broadcast --rpc-url http://localhost:8545
Live Network (e.g., Sepolia):
Bash
forge script script/DeployAbelleToken.s.sol --broadcast --rpc-url <YOUR_RPC_URL> --private-key <YOUR_PRIVATE_KEY>
System Structure
.
├── src/AbelleToken.sol # Core token contract
├── script/DeployAbelleToken.s.sol # Deployment automation
├── test/AbelleTokenTest.sol # Verification suite
└── foundry.toml # Foundry configuration