Giter Site home page Giter Site logo

nft-airdrops's Introduction

DePay's Claimable NFT Airdrops

Smart contract allowing to airdrop NFTs without sending them to the receivers but instead having receivers withdrawal them through the airdrop contract.

Airdrop distributors reate off-chain signatures that can be used by the airdrop receiver to redeem them for the NFT.

Deployments

Mainnet

DePayNFTAirdropV1 XXX

Ropsten

DePayNFTAirdropV1 0x1ceadd57e477901499c08aec5d2044cc3430d7fc

ERC721 0xe7f982e9f25471bc1dd6a84a5433274834d7853f9b49357ece40538ce2c5d7af

ERC1155 0xb6bb75ae8af249891b1cdcb92a6cb74c6c1b30f8

Functionalities

claim Claim NFT

The main function allowing people to redeem off-chain airdrop signatures for NFTs.

Arguments:

address tokenAddress: The address of the NFT to be claimed.

address[] receivers: An array of all receivers, required to validate off-chain signatures.

bool isERC1155: Boolean indicating if the airdrop token is a ERC1155 (otherwise falling back to ERC721).

uint256[] tokenIds: Ids of all airdroped NFT tokens, required to validate off-chain signatures.

uint256 index: Position/index of the current receiver within receivers and tokenIds.

uint8 v: v of the off-chain signature.

bytes32 r: r of the off-chain signature.

bytes32 s: s of the off-chain signature.

Deploy

  1. yarn flatten

  2. Deploy flatten contract via https://remix.ethereum.org/

nft-airdrops's People

Contributors

crypto0390 avatar spape avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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