Prerequisites
- Node (v20 or higher)
- A wallet with some test tokens (more on this later)
Create a Wallet and get your Gaia API Keys
- Visit the Gaia Homepage and click
Launch App
. - Click
Connect
, then install the MetaMask extension. - Once installed, create your wallet and securely store your recovery keys.
- Finally, navigate to Gaia API Keys to generate your API keys.
Create you Celo Private Key
- Install the [Celo CLI](npm install -g @celo/celocli)
- Make sure you’re working on Celo Sepolia testnet
- Create an account and store it well formatted in an .env file
- Copy the account address to your clipboard
- Head to the faucet to get some money and paste your account address there
- Verify you got money successfully
- Register your account
.env
file, you will find your Celo private key
Clone the Celo Meme Token Generator
- Clone this repository
- Install dependencies
- Create a .env file:
- Compile the contract
- Deploy your token
- Generate a token name
- Check your balance
- Deploy the contract
- Provide you with the contract address and transaction details
Understanding the Code
The project uses three main components- Token Generation
(tokenGenerator.js)
- Generates creative token names
- Uses AI with a fallback to random generation
- Configures initial token supply
- Contract Deployment
(tokenDeployer.sol)
- Uses viem to interact with Celo
- Handles gas estimation and transaction monitoring
- Provides deployment status updates
- Smart Contract
(tokenDeployer.js)
- Standard ERC20 implementation
- Built with OpenZeppelin for security
- Deployable to Celo Sepolia testnet