Skip to content

Releases: zigzag-js/chains

v1.1.1

31 Mar 21:52

Choose a tag to compare

What's new

  • Add DeServe RPC provider for Polkadot Asset Hub
    • WebSocket: wss://asset-hub.polkadot.rpc.deserve.network
    • HTTP: https://asset-hub.polkadot.rpc.deserve.network

DeServe is a global RPC network by Helikon with 14 geo-steered locations. Currently supports Polkadot Asset Hub (archive node).

npm install @zig-zag/chains@1.1.1

v1.0.0 — Complete Rebuild

26 Mar 22:02

Choose a tag to compare

@zig-zag/chains v1.0.0

Complete rebuild of the Polkadot chain registry with a merged data model, modern tooling, and comprehensive chain coverage.

What's New

20 chains with rich metadata — up from 4 in v0.2.1:

  • Relay chains: Polkadot, Kusama
  • Polkadot system parachains: Asset Hub, People, Coretime, Collectives, Bridge Hub
  • Kusama system parachains: Asset Hub, People, Coretime, Bridge Hub
  • Third-party parachains: Astar, Acala, Moonbeam, Phala, Hydration
  • Testnets: Westend, Paseo, Westend Asset Hub, Paseo Asset Hub

Merged Chain Data Model

Every chain now includes:

  • genesisHash — on-chain identifier (new)
  • Named RPC providers (9+ per relay chain) with default key
  • httpUrls — HTTP RPC endpoints (new)
  • subscan — Subscan API and web URLs (new)
  • signType — signing curve (sr25519, ed25519, secp256k1)
  • paraId, relayChain, relay — network topology
  • lightClientUrls — substrate-connect URLs
  • blockExplorers — named block explorers
  • network — unique slug identifier
  • nativeCurrency — name, symbol, decimals
  • ss58Format, testnet, ethereum flags

Build & Quality

  • Migrated from Rollup to tsup (esbuild-based, CJS + ESM + DTS)
  • Added vitest with 247 validation tests (schema, uniqueness, URL format)
  • Fixed broken CJS/ESM exports map from v0.2.x
  • Fixed acala export bug
  • Organized chains into relay/, system/, parachains/, testnet/ directories
  • Zero runtime dependencies, fully tree-shakeable

Installation

npm i @zig-zag/chains

Usage

import { polkadot, kusama, polkadotAssetHub } from '@zig-zag/chains';

console.log(polkadot.genesisHash);        // '0x91b171bb...'
console.log(polkadot.rpcUrls.default);     // 'wss://rpc.polkadot.io'
console.log(polkadot.rpcUrls.dwellir);     // 'wss://polkadot-rpc.n.dwellir.com'
console.log(polkadot.subscan?.api);        // 'https://polkadot.api.subscan.io'

Breaking Changes from v0.2.x

  • Chain type fields renamed to camelCase (account_sign_typesignType, para_idparaId, relay_chainrelayChain, block_explorersblockExplorers, ss58Format replaces prefix)
  • currency renamed to nativeCurrency
  • rpc renamed to rpcUrls (still uses named provider keys)
  • light renamed to lightClientUrls
  • New required field: genesisHash
  • New required field: network (was already present but now typed as required)
  • Build output filenames changed (ESM: dist/index.js, CJS: dist/index.cjs)

0.1.7

21 Apr 00:30

Choose a tag to compare

0.1.7 Pre-release
Pre-release
Change name and version

0.1.6

21 Apr 00:01

Choose a tag to compare

0.1.6 Pre-release
Pre-release

Full Changelog: 0.1.5...0.1.6

0.1.5

20 Apr 23:57

Choose a tag to compare

Fix github action

0.1.4

20 Apr 23:52

Choose a tag to compare

0.1.4 Pre-release
Pre-release

Full Changelog: 0.1.3...0.1.4
Moved registry to github for package

Fixes for pacakae release

20 Apr 20:15

Choose a tag to compare

Pre-release
0.1.3

Comment fixes and overall repo updates

Fixes for github actions

20 Apr 05:58

Choose a tag to compare

Pre-release

Full Changelog: 0.1.1...0.1.2
Fixes for github release

Added acala network - v0.1.1

20 Apr 05:56

Choose a tag to compare

Pre-release

Full Changelog: 0.1.0...0.1.1
Added acala network, fixed issue with github actions

Initial release - v0.1.0

20 Apr 05:48

Choose a tag to compare

Pre-release

Full Changelog: https://github.com/zigzag-js/chains/commits/0.1.0
Added Polkadot, Kusama and Astar chains.