Skip to content

Precompile 0x…0803 unassigned; ws-origins for browser WebSocket clients - #2

Merged
Evangel90 merged 1 commit into
mainfrom
precompiles-and-ws-origins
Sep 29, 2026
Merged

Evangel90 merged 1 commit into
mainfrom
precompiles-and-ws-origins

Conversation

@Evangel90

Copy link
Copy Markdown
Member

Follow-up to konstellation PR #14 (genesis-circuit-and-fixes).

  • contracts.md: 0x…0803 is listed upstream as the "vesting" precompile but cosmos/evm v0.7.3 ships no implementation; PR #14 removes it from ActiveStaticPrecompiles. The table now shows it as unassigned and states the active set of ten: 0x…0100, 0x…0400, 0x…0800–0x…0802, 0x…0804–0x…0807, 0x…0900.
  • rpc-endpoints.md: new section on [json-rpc] ws-origins for browser dapps using eth_subscribe — hosts only (no scheme/port, hostname compare), default ["127.0.0.1", "localhost"], matching Origin 101 / non-matching 403 / absent Origin admitted; note that binaries before PR #14 flattened the array (cosmos-sdk bindFlags) and rejected every browser Origin.
  • troubleshooting.md: entry for the 403 symptom, incl. the old-binary case and the --json-rpc.ws-origins command-line workaround.
  • npm run build green.

🤖 Generated with Claude Code

…ket clients

From konstellation PR #14:

- contracts.md: cosmos/evm v0.7.3 lists a "vesting" precompile at 0x…0803 but
  ships no implementation; PR #14 drops it from ActiveStaticPrecompiles, so the
  active set is ten (0x100, 0x400, 0x800–0x802, 0x804–0x807, 0x900). The table
  now shows 0x…0803 as unassigned instead of "vesting".
- rpc-endpoints.md: new "WebSocket from a browser" section — [json-rpc]
  ws-origins holds browser Origin hosts (no scheme, no port; hostname compare),
  default ["127.0.0.1", "localhost"]; matching Origin → 101, non-matching →
  403, absent Origin always admitted; note that binaries before PR #14
  flattened the array and returned 403 for every browser Origin.
- troubleshooting.md: matching entry for the 403 symptom, with the old-binary
  case and the --json-rpc.ws-origins command-line workaround.

npm run build: green.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@Evangel90

Copy link
Copy Markdown
Member Author

Local CI run — 2026-09-29 (Actions out of minutes): npm ci && npm run build on 0d48f20 ✅ (onBrokenLinks: throw).

@Evangel90
Evangel90 merged commit 0bb6939 into main Sep 29, 2026
1 check 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