Releases: zigzag-js/chains
Releases · zigzag-js/chains
v1.1.1
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
- WebSocket:
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.1v1.0.0 — Complete Rebuild
@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
defaultkey httpUrls— HTTP RPC endpoints (new)subscan— Subscan API and web URLs (new)signType— signing curve (sr25519, ed25519, secp256k1)paraId,relayChain,relay— network topologylightClientUrls— substrate-connect URLsblockExplorers— named block explorersnetwork— unique slug identifiernativeCurrency— name, symbol, decimalsss58Format,testnet,ethereumflags
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/chainsUsage
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_type→signType,para_id→paraId,relay_chain→relayChain,block_explorers→blockExplorers,ss58Formatreplacesprefix) currencyrenamed tonativeCurrencyrpcrenamed torpcUrls(still uses named provider keys)lightrenamed tolightClientUrls- 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
0.1.6
Full Changelog: 0.1.5...0.1.6
0.1.5
0.1.4
Full Changelog: 0.1.3...0.1.4
Moved registry to github for package
Fixes for pacakae release
0.1.3 Comment fixes and overall repo updates
Fixes for github actions
Full Changelog: 0.1.1...0.1.2
Fixes for github release
Added acala network - v0.1.1
Full Changelog: 0.1.0...0.1.1
Added acala network, fixed issue with github actions
Initial release - v0.1.0
Full Changelog: https://github.com/zigzag-js/chains/commits/0.1.0
Added Polkadot, Kusama and Astar chains.