pub fn start_lottery<T: Config>(
    price: <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance,
    length: BlockNumberFor<T>,
    delay: BlockNumberFor<T>,
    repeat: bool
Expand description

Start a lottery using the provided configuration.

This extrinsic must be called by the ManagerOrigin.


  • price: The cost of a single ticket.
  • length: How long the lottery should run for starting at the current block.
  • delay: How long after the lottery end we should wait before picking a winner.
  • repeat: If the lottery should repeat when completed.

Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::start_lottery.