Skip to content

Get to build a Sorting Hat dApp and make it choose one of the four Hogwarts houses for you.

Notifications You must be signed in to change notification settings

0xJonaseb11/hogwarts-sorting-cap-dapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Author: @Jonas-sebera

hogwarts-sorting-cap-dapp

Get to build a Sorting Hat dApp and make it choose one of the four Hogwarts houses for you.

Let's go back to our childhood

About

As seen, This Hogwarts contract allows the owner to mint non-fungible tokens representing the four Hogwarts houses. The NFTs are stored on IPFS and are associated with a specific house. The contract also enforces a custom transfer condition where transfers are only allowed from or to the zero address, indicating that the tokens are soulbound within the Hogwarts context.

Functionality

We create 2 contracts ie HogwartNFT and RandomHouseAssignment plus the ones i got from the chainlink library : : VRFConsumerBaseV2 and VRFCoordinator

Index

The contract uses chainlink VRF randomness service to generate random numbers It allows safeMint action The contract uses IPFS for making the use of files, images off-chain possible.


@Jonas-sebera

About

Get to build a Sorting Hat dApp and make it choose one of the four Hogwarts houses for you.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published