This repository contains multiple contracts. Click on the contract to get more information:
All the contracts are located in the ./contracts/
directory. If you're going to work with the contracts, we recommend you to make it your home 🏠.
cd contracts/
A test build could be easily run with the following command:
cargo build
We facilitated some Makefile with the most common commands to help you. For example, a production ready release could be generated as follow:
make build
Inside the ./contracts/
directory you could easily run some unit testing for the contracts.
cargo test
The integration tests are located outside of the ./contracts/
in the ./workspaces
directory, that makes reference to the near_workspaces
framework used to test deployment and function call inside a local network.
Integration test could be run like this:
# Make sure to be under the ./workspace directory
cd workspace/
cargo run