https://github.com/threshold-network/solidity-contracts
https://github.com/threshold-network/solidity-contracts
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/threshold-network/solidity-contracts
- Owner: threshold-network
- Created: 2021-07-20T15:29:44.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-02-26T00:00:18.000Z (over 1 year ago)
- Last Synced: 2025-02-26T01:18:01.778Z (over 1 year ago)
- Language: JavaScript
- Size: 2.41 MB
- Stars: 39
- Watchers: 16
- Forks: 18
- Open Issues: 23
-
Metadata Files:
- Readme: README.adoc
- Codeowners: CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
:toc: macro
= Threshold network contracts
This package contains Threshold network contracts.
toc::[]
== Build, test and deploy
Threshold contracts use https://hardhat.org/[*Hardhat*] development environment.
To build and deploy these contracts, please follow the instructions presented
below.
=== Prerequisites
Please make sure you have the following prerequisites installed on your machine:
- https://nodejs.org[Node.js] >14.17.4
- https://yarnpkg.com[Yarn] >1.22.10
=== Build contracts
To build the smart contracts, install node packages first:
```
yarn install
```
Once packages are installed, you can build the smart contracts using:
```
yarn build
```
Compiled contracts will land in the `build` directory.
=== Test contracts
There are multiple test scenarios living in the `test` directory.
You can run them by doing:
```
yarn test
```
=== Deploy contracts
To deploy all contracts on the given network, please run:
```
yarn deploy --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.