Comment on page
ERC1319: Package Registry Standard
An ethPM registry is an on-chain datastore for package releases. For each package release, three pieces of information are committed to storage:
- a package name
- a package version
- the content-addressed URI associated with the package's manifest.
ERC1319 was written to define the API for an on-chain ethPM registry. It is the minimum feasible API for a registry to interoperate with various ethPM tooling. It is encouraged for people to build their own registry implementations that extend upon the standard to support any kind of specialized behavior.
There are a couple different implementations of ERC1319 available.
As of ethPM V3, the
versionfield of a manifest are no longer strictly required. Best practice is that every package should define these in their manifest. Some tooling may even go as far as requiring these fields are defined before cutting a release. When a package is released on a registry, users must provide an official
versionunder which to identify a release on the blockchain. The following table defines how a package should be identified, considering the various cases when manifest defines / omits the
version, and whether or not the manifest is stored on an on-chain registry.