Giter Site home page Giter Site logo

zhhuffman / merkle-distributor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bunsdev/merkle-distributor

0.0 0.0 0.0 250 KB

๐Ÿ“ฆ A smart contract that distributes a balance of tokens according to a merkle root

Home Page: merkle-distributor-git-master.cryptounico.vercel.app

License: GNU General Public License v3.0

Solidity 17.70% TypeScript 82.29% HTML 0.01%

merkle-distributor's Introduction

GovernorDAO Merkle Distributor Airdrop

Known Vulnerabilities

Local Development

High-Level Overview of Specification Updates

  • Update: MerkleDistributor.sol

  • Terminal Commands:

    • 'yarn': installs dependencies
    • 'yarn compile': runs waffle
    • 'yarn pretest': compiles smart contracts
    • 'yarn test': runs mocha
    • 'yarn generate-merkle-root:example': runs ts-node scripts/generate-merkle-root.ts --input scripts/example.json
    • 'yarn prepublishOnly': runs yarn test
  • Update: scripts/result.json to the output generated from generate merkle root: example

    • Note: if dev (that's you) not on whitelist, then test with inclusion, then remove on new root generation and cross your fingers and hope to gawd that the new root works when the time comes for production.
  • Run: yarn run ts-node scripts/verify-merkle-root.ts --input scripts/result.json

    • Resolve Failure: ensure that the result.json is updated to the merkle root that aligns with input example and not from the default configuration.
  • Run: to-kv-input (inputs below)

    • Claims Tree
    • Chain-ID
    • Token: Cloudflare API token
    • Account Identifier: Cloudflare account identifier
    • Namespace Identifier: Cloudflare KV namespace identifier

Credit: README.md and MerkleDistributor.sol created by Uni

merkle-distributor's People

Contributors

moodysalem avatar bunsdev avatar noahzinsmeister avatar gakonst avatar lint-action avatar akshaynexus avatar

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.