Repository navigation
feat(explorer): follow the rollups-node 2.0.0-alpha.13 JSON-RPC API; bump dependencies - #210
Merged
Merged
Conversation
Bump @cartesi/client to 2.0.0-alpha.38, @cartesi/react to 2.0.0-alpha.42 and @cartesi/codec to 1.0.0-alpha.5 (new contract/portal addresses), and adapt the explorer and its mock server to the new API: - node bar uses cartesi_getNodeInfo (chain, version, default block) instead of the deprecated getChainId/getNodeVersion - applications: data availability removed; new terminal statuses - epochs: outputs merkle root/proof replaced by the TX-buffer, iflags.Y and HTIF tohost data blocks and proofs - inputs: outputsHash -> txBufferDataBlock, exception data, new statuses - tournaments: kind, initial hash, base cycle, allowance, creation tx, current-state snapshot and bond events; commitment claimer/clock - matches: phase, timeout outcome, bisection/sealed state, deadlines, leaf seal; advances keyed by tx hash + log index (getMatchAdvance) - overview: executed / pending executable output counts; outputs list gains an Executed filter - mock server serves the new shapes, filters and methods Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Uovoe2koh5SneMR2JLaKtY
🦋 Changeset detectedLatest commit: 41c3bb4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
@deroll/explorer is private and not tracked by changesets. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Uovoe2koh5SneMR2JLaKtY
- bun 1.4.3 (packageManager) - every npm dependency to its newest release: @cartesi/rollup 1.0.0-alpha.3 and @cartesi/codec 1.0.0-alpha.5 (follow the alpha tag), viem 2.57, react 19.3, vite 8.3, turbo 2.11, biome 2.5.15, vocs 2.10, waku 1.0.0-rc.3, vitest 5.0.4, and the rest; transitive deps refreshed - TypeScript 7 for the explorer only: it uses just the tsc CLI. The tsup-built packages and the docs (twoslash) stay on 6.0.3, because TypeScript 7 no longer ships the compiler API they rely on - GitHub Actions: setup-node 7.1.0, upload-artifact 7.0.2, download-artifact 8.0.2, changesets/action 2.1.2 - create-app's Dockerfile template: Node.js 24.20.0, the newest version with both a cartesi/node riscv64 image and a node trixie image Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Uovoe2koh5SneMR2JLaKtY
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates the explorer to the rollups-node 2.0.0-alpha.13 JSON-RPC API and the matching client libraries and contracts. Also bumps every dependency and moves bun to 1.4.3.
Dependencies for the API update
@cartesi/client2.0.0-alpha.34 → 2.0.0-alpha.38@cartesi/react2.0.0-alpha.38 → 2.0.0-alpha.42@cartesi/codec1.0.0-alpha.0 → 1.0.0-alpha.5 — the new contracts moved the portal addresses; the old codec would stop recognizing depositsAPI changes handled
cartesi_getNodeInfo(chain, version, default block) instead of the deprecatedgetChainId/getNodeVersion; tx links and the decoder take the chain ID from it toodataAvailabilityremoved; badge colors for the new statuses (GUEST_EXCEPTION, MACHINE_HALTED, MCYCLE_OVERFLOW, UNEXPECTED_YIELD, INVALID_OUTPUTS_ROOT)outputsHash→txBufferDataBlock; newexceptionDatashown on the input page; resource-limit statuses replaced by OVERFLOW / UNEXPECTED_YIELD / INVALID_OUTPUTS_ROOTsnapshot; page also shows kind, initial hash, base cycle, clock allowance and creation txgetMatchAdvanced→getMatchAdvance)Additions using new API data
Mock server
Serves the new record shapes and methods (
getNodeInfo,getEpochByVirtualIndex,getMatchAdvance,listBondEvents/getBondEvent, executed / pending output counts), list-valued filters,from/toindex ranges and the new portal addresses.Dependency bump
packageManager)@cartesi/*follow theiralphatag:@cartesi/rollup1.0.0-alpha.3 and@cartesi/codec1.0.0-alpha.5 in the wallet, docs and examples. Others include viem 2.57, react 19.3, vite 8.3, turbo 2.11, biome 2.5.15, vocs 2.10, waku 1.0.0-rc.3, vitest 5.0.4 and @tanstack/react-query 5.104.tscCLI. TypeScript 7 no longer ships the classic compiler API, which tsup's.d.tsgeneration and the docs' twoslash depend on, so those packages stay on 6.0.3 (the newest 6.x).cartesi/noderiscv64 image and an upstreamnodetrixie image; 24.21 has nocartesi/nodeimage yet.Changesets
@deroll/decoderminor — it re-exports theInputrecord, which changed shape.@deroll/create-app,@deroll/decoder,@deroll/genext2fs,@deroll/walletpatch for the dependency bump. The wallet now recognizes deposits from the new portal addresses.Testing
@cartesi/client@2.0.0-alpha.38parsers) against the updated mock; all parsed.bun install --frozen-lockfileon bun 1.4.3:bun run lint,bun run build(all 6 packages) andbun run testpass (wallet 30/30, genext2fs 19/19 with the native addon rebuilt).apps/examplesdev:*scripts exit 0 against the libcmt mock with@cartesi/rollup1.0.0-alpha.3.🤖 Generated with Claude Code
https://claude.ai/code/session_01Uovoe2koh5SneMR2JLaKtY