State Space CLI
Hardhat Plugin
Hardhat users have the option of using the State Space Hardhat plugin.
This example uses the Tokeny T-REX contracts.
Install Plugin
Import Plugin
Add the following statements to your hardhat.config.ts
file:
hardhat.config.ts
Update Hardhat config file
In the hardhat.config.ts
file, add the statespace
object property to the Hardhat config. Below is an example deployment setup with added lines highlighted:
Example hardhat.config.ts
Deploy & Upload
Run the push
command to deploy and upload your project. Login to State Space Workbench to view your project.
If this is your first time, you will be asked to authenticate using your State Space login via a web link.
If you do not see your project, make sure you selected the correct team as specified in the
hardhat.config.ts
file.