Git Product home page Git Product logo

nftpacks-contracts's Introduction

NFT Packs: contracts

NFT Packs is a tool for NFT giveaways. Bundle ERC 721 NFTs as rewards into packs and airdrop them to an audience.

On opening a pack, the opener will receive either one of the reward NFTs or an ERC 1155 for participating in the giveaway.

NFT Packs is powered by $PACK Protocol.

Quick Example

You have 10 ERC 721 NFTs you want to giveaway.

You bundle those 10 NFTs into a total of 1000 packs and airdrop them to an audience.

10% of those packs i.e. 10 packs will yield a reward NFT on opening. The rest will yield an ERC 1155 NFT as a proof of participating in the givaway.

Contracts

Rinkeby

Run Locally

Clone the project

  git clone https://github.com/thirdweb-dev/nftpacks-contracts.git

Go to the project directory

  cd nftpacks-contracts

Install dependencies

  yarn install

Create a .env file with .env.example as reference. Then:

Run hardhat tests

  npx hardhat test

Deploy the project to rinkeby

npx hardhat run scripts/deployer/rinkeby.ts --network rinkeby

Authors

nftpacks-contracts's People

Contributors

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