My ERC-721 project is an NFT game where you can collect, create, breed and buy/sell your non-fungible dragon tokens. To improve the security, Markus-Dragons uses OpenZeppelin smart contracts to prevent hackers from intercepting the users funds, by using the Escrow Contract to store the ETH and the users can securely withdraw their funds in their gallery, with their MetaMask account.
Using Markus-Dragons on testnet (This is just a preview, for a full experience install the project locally)
Try the preview, by clicking on Markus-Dragons.
-
You need to install Node.js.
-
After you've cloned the project, run the commande
yarn
(it will runyarn install
) to install all the dependencies. -
Create
.env
file and add yourMNEMONIC
. -
To deploy the contracts type
npx hardhat run --network localhost scripts/deploy.js
into the command line. -
Copy the contract address of Dragoncontract and DragonMarketplace. Paste them into the variables
dragonContractAddress
andmarketplaceAddress
in/assets/js/components.js
. -
Use a localhost with python 3, add the directory of the client folder
cd .../client
into the command line and then enterpython -m http.server
. In your web browser enterhttp://localhost:8000
.
Choose between 82 different colors, 7 different eye shapes and 5 different horn shapes & animations. When you create dragons, you can choose to generate a random dragon or customize your own.
Select the dad and mom dragon that you want to breed and get a new baby dragon that gets the mixed DNA from its parents. One color or attribute will change randomly, inherited from the dragon ancestors.
View all your dragons and check their information. In your gallery you can also sell your dragons for ETH, you can view or remove your offers and withdraw your funds when your offer has been sold.
Before you sell your dragons you will get a pop-up that will ask if you accept to set the marketplace as an approved operator, you will need to confirm in order to sell them. If you don't want to sell your dragons anymore, you can always remove the operator approval when you want.
In the marketplace you can buy active offers. When you have bought a dragon, the Dragon Token will be transferred to your gallery and the seller will be able to withdraw their funds in their gallery.
Markus Bielaszka - markus.bielaszka@gmail.com