Hardhat Testing

Video Tutorial

For the visually inclined, view our video explainer HERE.

Example Code

Hardhat test suite from our Money Router example

Hardhat Example

We recommend including the following imports and deployment scripts when setting up your hardhat tests. The deployTestFramework() script will allow you to deploy the framework using the SuperfluidFrameworkDeployer contract, and to call deployWrapperSuperToken() to mint fake Super Tokens for your tests.

Dependencies you'll need are listed at the top of the file, but if you already have a hardhat project set up, you'll likely only need @superfluid-finance/sdk-core and @superfluid-finance/ethereum-contracts.

Last updated

Was this helpful?