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.
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.
NftPacks.sol
: 0xa0ECfB332A278572CE9a98f4EE95EB79fcE2a870Airdrop.sol
: 0x619c801cF0AFe3BEe2795340c9407fd4f0bbe1E3
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