Madnet/Bridge
This repository contains all solidity smart contracts used by the MadNet.
Requirements
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.
HardHat
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
Building and testing the smart contracts
To build the contracts run:
make all
To run all the tests:
make test
To clean the build artifacts, just run:
make clean
Useful Resources