Web3 game for fun
- HTML, CSS, and Javascript for the website
- Solidity for writing the smart contracts
- NodeJS to install Dependencies
- Hardhat Web3 development environment
- Ethers.js To interact with the blockchain
Clone the repo
git clone https://github.com/avaxcadabra/BPAY.gitt
cd BPAY/
Install the dependencies
npm install
.env file
Rename env-example to .env and add your subnet private keys
Deploy on subnet the contracts
cd contracts
# deploy the NFT collection
npx hardhat run scripts/deployNFTCollection.js --network network_name
NFT Collection deployed to:0x.....
# deploy the $RUN token
npx hardhat run scripts/deployRunToken.js --network network_name
$RUN token deployed to:0x...
Paste the NFT Collection contract address to the claimNft function in blockchain.js
const nftContractAddress = "0x...";
Paste the $RUN token contract address to the claimTokens function in blockchain.js
const runTokenContractAddress = "0x...";
Start the server
yarn run start
Credit to Dapp University for the original Web3 game workshop.