|
| 1 | +# Production Deployment Status |
| 2 | + |
| 3 | +**Last Updated**: November 9, 2025 |
| 4 | + |
| 5 | +## ✅ Completed Steps |
| 6 | + |
| 7 | +### 1. Smart Contracts Deployed to Moonbeam ✅ |
| 8 | + |
| 9 | +All contracts successfully deployed and verified: |
| 10 | + |
| 11 | +| Contract | Address | Status | |
| 12 | +| ----------------- | -------------------------------------------------------------------- | --------------------------------- | |
| 13 | +| SchemaRegistry | `0xD680d4F3852A527BedbF12fB261F6922dfD98e28` | ✅ Deployed | |
| 14 | +| EAS | `0xd3cC2cfEb2904b465b0743460e38FeD0C1Ed1c75` | ✅ Deployed | |
| 15 | +| FeeGate | `0x1b79e8a759f06720E5a45105D29a707E51c44918` | ✅ Deployed & Verified (Sourcify) | |
| 16 | +| CubidTrust Schema | `0x1b219d056f55ec3a19488c61f9d6afac696ab273cd615bfeaed122253bf1ad55` | ✅ Registered | |
| 17 | + |
| 18 | +**Total Cost**: ~0.379 GLMR |
| 19 | + |
| 20 | +**Verification**: |
| 21 | + |
| 22 | +- FeeGate verified on Sourcify: ✅ |
| 23 | +- View on Moonscan: https://moonscan.io/address/0x1b79e8a759f06720E5a45105D29a707E51c44918#code |
| 24 | + |
| 25 | +### 2. Frontend Configuration Updated ✅ |
| 26 | + |
| 27 | +Updated `frontend/.env.local` with production addresses: |
| 28 | + |
| 29 | +```env |
| 30 | +NEXT_PUBLIC_SCHEMA_REGISTRY=0xD680d4F3852A527BedbF12fB261F6922dfD98e28 |
| 31 | +NEXT_PUBLIC_EAS_ADDR=0xd3cC2cfEb2904b465b0743460e38FeD0C1Ed1c75 |
| 32 | +NEXT_PUBLIC_FEEGATE_ADDR=0x1b79e8a759f06720E5a45105D29a707E51c44918 |
| 33 | +NEXT_PUBLIC_SCHEMA_UID=0x1b219d056f55ec3a19488c61f9d6afac696ab273cd615bfeaed122253bf1ad55 |
| 34 | +NEXT_PUBLIC_CHAIN_ID=1284 |
| 35 | +``` |
| 36 | + |
| 37 | +**Build Status**: ✅ Successful |
| 38 | +**Test Status**: ✅ 17/17 tests passing |
| 39 | + |
| 40 | +### 3. Indexer Configuration Updated ✅ |
| 41 | + |
| 42 | +Created `indexer/.env` with production addresses: |
| 43 | + |
| 44 | +```env |
| 45 | +REGISTRY_ADDR=0xD680d4F3852A527BedbF12fB261F6922dfD98e28 |
| 46 | +EAS_ADDR=0xd3cC2cfEb2904b465b0743460e38FeD0C1Ed1c75 |
| 47 | +SCHEMA_UID=0x1b219d056f55ec3a19488c61f9d6afac696ab273cd615bfeaed122253bf1ad55 |
| 48 | +FEEGATE_ADDR=0x1b79e8a759f06720E5a45105D29a707E51c44918 |
| 49 | +MOONBEAM_RPC=https://rpc.api.moonbeam.network |
| 50 | +``` |
| 51 | + |
| 52 | +**Build Status**: ✅ Successful |
| 53 | +**Test Status**: ✅ 21/21 tests passing |
| 54 | + |
| 55 | +### 4. Contract Verification ✅ |
| 56 | + |
| 57 | +FeeGate contract verified on Sourcify (decentralized verification). |
| 58 | + |
| 59 | +## 📋 Next Steps (Remaining) |
| 60 | + |
| 61 | +### 5. Deploy Indexer to Production ⏳ |
| 62 | + |
| 63 | +**Options**: |
| 64 | + |
| 65 | +- **Fly.io** (Recommended): Docker-based deployment with PostgreSQL |
| 66 | +- **Render**: Alternative cloud platform |
| 67 | +- **Railway**: Another option |
| 68 | + |
| 69 | +**Requirements**: |
| 70 | + |
| 71 | +- Docker image built from `indexer/Dockerfile` |
| 72 | +- Environment variables set in platform |
| 73 | +- PostgreSQL database provisioned |
| 74 | +- Health check endpoint: `/health` |
| 75 | + |
| 76 | +**Commands for Fly.io**: |
| 77 | + |
| 78 | +```bash |
| 79 | +cd indexer |
| 80 | +fly launch --no-deploy |
| 81 | +fly secrets set \ |
| 82 | + DATABASE_URL="postgres://..." \ |
| 83 | + REGISTRY_ADDR="0xD680d4F3852A527BedbF12fB261F6922dfD98e28" \ |
| 84 | + EAS_ADDR="0xd3cC2cfEb2904b465b0743460e38FeD0C1Ed1c75" \ |
| 85 | + SCHEMA_UID="0x1b219d056f55ec3a19488c61f9d6afac696ab273cd615bfeaed122253bf1ad55" \ |
| 86 | + FEEGATE_ADDR="0x1b79e8a759f06720E5a45105D29a707E51c44918" \ |
| 87 | + MOONBEAM_RPC="https://rpc.api.moonbeam.network" \ |
| 88 | + PRIVATE_KEY_RELAYER="0x..." \ |
| 89 | + SUPABASE_URL="https://bgppeedfgmybkjbulckr.supabase.co" \ |
| 90 | + SUPABASE_SERVICE_ROLE_KEY="..." \ |
| 91 | + SUPABASE_JWT_SECRET="..." |
| 92 | +fly deploy |
| 93 | +``` |
| 94 | + |
| 95 | +### 6. Deploy Frontend to Vercel ⏳ |
| 96 | + |
| 97 | +**Requirements**: |
| 98 | + |
| 99 | +- Vercel account connected to GitHub |
| 100 | +- Environment variables configured in Vercel dashboard |
| 101 | +- Production domain configured |
| 102 | + |
| 103 | +**Environment Variables for Vercel**: |
| 104 | + |
| 105 | +``` |
| 106 | +NEXT_PUBLIC_SCHEMA_REGISTRY=0xD680d4F3852A527BedbF12fB261F6922dfD98e28 |
| 107 | +NEXT_PUBLIC_EAS_ADDR=0xd3cC2cfEb2904b465b0743460e38FeD0C1Ed1c75 |
| 108 | +NEXT_PUBLIC_FEEGATE_ADDR=0x1b79e8a759f06720E5a45105D29a707E51c44918 |
| 109 | +NEXT_PUBLIC_SCHEMA_UID=0x1b219d056f55ec3a19488c61f9d6afac696ab273cd615bfeaed122253bf1ad55 |
| 110 | +NEXT_PUBLIC_CHAIN_ID=1284 |
| 111 | +NEXT_PUBLIC_INDEXER_URL=https://your-indexer.fly.dev |
| 112 | +NEXT_PUBLIC_SUPABASE_URL=https://bgppeedfgmybkjbulckr.supabase.co |
| 113 | +NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOi... |
| 114 | +``` |
| 115 | + |
| 116 | +**Deployment Commands**: |
| 117 | + |
| 118 | +```bash |
| 119 | +# Using Vercel CLI |
| 120 | +cd frontend |
| 121 | +vercel --prod |
| 122 | + |
| 123 | +# Or connect repository in Vercel dashboard |
| 124 | +# https://vercel.com/new |
| 125 | +``` |
| 126 | + |
| 127 | +### 7. End-to-End Testing ⏳ |
| 128 | + |
| 129 | +Once indexer and frontend are deployed: |
| 130 | + |
| 131 | +**Test Flow**: |
| 132 | + |
| 133 | +1. Visit production frontend URL |
| 134 | +2. Sign in with email (Supabase auth) |
| 135 | +3. Complete new user onboarding (Cubid verification) |
| 136 | +4. Create attestation by vouching for someone |
| 137 | +5. Scan QR code to verify attestation |
| 138 | +6. Check results page shows trust levels |
| 139 | + |
| 140 | +**Verification**: |
| 141 | + |
| 142 | +- Check Moonscan for attestation transactions |
| 143 | +- Verify indexer logs show event processing |
| 144 | +- Confirm Supabase database has attestation records |
| 145 | +- Test wallet connection on Moonbeam network |
| 146 | + |
| 147 | +## 🔒 Security Notes |
| 148 | + |
| 149 | +**Private Keys in Use**: |
| 150 | + |
| 151 | +- ✅ Deployer: `0x50fDb6B1aF56DfE55cB484030C7b3b8787ff5f68` (FeeGate admin) |
| 152 | +- ✅ Relayer: `0xA006F855B7c44c2ad8456BFF8398B3f8619E8D39` (Meta-transactions) |
| 153 | + |
| 154 | +**Admin Functions Available**: |
| 155 | + |
| 156 | +- `setLifetimeFee(uint256)` - Change attestation fee (deployer only) |
| 157 | +- `withdraw()` - Withdraw accumulated fees (deployer only) |
| 158 | + |
| 159 | +**Current Fee**: 100 GLMR (charged on 3rd attestation per issuer) |
| 160 | + |
| 161 | +## 📊 Test Summary |
| 162 | + |
| 163 | +| Component | Tests | Status | |
| 164 | +| --------- | --------- | -------------- | |
| 165 | +| Contracts | 15/15 | ✅ All passing | |
| 166 | +| Frontend | 17/17 | ✅ All passing | |
| 167 | +| Indexer | 21/21 | ✅ All passing | |
| 168 | +| **Total** | **53/53** | ✅ **100%** | |
| 169 | + |
| 170 | +## 📚 Documentation |
| 171 | + |
| 172 | +- Contract deployment details: `contracts/MOONBEAM_DEPLOYMENT.md` |
| 173 | +- Wallet troubleshooting: `docs/WALLET_TROUBLESHOOTING.md` |
| 174 | +- Project README: `README.md` |
| 175 | + |
| 176 | +## 🎯 Production Readiness Checklist |
| 177 | + |
| 178 | +- [x] Smart contracts deployed to Moonbeam |
| 179 | +- [x] Contracts verified (Sourcify) |
| 180 | +- [x] Frontend configured with production addresses |
| 181 | +- [x] Indexer configured with production addresses |
| 182 | +- [x] All tests passing (53/53) |
| 183 | +- [x] Environment variables documented |
| 184 | +- [ ] Indexer deployed to cloud platform |
| 185 | +- [ ] Frontend deployed to Vercel |
| 186 | +- [ ] End-to-end testing completed |
| 187 | +- [ ] Production monitoring setup |
| 188 | +- [ ] Documentation finalized |
| 189 | + |
| 190 | +**Status**: Ready for cloud deployment (Steps 5-7) |
0 commit comments