Loading video player...
In Part 2 of this tutorial, community contributor Aditii completes the RWA tokenization platform by writing unit tests and deploying the contracts live to the Rootstock testnet using Foundry. ✅ WHAT YOU'LL BUILD IN THIS PART - RegistryTest.sol — unit tests for the AllowListRegistry contract - RWATokenTest.sol — unit tests covering minting, transfers, freezing, pausing, and force transfers - Deploy script — automated deployment of both contracts to Rootstock testnet 🔧 WHAT YOU'LL LEARN - How to write Foundry unit tests using forge-std - Testing compliance enforcement: verified/frozen address checks - Testing pause/unpause and force transfer functionality - Securely managing private keys with a .env file - Running a Foundry deployment script with --broadcast on Rootstock testnet _____ ⚡ MISSED PART 1? Watch it first →https://youtu.be/i_mDD4FsxCg Part 1 covers the core smart contracts: AllowListRegistry and RWAToken Useful Resources - Foundry — https://getfoundry.sh - OpenZeppelin Contracts — https://docs.openzeppelin.com/contracts - Rootstock Testnet RPC — https://public-node.testnet.rsk.co - Rootstock Testnet Faucet (free tRBTC) — https://faucet.rootstock.io - Chainlist (add Rootstock to MetaMask) — https://chainlist.org - Rootstock Developer Docs — https://dev.rootstock.io _____ This video is part of the From Devs to Devs series — technical tutorials created by community contributors through the Rootstock Hacktivator program. 👉 Want to create your own tutorial and earn rewards? Learn more at https://rootstock.io/hacktivator/ _____ Timestamps 00:00 Introduction to Test Files and Deployment 04:56 Creating the Allowlist Registry Test 10:24 RWA Token Test Overview 18:26 Deployment Process and Conclusion #Rootstock #RWA #Blockchain #Solidity #Foundry #Bitcoin #DeFi #ERC20 #Web3 #SmartContracts #Tokenization #Testnet