This repository provides the means to recreate the lottery process by running the scripts provided.
- Generate a random seed from the contract that have been used for the APA Gals whitelisting before (https://snowtrace.io/tx/0x453d962e2bc8455ea0624a11b5e2e131080703525519c1c161d1b11c1874e5bd)
- Take a snapshot of APA and APA Gal holders at the same block (17393489)
- Filter the holders by the number of NFT's held:
- APA Gals: People with 2 or more APA Gals qualify.
- APA : People with 4 or more APA qualify.
- Use the random seed with sha256 to generate a psuedo-random sequence to pick 10 people from APA Gals holders and 51 people (against 1 duplicate) from APA holders.
- Duplicates are not allowed.
- Get node on your machine
npm install
node getContenders.js
python3 python/main.py
-> creates the winner.txt