Skip to content

refactor: export the fee estimator as a module (scripts/fee.mjs) - #7

Merged
jerryfane merged 1 commit into
mainfrom
feat/fee-module
Nov 15, 2026
Merged

jerryfane merged 1 commit into
mainfrom
feat/fee-module

Conversation

@jerryfane

Copy link
Copy Markdown
Owner

Moves the pure estimator functions from scripts/fee-estimate.mjs into scripts/fee.mjs (estimateInscription, satsAt), so ordstudio (jerryfane/ordstudio) can import them. The CLI is unchanged.

Assignment: owner request 2026-11-15 to build ordstudio, whose backend uses OrdJS for fees.

Verification:

  • node scripts/fee-estimate.mjs and node scripts/fee-estimate.mjs --rate 3 src/content/OrdJS.js output saved before and after: byte-identical (cmp). Known-answer check still passes (exit 0).
  • npm test: 15 passed, 0 failed.
  • No tests added or edited (pure move), so no test-check prove run.

@jerryfane
jerryfane merged commit ca76f3e into main Nov 15, 2026
1 of 2 checks passed
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