Loading video player...
In this From Devs to Devs episode, Aditi builds the foundation of a decentralized file storage dApp using Rootstock, IPFS, and Pinata. She first explains how Rootstock extends Bitcoin with smart contract capabilities, then breaks down what IPFS is, why pinning services like Pinata are important, and how decentralized storage fits into the Web3 ecosystem. You’ll then learn how to set up Foundry, create a full smart contract for uploading, storing, retrieving, and deleting IPFS-based file metadata on-chain, run tests, and prepare a deployment script. This video sets the groundwork for Part 2, where the frontend will be implemented. ⸻ 🔗 Useful Resources Rootstock Developer Portal → https://dev.rootstock.io Hacktivator Program → https://rootstock.io/hacktivator Rootstock Faucet (tRBTC) → https://faucet.rootstock.io Rootstock Testnet Explorer → https://explorer.testnet.rootstock.io Chainlist (Add Rootstock RPC) → https://chainlist.org/chain/31 Foundry Documentation → https://book.getfoundry.sh IPFS Docs → https://docs.ipfs.tech ⸻ Timestamps 00:00 Introduction to Rootstock and Decentralized Storage 02:01 Understanding IPFS: The Interplanetary File System 05:05 Pinata: Ensuring Data Availability on IPFS 07:45 Building a Decentralized File Storage App on Rootstock 10:10 Setting Up the Development Environment 14:33 Creating Smart Contracts for File Storage 18:15 Implementing File Upload and Deletion Functions 22:17 Retrieving File Information and User Files 27:56 File Upload and Retrieval Functions 30:40 Contract Statistics and File Management 31:29 Testing File Storage Functionality 36:21 File Deletion and Ownership Verification 40:11 Handling Duplicate File Uploads 42:49 Deployment Script and Contract Execution