Skip to content

sonnyquinn24/scripts-deploy.js

Repository files navigation

SEQICO Smart Contract Deployment

A Hardhat project for deploying the SEQICO ICO smart contract and SEQ token.

Overview

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

Features

SEQICO Contract

  • 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

SEQToken Contract

  • Standard ERC20 token
  • Initial distribution: 10% to owner, 90% to ICO contract
  • 500,000 total supply

Setup

  1. Install dependencies:
npm install
  1. Compile contracts:
npx hardhat compile
  1. Deploy contracts:
# Deploy with main script
npx hardhat run scripts/deploy.js

# Deploy with alternative script  
npx hardhat run scripts/deploy-DE.js

Contract Functions

SEQICO Contract

  • buyWithETH(uint256 tokenAmount): Purchase tokens with ETH
  • buyWithUSDT(uint256 tokenAmount): Purchase tokens with USDT
  • buyWithUSDC(uint256 tokenAmount): Purchase tokens with USDC
  • setSEQToken(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)

Configuration

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)

License

MIT

About

Deployment

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •