This package contains Threshold network contracts.
Threshold contracts use Hardhat development environment. To build and deploy these contracts, please follow the instructions presented below.
Please make sure you have the following prerequisites installed on your machine:
To build the smart contracts, install node packages first:
yarn installOnce packages are installed, you can build the smart contracts using:
yarn buildCompiled contracts will land in the build directory.
There are multiple test scenarios living in the test directory.
You can run them by doing:
yarn testTo deploy all contracts on the given network, please run:
yarn deploy --network <network>If contracts haven’t been built yet or changes occurred, this task will build
the contracts before running the deployment script. This command produces
an export.json file containing contract deployment info.