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

@anywalletkit/protocol-swap2-wrap

v0.2.1

Published

Wrap and unwrap the native coin (ETH↔WETH, BNB↔WBNB, POL↔WPOL…) on 13 EVM chains as a swap2 venue: 1:1, no pool, wrapped tokens verified on-chain.

Readme

@anywalletkit/protocol-swap2-wrap

npm

Wrap / unwrap the native coin as a swap2 module: WETH9 deposit() and withdraw(uint256) on the wrapper in WRAPPED_NATIVE for each chain (WETH, WBNB, WPOL, WAVAX, …), verified on-chain before use. Standalone through WrapSwap2Protocol, or as one provider of the router.

Install

npm install @anywalletkit/protocol-swap2-wrap @anywalletkit/core
# or: pnpm add @anywalletkit/protocol-swap2-wrap @anywalletkit/core  ·  yarn add @anywalletkit/protocol-swap2-wrap @anywalletkit/core

On npm: @anywalletkit/protocol-swap2-wrap, published from the release workflow with provenance.

Behind remoteProvider

When the provider runs on your server, spread its pins into the app's stub: remoteProvider({name: "wrap", baseUrl, ...wrapPins}). The engine then lets the EVM route call and approve only the wrapped-native contract (no spender), never an address the backend names; without the pins the stub gets no EVM calldata route (fail closed).

Activity

describeActivity(tx, ctx) recognizes calls to the chain's wrapper (the table, or the wrapped override you passed):

| Selector | Kind | Title | | --- | --- | --- | | deposit() 0xd0e30db0 | wrap | "Wrapped ETH" (the chain's native symbol) | | withdraw(uint256) 0x2e1a7d4d | unwrap | "Unwrapped WETH" (the wrapper's symbol) |

Assets are the owner's net transfers (native out + WETH mint in, or WETH burn out + native in), subtitle = the wrapper symbol, counterparty = the wrapper. A swap that unwraps inside a DEX router is that router's activity, not this module's.

Fixtures (fixtures/activity/, public Ethereum WETH9 transactions, 2026-10-14 — the test wallet's wrap runs were quote-only on the matrix): two deposit(), two withdraw(); negatives: a Uniswap multicall ending in unwrapWETH9, a Balancer Vault swap.