Forked from https://github.com/superpowerlabs/genesis-blueprints-reveal-app
A simple tool to shuffle the metadata of the Everdragons2 Genesis tokens and reveal the final ones.
Everdragons2 is a collection of 10,001 dragons randomly generated from hundreds of assets. They inherit the legacy of Everdragons, minted in 2018 as the first bridgeable cross-chain non-fungible token (NFT) for gaming.
The Genesis Everdragons2 is a subset of 600 dragons with DAO voting power and many other extra features. They are also the first 600 Everdragons2 to be mined.
The entire set of metadata is in input/metadata-EDV2.json
.
Stage 1
- Chose a future block on the Polygon blockchain.
- Include the selected block in the file
input/snapshot.json
and update this repo. - Commit and push to GitHub.
Stage 2
- When the block is mined, include its hash in the snapshot file
- Shuffle the metadata. The script will generate a file
genesisMetadata.json
with for the first 600 JSON files in theoutput
folder, and a fileremainingMetadata.json
, ininput
. This file will be the base for the remaining 9401 dragons that will be mined later. - Commit and push the update to GitHub.
Stage 3
- Upload all the metadata to S3.
- Deploy EVD2 (i.e., E2GT Version 2).
- Airdrop the tokens to the owners.
- Burn the tokens in the V1 contract.
Notice that immediately after the shuffle, the images are not available, but they have been hashed with SHA256 and later it is possible to verify that the image is the one that was supposed to be. When the images will be uploaded to Arweave, the metadata will be updated with the url of the images, and split in 600 JSON files that will be uploaded to Arweave as well.
The chosen block is 28204804 on the Polygon PoS blockchain. The estimated target date is Wednesday, May 11, 2022, at 12:03:35 GMT-0700 (PDT).
When the block is mined this repo will be updated and ready to shuffle the metadata.
If you are part of the team, or a winner of Goldmine, ARG, etc. to check which are the tokenIDs of your NFTs, search you address in src/whitelist.json
.
First off, install the dependencies
npm i -g pnpm
pnpm install
When the hash is updated in input/snapshot.json
, run
./shuffler.js --shuffle
It will generate a JSON file with 600 metadata.
Anyone can run it again to confirm that the repo is unchanged and the shuffling is fair.
The image of any dragon has been hashed with SHA256. After than the images will be updated to Arweave, anyone can verify that the image is the one that was supposed to be. Any metadata file has the attribute imageSha256
. To verify it, download the image, for example, Sooloth.png
which has the hash 3416c69d047fe6287a74046c3959b5768fe53917b1fb2ca05599d75e13dc4cdc
and launch:
./shuffler.js --verify Soolhoth.png 3416c69d047fe6287a74046c3959b5768fe53917b1fb2ca05599d75e13dc4cdc
Author: Francesco Sullo
MIT