Skip to content

An implementation for MerkleTree proofs for NFT whitelists, which is supposed to be run on Google Cloud Functions

Notifications You must be signed in to change notification settings

unordered-set/raytai-merkletree-back

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RayTai Merkle Tree Proof generator for Google Functions

This repo's layout is designed to be easily integrated with Google Functions. This repo is gitpod compatible.

Using

Deployment to Google Functions v1 seems to be quite straightforward,

  1. just paste package.json, index.js and allowlist.js from this repo,
  2. modify contents of allowlist.js to your own list,
  3. update Entry point value from helloWorld to merkleTreeProofGenerator,
  4. Press Deploy!

Then your frontend should fetch from your endpoint like this:

const proof = await fetch()
// ...
// use |proof| in your minting function.

Testing

To make testing easier, but preserve the main purpose of this repo, you need to install express manually:

$ npm install -g express

Then you can update allowlist.js and run HTTP-server.

$ node testserver.js

If you are satisfied with results, YAY, thanks for chosing us.

-- Let's code team

About

An implementation for MerkleTree proofs for NFT whitelists, which is supposed to be run on Google Cloud Functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published