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

@real-wagmi/v2-sdk

v1.0.1

Published

TypeScript SDK for the Equilibra Swap

Readme

@real-wagmi/v2-sdk

Chain registry for Wagmi deployments: chain ids, canonical tokens (WETH9, stablecoins, well-known tokens) and native-currency helpers on top of the @real-wagmi/sdk primitives. Downstream SDKs (@real-wagmi/equilibra-sdk) and services key their per-chain configuration off this package.

Install

$ yarn add @real-wagmi/v2-sdk @real-wagmi/sdk

Usage

Chain ids

ChainId is the source of truth for the chains Wagmi deployments cover — values are the EVM chain ids:

import { ChainId } from '@real-wagmi/v2-sdk';

ChainId.ROBINHOOD; // 4663

Well-known tokens

Per-chain Token instances (from @real-wagmi/sdk) with the canonical addresses and decimals:

import { robinhoodTokens } from '@real-wagmi/v2-sdk';

robinhoodTokens.weth; // Token(4663, 0x0Bd7...aD73, 18, 'WETH', 'Wrapped Ether')
robinhoodTokens.usdg; // Token(4663, 0x5fc5...d168, 6,  'USDG', 'Global Dollar')
robinhoodTokens.anon; // Token(4663, 0x79bb...e07c, 18, 'Anon', 'HeyAnon')

Canonical WETH9 and stablecoins

import { ChainId, STABLE_COINS, WETH9 } from '@real-wagmi/v2-sdk';

// The `wrapped` target of the chain's native currency:
WETH9[ChainId.ROBINHOOD].address;

// Pricing anchors for derived-price walks and stable-pair heuristics:
STABLE_COINS[ChainId.ROBINHOOD].map((token) => token.symbol); // ["USDG"]

Native currency

import { ChainId, nativeOnChain } from '@real-wagmi/v2-sdk';
import { CurrencyAmount } from '@real-wagmi/sdk';

const eth = nativeOnChain(ChainId.ROBINHOOD); // cached per chain
eth.isNative;               // true
eth.wrapped.address;        // the Robinhood WETH9 address

// Works everywhere a Currency is expected, e.g. route endpoints:
const amount = CurrencyAmount.fromRawAmount(eth, 10n ** 18n); // 1 ETH

Ether.onChain(chainId) is the underlying entity; its wrapped getter resolves through the WETH9 map and throws 'WRAPPED' for chains without a canonical WETH9 entry.

Adding a chain

  1. Add the id to ChainId (src/constants/chains.ts).
  2. Add the chain's tokens under src/tokens/chains/ and export them.
  3. Register the canonical entries in WETH9 and STABLE_COINS — both maps are satisfies Record<ChainId, ...>, so the compiler enforces completeness for every declared chain.