Skip to content

qualify-declarations: default rates and quanta come from @openmixer/omx-contract (#93) - #98

Merged
linuxnow merged 2 commits into
mainfrom
fix/93-rates-from-contract
Oct 18, 2026
Merged

linuxnow merged 2 commits into
mainfrom
fix/93-rates-from-contract

Conversation

@linuxnow

Copy link
Copy Markdown
Contributor

Fixes #93 (the operator chose the npm package as the source).

QUALIFY_RATES is now omx-contract's ORACLE_FLOOR_RATES and QUALIFY_QUANTA starts at RT_HARD_TARGET.quantum. @openmixer/omx-contract ^2.16.0 is a declared dependency; the generated tools/_declarations.py is unchanged (same values).

Packaging: npm pack does not carry dependencies, so packaging/build.sh copies the package into /node_modules/@openmixer/ beside plugin-qualify. I built it into a scratch dir and the installed dist loaded and printed the four rates. The RPM %files already takes the whole @Openmixer directory; the dry-run package jobs here show the rest.

Tests: the two lists equal the contract's values; the two declaration lines carry no 44100, 192000 or 128 literal (with a positive control). With the old declaration the second fails. Full suite, lint and the generated-declarations check pass.

…er/omx-contract (#93)

QUALIFY_RATES is the contract's ORACLE_FLOOR_RATES and the first of QUALIFY_QUANTA its RT_HARD_TARGET
quantum, not restated lists. The package declares @openmixer/omx-contract as a dependency, and
packaging/build.sh installs it beside the package so an RPM or DEB install resolves it. Tests:
the lists equal the contract's, and the two declaration lines carry no 44100, 192000 or 128.
@linuxnow
linuxnow merged commit 6b7a1b0 into main Oct 18, 2026
5 checks passed
@linuxnow
linuxnow deleted the fix/93-rates-from-contract branch October 18, 2026 11:46
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.

QUALIFY_RATES and QUALIFY_QUANTA restate ORACLE_FLOOR_RATES and the hard-target quantum by hand

1 participant