Skip to content

Quick Start - Testnet Deployment

🚀 Deploy CR8 Claim Portal to Sepolia Testnet

1. Check Prerequisites

bash
# Make sure you have .env file with:
# - PRIVATE_KEY (your wallet private key)
# - SEPOLIA_RPC_URL (Sepolia RPC endpoint)
# - At least 0.1 Sepolia ETH for gas

2. Deploy Contracts

bash
npm run deploy:sepolia

Wait for deployment - This takes 2-5 minutes. Save the contract addresses!

3. Set Up Allocations

Quick setup with test allocation:

bash
# Edit scripts/testnetSetup.js and add your allocations
# Then run:
npm run setup:testnet

Or use the allocation script:

bash
# Edit scripts/setupAllocations.js with your addresses
npm run setup:allocations -- --network sepolia

4. Configure Web App

bash
cd webapp
cp .env.local.example .env.local

Edit .env.local with addresses from deployments/sepolia.json:

env
NEXT_PUBLIC_TOKEN_VESTING_ADDRESS=0x... # From deployments/sepolia.json
NEXT_PUBLIC_CR8_TOKEN_ADDRESS=0x...     # From deployments/sepolia.json
NEXT_PUBLIC_CHAIN_ID=11155111
NEXT_PUBLIC_RPC_URL=https://ethereum-sepolia-rpc.publicnode.com

5. Start Web App

bash
npm install
npm run dev

Open localhost:3000 and test!

✅ Test Checklist

  • [ ] Contracts deployed successfully
  • [ ] Allocations set up
  • [ ] Webapp configured
  • [ ] Can connect wallet
  • [ ] Allocation displays correctly
  • [ ] Can claim tokens (if unlocked)
  • [ ] Transaction appears on Etherscan

📝 Notes

  • For immediate testing: Set allocations with vestingDuration: 0 and cliffDuration: 0
  • Use your deployer address for first test allocation
  • Get Sepolia ETH from faucets if needed
  • Contract addresses are saved in deployments/sepolia.json

Ready? Run npm run deploy:sepolia to get started!

CR8 Platform Documentation