Runtime market-deploy CLI + config serde fixes - #5
Open
junbug01 wants to merge 2 commits into
Open
Conversation
New `bulk` subcommands to onboard a perp market to a running node — sign with the
admin key and submit the on-chain Config*/Corrs/AddMarket action as a bincode
OpaqueAction: config-security, config-fairprice, config-regime, config-volatility,
config-risk, corrs, add-market (crates/cli/src/{commands,handlers}/deploy.rs),
plus a --securities flag on main.rs to pre-register the in-process securities
registry so MktId::new resolves.
Fixes:
- actions.rs: Action::ConfigRisk now serializes as `configRiskMatrix` (was the
camelCase default `configRisk`) to match the node's enum variant tag — was 422.
- bulk_http.rs: surface the HTTP error body on /order failures instead of
.error_for_status() hiding it; raise the client timeout 10s -> 120s.
- clear_sign.rs: render large Config* opaque payloads as sha256 — bs58 of a
~97KB risk matrix is O(n^2) and hangs the tx preview.
Used to deploy MINIMAX-USD + MU-USD onto the staging standalone.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
What
A
bulkCLI extension to onboard a perp market to a running node, plus the serde/HTTP fixes that make it work end-to-end. Used to deploy MINIMAX-USD + MU-USD to the staging standalone.New subcommands (crates/cli/src/{commands,handlers}/deploy.rs)
config-security,config-fairprice,config-regime,config-volatility,config-risk,corrs,add-market— each signs with the admin key and submits the on-chain action as a bincodeOpaqueAction. New--securities <file>flag pre-registers the in-process securities registry soMktId::newresolves.Fixes
Action::ConfigRiskserializes asconfigRiskMatrix(was the camelCase defaultconfigRisk) to match the node enum variant — was a 422./orderfailures (was.error_for_status()?hiding the 422 reason); client timeout 10s -> 120s.🤖 Generated with Claude Code