With a stunning design, interactive gameplay, smart wallet pairing, live interaction with smart contracts, and, most importantly, the ability to battle other players in real-time, AvaxGods is the best and the only Web3 battle-style online multiplayer card game that you can currently find on YouTube.
cd web3
npx hardhat
-> y → typescript → enter → enternpm install @openzeppelin/contracts dotenv @nomiclabs/hardhat-ethers
+ Hardhat packages npm install --save-dev "hardhat@^2.12.0" "@nomicfoundation/hardhat-toolbox@^2.0.0"
.env
file and specify a PRIVATE_KEY variable.hardhat.config.ts
file from the GitHub gist down in the descriptiondeploy.ts
script from the GitHub gist down in the descriptionAvaxGods.sol
smart contract code from the GitHub gist down in the descriptionnpx hardhat compile
commandnpx 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