sdk-core: regenerate SysioContractTypes for the uwrit lock changes - #67
sdk-core: regenerate SysioContractTypes for the uwrit lock changes#67heifner wants to merge 1 commit into
Conversation
huangminghuang
left a comment
There was a problem hiding this comment.
The companion generated-types PR must be regenerated after wire-sysio#563 is rebased onto current master.
|
|
||
| /** sysio.uwrit::chklocks (action) */ | ||
| export interface SysioUwritChklocksAction { | ||
| max_rows: number |
There was a problem hiding this comment.
[P1] Regenerate after rebasing onto the current uwrit ABI. This output predates the underwriter-challenge merge: current master contains the holdlocks, freelocks, and sweeplocks action interfaces and registry entries, while this branch does not. Resolving the file conflict from this generated snapshot would drop those public client types. Once wire-sysio#563 has integrated the challenge actions with max_rows and locksums, rebase this PR and rerun the canonical generator; the resulting action map must retain all three challenge actions.
E2E gate: green — 13/13 flowsRun 31712204244 — This branch was one of the three overrides:
That combination is what makes the run meaningful for this PR: the gate builds Flows: batch-operator-slashing, batch-operator-termination, emissions-soak, node-owner-nft, operator-collateral-deposit, reserve-lifecycle, swap-from-wire, swap-non-native-tokens, swap-private-reserves, swap-to-wire, swap-variance-revert, swap-with-underwriting, yield-distribution — all ✅. Still merges after wire-sysio#563, since it encodes that PR's ABI. |
Regenerated from the sysio.uwrit ABI produced by wire-sysio#563:
* `chklocks` gains `max_rows: number` -- the per-epoch release budget
that bounds what was an unbounded sweep inlined by
`sysio.epoch::advance`.
* new `locksums` table plus `SysioUwritLockSumType` /
`SysioUwritLockSumKeyType` -- the materialized per-(underwriter,
chain_code, token_code) locked total that replaces the O(N) scan
behind `sysio.opreg::available()`.
Generated output only, no hand edits:
`contracts/tools/generate-sysio-contract-types.py -B . -P snake -f`.
Change-Id: I34843c949c931badfdacbc98ea8b63476522fce5
e0ffd58 to
026fb8e
Compare
Generated-output-only companion to Wire-Network/wire-sysio#563.
Regenerated from the
sysio.uwritABI that PR produces:chklocksgainsmax_rows: number— the per-epoch release budget.chklockswas the only sweepsysio.epoch::advanceinlines without one, and lock expiry is bursty (every lock is stampednow + collateral_lock_duration_ms), so an unbounded sweep of a large expiry burst could abortadvance— permanently, since the same locks are still due at the next advance.locksumstable plusSysioUwritLockSumType/SysioUwritLockSumKeyType— the materialized per-(underwriter, chain_code, token_code)locked total that replaces the O(N) lock scan behindsysio.opreg::available().Diff
18 insertions, 1 deletion, confined to
packages/sdk-core/src/types/SysioContractTypes.ts— themax_rowsfield, the two new type interfaces, thelocksumsentry in the uwrit tables map, and"locksums"in theSysioContractDefinitionsregistry. Nothing else moved.Provenance
No hand edits. Produced by the canonical generator:
pnpm buildgreen, andlocksumsis present in bothlib/cjsandlib/esmoutput (checked explicitly —tsc -bis incremental and will silently keep a stalelib/when.tsbuildinfothinks nothing upstream changed).Merge order
Lands after wire-sysio#563, since it encodes that PR's ABI. wire-tools-ts consumes this via the sibling link and needs no source change — verified separately.