Airdrop is an Aragon app to facilitate the efficient distribution of tokens.
- Airdrop data is uploaded as a csv or pulled from an online source
- A merkle tree is generated and uploaded to ipfs
- A transaction is submitted, protected by
START_ROLE, to the Airdrop contract which includes the ipfs hash and merkle root - 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. awardFromManyallows for combining the amounts from multiple airdropsawardToManyallows for bulk awarding to recipients from a single airdrop
- Install dependencies:
$ npm install
May require npm install node-gyp first
- In a separate terminal start the devchain:
$ npx aragon devchain
- Deploy the CycleManager app to the devchain as it's not installed by default like the other main apps (Voting, Token Manager, Agent etc):
- Download https://github.com/StakeDAO/cycle-manager-aragon-app
- Run
npm installin the root folder - Execute
npm run buildin the root folder - Execute
npm run publish:majorin the root folder
- 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.
- In a separate terminal start the client (the web portion of the app):
$ npm run start:client
- In a separate terminal deploy a DAO including the app with:
$ npm run start:http:template