Skip to content

fix: repair root typecheck and pin lint/format tooling#93

Open
thephez wants to merge 3 commits into
mainfrom
fix/setupclient
Open

fix: repair root typecheck and pin lint/format tooling#93
thephez wants to merge 3 commits into
mainfrom
fix/setupclient

Conversation

@thephez

@thephez thephez commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

The root npm run lint was failing against setupDashClient.mjs. This branch fixes the typecheck, pins the tooling it depends on, and adds an identity balance readout to view-wallet.mjs.

What changed

  • Fix root typechecksetupDashClient-core.d.mts was added as a narrow typed boundary for the example apps and only declared the subset they consume. Because the root tsc resolves this .d.mts instead of the JSDoc-typed .mjs, the wrapper failed to typecheck against members it relies on. Declared the missing exports and widened createClient's return to the full SDK surface; the example apps' imports are unaffected.
  • Pin tooling — moved prettier and typescript from npx to pinned devDependencies and pointed the fmt/lint scripts at the local binaries.
  • view-wallet balanceview-wallet.mjs now fetches the identity and prints its balance in credits and DASH.

Test plan

  • npm run lint passes (previously errored)
  • node view-wallet.mjs shows the identity balance line

thephez added 3 commits June 10, 2026 16:43
The setupDashClient-core.d.mts was added as a narrow typed boundary for the example apps and only declared the subset they consume. Node16 resolution makes the root tsc lint resolve this .d.mts instead of the JSDoc-typed .mjs, so the root wrapper failed to typecheck against members it relies on.

Declare the missing exports (createForNewIdentity, AddressKeyManager, KEY_SPECS, dip13KeyPath), export ConnectedDashClientLike, and widen createClient's return to ConnectedDashClientLike & EvoSDK so the wrapper sees the full SDK surface.
Move prettier and typescript from on-the-fly npx invocations to pinned devDependencies, and call the local binaries directly in the fmt and lint scripts.
Fetch the identity after resolving its ID and print the balance, converting credits to DASH (1000 credits = 1 duff, 1e8 duffs = 1 DASH).
@coderabbitai

coderabbitai Bot commented Jun 10, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@thephez, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 26 minutes and 36 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 0d810a85-134b-4cef-83f8-9b5790f52519

📥 Commits

Reviewing files that changed from the base of the PR and between 484d2f2 and 9100cd8.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (3)
  • package.json
  • setupDashClient-core.d.mts
  • view-wallet.mjs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/setupclient

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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