Admin page for managing the CreatorEventManager contract including fee settings, address verification, and event moderation.
Required Features
-
Contract Configuration Section:
- Display current creation fee (in XLM)
- Input to update creation fee
- "Update Fee" button (calls contract admin function)
- Display treasury address
- Input to update treasury address
- "Update Treasury" button
- Display AI agent address
- Input to update AI agent address
- "Update AI Agent" button
-
Fee Management:
- Display total fees collected (in XLM)
- Display treasury balance
- Withdraw fees form:
- Recipient address input
- Amount input (with "Max" button)
- "Withdraw Fees" button
-
Address Verification:
- Search/input for wallet address
- "Verify Address" button
- "Unverify Address" button
- Batch verify section:
- Textarea for multiple addresses (one per line)
- "Batch Verify" button
- List of verified addresses with unverify option
-
Event Moderation:
- List all events with filters (Active, Cancelled, Completed)
- For each event:
- Event details
- Creator address
- Status
- "Cancel Event" button (admin override)
- "View Details" link
-
Platform Statistics:
- Total events created
- Total participants (unique)
- Total matches created
- Total predictions submitted
- Total fees collected
- Active events count
-
Emergency Controls:
- "Pause Contract" button (emergency stop)
- "Unpause Contract" button
- Current pause status indicator
-
Authorization:
- Only admin wallet addresses can access
- Redirect non-admins to dashboard
Files to create:
frontend/src/app/(admin)/creator-events/page.tsx
frontend/src/component/admin/CreatorEventsConfig.tsx
frontend/src/component/admin/FeeManagement.tsx
frontend/src/component/admin/AddressVerification.tsx
frontend/src/component/admin/EventModeration.tsx
Admin page for managing the CreatorEventManager contract including fee settings, address verification, and event moderation.
Required Features
Contract Configuration Section:
Fee Management:
Address Verification:
Event Moderation:
Platform Statistics:
Emergency Controls:
Authorization:
Files to create:
frontend/src/app/(admin)/creator-events/page.tsxfrontend/src/component/admin/CreatorEventsConfig.tsxfrontend/src/component/admin/FeeManagement.tsxfrontend/src/component/admin/AddressVerification.tsxfrontend/src/component/admin/EventModeration.tsx