Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

lotto source realm

Constants 1

Functions 5

func AddNumber

crossing Action
1func AddNumber(cur realm, owner address, number uint64)
source

AddNumber increments the holding once per successful call, including retries. Only the direct admin or operator caller may register a number. Individual ticket identities, issuance times and past round balances are not retained.

func GetNumberCount

Action
1func GetNumberCount(number uint64, owner address) uint64
source

GetNumberCount returns zero when the valid owner has no holding for number.

func ListOwnersByNumber

Action
1func ListOwnersByNumber(number uint64, afterOwner string, limit int) []map[string]string
source

ListOwnersByNumber returns fresh values in ascending address order. A cursor need not be stored. Each row carries the page cursor; an empty cursor or empty list ends pagination. Counts are decimal strings to preserve uint64 precision. Pages reflect current state, not a historical snapshot.

Imports 6

Source Files 7