Describes the structure and purpose of the LottoPool struct, including its fields. Function Documentation:
Detailed comments explain the purpose, parameters, behavior, and usage example.
Describes how users can deposit SUI into the LottoPool, including parameter details and an example.
Provides details on how to withdraw a specified amount of SUI from the LottoPool and send it to a winner, with example usage.
sui client publish --gas-budget 20000000 ./sources/sui_lotto.move
sui client call --function create_lotto --module sui_lotto --package $PACKAGE_ID --gas-budget 200000000
export PACKAGE_ID=<package_id>
sui client ptb --move-call $PACKAGE_ID::sui_lotto::participate_lotto '<coin_address>' '<lotto_pool>'
sui client ptb --move-call $PACKAGE_ID::sui_lotto::send_to_winner 1 @<lotto_pool> --assign s --transfer-objects [s] @<to_address>