WIP: feat: get chain contract versions#687
Draft
alxdca wants to merge 4 commits intofeat/docker-command-runnerfrom
Draft
WIP: feat: get chain contract versions#687alxdca wants to merge 4 commits intofeat/docker-command-runnerfrom
alxdca wants to merge 4 commits intofeat/docker-command-runnerfrom
Conversation
3 tasks
04b4152 to
61186f2
Compare
ec19ea7 to
0653361
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Depends on #685. This PR is part of a stack created with Aviator.
mainWIP: DO NOT MERGE. The orbit-actions npm package has to be published first.
Summary
getOrbitChainContractVersionsSDK helper that runs Orbit Actions via Docker and parses theJSON response
runDockerCommandutility plus unit tests that avoid leaking env secret values into loggedargv/error metadata
get-chain-contract-versionsexample that builds the local workspace package and prints contractversion data for an Orbit chain
Why / Context
contract versions
offchainlabs/chain-actionsDocker imageINBOX_ADDRESS,NETWORK, andPARENT_CHAIN_RPCand run the helper against a real chainRisks / Notes
PATHversionsandupgradeRecommendation)returned by Orbit Actions
Test Plan
pnpm vitest src/getOrbitChainContractVersions.unit.test.ts src/runDockerCommand.unit.test.tspnpm buildpnpm --dir examples/get-chain-contract-versions devwith Docker available and validINBOX_ADDRESS/PARENT_CHAIN_RPC