ticket_manager
Module0xa761…aec3
- Move path
- 0xa761…aec3::ticket_manager
- Functions
- 1413 public, 0 entry
- Structs
- 7
- Friend modules
- None
ticket_manager
Functions14
Structs7
key is an object with an id. store can be kept inside other objects. copy can be duplicated. drop can be thrown away.
- IndividualTicketCreatedcopydrop
ticket_id ID raffle_id ID owner address ticket_number u64 - TICKET_MANAGERdrop
dummy_field bool - Ticketstorekey
id UID raffle_id ID owner address ticket_number u64 purchase_time u64 - TicketBatchstorekey
id UID raffle_id ID owner address start_number u64 quantity u64 purchase_time u64 - TicketBatchCreatedcopydrop
batch_id ID raffle_id ID owner address start_number u64 quantity u64 - TicketManagerstorekey
id UID raffle_id ID creator address ticket_price u64 max_tickets u64 tickets_sold u64 total_value u64 is_active bool participants VecMap<address, u64> proceeds Option<Coin<SUI>> - TicketsPurchasedcopydrop
raffle_id ID buyer address quantity u64 start_number u64 amount_paid u64 purchase_time u64
Constants16
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Slot | Value | Type | Use | Used in |
|---|---|---|---|---|
| 0 | 1 | u64 | Abort code | buy_tickets |
| 1 | 2 | u64 | Abort code | buy_tickets |
| 2 | 3 | u64 | Abort code | create_ticket_manager |
| 3 | 4 | u64 | Abort code | buy_tickets |
| 4 | 6 | u64 | Abort code | extract_proceedssplit_proceedsprocess_refundsdeactivate |
| 5 | 7 | u64 | Abort code | find_ticket_owner |
| 6 | 8 | u64 | Abort code | buy_tickets |
| 7 | "name" // interpreted as UTF8 string | vector<u8> | Value | init |
| 8 | "Raffle Ticket Batch" // interpreted as UTF8 string | vector<u8> | Value | init |
| 9 | "description" // interpreted as UTF8 string | vector<u8> | Value | init |
| 10 | "Batch of {quantity} tickets for raffle {raffle_id}" // interpreted as UTF8 string | vector<u8> | Value | init |
| 11 | "image_url" // interpreted as UTF8 string | vector<u8> | Value | init |
| 12 | "https://sui-raffles.io/ticket-batch-image/{raffle_id}" // interpreted as UTF8 string | vector<u8> | Value | init |
| 13 | "Raffle Ticket #{ticket_number}" // interpreted as UTF8 string | vector<u8> | Value | init |
| 14 | "Ticket for raffle {raffle_id}" // interpreted as UTF8 string | vector<u8> | Value | init |
| 15 | "https://sui-raffles.io/ticket-image/{raffle_id}/{ticket_number}" // interpreted as UTF8 string | vector<u8> | Value | init |