Testing Smart Contracts with Solo
What is Solo?
Solo is a testing framework that allows developers to validate real smart contracts and entire inter-chain protocols before deploying them on the distributed network.
Installation
Prerequisites
-
Go (version 1.20). As Solo tests are written in Go, you must install Go.
-
Docker. Solo will run a local IOTA network in a Docker container
Access the Solo Framework
You can access the Solo package by cloning the Wasp repository or installing the Solo package.
Clone the Wasp Repository
Solo is part of the Wasp codebase repository. You can access the Solo framework by cloning the repository with the following command:
git clone https://github.com/iotaledger/wasp.git
After you have cloned the repository, you can access the Solo package in the /packages/solo folder.
Install the Solo Package
You can install the Solo package separately using the following command:
go get github.com/iotaledger/wasp/packages/solo
You can browse the Solo Go API reference (updated to the master branch) in
go-docs.