Skip to content

[CT-08] Scaffold event_ticketing contract — define Event and Ticket types #772

@yusuftomilola

Description

@yusuftomilola

Overview

Create the initial scaffolding for the event_ticketing Soroban contract inside contracts/sandbox/event_ticketing/. Follow the same structure as existing contracts.

Acceptance Criteria

  • Cargo.toml created with correct Soroban SDK dependency
  • src/types.rs defines Event (id, name, capacity, ticket_price, start_time, end_time, status), Ticket (id, event_id, owner, purchased_at, status), EventStatus, TicketStatus enums
  • src/errors.rs defines: AdminNotSet, AlreadyInitialized, Unauthorized, EventNotFound, TicketNotFound, EventSoldOut, EventNotActive, InvalidTimeRange, InvalidPrice, TicketNotTransferable
  • DataKey enum covers: Admin, PaymentToken, Event(String), EventList, Ticket(String), EventTickets(String), OwnerTickets(Address)
  • initialize is stubbed
  • Code compiles with cargo build

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions