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 gas2. Deploy Contracts
bash
npm run deploy:sepoliaWait 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:testnetOr use the allocation script:
bash
# Edit scripts/setupAllocations.js with your addresses
npm run setup:allocations -- --network sepolia4. Configure Web App
bash
cd webapp
cp .env.local.example .env.localEdit .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.com5. Start Web App
bash
npm install
npm run devOpen 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: 0andcliffDuration: 0 - Use your deployer address for first test allocation
- Get Sepolia ETH from faucets if needed
- Contract addresses are saved in
deployments/sepolia.json
🔗 Useful Links
- Sepolia Etherscan: https://sepolia.etherscan.io
- Sepolia Faucet: https://sepoliafaucet.com/
- Contract addresses:
deployments/sepolia.json
Ready? Run npm run deploy:sepolia to get started!