npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@iexec-nox/nox-protocol-contracts

v0.2.4

Published

Nox protocol smart contracts

Downloads

1,164

Readme

Nox · nox-protocol-contracts

License Docs Discord Tag npm codecov

Solidity contracts for the Nox protocol: manage encrypted handles, validate proofs, and trigger confidential computations.

Table of Contents

Overview

nox-protocol-contracts is the Solidity layer of the Nox protocol. It provides:

  • NoxCompute: the main UUPS-upgradeable contract that manages the Access Control List (ACL) for encrypted handles, validates handle proofs issued by a trusted gateway, facilitates plaintext-to-encrypted conversions, and triggers off-chain TEE computations through event emissions.
  • INoxCompute: the public interface consumed by application contracts and off-chain services.
  • Nox SDK library (contracts/sdk/Nox.sol): a convenience wrapper that resolves the NoxCompute proxy address per chain and exposes typed helper functions for application contracts.

Prerequisites

  • Node.js >= 24 (see .nvmrc)
  • pnpm >= 10 (see packageManager in package.json)
  • Hardhat >= 3

Getting Started

git clone https://github.com/iExec-Nox/nox-protocol-contracts.git
cd nox-protocol-contracts

# Use the correct Node version
nvm install && nvm use

# Install dependencies
pnpm install

# Build contracts
pnpm run build

Environment Variables

| Variable | Description | Required | Default | | ------------------- | ---------------------------------------------- | ----------------- | ------- | | RPC_URL | JSON-RPC endpoint for the target network | For remote deploy | - | | PRIVATE_KEY | Deployer private key | For remote deploy | - | | ETHERSCAN_API_KEY | API key for contract verification on Etherscan | For verification | - |

Testing

# Run all tests (unit + integration)
pnpm run test

# Run tests with gas stats
pnpm run test:gas

# Run coverage
pnpm run coverage

Deployment

The default network is a local EDR simulation. For external networks, set RPC_URL and PRIVATE_KEY:

# Local deploy
pnpm run deploy

# Production deploy (optimizer + viaIR)
pnpm run deploy:production

# Upgrade an existing proxy
pnpm run upgrade

Verification

Verify deployed contracts on Etherscan. Requires ETHERSCAN_API_KEY:

pnpm run verify arbitrumSepolia --network arbitrumSepolia

Configuration notes

  • CREATE2 salt is defined in config/config.ts.
  • Default owner addresses and KMS public keys per network are also defined in config/config.ts.
  • The SDK constants in contracts/sdk/Nox.sol must match the deployed proxy addresses.
  • OpenZeppelin manifest files in .openzeppelin/ track proxy deployments.

Related Repositories

| Repository | Description | | ------------------------------------------------------------------------------- | --------------------------------------------------- | | nox-handle-sdk | TypeScript SDK for handle encryption/decryption | | nox-offchain-deployment | Off-chain services (gateway, KMS, runner, ingestor) |

Contributing

Contributions are welcome. Please open an issue first to discuss your proposed changes.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/my-feature)
  3. Commit your changes
  4. Push to the branch (git push origin feature/my-feature)
  5. Open a Pull Request

Code style

# Format all files
pnpm run format

# Check formatting
pnpm run format:check

License

The Nox Protocol source code is released under the Business Source License 1.1 (BUSL-1.1).

The license will automatically convert to the MIT License under the conditions described in the LICENSE file.

The full text of the MIT License is provided in the LICENSE-MIT file.

Some files are dual-licensed under MIT:

  • All files in contracts/interfaces/, contracts/utils/, contracts/sdk/ may also be licensed under MIT (as indicated in their SPDX headers).