Skip to content

This project of a Pokémon Trading Card Game using ERC 721 Non-Fungible Tokens. A special token is rewarded to a lucky user using on-chain verifiable random functions. The project i am working on hackathon Ceramic Sovereign Data Hackathon Bounty.

License

Notifications You must be signed in to change notification settings

anhfactor/pokeNFT

Repository files navigation

Poke NFT

Buy Me A Coffee

This project of a Pokémon Trading Card Game using ERC 721 Non-Fungible Tokens. A special token is rewarded to a lucky user using on-chain verifiable random functions. The project i am working on hackathon Ceramic Sovereign Data Hackathon Bounty I use:

The NFTs were created following this guide. The random number generator used to mint the special tokens was created using this Chainlink VRF tutorial. The authenticate, i am using Decentralized Identity from Ceramic called 3ID 3ID DID Method and save profile using IDX IDX documentation

Wanna see this project live? Try it out.

Video demo: Youtube link

*Notes: The project running on Kovan testnet.

Quick start

The first things you need to do are cloning this repository and installing its dependencies:

git clone https://github.com/anhnt4288/pokeNFT.git
cd pokeNFT
npm install

Before deploying your contract you have to copy the .env_example to .env and set the credentials in your .env file

Then, on a new terminal, go to the repository's root folder and run this to deploy PokeToken contract:

npx buidler run scripts/deploy_PokeToken.js --network kovan

Finally, we can run the frontend with:

cd frontend
npm install
npm start

Open http://localhost:3000/ to see your Dapp. You will need to have Metamask installed and listening to the Kovan network.

What’s Included?

Your environment will have everything you need to build a Dapp powered by Buidler and React.

API

Additional information about Chainlink and the database for the metadata API is available in the docs section. There is also an article on Medium.

Troubleshooting

  • Invalid nonce errors: if you are seeing this error on the buidler node console, try resetting your Metamask account. This will reset the account's transaction history and also the nonce. Open Metamask, click on your account followed by Settings > Advanced > Reset Account.

Special credits

151 pokemon of Kanto icon set by Geovanny Gavilanes

Pikachu by Mohammad Ali

Pokemon icons by roundicons.com

Restful API Poke content

Future feature

  • Trade poke NFT cards.
  • PVP with others player.

About

This project of a Pokémon Trading Card Game using ERC 721 Non-Fungible Tokens. A special token is rewarded to a lucky user using on-chain verifiable random functions. The project i am working on hackathon Ceramic Sovereign Data Hackathon Bounty.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published