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

@ethernauta/zksync

v0.0.48

Published

zkSync Era support for Ethernauta — bridge verbs, system contracts, zks_* RPC, 0x71 (EIP-712) tx encoder + signer.

Readme

bundlejs

Philosophy

zkSync Era–specific primitives. The zks_* RPC namespace, the system-contract bindings (NonceHolder, ContractDeployer, L1Messenger, L2 Bridgehub), the EIP-712 (0x71) transaction encoder + signer, per-chain L1 deployment registry, and the L1↔L2 bridge verbs — everything that's true of every zkSync Era chain (Era mainnet, Sepolia testnet, and the ZK-chain ecosystem) but isn't part of L1 Ethereum.

The Yellow-Paper substrate — accounts, EVM, RLP, EIP-1559, the eth_* method surface — stays in @ethernauta/eth. This package is the layer on top.

Modules

API

zks_* RPC — Readable<T>

import {
  zks_estimateFee,
  zks_estimateGasL1ToL2,
  zks_getBridgehubContract,
  zks_getMainContract,
  zks_getBridgeContracts,
  zks_L1ChainId,
  zks_L1BatchNumber,
  zks_getBlockDetails,
  zks_getL2ToL1MsgProof,
  // …
} from "@ethernauta/zksync"

The full zks_* consensus-side surface — fee estimation, batch/block details, L1↔L2 message proofs.

EIP-712 transaction type 0x71

import {
  encode_zksync_transaction,
  hash_zksync_transaction,
  build_zksync_typed_data,
  sign_zksync_transaction,
  ZKSYNC_TRANSACTION_TYPE,
} from "@ethernauta/zksync"

The zkSync-specific transaction envelope with paymaster, factoryDeps, and customSignature fields. Composes with @ethernauta/crypto for the actual signing primitive.

System contracts

import {
  NonceHolder,         // 0x...8003
  ContractDeployer,    // 0x...8006
  L1Messenger,         // 0x...8008
  BridgehubL2,
  L2BaseToken,
  L2AssetRouter,
} from "@ethernauta/zksync"

Callable<T> / Signable<T> bindings against the fixed-address system contracts living at the 0x000…000{80xx} range.

Per-chain L1 deploys

import { require_deploy_addresses } from "@ethernauta/zksync"
import { eip155_324 } from "@ethernauta/chain/eip155-324"

const deploys = require_deploy_addresses(eip155_324)
// { bridgehub, diamondProxy, sharedBridge, l1AssetRouter, l1Nullifier, … }

L1 deployment addresses for zkSync Era mainnet and Sepolia.

Bridge verbs — Bridgeable<T>

import {
  send_eth,
  send_erc20,
  send_message,
  start_withdraw_eth,
  start_withdraw_erc20,
  start_withdraw_message,
  execute_withdraw,
  claim_failed_deposit,
  fetch_message_proof,
  fetch_failed_deposit_proof,
  get_status,
  decode_l1_message_sent,
  decode_new_priority_request,
} from "@ethernauta/zksync/bridge"

import { create_bridge } from "@ethernauta/transport"

const bridge = create_bridge(CHAINS)({
  l1_chain_id: ETH_MAINNET,
  l2_chain_id: ZKSYNC_ERA,
})

const hash = await send_eth({ to, value })(bridge.signer)

Covers L1 → L2 deposits via the Bridgehub, the claim_failed_deposit escape hatch for reverted deposits, L2 → L1 withdrawals (start on L2 via the L1Messenger, execute on L1 via the L1Nullifier), and event decoders for parsing L1MessageSent / NewPriorityRequest off the receipts. Errors are typed.

Solidity sources

The vendored zkSync system contracts and bridge contracts live colocated under packages/zksync/src/system-contracts/<contract>/ and packages/zksync/src/bridge/<contract>/. pnpm pull-contracts refreshes them from the upstream repo; pnpm pull-deploys regenerates the per-chain L1 deploys registry.