Giter VIP home page Giter VIP logo

genesis-reveal-app's Introduction

Everdragons2 Genesis Reveal App

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.

Introduction

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 flow

The entire set of metadata is in input/metadata-EDV2.json.

Stage 1

  1. Chose a future block on the Polygon blockchain.
  2. Include the selected block in the file input/snapshot.json and update this repo.
  3. Commit and push to GitHub.

Stage 2

  1. When the block is mined, include its hash in the snapshot file
  2. Shuffle the metadata. The script will generate a file genesisMetadata.json with for the first 600 JSON files in the output folder, and a file remainingMetadata.json, in input. This file will be the base for the remaining 9401 dragons that will be mined later.
  3. Commit and push the update to GitHub.

Stage 3

  1. Upload all the metadata to S3.
  2. Deploy EVD2 (i.e., E2GT Version 2).
  3. Airdrop the tokens to the owners.
  4. 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.

A future block

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.

Shuffle the data

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.

Validate an image

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

Credits

Author: Francesco Sullo

License

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.