Skip to content

pkiage/testnet-Gamefi-NFT-MiniTurnBasedGame-ZimaMoto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zima Moto

Installation and Setup to Contribute/Remix:

  1. Run npm install at the root of your directory
  2. Run npm run start to start the project
  3. Start coding!

Running Contract Locally

npx hardhat run scripts/run.js

Deploying to Rinkeby Testnet

npx hardhat run scripts/deploy.js --network rinkeby

Connecting Web App to Deployed Smart Contract on Rinkeby Testnet

  1. Update Contract Address in src/constants.js
  2. Copy json file from artifacts/contracts/MyEpicGame.sol/MyEpicGame.json
  3. Paste what copied in step 2 into src/utils/MyEpicGame.json

Hardhat tasks

npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
node scripts/sample-script.js
npx hardhat help

Wallet & Coin:

Wallet: Metamask

Rinkeby Faucet: https://faucets.chain.link/rinkeby

Token:

Token: https://rinkeby.etherscan.io/token/0xD8605777E42DFD702BD0174b479421b380B7B528

Pin Manager

Pinata

Inspiration:

Create your own mini turn-based NFT browser game

Further development ideas:

  • Refill extinguisher (or mint another one)
    • Yours
    • Another player's
    • Multiple players'
  • Switch extinguisher
  • Leaderboard
  • Critical hit
  • Audio effects
  • Game history
  • Mainnet donations towards causes e.g. climate change, public health, & security
  • Responsive design
  • Multiple extinguishers at once (multiplayer)
  • Game levels

Docs creation

Dependency cruiser to validate and visualize dependencies

depcruise --exclude "^node_modules" --output-type dot src | dot -T svg > docs/dependencygraph-src.svg