Module tickets
Expand description
Winning ticket management API traits.
Structs§
- Channel
Stats - Contains ticket statistics for an incoming channel.
- Ticket
Builder - Builder for the
TicketandVerifiedTicket. - Verified
Ticket - Holds a ticket that has been already verified.
This structure guarantees that
Ticket::get_hash()ofVerifiedTicket::verified_ticket()is always equal toVerifiedTicket::verified_hash
Enums§
- Redemption
Result - Indicates a non-error result of ticket redemption.
Traits§
- Ticket
Factory - Provides API for creating tickets and validating channel stakes inside the packet pipelines.
- Ticket
Management - API for managing winning (redeemable) tickets in incoming channels.
- Ticket
Management Ext - Asynchronous extension trait for
TicketManagementthat adds convenience methods for ticket management.
Type Aliases§
- Channel
Id - Alias for the
Hashrepresenting a channel ID. - Hopr
Balance - Balance denominated in wxHOPR (wrapped xHOPR) tokens.