public-awesome / launchpad

Stargaze NFT and Launchpad smart contracts
Apache License 2.0
76 stars 38 forks source link

Merkle whitelist #131

Open shanev opened 2 years ago

shanev commented 2 years ago

See https://medium.com/@ItsCuzzo/using-merkle-trees-for-nft-whitelists-523b58ada3f9.

  1. Construct Merkle tree for whitelist off-chain in Stargaze Tools.
  2. Update whitelist contract with the Merkle root
  3. Send Merkle proof to whitelist contract to verify whitelist inclusion
shanev commented 2 years ago

Devil's advocate: It's actually a benefit of Stargaze to store whitelists on-chain. You can't do this on Ethereum because of storage and gas constraints. But Stargaze doesn't have those issues.