Skip to content

Runtime market-deploy CLI + config serde fixes - #5

Open
junbug01 wants to merge 2 commits into
mainfrom
minimax-mu-deploy
Open

Runtime market-deploy CLI + config serde fixes#5
junbug01 wants to merge 2 commits into
mainfrom
minimax-mu-deploy

Conversation

@junbug01

Copy link
Copy Markdown
Collaborator

What

A bulk CLI 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 bincode OpaqueAction. New --securities <file> flag pre-registers the in-process securities registry so MktId::new resolves.

Fixes

  • actions.rs: Action::ConfigRisk serializes as configRiskMatrix (was the camelCase default configRisk) to match the node enum variant — was a 422.
  • bulk_http.rs: surface the HTTP error body on /order failures (was .error_for_status()? hiding the 422 reason); 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 preview.

🤖 Generated with Claude Code

jshore and others added 2 commits June 7, 2026 05:50
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>
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