Introduction
The following is an end-to-end guide for building and deploying dApps on MANTRA Chain EVM.
Introduction
Welcome to the MANTRA Zero to Hero dApp Development Guide
This guide will walk you through building and deploying a complete decentralized application (dApp) on MANTRA’s EVM-compatible Dukong Testnet from smart contract creation to frontend deployment.
Disclaimer
The source code of the example dApp used in this guide is for demonstration purposes only. It may contain security flaws and bugs. It is incomplete for production ready code. But, for the purposes of this guide, demonstrating how to build on MANTRA Chain, it is more than adequate.
Who Is This Guide For
This guide is for anyone that is planning on building on MANTRA Chain with EVM, or anyone that is simply curious. Given that MANTRA Chain is fully EVM compatible, developers that are experienced building on other EVM chains should find building on MANTRA Chain straightforward.
Throughout this guide, we will presume some prior knowledge and experience. We will be using MetaMask for interacting with our dApp, and so, we presume that you have some experience with using and configuring MetaMask. If you don't have MetaMask installed, you can install if you wish to follow along with this guide.
Instructions to install MetaMask wallet for your browser can be found here: https://metamask.io/download
In developing the Solidity contracts we have used Foundry. You could also use Hardhat if you wish. Foundry is a newer means to manage smart contract deployments for EVM. It's blazing-fast speed and solidity-centric approach makes it a great alternative to the bulkier, Javascript-based Hardhat.
You can find the Foundry docs to get you started here: https://getfoundry.sh/introduction/getting-started
What We'll Be Building
For the purpose of this guide we've put together a simple demo project of Solidity smart contracts and a frontend. The demo dApp is a basic example of RWA tokenization we've named RealEstateToken. You can find the project's GitHub repository here: https://github.com/dkillen/real-estate-token
Getting Started
Before we begin building our dApp, let's get a wallet set up to use the Dukong Testnet. This will help us to deploy our contracts to the MANTRA Dukong testnet and interact with our dApp once we've deployed it.
Follow the instructions to set up your MetaMask wallet here: Wallet Setup Instructions - Dukong testnet
Getting Testnet OM
If you're following along with this guide, we recommend creating 3 or 4 accounts that you can use to deploy the contracts and then interact with the dApp.
Once you've created your accounts you need to fund them. You'll find the Dukong OM faucet here: https://faucet.dukong.mantrachain.io/
The faucet will give you 10 OM per day to play with. That will be more than enough to follow along here.
Next Steps
Next, we'll get our Foundry project set up to build and deploy the Solidity contracts.
Last updated