Skip to content

feat: prepare versioner to be exported as package#77

Open
alxdca wants to merge 1 commit intomainfrom
feat/package-versioner
Open

feat: prepare versioner to be exported as package#77
alxdca wants to merge 1 commit intomainfrom
feat/package-versioner

Conversation

@alxdca
Copy link
Copy Markdown
Collaborator

@alxdca alxdca commented Apr 22, 2026

Summary

  • package the Orbit versioner for distribution instead of exposing it only as a Hardhat-run script
  • remove the versioner’s Hardhat runtime dependency by switching it to direct ethers JSON-RPC usage
  • add a package build/prepack flow and publish the versioner entrypoint plus generated typings
  • document env-based CLI usage in the README

Why / Context

  • consumers need to run the Orbit versioner outside the Hardhat runtime
  • the versioner now accepts INBOX_ADDRESS and PARENT_CHAIN_RPC directly, which makes it usable as a
    packaged runtime entrypoint
  • removing Hardhat from the versioner execution path reduces coupling to the repo toolchain while
    preserving the existing contract-version lookup behavior
  • packaging requires emitted declarations/runtime files and updated publish metadata so downstream users
    can import the versioner cleanly

Risks / Notes

  • the branch is currently 1 commit ahead of main and 7 commits behind origin/main
  • no additional validation was run while preparing this PR draft

Test Plan

  • run yarn build:package
  • run yarn orbit:contracts:version --help
  • run the versioner against a real INBOX_ADDRESS and PARENT_CHAIN_RPC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant