Josh's DevBox
Josh's DevBox
  • 79
  • 527 314
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: czcams.com/video/-AAtfPHEMbA/video.html
🤖 SOLdit (Reddit Clone) Playlist: czcams.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
zhlédnutí: 1 497

Video

Solana Reddit Smart Contract Architecture Part 4: Comment Upvote
zhlédnutí 322Před rokem
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: czcams.com/video/-AAtfPHEMbA/video.html SOLdit (Reddit Clone) Play...
Solana Reddit Smart Contract Architecture Part 3: Comments and Replies
zhlédnutí 241Před rokem
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: czcams.com/video/-AAtfPHEMbA/video.html SOLdit (Reddit Clone)...
Solana Reddit Smart Contract Architecture Part 2: Upvoting Threads
zhlédnutí 241Před rokem
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: czcams.com/video/-AAtfPHEMbA/video.html SOLdit (R...
Solana Reddit Smart Contract Architecture Part 1: Feeds and Threads
zhlédnutí 760Před rokem
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: czcams.com/video/-AAtfPHEMbA/video.html SOLdit (Reddit Clone) ...
Solana Whitepaper Artchitecture Reaction ft. @the.york.wei
zhlédnutí 450Před rokem
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: czcams.com/video/079mUCjYpZs/video.html You can find more about York @ his medium: medium.com/@the.york.wei Follow me on: 🐦 Twitter: imJoshChang 📙 Solana Playlist: czcams.com/video/-AAtfPHEMbA/video.html 00:00 - Intro 00:52 - Rea...
SOLdit Whitepaper: The Future of Social Media using the Solana Blockchain (Parody)
zhlédnutí 649Před rokem
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: czcams.com/video/-AAtfPHEMbA/video.html
Is Crypto Dead? I Built A Solana Transaction Dashboard to Check!
zhlédnutí 540Před rokem
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
zhlédnutí 261Před rokem
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: czcams....
Solana Whitepaper Explained | Understanding Proof of History, Validators, Staking, and More!
zhlédnutí 11KPřed rokem
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
zhlédnutí 3,1KPřed rokem
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
zhlédnutí 2,8KPřed 2 lety
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: czcams.com/video/-AAtfPHEMb...
Solana Tutorial: Writing a dApp to Work With PDA's | React, Next.js, Anchor
zhlédnutí 4,2KPřed 2 lety
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: czcams.com/video/-AAtfPHEMbA/video.html 💰 Donations accep...
Solana Tutorial: Creating PDA's with Anchor
zhlédnutí 4,9KPřed 2 lety
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: czcams.com/video/-AAtfPHEMbA/video.html 💰 Donations accepted (but optional): 2hYca42EE2kwmFZPV7M4skev1za7atWBh5ctzQWfsTD7 00:00 - Intro 00:13 - Video Overview...
Solana Smart Contract: Minting and Transfering Token/NFT with Anchor
zhlédnutí 13KPřed 2 lety
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: czcams.com/video/-AAtfPHEMbA/video.html 💰 Donations accepted (but optional): 2hYca42EE2kwmFZPV7M4skev1za7atWBh5ctzQW...
Solana Development: Upgrading to Anchor 0.24.2 (and why my code doesn't build)
zhlédnutí 2,1KPřed 2 lety
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
zhlédnutí 13KPřed 2 lety
Building a React App to Mint Tokens and NFTs on Solana
Solana Tutorial: Minting and sending Tokens and NFTs Part 1: CLI
zhlédnutí 8KPřed 2 lety
Solana Tutorial: Minting and sending Tokens and NFTs Part 1: CLI
Solana Smart Contract Tutorial: Using Phantom Wallet to create a DApp | React, Anchor
zhlédnutí 22KPřed 2 lety
Solana Smart Contract Tutorial: Using Phantom Wallet to create a DApp | React, Anchor
Solana Smart Contract Tutorial: Using the Anchor Framework
zhlédnutí 26KPřed 2 lety
Solana Smart Contract Tutorial: Using the Anchor Framework
Solana Smart Contract Tutorial: Logging and Testing Examples
zhlédnutí 6KPřed 2 lety
Solana Smart Contract Tutorial: Logging and Testing Examples
Solana Smart Contract Tutorial: Sending and Unpacking Instruction Data
zhlédnutí 14KPřed 2 lety
Solana Smart Contract Tutorial: Sending and Unpacking Instruction Data
Solana Smart Contract Development: Hello World Tutorial | Rust and Typescript walkthrough
zhlédnutí 37KPřed 2 lety
Solana Smart Contract Development: Hello World Tutorial | Rust and Typescript walkthrough
Solana Smart Contract Dev Environment Setup + Some Consle Solana Commands
zhlédnutí 19KPřed 2 lety
Solana Smart Contract Dev Environment Setup Some Consle Solana Commands
Solana Development: Smart Contract Life Cycle High Level
zhlédnutí 24KPřed 2 lety
Solana Development: Smart Contract Life Cycle High Level
Rust Crash Course Tutorial for Solana
zhlédnutí 89KPřed 2 lety
Rust Crash Course Tutorial for Solana
My Plutus Development Experience in 2021: Problems and Why It Will Be Okay
zhlédnutí 2,3KPřed 2 lety
My Plutus Development Experience in 2021: Problems and Why It Will Be Okay
Debugging and Working with UTXO's in Plutus
zhlédnutí 440Před 2 lety
Debugging and Working with UTXO's in Plutus
Plutus Development: Working with Time to Set Deadlines
zhlédnutí 610Před 2 lety
Plutus Development: Working with Time to Set Deadlines
Plutus Development: Creating a Basic Smart Contract
zhlédnutí 7KPřed 2 lety
Plutus Development: Creating a Basic Smart Contract

Komentáře

  • @darkknight3929
    @darkknight3929 Před 23 hodinami

    great one

  • @undefined8102
    @undefined8102 Před 10 dny

    ❯ solana-test-validator Ledger location: test-ledger Log: test-ledger/validator.log Error: failed to start validator: Failed to create ledger at test-ledger: io error: Error checking to unpack genesis archive: Archive error: extra entry found: "._genesis.bin" Regular

  • @nolanfaselt
    @nolanfaselt Před 16 dny

    Does solana have a max number of tokens or can they be made?

  • @damonpalovaara4211
    @damonpalovaara4211 Před 18 dny

    I bet youre happy if you kept hodling sol

  • @sodlock4666
    @sodlock4666 Před 24 dny

    I don't understand why you put amount[0] like an array.

  • @pamarthisainarasimham8444

    sir,nowadays this rust software is unavailable,so wat should i do now ,,

  • @user-if2mi3tr1y
    @user-if2mi3tr1y Před 25 dny

    How to add image logo and name token

  • @jabrowski_
    @jabrowski_ Před 26 dny

    This is great but please sound check ur videos

  • @lucascrypto9230
    @lucascrypto9230 Před 29 dny

    For all those who are experiencing errors, first, update the dependencies to the most recent version: "@solana/buffer-layout": "^4.0.1", "@solana/web3.js": "^1.33.0", "borsh": "^0.7.0", "buffer": "^6.0.3", when creating the instruction layout, import "Layout" from "@solana/buffer-layout" import { Layout } from '@solana/buffer-layout'; and define the layout as follows create an interface with the instruction structure: interface InstructionLayout { instruction: number } interface SetInstructionLayout { instruction: number, value: number } and now const layout : Layout<InstructionLayout> = BufferLayout.struct... const set_layout : Layout<SetInstructionLayout> = BufferLayout.struct... my vscode still points out an "error" in the layout.encode function, but you can just ignore it...

  • @brianwsmithers
    @brianwsmithers Před měsícem

    Thanks for the video. I enjoyed the explanation. My only recommendation would be for you to run the coding example in an IDE using the debugger. It would be easier to visualize each step of the algorithm since the operations would appear on screen.

  • @aditya9896
    @aditya9896 Před měsícem

    This was the best explanation for me, understanding to approach a problem and optimising it later is the key, Thank you for showing the application on solution very helpful, subbed

  • @wizardgaming163
    @wizardgaming163 Před měsícem

    This was the worst video

  • @yehoriliushchenko4401
    @yehoriliushchenko4401 Před měsícem

    Josh, thank you for your video! For a long time blockchain development been something far for me, but now i see it's essentially a DB. Thx!

  • @ChristopherTritton-hr1zg
    @ChristopherTritton-hr1zg Před měsícem

    the benefit of keeping it assert.ok is that you can feed in a variable in to the assert for the new number instead of hardcoding a new BN

  • @ArinzeEmmanuel-g2e
    @ArinzeEmmanuel-g2e Před měsícem

    Bro you can’t teach

  • @dennis_made_it
    @dennis_made_it Před měsícem

    love it

  • @jnayehsirine6222
    @jnayehsirine6222 Před 2 měsíci

    the best solution out there , i looked almost at all of them

  • @satoshinakamoto-lh5ph
    @satoshinakamoto-lh5ph Před 2 měsíci

    thanks for the tutorial king!

  • @prchaser2081
    @prchaser2081 Před 2 měsíci

    any code on github?

  • @Amine-yq7jg
    @Amine-yq7jg Před 2 měsíci

    can you please tell me why the userThreadAccount is an PDA when it's specific to a user, can't we use the user's pubkey for it at 6:06

  • @oghenekarouzezi4504
    @oghenekarouzezi4504 Před 2 měsíci

    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 Před 3 měsíci

    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 Před 3 měsíci

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

  • @temzeks
    @temzeks Před 3 měsíci

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

  • @rohanrambhiya7774
    @rohanrambhiya7774 Před 3 měsíci

    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 Před 3 měsíci

    declare_id seems to be program id

  • @zacherywagner1189
    @zacherywagner1189 Před 3 měsíci

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

  • @GethsemaneTech
    @GethsemaneTech Před 3 měsíci

    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 Před 3 měsíci

    Thank you man

  • @mrtherapy309
    @mrtherapy309 Před 3 měsíci

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

  • @prashantsoni672
    @prashantsoni672 Před 3 měsíci

    thanks

  • @dangelgeek
    @dangelgeek Před 3 měsíci

    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 Před 3 měsíci

    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 Před 3 měsíci

    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 Před 3 měsíci

    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 Před 3 měsíci

    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 Před 4 měsíci

    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 Před 4 měsíci

    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 Před 4 měsíci

      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 Před 4 měsíci

    Really nice video bro! Like it!

  • @TheVioArtsofficial
    @TheVioArtsofficial Před 4 měsíci

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

  • @Michael-im5mq
    @Michael-im5mq Před 4 měsíci

    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 Před 4 měsíci

    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.

  • @Anonymint-vj7bt
    @Anonymint-vj7bt Před 4 měsíci

    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 Před 4 měsíci

    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 Před 4 měsíci

      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 Před 4 měsíci

    This was very well explained, thanks!

  • @Michael-im5mq
    @Michael-im5mq Před 4 měsíci

    Super helpful videos! Keep making more!

  • @WilliamBrown-ug1hv
    @WilliamBrown-ug1hv Před 4 měsíci

    Sponge V2 is unstoppable, join the revolution! 🚀🔥

  • @riiya7928
    @riiya7928 Před 4 měsíci

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

  • @joshshen8191
    @joshshen8191 Před 4 měsíci

  • @irfansmile7684
    @irfansmile7684 Před 4 měsíci

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