MCPcopy Index your code
hub / github.com/adrianhajdin/project_web3_battle_game

github.com/adrianhajdin/project_web3_battle_game @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
74 symbols 199 edges 44 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Avax Gods - Online Multiplayer Web3 NFT Card Game

Gameplay

Launch your development career with project-based coaching on JS Mastery Pro.

Instructions on setting up the Web3 part of the project

  1. cd web3
  2. npx hardhat -> y → typescript → enter → enter
  3. npm install @openzeppelin/contracts dotenv @nomiclabs/hardhat-ethers + Hardhat packages npm install --save-dev "hardhat@^2.12.0" "@nomicfoundation/hardhat-toolbox@^2.0.0"
  4. Install Core, a Metamask smart wallet alternative built for Avalanche dApps
  5. Turn on the testnet mode by: opening up the Core extension -> click the hamburger menu on the top left -> go to advanced -> turn on the testnet mode
  6. Fund your wallet from the Avax Faucet
  7. Create a .env file and specify a PRIVATE_KEY variable.
  8. To get to the private key, do the following steps:
  9. Open up the Core extension -> click the hamburger menu on the top left -> go to security and privacy -> click show recovery phase -> enter your password -> copy the phrase -> go to wallet.avax.network -> click access wallet -> choose mnemonic key phrase -> paste what the words we’ve copied from Core -> on the sidebar click manage keys -> view c-chain private key -> copy -> paste it in the .env file
  10. Copy the hardhat.config.ts file from the GitHub gist down in the description
  11. Copy the deploy.ts script from the GitHub gist down in the description
  12. Copy the AvaxGods.sol smart contract code from the GitHub gist down in the description
  13. Compile the contract by running the npx hardhat compile command
  14. Deploy the smart contract on the Fuji test network by running the npx hardhat run scripts/deploy.ts --network fuji command Move the /artifacts/contracts/AVAXGods.json file to the /contract folder on the frontend Copy the address of the deployed contract from the terminal and paste it into the /contract/index.js file of the frontend application

Core symbols most depended-on inside this repo

Shape

Function 74

Languages

TypeScript100%

Modules by API surface

client/src/utils/animation.js7 symbols
client/src/utils/Onboard.js7 symbols
client-starter/src/utils/onboard.js7 symbols
client-starter/src/utils/animation.js7 symbols
client/src/context/index.jsx6 symbols
client/src/page/Home.jsx3 symbols
client/src/page/Battle.jsx3 symbols
client/src/context/createEventListeners.js3 symbols
client/src/components/PlayerInfo.jsx3 symbols
client/src/components/OnboardModal.jsx3 symbols
client-starter/src/components/OnboardModal.jsx3 symbols
web3/scripts/deploy.ts2 symbols

For agents

$ claude mcp add project_web3_battle_game \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page