Skip to content

ajaythampispericorn/nft_random_claim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RANDOM NFT CLAIMING IN MOVE

Overview

This Move module implements a random NFT claiming mechanism using Aptos randomness. Users can claim a random NFT from a predefined collection, and once all NFTs are claimed, no more can be minted. The module includes admin controls for adding NFTs and event logging for tracking minting events.

Features

  • NFT Collection Management: Admins can add NFTs with metadata (name, description, and URI)
  • Random NFT Claiming: Users can claim an NFT randomly from the available collection
  • Event Logging: Minting events are logged with timestamps
  • Global Storage: NFTs are stored in a Collection struct with a total supply cap
  • Helper Functions: Query total supply, minted NFTs, and NFT details

Pre-Requisites

  • APTOS CLI

Installation

APTOS CLI

Go to Aptos CLI release page
Follow the instructions given to install Aptos CLI

To verify installation,

aptos --version  

Setup CLI Configuration

  1. Run the command
aptos init  

To use default settings, you can provide no input and just press “Enter”.

Installation

  1. Clone the repository
git clone https://github.com/ajaythampispericorn/nft_random_claim  
  1. Navigate to project directory
cd nft_random_claim  

Compiling AND Testing

aptos move compile  

aptos move test   

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages