Releases: 0xPolygon/static
Release list
@polygonlabs/meta@1.1.1
Patch Changes
-
02b6d2b: Lower the published
engines.nodefloor from>=24to>=20to match the package's actual runtime requirements.@polygonlabs/metaships onlyas constdata modules — typed ABIs and network metadata — with zero runtime code; every module underdist/generated/**is a plainexport const ... = [...] as constliteral. It has no Node 24 runtime dependency. The previous>=24floor described the build toolchain (codegen runsnode scripts/codegen.tsvia Node's native TypeScript execution), not what consumers need to run the package, and surfaced a spurious engine-mismatch warning for anyone targeting Node 20.The build-time Node 24 requirement is now declared explicitly in
devEngines.runtimeand documented in CONTRIBUTING, leavingengines.nodeto describe the consumer runtime. Downstream SDKs that target Node 20 — such as@polygonlabs/pos-sdk— can now depend on@polygonlabs/metawithout inheriting an inaccurate Node 24 floor.
@polygonlabs/meta@1.1.0
Minor Changes
-
b110fd0: Add
MultiRootDistributorABI and addresses for Sepolia testnet.The Polygon Apps Team's priority-fee distribution contract is now indexed under a new
Main.PriorityFeeDistributionContractssub-group ontestnet/amoy/index.json(the section
labelledMaincarries Sepolia entries):MultiRootDistributorProxy—0x1Ff397F3BCDA58952Ac2326A1Fb799f9FBE6ecd7(transparent
upgradeable proxy, deployed at Sepolia block10833197).MultiRootDistributor—0x42666db9f9dBdE270Bc752E776EaD2967E606679(implementation).
Consumers can now import the typed ABI via
@polygonlabs/meta/abi/testnet/amoy/plasma/MultiRootDistributoror reference the raw JSON
through the./network/*subpath. The contract emits
Claimed(bytes32 indexed root, uint256 indexed index, address indexed account, uint256 amount)
plus four root-lifecycle events (RootAdded,RootRemoved,RootStateChanged,
RootToppedUp); the downstreampos-staker-pool-claimssubgraph in0xPolygon/subgraphs
indexes the proxy address using this ABI.Ethereum mainnet additions will follow in a subsequent release once the contract deploys to
mainnet.
@polygonlabs/meta@1.0.0
Major Changes
-
0c1d7e5: Initial release of
@polygonlabs/meta, replacing the legacy@maticnetwork/meta@2.xpackage.What's new
- Per-contract typed deep imports.
import { abi } from '@polygonlabs/meta/abi/<chain>/<network>/<type>/<Contract>'pulls exactly one ABI; the rest of the package is tree-shaken at bundle time. as constliteral ABI types. Each ABI is exported as a literal tuple soviem,wagmi, andabitypecan extract function names, argument types, and return types at the call site. Withoutas constthe type widens to{ name: string }[]and consumer-side type inference disappears entirely — the typed-ABI value proposition exists only because ofas const.- Typed network metadata under
/info/<chain>/<network>and/info/networks, alsoas const. - Raw JSON access preserved. The
./network/*subpath export keeps the same path scheme as@maticnetwork/meta@2.x, so consumers who only want JSON migrate by changing the package name. - Provenance-stamped publishes via npm OIDC trusted publishing, driven by changesets-on-merge.
Breaking changes vs
@maticnetwork/meta@2.x- Package renamed:
@maticnetwork/meta→@polygonlabs/meta. - ESM-only.
require()is no longer supported. Consumers must be ESM and on Node ≥ 24. - The
Networkclass is gone. Replacenew Network(chain, version).abi(name)with the typed deep imports under./abi/<chain>/<network>/<type>/<Contract>— same data, fully typed, sync, tree-shakable. - Mumbai testnet is gone (already removed upstream); use Amoy.
The HTTP endpoint at
static.polygon.technologyis unchanged. SeeMIGRATION.mdfor full before/after import examples. - Per-contract typed deep imports.
upd: new POL mainnet staking
v2.4.72 Merge pull request #155 from 0xPolygon/Update-WithdrawalManager-Imple…
Upd: POL new Contracts on sepolia
Merge pull request #154 from 0xPolygon/simonDos-patch-1 sepolia: POL upgrade contracts
upd: rlp fix
Merge pull request #152 from 0xPolygon/upd/rlpfix upd: new impl addresses
upd: plasma erc20Predicate
Merge pull request #151 from 0xPolygon/plasma-predicate Plasma predicate
new: staking contracts ABI
Merge pull request #150 from 0xPolygon/upd/stakeManager new stakeManager and ValidatorShare abi
new: emission contract
Merge pull request #149 from 0xPolygon/upd/emission-manager new DefaultEmissionManager impl 1.2.0
rmv: old networks
Merge pull request #148 from maticnetwork/upd/validatorShare Upd/validator share