Code Monkey home page Code Monkey logo

airdrop-app's Introduction

Airdrop

Airdrop is an Aragon app to facilitate the efficient distribution of tokens.

How it works

  1. Airdrop data is uploaded as a csv or pulled from an online source
  2. A merkle tree is generated and uploaded to ipfs
  3. A transaction is submitted, protected by START_ROLE, to the Airdrop contract which includes the ipfs hash and merkle root
  4. Once accepted the tokens from that distribution are available to award. These tx can be submitted by either the recipient or a third party on their behalf.
  5. awardFromMany allows for combining the amounts from multiple airdrops
  6. awardToMany allows for bulk awarding to recipients from a single airdrop

Local Deployment

  1. Install dependencies:
$ npm install

May require npm install node-gyp first

  1. In a separate terminal start the devchain:
$ npx aragon devchain
  1. Deploy the CycleManager app to the devchain as it's not installed by default like the other main apps (Voting, Token Manager, Agent etc):
  1. Deploy mock SCT tokens:
$ truffle exec scripts/deployToken.js --network rpc

Copy the SCT token addresses output to the package.json script start:http:template directly after the @ARAGON_ENS template init arg replacing the address that is there already.

  1. In a separate terminal start the client (the web portion of the app):
$ npm run start:client
  1. In a separate terminal deploy a DAO including the app with:
$ npm run start:http:template

airdrop-app's People

Contributors

cslarson avatar willjgriff 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.