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

@fairmint/wrapped-assets-daml-js

v0.0.26

Published

WrappedAssets-v01 DAML contracts with generated JavaScript/TypeScript bindings (Canton Token Standard holdings, mint/burn, compliance enforcement, BurnOffer redeem).

Readme

canton-assets

Apache-2.0 repository for the WrappedAssets-v01 DAML package — reserve-backed holdings implementing Canton Token Standard V1 (holding, burn-mint, transfer, and allocation interfaces), with transfer-agent compliance enforcement (holding freeze / instrument pause) and recovery. Holdings require distinct operator and transfer-agent signatures (two-party authorization).

Published npm bindings: @fairmint/wrapped-assets-daml-js (generated JS/TS only — not an application SDK). First real release is 0.0.1 (npm placeholder was 0.0.0).

For contract structure, redeem, and instrument pause, see docs/.

Install JS bindings

npm install @fairmint/wrapped-assets-daml-js

Peer dependencies: @daml/[email protected] and @daml/[email protected] (also listed as runtime dependencies for convenience).

import { WRAPPED_ASSETS_TEMPLATES, WrappedAssets, Splice } from '@fairmint/wrapped-assets-daml-js';

console.log(WRAPPED_ASSETS_TEMPLATES.burnMintFactory);

Minimal mint → enforce/release or BurnOffer.Accept sample: examples/mint-burn/.

Registry SDK

The generated bindings above are a mechanical translation of the DAR with no opinions in them. @fairmint/wrapped-assets-sdk is the opinionated wrapper: it answers the Canton Network Token Standard's registry questions — the instruments, the transfer and allocation factories, and the six choice contexts — from three ledger reads behind a RegistryLedger port, so the template matching, decimal-exact supply and pause rules live in one place rather than in each server that serves them. It ships as a second package from this repository, versioned separately.

The SDK takes its template identifiers, choice names and choice-argument shapes from the published @fairmint/[email protected] bindings instead of restating them, so it tracks exactly the DAR this repository publishes — registry factories, instrument pause and compliance enforcement included. Callers inject a RegistryLedger or a duck-typed JSON API reader (getActiveContracts + getEventsByContractId). To read CIP-56 results, use @fairmint/canton-node-sdk (or another client) with this package's CHOICES / TEMPLATE_IDS.

Layout

Build and test

npm install
npx canton-dev-tools install-dpm-sdks
export PATH="$HOME/.dpm/bin:$PATH"

npm run lint
npm run build
npm test
npm run codegen
npm run verify-package
npm run typecheck:sample

npm test is both suites: test:daml (Daml Script, needs dpm) then test:sdk (node:test over packages/sdk, needs neither Java nor the Daml SDK). CI runs them as separate jobs.

npm run build fetches pinned Splice interface DARs via the packaged default in @fairmint/canton-dev-tools before compiling with dpm. LocalNet runtime Splice/quickstart pins live in that package as well. Optional repo-root splice-dars.json overrides the shared pin when needed.

Generic DAML→JS codegen (codegen-js, bundle-dependencies, create-root-index, package stamping, collapse-manifest, prepare-release) lives in @fairmint/canton-dev-tools. Bundle presets and the merged published lib/ (including WRAPPED_ASSETS_TEMPLATES) are configured in repo-root daml-js-bundle.json. This repo keeps product-specific verify lists and samples.

Publish on main uses GitHub Actions OIDC trusted publishing (publish.yml); do not put NPM_TOKEN on the publish step.

LocalNet integration

Live-ledger tests upload the built DAR and smoke WrappedAssetsBurnMintFactory on Canton LocalNet (Docker required; first start ~10–15 min):

npm run build
npm run localnet:verify

LocalNet lifecycle and DAML package tooling come from @fairmint/canton-dev-tools. What this repo's suite asserts is in test/localnet/README.md.

License

Apache-2.0. See LICENSE.