Ethereum Prediction Market Boilerplate Questions

actually i used directly from repo without watching tuto … it approved to spent BET token and after burn tx is successful and it really burnt my BET token but after that nothing happens and stock at this screed

Ohh I see @Saxon, yes if you just used it directly it won’t work because before you make it work you need to setup some cloud functions and sync some events because when it creates a new game (when burning the BET token), we need to get the newly created BettingGame smart contract address to interact with it in the next step and the way I do it is by using some event syncing in the video. You can check Part 7 of the video (you can check the timestamp) if you want to for setting up that part :raised_hands: Otherwise, a quick work around is to go to the BurnToken.jsx and make little changes like this:

runCreateGame({
   onSuccess: () => handleNext(),
})

so after creating the game successfully, it will automatically move to the next step of the game. However, I don’t recommend this because you won’t have the smart contract address of the BettingGame that was just created, which in turn won’t allow you to further advanced into the other steps (because there are some direct interaction with the newly created BettingGame smart contract)

Cheers,
Yoseph

1 Like

oh now i see thank you so much @YosephKS i really need to watch it then

1 Like

You’re very welcome @Saxon :grin:~

1 Like

hi, if I’m following the video which repo I need to use? the full code or the starter?

Hey @m33lucky, what do you mean by full or starter code here?

1 Like

to follow the video which do I use
1: [https://github.com/ashbeech/moralis-poll]
2: [https://github.com/ethereum-boilerplate%2Fweb3-social-network-boilerplate

these are two links below the video

Sorry for the late reply @m33lucky. This is the link to the github repo https://github.com/ethereum-boilerplate/ethereum-prediction-market-boilerplate. Hope you have a great day~

Thanks for the reply I will try again

I’m not getting anywhere with this video tutorial as I’ve started with the boilerplate post production. Is there some help I can get to try and troubleshoot the problems I’m having.

When I open the template from VSC on local machine it just shows the folder I’m working in, no UI?

Any help or tips are greatly appreciated.

If you just open VSCode of course no UI will appear, you need to start the app for seeing the UI :raised_hands:

Right I typed npm start in the terminal of VSC after having completed the tutorial as I thought it was all up to date and such.

Alright so I’m starting with fresh folder and cloning the repo for ethereum-boilerplate.
I’ll follow the tutorial and see what comes of it.

If I run into issues I’ll reach you here again, thank you!

1 Like

Fantastic, yes you can :raised_hands:

Hi @YosephKS, how/where? do I Install all dependencies for cd ethereum-prediction-market-boilerplate and yarn install…? My VScode terminal isn’t recognizing either of them. I’ve downloaded the zip and extracted it, then opened the folder in VScode. Is this the proper way to do this or is there a more efficient way…? or did I miss @ step Thanks:)

Hey @brollejr, I think you might not have yarn in your system, you might need to install that first

npm i -g yarn

this will require you to have node/npm, if you haven’t you can download them first in their official website :raised_hands:

Well, thx for the video, but I have some questions. If I got you right, the idea of having a BET token is for anyone (challenger or creator) who uses our dapp, need to first go and buy some BET tokens(from a dex), then before playing the game we offer, he needs to BURN some of his BET tokens from his wallet. Right? Then, that BURNT BET token either goes to the project owner, or vanishes (therefore reduces the BET token supply and increases its price) Right? If yes, then why the hell u didn’t say anything about it in your 6h video? If I am wrong, then why the hell should anyone create this dapp? For what? What’s my benefit of having two idiots to come and gamble on my dapp? Thx

Hey @hacker91, the BET token in the tutorial is not for production purpose, the tokenomics is just a simple one. Also, burning means it goes to zero address, which automatically means vanishes, that’s just the general ERC20 knowledge :raised_hands:

Whether what’s the benefit of using the app for users, it’s really depends on what the users think and I’m here to mainly demonstrate how to build the app and how to use Moralis to build the dApp easily.

Please also next time, use a more polite tone :slightly_smiling_face: if you are unhappy with the video we’re open to feedback but please give a polite constructive feedback as we’re open for improvements

Cheers

First of all, thx for reply. The video is free to watch, and I appreciate it. However, you got me wrong: The benefit for users is clear - it’s gambling, an old story. I was wondering what’s there for the project creator? I do understand that it is just a tutorial, but as a person who views Moralis tutorials not just for esthetic pleasure, but instead wants to learn, implement and improve it, I thought it would be great if in the video you also show the benefit for someone to come and create a similar project! Maybe say 10% of overall stake goes as a fee to owner? U got what I mean. Anyway, take it as a suggestion.

Most of your viewers(I think so) want not only to learn how to code, but also how to see the benefits of the dapp you are teaching to create.

As for my tone, sorry if you got offended, didn’t mean to.

To make my point even clearer: Imagine you have explained in your 6h video, that, for instance, the entire idea for introducing BET token, is that, any gambler, must first go to dex, get your BET tokens, then burn it (while interacting with our dapp) and only then accept the challenge(gamble). Wow! It creates a demand for our BET token and shows the whole idea of making this dapp! It’s a great use case for our BET token. It would have taken you 10min of time, but would make your video 100 times more valuable.

Hope you can consider it better in your future videos. Cheers

hey @YosephKS in the video at 15.10, for the ARCHIVE=xxx you said in to put true or false?
is that what you mean or insert this https://speedy-nodes-nyc.moralis.io/f851cfd7960278520431d4fd/polygon/mumbai/archive where xxx is, thx