This repository contains all solidity smart contracts used by the MadNet.
- abigen 1.10.16
To build and deploy the contracts, we use a command line tool called dapp tools. Check the official dapptools documentation for instructions on how to install it.
Note: You will need to install Nix in order to install the dapp tools.
To install hardhat and all requirements to compile and test the smart contracts in this repository, run the following command at the root of this repository:
npm install
In addition to this, we also suggest the installation of the hardhat short hand extension:
npm i -g hardhat-shorthand
hardhat-completion install
Now to compile the contracts, run:
hh compile
To run the tests, TDA
To build the contracts run:
make all
To run all the tests:
make test
To clean the build artifacts, just run:
make clean
- Diamonds Smart Contract Pattern. The main architecture pattern used by the MadNet smart contracts.
- Dapp documentation. More information about the dapp commands and usage.