This repository contains a simple dApp demo that showcases the use of a vault contract for depositing and withdrawing Runes (ERC20 tokens).
To install the necessary dependencies for this project, run the following command:
pnpm install
The repository is a monorepo managed by pnpm and consists of the following packages:
contracts
: Contains the smart contracts for the dApp.dapp
: Contains the frontend application that interacts with the smart contracts.
Please read the contracts README for instructions on how to compile and deploy the smart contracts.
To run the dApp, navigate to the dapp
package and start the development server:
cd apps/dapp
pnpm dev
Once the dApp is running, you can interact with it through your web browser. The dApp allows you to deposit and withdraw Runes (ERC20 tokens) from the vault contract.
Ensure you have Runes in your wallet and they have been added to the MIDL ecosystem.
- Install the XVerse wallet to manage your Runes and connect to the dApp.
- Get tBTC from the MIDL Faucet.
- Etch (mint) Runes with MIDL Token Minter
- Open your browser and navigate to
http://localhost:3000
. - Connect your wallet (e.g., XVerse).
- Use the dApp to deposit and withdraw Runes (ERC20 tokens) from the vault.
- You can view the transaction history on (Mempool)(http://mempool.regtest.midl.xyz) and on the MIDL Explorer.