Skip to content

vzotova/nucypher-contracts

 
 

Repository files navigation

NuCypher contracts

Contracts from the main NuCypher codebase extracted into a separate repo for ease of testing and interoperability with other projects.

Structure

  • artifacts: ABI and address of deployed contracts
  • contracts: Source code for contracts
  • scripts: Deployment scripts
  • tests: Contract tests

Installation

We use Brownie as the testing and deployment framework of this project.

Configuring Pre-commit

To install pre-commit locally:

pre-commit install

Github Actions envvars

In future, we may need to set the following:

  • ETHERSCAN_TOKEN: Etherscan API token, required to query source files from Etherscan.
  • GITHUB_TOKEN: Github personal access token, required by py-solc-x when querying installable solc versions.
  • WEB3_INFURA_PROJECT_ID: Infura project ID, required for connecting to Infura hosted nodes.

Running the Tests

This project uses tox to standardize the local and remote testing environments. Note that tox will install the dependencies from requirements.txt automatically and run a linter (black); if that is not desirable, you can just run py.test.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 95.9%
  • Python 4.1%