Documentation
¶
Index ¶
Constants ¶
View Source
const ( // AttendeeIDKey is the attribute key for attendee id AttendeeIDKey = "attendee_id" // AddressIDKey is the attribute key for attendee address AddressIDKey = "address_id" // ScanIDKey is the attribute key for scan id ScanIDKey = "scan_id" // BadgeIDKey is the attribute key for badge id BadgeIDKey = "badge_id" // SigKey is the attribute key for the sig SigKey = "sig" )
View Source
const (
//BoardCacheKey is the key for the cached leaderboard
BoardCacheKey = "leaderboard"
)
Variables ¶
This section is empty.
Functions ¶
func ClaimHandler ¶
func ClaimHandler(cliCtx context.CLIContext) http.HandlerFunc
ClaimHandler handles the REST POST to claim the attendee's prizes
func LeaderBoardHandler ¶
func LeaderBoardHandler(cliCtx context.CLIContext, storeName string) http.HandlerFunc
LeaderBoardHandler queries the chain for for the current leader board
func WinningsHandler ¶
func WinningsHandler(cliCtx context.CLIContext, storeName string) http.HandlerFunc
WinningsHandler responds to winning prize queries for which prizes haven't been claimed yet for an attendee
Types ¶
Click to show internal directories.
Click to hide internal directories.