cosmos-for / colottery

This is a game about Staking - Lottery, where anyone can stake any asset to earn profits and, on top of that, have a chance of unexpected rewards, all while enjoying the fun. The most important thing is to have joy and happiness!
Apache License 2.0
1 stars 0 forks source link

What shoud a lottery smart contract do? #1

Open lshoo opened 1 year ago

lshoo commented 1 year ago

A lottery smart contract should perform several key functions to ensure the fairness and transparency of the lottery process. Here are some of the things a lottery smart contract should do:

It's important to note that the specific implementation of a lottery smart contract may vary depending on the requirements and design choices. However, these functions generally form the core features of a lottery smart contract, ensuring the integrity and reliability of the lottery process on the blockchain.


from chatgpt 3.5

lshoo commented 1 year ago

A lottery smart contract should perform several key functions to manage the lottery game fairly and transparently. Below are the essential tasks a lottery smart contract should handle:

Overall, a well-designed and secure lottery smart contract ensures that the lottery game is conducted fairly, transparently, and without any centralized control. It should instill trust among participants and provide a straightforward, enjoyable experience for all players


from other chatpgt 3.5

lshoo commented 1 year ago
lshoo commented 1 year ago

Design:

Definition: A Lottery is a programmable asset, an alternative CW721 smart contract. Lottery is a contract that can hold prizes, where the initial prize is the money from users buying tickets (later, sponsorship or other rewards may be considered).

Lottery categorization by periods: Hourly, Daily, Weekly, Monthly, Yearly.

Lifecycle: Lotteries are automatically created by a platform or DAO contract. Lotteries can be purchased until the deadline. After the deadline, the lottery is drawn, and once claimed by the winners, it can be traded as a proof of ownership, akin to a typical NFT.

Actions: Buy, Draw, Send, QueryPrize.

lshoo commented 1 year ago

Lottery is also a NFT contract,the owner can use the standard cw721 functions. When a user buy a ticket of the Lottery,user will get a nft ticket

postmeback commented 1 year ago

Hi @lshoo , I am a rust & blockchain beginner. Would like to help you on this project. Let me know, how can I approach !

lshoo commented 1 year ago

Hi @lshoo , I am a rust & blockchain beginner. Would like to help you on this project. Let me know, how can I approach !

Thank you for your interest in this project, and welcome to submit a pull request (PR). How do you plan to get started? Have you worked on CosmWasm-related code before?

postmeback commented 1 year ago

No, I have not.

lshoo commented 1 year ago

No, I have not.

How would you like to begin, and how can I assist you?

postmeback commented 1 year ago

No, I have not.

How would you like to begin, and how can I assist you?

I really don't know. maybe, documentation, small issues which I can fix using chatgpt.

My Discord: arka.poddar, I would like connect with you