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 | ["AccountId","BalanceOf"] | |
| TicketBought | 4103 | ["AccountId","CallIndex"] |
Name | Type | |
|---|---|---|
| LotteryIndex | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":4} | |
| Lottery | {"origin":"PlainType","plain_type":"pallet_lottery:LotteryConfig","PlainTypeValue":591} | |
| Participants | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["AccountId"],"value":"Tuple:U32bounded_collections:bounded_vec:BoundedVec@593","keys_id":0,"value_id":592}} | |
| TicketsCount | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":4} | |
| Tickets | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U32"],"value":"AccountId","keys_id":4,"value_id":0}} | |
| CallIndices | {"origin":"PlainType","plain_type":"Vec<Tuple:U8U8>","PlainTypeValue":593} |
Name | Type | Value | |
|---|---|---|---|
| PalletId | [U8; 8] | 70792f6c6f74746f | |
| MaxCalls | U32 | 0a000000 | |
| MaxGenerateRandom | U32 | 0a000000 |
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 |