My project is based on the template of the Bootcamp of Ivan On Tech Blockchain Academy.
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.
-
Install the MetaMask wallet and choose the Ropsten Test Network.
-
To interact with Markus-Dragons you need some ETH, you can get 1 test ETH by entering the address of your MetaMask account to this faucet.
-
You can now start interacting with the project, by clicking on Markus-Dragons.
-
You need to install Node.js.
-
Enter
npm install -g truffle
into the command line to install it globally. -
Install the local Ethereum node Ganache.
-
Open Ganache, create a new workspace, click add project and select
truffle-config.js
in the project files. -
To deploy the contracts type
truffle console
and thenmigrate
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. Every dragons cost 0.05 ETH and every users can create max 5 dragons.
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. When you have reached the maximum of 5 created dragons, you can breed your dragons to get more.
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. When you have created your 5 dragons, buying dragons is another way to collect more dragons.
Markus Bielaszka - [email protected]