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

@chio-protocol/web3-contracts

v0.1.0

Published

Official Chio web3 runtime contract package

Readme

Chio Web3 Contracts

This package is the phase 145 realization of Chio's official web3 contract family:

  • ChioRootRegistry
  • ChioEscrow
  • ChioBondVault
  • ChioIdentityRegistry
  • ChioPriceResolver

The source shapes come from docs/research/CHIO_WEB3_CONTRACT_ARCHITECTURE.md, but the implementation tightens three research-era gaps deliberately:

  1. RFC6962 proof verification needs leafIndex and treeSize. The research interface examples omitted those fields in the public methods, so the contracts add *Detailed overloads and make the under-specified methods revert fail closed.
  2. Signature-based escrow release must bind escrowId, settledAmount, and chain context into the signed payload. Verifying a bare receiptHash would leave the amount under-specified.
  3. Root publication supports explicit delegate publishers so Chio can authorize automation or HA anchoring infrastructure without widening operator trust.

The compiled interface artifacts under contracts/artifacts/interfaces/ are also the canonical binding input for crates/chio-web3-bindings/. Chio now derives the Rust Alloy surface from those compiled interface artifacts instead of maintaining a second handwritten contract interface inventory.

The money-handling boundary is intentionally narrow:

  • ChioBondVault locks collateral on-chain and preserves reserve requirement metadata from the signed Chio bond artifact for parity checks; it does not create a second on-chain reserve ledger.
  • ChioPriceResolver is an auxiliary on-chain feed reader for bounded contract parity and review. The canonical runtime FX authority remains the off-chain chio-link receipt-evidence path.

Compile locally with:

pnpm --dir contracts install
pnpm --dir contracts compile

Run the local qualification harness with:

pnpm --dir contracts devnet:smoke

That deploys the full contract family plus mocks to an ephemeral Ganache devnet, exercises the core fail-closed paths, and writes deployment and qualification reports under contracts/deployments/ and contracts/reports/.

Run the reviewed-manifest promotion qualification with:

./scripts/qualify-web3-promotion.sh

That compiles the contract package, uses contracts/deployments/local-devnet.reviewed.json, generates a local approval artifact, proves CREATE2 address reproducibility across fresh local devnets, and verifies that bad approvals and failed promotions emit explicit rollback artifacts.

The bounded promotion runner itself is:

node contracts/scripts/promote-deployment.mjs \
  --manifest contracts/deployments/local-devnet.reviewed.json \
  --approval target/web3-promotion-qualification/run-a/approval.json \
  --output-dir target/web3-promotion-qualification/manual-run \
  --local-devnet \
  --rollback-on-failure

For non-local rollout the same runner requires operator-owned --rpc-url, --deployer-key, a reviewed manifest derived from the shipped *.template.json files, and an approval artifact that binds the exact manifest hash, release id, deployment policy id, predeployed CREATE2 factory, and salt namespace.