OpenZeppelin / OpenZeppelin/openzeppelin-contracts

Airdrop contract(s) using SignatureBouncer

Open
#928 4 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Solidity
Stars
27.2k
Forks
12.4k
Avg merge
2d 19h
Merged PRs (30d)
33

Description

🎉 Description

It'd be cool if we had a simple Airdrop contract that used SignatureBouncer.sol to issue tokens (with emission variants like the crowdsale's Mintable/Allowance types) to those with valid signatures from a server.

Bonus points for a nodejs script that runs across a list of addresses and generates signatures for each of them.

More bonus points for a simple rails/express based api endpoint for generating these signatures which follows a flow like:

  1. user signs some challenge data using metamask/hardware-wallet/whatever
  2. user submits that signature to the server
  3. server recovers the address from the signature
  4. server checks to see if address is in off-chain whitelist
  5. if so, server signs a SignatureBouncer hash allowing the address to call the Airdrop contract
  6. user can then submit that signature to the airdrop contract and receive their tokens
  • 🐛 This is a bug report.
  • 📈 This is a feature request.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read SignatureBouncer.sol and the crowdsale's Mintable/Allowance variants first. Scope the core Airdrop contract around valid server signatures and token issuance, then consider the separately described Node.js signer and Rails/Express API flow. Done means the requested contract behavior and any selected bonus tooling cover the issue's six-step signature and whitelist flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
express, nodejs, rails, solidity
Domain
backend-api-design, blockchain, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.