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

@paryonusd/contracts

v1.0.0

Published

ParyonUSD Smart Contracts

Readme

Paryon Contracts

This repo contains the CashScript smart contracts for ParyonUSD. It also contains the contract documentation and schematics.

Overview

  • contracts - folder containing the CashScript .cash contract files
  • contract_docs - documentation for the ParyonUSD smart contract system
  • contract_schematics - schematics of the ParyonUSD smart contract system
  • audit - smart contract audit reports
  • artifacts - generated folder with the compiled artifacts output

Installation

The compiled contract artifacts are published to npm as @paryonusd/contracts:

npm install @paryonusd/contracts

The package exports a paryonArtifacts object grouping every compiled CashScript artifact, ready to use with the CashScript SDK:

import { paryonArtifacts } from '@paryonusd/contracts';

Contract Details

The ParyonUSD contract system consists of a total of 26 contracts:

Re-compiling Artifacts

To recompile the CashScript Artifacts after making contract changes run

pnpm compile

This command generates the CashScript artifacts from the contracts source files. The artifacts are generated as TS files to the artifacts folder.

Re-compiling artifacts from the same contracts source code will result in identical artifacts except for the updatedAt timestamp. Changing comments in the contract source code changes the source, sourceMap and requires in the compiled output.

Compiled Contract sizes

To see the compiled output sizes for the different contracts you can modify the compilation command like the following:

    const command = `cashc "${contractFile}" --size --opcount --output "${outputPath}" --format ts`;

Similarly, you could change the artifact output file format to json.

Audit Snapshots

The contract source has been through two external audits. The first was delivered across three passes and its report is published in this repo; a second is still in progress. The table below lists the tree hashes identifying each snapshot of the finalised audit. Tree hashes are derived from repo content and are stable across history rewrites.

| Pass | Tree Hash | CashScript | |------|-----------|------------| | First | 873f00ce35477e775cbd66ba499179af1a47ae4a | cashc v0.11.3 | | Second | 7446726ac529d1b2e261b16b778e79baf8bdc1f3 | cashc v0.12.0 | | Third | e8b122a7faa14b8beda61563a2d17cf9073dc42f | cashc v0.12.0 |

You can list tree hashes for all commits in the repo with:

git log --format="%T %s"

The current repo state includes additional hardening identified by a follow-up AI-assisted review beyond the third-pass snapshot. Six contracts' compiled bytecode has changed; the remaining 20 are bytecode-identical. See post-audit-changes.md for what changed and why, and bytecode-verification.md for how to verify the unchanged 20 against the snapshot.

The contracts have since been updated to the CashScript v0.13.0 language version. To keep the compiled bytecode identical to before, its two new default-on compiler options are explicitly opted out of via the -S and -L flags in compile.ts.

Contract Tests

There is a dedicated repo paryon_testing_suite for Paryon Contract tests, the transaction building tests are in the paryon_library repo.