query

package
v0.0.0-...-4fa03f3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2019 License: MIT Imports: 15 Imported by: 0

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

type Claim

type Claim struct {
	Address string `json:"address"`
	Sig     string `json:"sig"`
}

Claim is the json the claim handler receives

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL