benilla-re systems structs docs

s_lotteryDrawRecords

global · ui

Address
0xb71c48 · 96 bytes, up to 0xb71ca7
Type
uint32_t[24]
Meaning
Holds four draw records of 0x18 bytes: age, stamp, then four numbers
Confidence
verified, proof one
Finding
ui/lottery#query-result

Finding: Query result in ui: the lottery and minigame functions

The handler of opcode 0x335 (0x4c3d50) reads 32-bit words: the vendor value (0xb71df0), then the vendor delay (0xb71bd0), whose zero ends the read. Otherwise the vendor time becomes now plus the delay (0xb71bd4), the draw delay (0xb71bd8) plus now the next draw time (0xb71bdc), two words go to 0xb71be0 and 0xb71be4, unread, then four slots of a money word (0xb71be8, the fourth the jackpot 0xb71bf4), a prize item id (0xb71bf8) and a display id (0xb71c08), then four draw records of 0x18 bytes from 0xb71c48: four numbers into +0x8 to +0x14, an age into +0x0, and +0x4 set to now minus the age. Every path signals LOTTERY_SHOW (543). The 0x337 handler 0x4c3e60 returns 0. Now is 0x429580, in seconds.

The derivation is in the doc.