- /contracts/. This folder is where the smart contract source code resides.
- /migrations/. This folder hosts the relevant set of Truffle migration scripts used to publish the smart contracts to the blockchain.
- /scripts/. This folder contains scripts to run local forks.
- /test/. This folder contains relevant unit tests for Truffle written in Solidity.
Configuring the repository:
$ npm i
Compiling the smart contracts:
$ npm run build
Running the unit tests:
$ ./scripts/start-bscmain-fork.sh & npm run test
(Standard installation of Node 14.15.4 on Ubuntu 20.04)