subscan
Runtime Modules / Lottery
Spec Version:
Call Functions
Name
Lookup
Parameters
buy_ticket41001
set_calls41011
start_lottery41024
stop_repeat4103-
Events
Name
Lookup
Attributes
LotteryStarted4100
CallsUpdated4101
Winner4102
TicketBought4103
Storage Functions
Name
Type
LotteryIndex{"origin":"PlainType","plain_type":"u32"}
Lottery{"origin":"PlainType","plain_type":"LotteryConfig<BlockNumber, BalanceOf>"}
Participants{"origin":"MapType","map_type":{"key":"AccountId","hasher":"Twox64Concat","value":"(u32, Vec<CallIndex>)","isLinked":false}}
TicketsCount{"origin":"PlainType","plain_type":"u32"}
Tickets{"origin":"MapType","map_type":{"key":"u32","hasher":"Twox64Concat","value":"AccountId","isLinked":false}}
CallIndices{"origin":"PlainType","plain_type":"Vec<CallIndex>"}
Constants
Name
Type
Value
PalletIdPalletId0x70792f6c6f74746f
MaxCallsu320x0a000000
MaxGenerateRandomu320x0a000000
Error Types
Name
Docs
NotConfigured A lottery has not been configured.
InProgress A lottery is already in progress.
AlreadyEnded A lottery has already ended.
InvalidCall The call is not valid for an open lottery.
AlreadyParticipating You are already participating in the lottery with this call.
TooManyCalls Too many calls for a single lottery.
EncodingFailed Failed to encode calls