Socket
Socket
Sign inDemoInstall

@threshold-network/solidity-contracts

Package Overview
Dependencies
368
Maintainers
4
Versions
87
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @threshold-network/solidity-contracts

:toc: macro


Version published
Weekly downloads
810
decreased by-49.47%
Maintainers
4
Created
Weekly downloads
 

Readme

Source

: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:

=== 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 <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.

FAQs

Last updated on 29 Sep 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc