Skip to content

fix(cluster-tool): send slug_name action fields as their canonical spelling - #108

Merged
jglanz merged 2 commits into
masterfrom
fix/slug-name-string-carrier-actions
Sep 25, 2026
Merged

jglanz merged 2 commits into
masterfrom
fix/slug-name-string-carrier-actions

Conversation

@heifner

@heifner heifner commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

slug_name is now an ABI builtin (wire-sysio#619), and wire-libraries-ts#83 regenerated SysioContractTypes so every slug field is a string. Action callers here still built { value: SlugName.from(...) }, which no longer compiles.

  • RegistrySteps (setoutpost, regchain, regtoken, regctok, regreserve) passes the canonical spelling.
  • ClusterBuildDefaults.operatorRegistryConfig converts the persisted packed chainCode/tokenCode to spellings for the setconfig min bonds. The persisted ClusterConfig schema is unchanged.
  • The test fixtures (SwapScenarioContext, RegistrySteps, WireReserveTool, and the chains/reserv/tokens contract-step tests) now use real slug spellings.
  • slugValue's JSDoc had drifted onto packedSlugValue; it is moved back, and the rationale now cites the leading-letter rule.

Verified against master sdk-core plus wire-libraries-ts#90: build, cluster-tool 140 suites / 1667 tests, lint.

Depends on a published sdk-core that includes #83 and wire-libraries-ts#90. Merge order: wire-libraries-ts#90, then release PR wire-libraries-ts#89 (1.0.93), then this PR plus the @wireio/sdk-core bump.

…elling

sdk-core's generated types declare slug fields as strings now that slug_name
is an ABI builtin, so the { value } object carrier no longer compiles. Pass the
spelling in RegistrySteps and the opreg setconfig min bonds, convert the test
fixtures, and move slugValue's JSDoc back onto slugValue.

Change-Id: I756d8956a8bb40c41423b7d078bb4a7095854cdd
The reserve-lifecycle, swap-from-wire and swap-private-reserves flows still
built { value } slug carriers from packed codes; convert them with
SlugName.toString.

Change-Id: I7e1c7152cf3c5a3927f3ca77ed05a620db6245c9
@jglanz

jglanz commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

emergency mer because both libraries and tools were broken

@jglanz
jglanz merged commit cb8e32e into master Sep 25, 2026
1 check failed
@heifner

heifner commented Sep 25, 2026

Copy link
Copy Markdown
Contributor Author

E2E is green: run 36177781569. All 15 flows passed (flow-swap-epoch-stress is excluded by default).

Branch combination: wire-sysio master, wire-cdt master, wire-libraries-ts fix/slug-name-serializer-builtin (#90), wire-tools-ts fix/slug-name-string-carrier-actions (#108). Everything else was on its manifest default.

  • ✅ batch-operator-slashing (465s)
  • ✅ batch-operator-termination (1050s)
  • ✅ emissions-soak (2209s)
  • ✅ node-owner-nft (552s)
  • ✅ operator-collateral-deposit (824s)
  • ✅ producer-registration (998s)
  • ✅ reserve-lifecycle (943s)
  • ✅ swap-from-wire (706s)
  • ✅ swap-non-native-tokens (2121s)
  • ✅ swap-private-reserves (1968s)
  • ✅ swap-to-wire (720s)
  • ✅ swap-variance-revert (505s)
  • ✅ swap-with-underwriting (1111s)
  • ✅ underwriter-slashing (946s)
  • ✅ yield-distribution (747s)

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.

2 participants