https://github.com/marekyggdrasil/provably-fair-lotteries
https://github.com/marekyggdrasil/provably-fair-lotteries
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/marekyggdrasil/provably-fair-lotteries
- Owner: marekyggdrasil
- License: mit
- Created: 2021-12-19T02:24:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-31T14:20:22.000Z (over 3 years ago)
- Last Synced: 2025-01-17T20:44:21.004Z (4 months ago)
- Language: Python
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.com/marekyggdrasil/provably-fair-lotteries)
# provably-fair-lotteries
## How to run the lottery?
To run lottery named `grinventions-giveaway-1` for `12` tickets distributed and seed hash `00003f009fa5b002fb32efde6f7924409a3a745f79fcfcfa2e5221489710b893` from [block 1,532,392](https://grinexplorer.net/block/00003f009fa5b002fb32efde6f7924409a3a745f79fcfcfa2e5221489710b893) do
```sh
python draw.py 12 grinventions-giveaway-1 00003f009fa5b002fb32efde6f7924409a3a745f79fcfcfa2e5221489710b893
```and that will give you
```
lottery name : grinventions-giveaway-1
tickets count: 12
seed hash : 00003f009fa5b002fb32efde6f7924409a3a745f79fcfcfa2e5221489710b893
seed int : 434826832662083618074763177596269117349512691366460603804297690115782803Tickets
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]Shuffled
[12, 5, 8, 9, 6, 11, 1, 4, 3, 7, 2, 10]
```### Compatibility
Lottery result will be the same if run under the following Python versions
```
3.4, 3.5, 3.6, 3.7, 3.8, 3.9
```## Current lotteries
1. Get 5 GRIN by joining the [QA proposal for GRIN](https://area51.stackexchange.com/proposals/126325/grin). We have 25 lottery tickets available. Join the Telegram group of [Grinventors](https://t.me/grinventors) to get a lottery ticket. GRIN blockchain block will be used as the seed. Lottery block number will be announced at least 1440 blocks ahead which is 24h after last ticket is claimed.
2. Get a [free Anteater Corp. NFT](https://opensea.io/collection/anteaters-corp). We have 25 lottery tickets available. Join the Telegram group of [Anteaters Corp. Coffee Break](https://t.me/anteaterscorplobby) to get a lottery ticket. GRIN blockchain block will be used as the seed. Lottery block number will be announced at least 1440 block ahead which as 24h after last ticket is claimed.## Past lotteries
TODO