Skip to content

docs(extension): discovery, decodeRgbInvoice and the 0.2.0 package - #38

Merged
bitwalt merged 1 commit into
mainfrom
docs/window-rgb-discovery
Oct 8, 2026
Merged

bitwalt merged 1 commit into
mainfrom
docs/window-rgb-discovery

Conversation

@bitwalt

@bitwalt bitwalt commented Sep 21, 2026

Copy link
Copy Markdown
Member

Extension 0.3.0 was re-cut with the window.rgb follow-up, so the dApp-connectivity page under-described what testers are running: it mentioned neither provider discovery nor decodeRgbInvoice, and its TypeScript section still showed only the 0.1.0 requestProvider().

  • Discovery — window.rgb is a single slot, so the extension also announces itself EIP-6963 style (rgb:requestProvider / rgb:announceProvider, rdns com.kaleidoswap.extension), with listProviders() for a page that wants to offer a picker.
  • decodeRgbInvoice — new row in the methods table: read-only, no confirmation, amount: null for an any-amount invoice.
  • Building without the extension — @kaleidorg/webrgb/mock and the conformance suite, both shipped in 0.2.0.
  • Errors — the rejection crosses postMessage, so instanceof never works; use isProviderError().
  • Notes that listAssets() / listTransfers() always resolve to arrays from 0.3.0 on.

check-cn-parity.py: structural parity and untranslated checks clean; the only failure is the pre-existing navigation count gap (en 91 / cn 87).

🤖 Generated with Claude Code

…ackage

Extension 0.3.0 was re-cut with the window.rgb follow-up, so the page was
describing less than what testers are running: no provider discovery, no
decodeRgbInvoice, and a TypeScript section still showing only the 0.1.0
requestProvider().

Adds the discovery section (rgb:requestProvider / rgb:announceProvider,
listProviders, rdns com.kaleidoswap.extension), the decodeRgbInvoice row, a
section on building against the mock with no extension installed, and the
error-handling note that instanceof never works across postMessage. Same in
the cn mirror; check-cn-parity is clean apart from the pre-existing
navigation count gap.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@bitwalt
bitwalt merged commit 8afa990 into main Oct 8, 2026
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