Skip to content

[Frontend] — ENHANCEMENT: Add Admin Creator Events Management at /admin/creator-events #885

@Olowodarey

Description

@Olowodarey

Admin page for managing the CreatorEventManager contract including fee settings, address verification, and event moderation.

Required Features

  1. 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
  2. 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
  3. 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
  4. 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
  5. Platform Statistics:

    • Total events created
    • Total participants (unique)
    • Total matches created
    • Total predictions submitted
    • Total fees collected
    • Active events count
  6. Emergency Controls:

    • "Pause Contract" button (emergency stop)
    • "Unpause Contract" button
    • Current pause status indicator
  7. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions