A Hardhat project for deploying the SEQICO ICO smart contract and SEQ token.
This project contains:
- SEQICO.sol: The main ICO contract allowing token purchases with ETH, USDT, and USDC
- SEQToken.sol: The ERC20 token contract
- Deployment scripts: Two deployment scripts with different configurations
- Buy SEQ tokens with ETH, USDT, or USDC
- Configurable pricing for each payment method
- Owner-only functions for token management and fund withdrawal
- Automatic ETH refunds for overpayments
- Event logging for all purchases
- Standard ERC20 token
- Initial distribution: 10% to owner, 90% to ICO contract
- 500,000 total supply
- Install dependencies:
npm install
- Compile contracts:
npx hardhat compile
- Deploy contracts:
# Deploy with main script
npx hardhat run scripts/deploy.js
# Deploy with alternative script
npx hardhat run scripts/deploy-DE.js
buyWithETH(uint256 tokenAmount)
: Purchase tokens with ETHbuyWithUSDT(uint256 tokenAmount)
: Purchase tokens with USDTbuyWithUSDC(uint256 tokenAmount)
: Purchase tokens with USDCsetSEQToken(address _seqToken)
: Update SEQ token address (owner only)withdrawETH(address payable recipient)
: Withdraw collected ETH (owner only)withdrawERC20(address token, address recipient)
: Withdraw ERC20 tokens (owner only)
The deployment scripts include configurable parameters:
- Owner address
- USDT/USDC contract addresses
- Token pricing for ETH, USDT, and USDC
- Total supply (500,000 SEQ tokens)
MIT