This video is even more educating and helpful for beginners than the main solana playlist. After going through the solana playlist. I had to pause to look for this video because it will teach you well as a beginner
Just went through and built this. Awesome job explaining it for noobs like me. Some issues though: You can Create Lottery after a Winner is Picked and before they Claim it. So it ends up removing the claim ability for the users. Ideally we would have a claim button on the table next to each lottery so players can claim from past lotteries. Also they should be able to enter ongoing lotteries instead of just the most recent one. So adding a button to the table to enter the lottery if it hasnt finished yet would be good, or just make a whole grid of lotteries they can enter with a table at the bottom with the lotteries that were finished already.
i haven't watch til the end of the video, but after some troubleshooting i believe your memcmp code was not working because the library import and offsets were incorrect. Here was what i changed to get this to work in context.js: Changed: import { bs58 } from "bs58"; to: import bs58 from "bs58"; //this resolves an error where "encode" was not found or something like that. Changed offset for memcmp for lotteryId should to 44, Changed offset for memcmp for wallet.publicKey to 12 Offsets calculated as follows in terms of bytes: 8 bytes - anchor discrinoator 32 bytes - Account primary key (in troubleshooting i realize this should be excluded from the offset calculation) 4 bytes - Ticket account data field "id" 32 bytes - Ticket account data field "authority" (to reach this field it woul dbe 12 bytes offset, or 8 + 4) 4 bytes - Ticket account data field "lotteryId" (to reach this field it would be 44 bytes offset, or 8 + 4 + 32)
Who tf thought rust was a great language to use for Solana programs. So damn complicated to do something simple. No wonder Thirdweb dropped support for this chain
Thanks for the forecast! I have a quick question: I have a SafePal wallet with USDT, and I have the seed phrase. (air carpet target dish off jeans toilet sweet piano spoil fruit essay). How should I go about transferring them to Binance?
is there any resource to check out functions like to_account_info() try_borrow_mut_lamports(), invoking etc? Would be easy if there's some documentation.
i am v new with codeing confusing me alot but if possible to speak to u on whatsapp might help me bit share your fb ig or place where can reach to learn bit codeing
This video is even more educating and helpful for beginners than the main solana playlist. After going through the solana playlist. I had to pause to look for this video because it will teach you well as a beginner
Damn just completed this build and i gotta say this was heavy. Thank u so much guys for such wonderful free content. :))
Best rust smart contract tutorial ever! Thank you!
thanks, bro , it took me 3 days to do it, with school & work, but I finally finished , your a Beast this was awesome
First Dapp I was able to run successfully.
This was awesome💌
Hey let’s connect… currently building one
are there github repo for this project would like to examine the code to get better understanding
Just went through and built this. Awesome job explaining it for noobs like me. Some issues though:
You can Create Lottery after a Winner is Picked and before they Claim it. So it ends up removing the claim ability for the users. Ideally we would have a claim button on the table next to each lottery so players can claim from past lotteries.
Also they should be able to enter ongoing lotteries instead of just the most recent one. So adding a button to the table to enter the lottery if it hasnt finished yet would be good, or just make a whole grid of lotteries they can enter with a table at the bottom with the lotteries that were finished already.
can this work with any token on Solana or just SOL ?
Do we have to use quicknode? can't we just develop on top of the devnet and use their rpc?
I plan to do this but with timelock (automate pick winner at 12am daily) Is there a way to do so?
i haven't watch til the end of the video, but after some troubleshooting i believe your memcmp code was not working because the library import and offsets were incorrect. Here was what i changed to get this to work in context.js:
Changed:
import { bs58 } from "bs58";
to:
import bs58 from "bs58"; //this resolves an error where "encode" was not found or something like that.
Changed offset for memcmp for lotteryId should to 44,
Changed offset for memcmp for wallet.publicKey to 12
Offsets calculated as follows in terms of bytes:
8 bytes - anchor discrinoator
32 bytes - Account primary key (in troubleshooting i realize this should be excluded from the offset calculation)
4 bytes - Ticket account data field "id"
32 bytes - Ticket account data field "authority" (to reach this field it woul dbe 12 bytes offset, or 8 + 4)
4 bytes - Ticket account data field "lotteryId" (to reach this field it would be 44 bytes offset, or 8 + 4 + 32)
Is lottery app also called DEFI dapp ????
Cool tutorial and got me going where I need to be, thanks for the front end app brings it all together nicely
Is it still working? if yes, could you please provide me with the github link if you have pushed it?
where is the link??
I built it done then launch it on mainet but my winner didn't claim their prize. How can I get it back ??? =)))
I love a dapp
1:27:00 my personal chapter
Any chance of partnering up?
ty for this amazing tutorial
When I try with solpg, it's throwing error [program] macro not support
awesome!
Github?
Why my publickey not show
Cannot find the devnet option or even change network option on phantom wallet extension
You have to turn on developer mode
this tutorial doesnt work i get error while Building
solana is awesome
I am learning with you
can't get my wallet to initialize for some reason
Amazing. Thanks
Who tf thought rust was a great language to use for Solana programs. So damn complicated to do something simple. No wonder Thirdweb dropped support for this chain
because rust is enough low level language to make fast transactions. but i think golang would be a better choice. rust is boring but not hard to learn
Thanks for the forecast! I have a quick question: I have a SafePal wallet with USDT, and I have the seed phrase. (air carpet target dish off jeans toilet sweet piano spoil fruit essay). How should I go about transferring them to Binance?
Super thanks!
Code please
Booom 💥
Make Duolingo clone please
5 hours long vid no timestamps…☠️
I am ready lan
First🐣🐣🌴
🤍🤍🤍
Haha, everyone is first😅
Me also first
First comment
first
is there any resource to check out functions like to_account_info() try_borrow_mut_lamports(), invoking etc? Would be easy if there's some documentation.
Should I learn web 3 in 2023? Please.help.me.i wasted 2 years trying to figure what to learn😭 I am just 18
Yes
No, It's utterly needs two years of learning to get hired
If u could pay its cost, then yes
i am v new with codeing confusing me alot but if possible to speak to u on whatsapp might help me bit share your fb ig or place where can reach to learn bit codeing