Name | Lookup | Parameters | |
|---|---|---|---|
| buy_ticket | 4100 | 1 | |
| set_calls | 4101 | 1 | |
| start_lottery | 4102 | 4 | |
| stop_repeat | 4103 | - |
Name | Lookup | Attributes | |
|---|---|---|---|
| LotteryStarted | 4100 | ||
| CallsUpdated | 4101 | ||
| Winner | 4102 | ||
| TicketBought | 4103 |
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>"} |
Name | Type | Value | |
|---|---|---|---|
| PalletId | PalletId | 0x70792f6c6f74746f | |
| MaxCalls | u32 | 0x0a000000 |
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 |