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

@defi-wonderland/interop-addresses

v0.1.0

Published

Interoperable address utilities for cross-chain operations

Readme

@interop-sdk/addresses

A TypeScript library for handling interoperable blockchain addresses across different networks.

This package provides methods to convert between human-readable addresses and their binary string representation, both following the ERC-7930 and ERC-7828 standards. For backward compatibility with existing smart contracts, the package includes utilities to extract individual components (chainId and address) from the binary representation, allowing seamless integration with systems that haven't yet adopted the interop address format.

Setup

  1. Install dependencies running pnpm install

Available Scripts

Available scripts that can be run using pnpm:

| Script | Description | | ------------- | ------------------------------------------------------- | | build | Build library using tsc | | check-types | Check types issues using tsc | | clean | Remove dist folder | | lint | Run ESLint to check for coding standards | | lint:fix | Run linter and automatically fix code formatting issues | | format | Check code formatting and style using Prettier | | format:fix | Run formatter and automatically fix issues | | test | Run tests using vitest | | test:cov | Run tests with coverage report |

Usage

// Using the Provider
import { InteropAddressProvider } from '@interop-sdk/addresses';

// With checksum (recommended for sharing)
const humanReadableAddress = "alice.eth@eip155:1#ABCD1234"
const binaryAddress = await InteropAddressProvider.humanReadableToBinary(humanReadableAddress)

// Or just importing the method
import { humanReadableToBinary } from '@interop-sdk/addresses';
const humanReadableAddress = "alice.eth@eip155:1#ABCD1234"
const binaryAddress = await humanReadableToBinary(humanReadableAddress)

API

InteropAddressProvider

Available methods

  • humanReadableToBinary(humanReadableAddress: string)
  • binaryToHumanReadable(binaryAddress: Hex)
  • getChainId(humanReadableAddress | binaryAddress)
  • getAddress(humanReadableAddress | binaryAddress)
  • buildFromPayload(payload: InteropAddressFields)
  • computeChecksum(humanReadableAddress: string)

All methods are also exported as individual functions to allow maximum modularity and tree-shaking

References

ERC Compliance

This package implements:

ERC-7930 (Interoperable Addresses)

  • ✅ Binary format with version, chain type, chain reference, and address
  • ✅ Human-readable format: <address>@<namespace>:<reference>#<checksum>
  • ✅ Checksum calculation (first 4 bytes of keccak256 hash)
  • ✅ Support for zero-length addresses and chain references
  • ✅ Versioning support

ERC-7828 (Interoperable Names using ENS)

  • ✅ Optional checksums (required when sharing, optional when receiving)
  • ✅ ENS name resolution for addresses (e.g., alice.eth@eip155:1)
  • ✅ Validation: ENS names MUST include chain reference
  • ✅ Context-aware error handling for ENS vs raw addresses
  • ⚠️ ENS chain registry integration (pending - registry not yet deployed)

Not Yet Implemented

  • ⏳ ENS chain label resolution (e.g., address@ethereum → resolves via ENS)
  • ⏳ Reverse chain name lookup via ENS
  • ⏳ Chain discovery via ENS registry (chainCount, getChainAtIndex)

The current SDK uses Across on testnet for demo purposes only. Performance may not reflect mainnet behavior and is not representative of the final production experience