This guide provides instructions on how to set up your development environment for building on BrickChain.
Before you begin, ensure you have the following installed:
BrickChain smart contracts are written in Compact, a language designed for the Midnight network.
To get started with Compact, we recommend following the official Dev Diary for setting up the developer tools:
This guide will walk you through installing the necessary tools to compile, test, and deploy your Compact smart contracts.
- OpenZeppelin Contracts for Compact: A library of reusable and secure smart contracts.
- NFT Library for Midnight: A library for building NFT contracts.
- Compact Language Reference: The official language reference for Compact.
For building user interfaces that interact with BrickChain, we recommend using MidnightJS.
MidnightJS is a JavaScript library that provides a simple and consistent interface for interacting with the Midnight network and smart contracts.
To connect your DApp to user wallets for read-only functionality and other interactions, you can use the DApp Connector.
To see how everything fits together, check out these example projects and resources:
- Awesome DApps Repo: A curated list of awesome DApps and resources for the Midnight network.
- Starter Templates: The
awesome-dappsrepository contains starter templates to help you get up and running quickly.
With your environment set up, you are now ready to start building on BrickChain. Happy hacking!