Josh's DevBox
Josh's DevBox
  • 79
  • 481 813
Building a Web3 Reddit using Solana Smart Contract s
In this final video, we will implement the reddit smart contract architecture that we've been building up to in the past 4 videos. We will learn everything we need to know to b
Follow me on:
🐦 Twitter: imJoshChang
🌐 Site: joshchang.io
📙 Solana Playlist: th-cam.com/video/-AAtfPHEMbA/w-d-xo.html
🤖 SOLdit (Reddit Clone) Playlist: th-cam.com/play/PL53JxaGwWUqCfzhFqW9OB7f9To9tGe7bp.html
00:00 - Intro
00:25 - Define User Account
03:32 - Implement User Account
11:02 - Test Creating User Account
20:47 - Define Feed Account
21:56 - Implement Feed Account
25:42 - Test Creating Feed Account
29:11 - Define Thread Account
31:03 - Implement Thread Account
36:46 - Test Creating Thread Account
40:26 - Define Thread Upvote Account
42:20 - Implement Thread Upvote Account
46:08 - Test Creating Thread Upvote Account
49:34 - Define Comment Account
52:10 - Implement Comment Account
57:34 - Test Creating Comment Account
01:02:21 - Define Comment Upvote Account
01:04:18 - Implement Comment Upvote Account
01:10:37 - Conclusion
มุมมอง: 1 269

วีดีโอ

Solana Reddit Smart Contract Architecture Part 4: Comment Upvote
มุมมอง 296ปีที่แล้ว
In this video series we will talk about the architecture decisions to design a smart contract to implement our own reddit clone using only the Solana blockchain. In part 4 of 4 video we will talk about how we would implement comment upvote. Follow me on: 🐦 Twitter: imJoshChang 🌐 Site: joshchang.io 📙 Solana Playlist: th-cam.com/video/-AAtfPHEMbA/w-d-xo.html SOLdit (Reddit Clone) Pla...
Solana Reddit Smart Contract Architecture Part 3: Comments and Replies
มุมมอง 209ปีที่แล้ว
In this video series we will talk about the architecture decisions to design a smart contract to implement our own reddit clone using only the Solana blockchain. In part 3 of 4 video we will talk about how we would implement comment and replies. Follow me on: 🐦 Twitter: imJoshChang 🌐 Site: joshchang.io 📙 Solana Playlist: th-cam.com/video/-AAtfPHEMbA/w-d-xo.html SOLdit (Reddit Clone...
Solana Reddit Smart Contract Architecture Part 2: Upvoting Threads
มุมมอง 218ปีที่แล้ว
In this video series we will talk about the architecture decisions to design a smart contract to implement our own reddit clone using only the Solana blockchain. In part 2 of 4 video we will talk about how we would implement upvoting and downvoting threads. Follow me on: 🐦 Twitter: imJoshChang 🌐 Site: joshchang.io 📙 Solana Playlist: th-cam.com/video/-AAtfPHEMbA/w-d-xo.html SOLdit (...
Solana Reddit Smart Contract Architecture Part 1: Feeds and Threads
มุมมอง 672ปีที่แล้ว
In this video series we will talk about the architecture decisions to design a smart contract to implement our own reddit clone using only the Solana blockchain. In part 1 of 4 video we will talk about what choices were made to create a thread. Follow me on: 🐦 Twitter: imJoshChang 🌐 Site: joshchang.io 📙 Solana Playlist: th-cam.com/video/-AAtfPHEMbA/w-d-xo.html SOLdit (Reddit Clone)...
Solana Whitepaper Artchitecture Reaction ft. @the.york.wei
มุมมอง 407ปีที่แล้ว
19In this video we will have a guest speaker, distributed system expert @the.york.wei who will be reacting to the Solana Whitepaper that you can find here: th-cam.com/video/079mUCjYpZs/w-d-xo.html You can find more about York @ his medium: medium.com/@the.york.wei Follow me on: 🐦 Twitter: imJoshChang 📙 Solana Playlist: th-cam.com/video/-AAtfPHEMbA/w-d-xo.html 00:00 - Intro 00:52 - R...
SOLdit Whitepaper: The Future of Social Media using the Solana Blockchain (Parody)
มุมมอง 586ปีที่แล้ว
Introducing SOLdit, the future of social media... In this short video we will go over the high level of creating a reddit clone using Solana as the backend that will be used as the foundation for future video's WARNING: This is a tutorial ONLY, there is no ICO. Follow me on: 🐦 Twitter: imJoshChang 🌐 Site: joshchang.io 📙 Solana Playlist: th-cam.com/video/-AAtfPHEMbA/w-d-xo.html
Is Crypto Dead? I Built A Solana Transaction Dashboard to Check!
มุมมอง 501ปีที่แล้ว
After the FTX scandal and the cascading dominos of crypto exchanges, how do we know if crypto (and Solana) is still growing? To answer that question, I spent some time setting up my personal site: joshchang.io to help answer that question! In this video, I went through the framework, libraries, data sources that I used to setup my dashboard! Leave requests for any data that you're interested in...
Move to cold storage NOW! FTX Collapse and Contagion Effects
มุมมอง 252ปีที่แล้ว
I don't want to start a bank run, but I'm starting a bank run! Crypto exchanges (FTX, Crypto.com) and lending platforms (Block-Fi, Genisis, Gemini Earn) are pausing withdrawals due to liquidity issues after the contagion effects of FTX collapsing. This is a PSA to move your crypto off of exchanges and into cold storage! Follow me on: 🐦 Twitter: imJoshChang 📙 Solana Playlist: th-cam....
Solana Whitepaper Explained | Understanding Proof of History, Validators, Staking, and More!
มุมมอง 9Kปีที่แล้ว
Let's be honest, when you bought some Solana, did you reaaallly know how the technology works? Luckily for you! In this video I will be going through the Solana whitepaper and docs so you don't have to! We'll be talking about the Solana blockchain architecture and all the different things to consider when making a L1 solution! Follow me on: 🐦 Twitter: imJoshChang 📙 Solana Playlist: ...
Next.js Crash Course + Crypto Project | Routes, Pre-Rendering (SSG, SSR, ISR, CSR), API
มุมมอง 2.7Kปีที่แล้ว
In this video you will learn everything you need to know to get started to build an app using Next.js. We will be applying the topics that we learn in this video to build a simple app that will fetch information about your favorite cryptocurrencies. Topics that wil be covered: 1) Page routing 2) Next.JS Html components and CSS modules 3) Different rendering/data fetching Strategies (Static Site...
Solana Tutorial: Writing Anchor Tests for PDA's | Writing Typescript Jasmine tests
มุมมอง 2.5Kปีที่แล้ว
In the previous video's, I said that we couldn't write any tests for PDA using anchor and instead we had to write a whole client app insead... ...well it turns out I was DEAD wrong! You can! I just made some mistakes writing my tests! In this video we will learn how to test your anchor PDA code! Github: github.com/chang47/solana-pda-example-program 📙 Solana Playlist: th-cam.com/video/-AAtfPHEMb...
Solana Tutorial: Writing a dApp to Work With PDA's | React, Next.js, Anchor
มุมมอง 3.9Kปีที่แล้ว
In this video we will create a basic dApp using React.js, Next.js, and Anchor to create a frontend that will be able to talk with the Escrow Program that we wrote in the previous video (check out links below) Github: github.com/chang47/solana-pda-dapp Previous Video Github: github.com/chang47/solana-pda-example-program 📙 Solana Playlist: th-cam.com/video/-AAtfPHEMbA/w-d-xo.html 💰 Donations acce...
Solana Tutorial: Creating PDA's with Anchor
มุมมอง 4.5Kปีที่แล้ว
In this video we're going to learn an important development concept with Solana: PDA's or Program Derived Addresses. We will learn what they are and how to use them. Github: github.com/chang47/solana-pda-example-program 📙 Solana Playlist: th-cam.com/video/-AAtfPHEMbA/w-d-xo.html 💰 Donations accepted (but optional): 2hYca42EE2kwmFZPV7M4skev1za7atWBh5ctzQWfsTD7 00:00 - Intro 00:13 - Video Overvie...
Solana Smart Contract: Minting and Transfering Token/NFT with Anchor
มุมมอง 12Kปีที่แล้ว
In the final video of our 3 part series, we're going to finally see how we can use the SPL Token library to transfer/mint and transfer token/nft to other people using using the Anchor framework. Github: github.com/chang47/Anchor-Mint-and-Transfer-Smart-Contract 📙 Solana Playlist: th-cam.com/video/-AAtfPHEMbA/w-d-xo.html 💰 Donations accepted (but optional): 2hYca42EE2kwmFZPV7M4skev1za7atWBh5ctzQ...
Solana Development: Upgrading to Anchor 0.24.2 (and why my code doesn't build)
มุมมอง 1.9K2 ปีที่แล้ว
Solana Development: Upgrading to Anchor 0.24.2 (and why my code doesn't build)
Building a React App to Mint Tokens and NFTs on Solana
มุมมอง 12K2 ปีที่แล้ว
Building a React App to Mint Tokens and NFTs on Solana
Solana Tutorial: Minting and sending Tokens and NFTs Part 1: CLI
มุมมอง 8K2 ปีที่แล้ว
Solana Tutorial: Minting and sending Tokens and NFTs Part 1: CLI
Solana Smart Contract Tutorial: Using Phantom Wallet to create a DApp | React, Anchor
มุมมอง 21K2 ปีที่แล้ว
Solana Smart Contract Tutorial: Using Phantom Wallet to create a DApp | React, Anchor
Solana Smart Contract Tutorial: Using the Anchor Framework
มุมมอง 24K2 ปีที่แล้ว
Solana Smart Contract Tutorial: Using the Anchor Framework
Solana Smart Contract Tutorial: Logging and Testing Examples
มุมมอง 6K2 ปีที่แล้ว
Solana Smart Contract Tutorial: Logging and Testing Examples
Solana Smart Contract Tutorial: Sending and Unpacking Instruction Data
มุมมอง 13K2 ปีที่แล้ว
Solana Smart Contract Tutorial: Sending and Unpacking Instruction Data
Solana Smart Contract Development: Hello World Tutorial | Rust and Typescript walkthrough
มุมมอง 34K2 ปีที่แล้ว
Solana Smart Contract Development: Hello World Tutorial | Rust and Typescript walkthrough
Solana Smart Contract Dev Environment Setup + Some Consle Solana Commands
มุมมอง 17K2 ปีที่แล้ว
Solana Smart Contract Dev Environment Setup Some Consle Solana Commands
Solana Development: Smart Contract Life Cycle High Level
มุมมอง 22K2 ปีที่แล้ว
Solana Development: Smart Contract Life Cycle High Level
Rust Crash Course Tutorial for Solana
มุมมอง 80K2 ปีที่แล้ว
Rust Crash Course Tutorial for Solana
My Plutus Development Experience in 2021: Problems and Why It Will Be Okay
มุมมอง 2.3K2 ปีที่แล้ว
My Plutus Development Experience in 2021: Problems and Why It Will Be Okay
Debugging and Working with UTXO's in Plutus
มุมมอง 4372 ปีที่แล้ว
Debugging and Working with UTXO's in Plutus
Plutus Development: Working with Time to Set Deadlines
มุมมอง 6072 ปีที่แล้ว
Plutus Development: Working with Time to Set Deadlines
Plutus Development: Creating a Basic Smart Contract
มุมมอง 7K2 ปีที่แล้ว
Plutus Development: Creating a Basic Smart Contract

ความคิดเห็น

  • @oghenekarouzezi4504
    @oghenekarouzezi4504 5 วันที่ผ่านมา

    Great Video, but i want to make correction on the little and big endian. Little and Big endian only affect the arrangement of bytes, not bits inside a byte.

  • @anthonyhowell5809
    @anthonyhowell5809 8 วันที่ผ่านมา

    the {} syntax is so strange i had to run it by chatGPT to determine if the dev actually knew what they were talking about. it turns out they do (so far) nice video thank you for sharing the content.

  • @2SHARP4UIQ150
    @2SHARP4UIQ150 12 วันที่ผ่านมา

    @JoshsDevBox Do you trust Solana js libraries and all the dependencies included?

  • @temzeks
    @temzeks 12 วันที่ผ่านมา

    Are there any alternatives for a javascript developer to develop on solana with js instead of rust?

  • @rohanrambhiya7774
    @rohanrambhiya7774 18 วันที่ผ่านมา

    You explain the concept very great but the punctuation i.e. the way you speak is difficult to understand and have to again and again listen to it

  • @speedlead4008
    @speedlead4008 18 วันที่ผ่านมา

    declare_id seems to be program id

  • @zacherywagner1189
    @zacherywagner1189 24 วันที่ผ่านมา

    O(N) is not > than O(N Log n)

  • @GethsemaneTech
    @GethsemaneTech 25 วันที่ผ่านมา

    Hey man. I need this urgently. I want to create tokens but I want the users of my app to be the ones to sign these transactions. I do not want to create Keypair.generate() to generate a random wallet. please how do I go about this?

  • @signalrod2213
    @signalrod2213 26 วันที่ผ่านมา

    Thank you man

  • @mrtherapy309
    @mrtherapy309 27 วันที่ผ่านมา

    Mehn, this dude talks too much. WTH. Just go straight to the damn point

  • @prashantsoni672
    @prashantsoni672 28 วันที่ผ่านมา

    thanks

  • @dangelgeek
    @dangelgeek หลายเดือนก่อน

    I got this error when run the test Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: Program failed to complete

  • @2SHARP4UIQ150
    @2SHARP4UIQ150 หลายเดือนก่อน

    As Josh mentioned at 7:21, this tutorial is front-end using Javascript. I will go further and say you are crazy if you use this tutorial for production. Bad characters will abuse your system.

  • @thomaspappas3674
    @thomaspappas3674 หลายเดือนก่อน

    After delving into a few different blockchain networks... Have you come to a conclusion which one is your favorite? and if so, I'd love to hear why!

  • @Michael-im5mq
    @Michael-im5mq หลายเดือนก่อน

    The only negative I can say is that you stopped posting videos (just in general, not just Solana). Otherwise this is amazing, and I've been following each Solana video and setup a nice development environment thanks to them and recreated the examples so I know it all functions. I like the fact that you attach attention to things like logging and tests. I hope you will consider posting new dev videos in the future. Either way your videos are legendary!

  • @zenithlight6132
    @zenithlight6132 หลายเดือนก่อน

    23:54 The fact that for a few seconds after sending a transaction the receiver won't see their balance update says nothing about strong consistency. Strong consistency is only talking about committed writes. In the case of a database, that means the write operation will block until all nodes have committed the new state, then it will return a success. In the case of a blockchain, that means that once a block that includes a transaction is finalized, that every validator will have the same view on your friend's balance.

  • @TheVioArtsofficial
    @TheVioArtsofficial หลายเดือนก่อน

    This is one of the most brain crushing code of line I ever saw xD greeting_account.serialize(&mut &mut account.data.borrow_mut()[..])?;

  • @TheVioArtsofficial
    @TheVioArtsofficial หลายเดือนก่อน

    Why we use the WSL Stuff? Why I cant just begin locally? Why I have to work with a container there?

    • @user-jd8pz3lz6s
      @user-jd8pz3lz6s หลายเดือนก่อน

      You can do all this on Linux, so that you dont need wsl. Here he uses windows and to interact with local solana blockchain we need to run test validator on linux machine

  • @TheVioArtsofficial
    @TheVioArtsofficial หลายเดือนก่อน

    Really nice video bro! Like it!

  • @TheVioArtsofficial
    @TheVioArtsofficial หลายเดือนก่อน

    HAHAH this [0..6] <-- without including 6 itself its totally crazy xD why they did some sh*t haha :D

  • @Michael-im5mq
    @Michael-im5mq หลายเดือนก่อน

    You should post more dapp development videos. These are really great. You really did a great job creating a videos that will get developers up to speed ASAP with Solana Development

  • @prashantsriharsh0232
    @prashantsriharsh0232 หลายเดือนก่อน

    i have done same thing i have created a program for claim and deposit function i can't able hit my deposit function as i getting unknown signer or decalredprogramidMisMatch and all.? can do i need to create PDA account ? as for now i am generatting randome address for storage.

  • @SMoore-vj7bt
    @SMoore-vj7bt หลายเดือนก่อน

    Regardless of the POH, it is centralized because of PoS (proof-of-stake) is centralized. All fungible resources are power-law distributed in nature. There are no exceptions. Thus stake is always power-law distributed. Thus 50+% of the stake is actually in control and can do whatever it wants with the block chain. I verified the mechanism by which 50+% stake can take control of Ethereum for example. I have done this analysis for many proof-of-stake systems, and there will be no exceptions as it is a fundamental invariant. This applies to Ethereum and every altcoin that is not proof-of-work. Eventually this will manifest itself. For now everyone is making enough money on mining the FOMO. The entire industry is a scam. SOL(ana) is just more of the usual aping dogsh8t. More on this at the appropriate time and venue.

  • @Michael-im5mq
    @Michael-im5mq หลายเดือนก่อน

    Successfully cross compiled hello world into SVM bytecode! It wasn't as smooth as this video due to the hello world repo aging badly. The compiler was throwing errors about getrandom not meeting target platform specifications but I managed to fix that by setting the custom flag in Cargo.toml for get random. Also must use Solana-program 1.18.11

    • @user-jd8pz3lz6s
      @user-jd8pz3lz6s หลายเดือนก่อน

      I faced with multiple errors too Updating all dependencies to the latest versions resolved all the problems Especially solana-program library to 1.18.12 version

  • @yankomirov4290
    @yankomirov4290 หลายเดือนก่อน

    This was very well explained, thanks!

  • @Michael-im5mq
    @Michael-im5mq หลายเดือนก่อน

    Super helpful videos! Keep making more!

  • @WilliamBrown-ug1hv
    @WilliamBrown-ug1hv หลายเดือนก่อน

    Sponge V2 is unstoppable, join the revolution! 🚀🔥

  • @riiya7928
    @riiya7928 หลายเดือนก่อน

    nice tutorial but how do I name the tokens like how can I add name, symbol and image?

  • @joshshen8191
    @joshshen8191 หลายเดือนก่อน

  • @irfansmile7684
    @irfansmile7684 หลายเดือนก่อน

    When running the command solana-test-validator, an error occurs. Please resolve this issue. @JoshsDevBox

  • @irfansmile7684
    @irfansmile7684 หลายเดือนก่อน

    When running the command solana-test-validator, an error occurs. Please resolve this issue. plsss plsss josh

  • @sriakhil
    @sriakhil หลายเดือนก่อน

    Thanks for the time and effort. Really helped me, a complete web3 beginner understand the logic. Props to you!

  • @MayaC-td4jl
    @MayaC-td4jl หลายเดือนก่อน

    Amazing! One question I have been trying to understand is how does solana determine which tx are dropped when there is network overload?

  • @VictorChuqz
    @VictorChuqz หลายเดือนก่อน

    anchor installation link is down

  • @yulongcoding9542
    @yulongcoding9542 2 หลายเดือนก่อน

    Great job! thank you!

  • @kiaraki7186
    @kiaraki7186 2 หลายเดือนก่อน

    26:59 , why is it that str.push('1') doest thow an error but string.push() does thank you

  • @andyding7397
    @andyding7397 2 หลายเดือนก่อน

    Awesome ! How can I contact you?

  • @user-up6bf7du5c
    @user-up6bf7du5c 2 หลายเดือนก่อน

    thanks

  • @abhinavsingh7919
    @abhinavsingh7919 2 หลายเดือนก่อน

    Thanks josh for this wonderful intro. You are awesome!

  • @yungdynamic5799
    @yungdynamic5799 2 หลายเดือนก่อน

    this is great...it gives elon musk vibes 😃

  • @xiaomubiao666
    @xiaomubiao666 2 หลายเดือนก่อน

    兄弟,有没有solana开发者,项目需要人手,如何联系你

  • @zmuhammad-only2889
    @zmuhammad-only2889 2 หลายเดือนก่อน

    Thank you! best explanation I've seen thus far!

  • @shxkxth8135
    @shxkxth8135 2 หลายเดือนก่อน

    If you ever feel down, remember this. You effing saved my life man. I just might pass my final year project because of you. I was stuck in frontend setup for solana for 3 weeks. JSON.stringify and JSON.parse is pure genious. even AI couldn't fix it. I was about to give up. You are the best. Wish you all the best

    • @Michael-im5mq
      @Michael-im5mq หลายเดือนก่อน

      While I am not doing this to pass a final year project, I also think Josh is a hero! He should be a CS professor

  • @AhmedKhan-rt6oz
    @AhmedKhan-rt6oz 2 หลายเดือนก่อน

    Please make new videos

  • @AhmedKhan-rt6oz
    @AhmedKhan-rt6oz 2 หลายเดือนก่อน

    Why videos from you are stopping

  • @user-sv4km6wl7l
    @user-sv4km6wl7l 2 หลายเดือนก่อน

    салам

  • @berhanxo
    @berhanxo 2 หลายเดือนก่อน

    My question is why don't the verifiers just commit the block directly to the ledger instead of handing this decision back to the leader node?

  • @StoicGucci
    @StoicGucci 2 หลายเดือนก่อน

    Great content, as always! Huge fan of "that's not what this video is about." It's super focused and very helpful.

  • @surya.r3463
    @surya.r3463 2 หลายเดือนก่อน

    Because of you i got shortlisted in first round

  • @robinsonvela4444
    @robinsonvela4444 3 หลายเดือนก่อน

    I'm learning a lot from your videos, and I'm actually starting a venture with blockchain. Your assistance would be ideal for the project. I'd like to know if you have any availability for it