Inspiration

Eat The Bop was inspired by ETH-Monster game developed by BuidlGuidl member codechefsong.eth https://app.buidlguidl.com/builders/0x6caeceE5486D3f7e5B9e4088B9326CAE469961b7 https://github.com/codechefsong/ETH-Monster

It is a play to earn game that follows MHGN's Project 6 model and rewards 6000 BOP tokens if the player/hoarder eats the token marked with a 6 on the game board. Besides this marked token there are real and fake tokens scattered around the game boards zones. Eating real BOP tokens rewards the players/hoarders 6 BOP tokens while eating fake BOP tokens will cost the player/hoarder a life.

!!!!!! THIS IS A PROTOTYPE AND IS NOT PRODUCTION READY

BOP by MHGN is Money Hoarders Global Network's first digital tokenized asset already live on Polygon Mainnet. "Adoption through education" is a expression we hold strong at M.H.G.N and with play to earn, learn and earn, and watch to earn being our focus for community growth.

What it does

We have built on to the ETH-Monster game contract. The game now features Chainlink VRF to get its randomness. Players/Hoarders must first purchase lifes to be able to play 0.01 ether gets the player 6 lifes. The reward token or gameToken in the contract was built and deployed at a previous hackathon and this game builds out its utility.

Once a Player/Hoarder has lifes they can began to eat BOP tokens each time the player/hoarder eats they must pay the network gas fees. There maybe obstacles that must be moved to reach certain tokens. There are real and fake tokens on the board eating fake tokens cost you 1 life. There is one token marked with a 6 and the first player/hoarder to eat this BOP token with be rewarded 6000 BOP tokens.

The game is built on the concept of a decentralized lottery system

When a player/hoarder eats a token the function request a random value between 1-10 using Chainlink VRF 0-4 are considered a fake token and cost the player/hoarder a life. 5-10 are considered to be real and the number 6 represents the winning token. We plan implement both contract and user direct fund methods the current method funds the VRF call from Link held by the EatTheBopDirectFund contract.

(Fork the games code on GitHub and follow the ReadMe to test out the app locally) https://github.com/moneyhoardersglobalnetwork/eathebopdirectfund - Sepolia EatTheBopDirectFund = 0x4B53b109F489D4D382d18C5D120f15f6B9a62E1A // Sepolia EatTheBopDirectFund = 0xfBB287E3cd2Dcae6faf632e132EDD87060c0C63D // Sepolia BOP by MHGN token contract on Sepolia 0x76f9d116a4263b0b193E3174bC5b52946B10548b

//The BOP faucet was developed to on-board new hoarders into the ecosystem it drips 600 BOP tokens to addresses with a zero balance the user just pays network gas fee. https://bop-by-mhgn-faucet-moneyhoardersglobalnetwork.vercel.app/ - Polygon Mainnet

BOP by MHGN is our first on-chain tokenized asset deployed on Polygon Mainnet. Blocks of Passion Protocol was started during Chainlink Fall hackathon 2022 with the idea of building a true on-chain decentralized no initial investment needed non-profit revenue generating protocol. Eat The Bop is one of the many use cases the BOP token will hold as we build out the M.H.G.N ecosystem.

We want to focus on building cross-chain games with CCIP using BOP, MHGD, MATIC, WETH, WBTC and LINK for payments. The M.H.G.N ecosystem's core is play to earn, learn and earn, watch to earn these use cases combined set our asset hoarders apart from any others and allow them to become great investors through education.

We are still working on integrating CCIP to cross-chain the BOP token on to Ethereum Mainnet, Base, BNB Smart Chain, and Polkadot's MoonBeam parachain. We don't plan to fully deploy these projects during the hackathon, but want working testnet prototypes.

Check out https://moneyhoardersglobal.net/bopbymhgn for a full breakdown and a list of links to our dApps using the BOP token .

How we built it

Scaffold-Eth-2

We forked the ETH-Monster game updated it to the latest scaffold-eth-2 packages. Then integrated the Chainlink Direct Fund method for VRF to get our random number between 1-10.

We changed the player and token of the game and added a reward to users for eating the correct tokens.

The contract uses the random result to represent the winning number for the game. A simple use case that allows for a decentralized lottery with a automated reward of BOP tokens to the winner.

The original Eat The BOP contract uses block.timestamp

Challenges we ran into

Pulling code from different contracts to make the integration of VRF into the game contract. The contract still needs tweaking so its displays the results that the player/hoarder has won and their reward is will be delivered to their wallet.

The interface currently can only be hosted locally due to a build error dealing with the buy lives button on the app. This problem has paused further development but the game currently functions and gives rewards as long as it has LINK to make VRF request.

We will fix all bugs and fully deploy game to Polygon Mainnet

Accomplishments that we're proud of

Just being able to work on groundbreaking tech with Chainlink and the sponsors helping and educating other developers by open-sourcing our code to all.

1 would be seeing the growth of the project and finally starting to take it serious.

Registering ENS name moneyhoardermike.eth becoming a BuidlGuidl member

Talking and meeting some of the most brilliant minds in the world.

What we learned

Always trust the process

Gaming is a great use case and play to earn and real digital ownership of in-game assets is the future.

MHGN Hoarder Labs will be hiring developers in the web3 gaming space to build out MHGN's gaming division.

What's next for Eat The BOP a M.H.G.N game using ChainLink VRF

We plan continue testing Chainlink VRF implementations into our gaming contracts as we prepare for the launch of MHGN Hoarder Labs a full gaming division of Money Hoarders Global Network. The EatTheBopDirectFund contract is also being tweaked to a version where the user pays the function call when eating a token in LINK saving on over-head cost.

We also plan to cross-chain the BOP token using CCIP so Eat The Bop can be moved and played with cross-chain.

M.H.G.N plans to invest the prize from the hackathon into locked liquidity for the BOP token and LINK token that would instantly make the BOP token and Eat The BOP game be in high demand. The winnings would also go towards funding for 3D modeling and game development for future projects from Hoarder Labs and create entry level to mastery level jobs across the entire web3 space.

Built With

Share this project:

Updates