Skip to content

chore: new deployment contracts [skip-line-limit]#1560

Merged
ctrlc03 merged 7 commits into
mainfrom
chore/new-deployment
May 28, 2026
Merged

chore: new deployment contracts [skip-line-limit]#1560
ctrlc03 merged 7 commits into
mainfrom
chore/new-deployment

Conversation

@ctrlc03

@ctrlc03 ctrlc03 commented May 28, 2026

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • New Features

    • Fallback tally display when the current round is still being tallied; improved polling with exponential backoff and tab visibility awareness
    • Navigation and UI renamed from "Historic Polls" to "All Polls"
  • Documentation

    • Updated Sepolia contract addresses and deploy block numbers across operator docs and examples
  • Chores

    • Package version bumps and example deployment metadata refreshed
    • Example configuration and install behavior adjusted
  • Tests

    • Smoke test updated to expect the "All Polls" page and its title

Review Change Stack

ctrlc03 added 2 commits May 28, 2026 16:56
- Updated @crisp-e3/sdk to 0.10.0
- Updated @crisp-e3/contracts to 0.10.0
- Updated @crisp-e3/zk-inputs to 0.10.0
- Published to npm
@ctrlc03 ctrlc03 requested review from 0xjei and hmzakhalid May 28, 2026 16:04
@vercel

vercel Bot commented May 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
enclave-enclave-dashboard Ready Ready Preview, Comment May 28, 2026 8:03pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
crisp Skipped Skipped May 28, 2026 8:03pm
enclave-docs Skipped Skipped May 28, 2026 8:03pm

Request Review

@coderabbitai

coderabbitai Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Refreshes Sepolia contract addresses and deployed metadata across docs and examples; bumps CRISP example package versions; renames Historic Polls → All Polls and updates navigation/tests; adds fallback-round state and notice; replaces tally polling with exponential backoff; reconfigures Web3Provider connectors and removes an E3 deployment validation call.

Changes

Sepolia Deployment Refresh and Package Versioning

Layer / File(s) Summary
Documentation and example configuration updates
docs/pages/ciphernode-operators/index.mdx, docs/pages/ciphernode-operators/running.mdx, examples/CRISP/enclave.config.yaml
Updated Sepolia contract addresses and deploy_block values in operator docs and CRISP example enclave config; removed disabled Sepolia chain block.
CRISP package versions and npm configuration
examples/CRISP/client/package.json, examples/CRISP/packages/crisp-contracts/package.json, examples/CRISP/packages/crisp-sdk/package.json, examples/CRISP/packages/crisp-zk-inputs/package.json, examples/CRISP/client/.npmrc
Bumped CRISP example packages from 0.9.00.10.0; updated client .npmrc to disable shared workspace lockfile for standalone installs.
CRISP deployment metadata refresh
examples/CRISP/packages/crisp-contracts/deployed_contracts.json
Refreshed Sepolia deployment records: updated addresses, blockNumbers, proxy/admin/implementation records, and constructor references for tokens, registries, Enclave, CRISPProgram, and mocks.
Enclave contracts deployment metadata refresh
packages/enclave-contracts/deployed_contracts.json
Updated Sepolia deployment entries, proxy records, constructor args, and blockNumbers for MockUSDC, EnclaveToken, EnclaveTicketToken, SlashingManager, CiphernodeRegistryOwnable, BondingRegistry, Enclave, E3RefundManager, and mock verifier contracts.

CRISP Client UI and Web3 Configuration Improvements

Layer / File(s) Summary
Navigation UI refactoring: Historic → All
examples/CRISP/client/src/App.tsx, examples/CRISP/client/src/components/NavMenu.tsx, examples/CRISP/client/src/components/Navbar.tsx, examples/CRISP/client/src/pages/AllPolls/AllPolls.tsx, examples/CRISP/client/src/pages/Landing/components/PastPoll.tsx, examples/CRISP/test/crisp.spec.ts
Renamed HistoricPollAllPolls; added /all route and redirect /historic/all; updated nav entries, links, and test assertions.
Vote management fallback round state and display
examples/CRISP/client/src/context/voteManagement/VoteManagement.types.ts, examples/CRISP/client/src/context/voteManagement/VoteManagement.context.tsx, examples/CRISP/client/src/pages/Landing/components/DailyPoll.tsx
Added displayedRoundIsFallback to context type and provider; expanded initialLoad to detect and load a fallback round when current round lacks a published tally; expose flag to consumers and show a notice when fallback is used.
Tally polling with exponential backoff and tab visibility
examples/CRISP/client/src/pages/Landing/components/DailyPoll.tsx
Replaced fixed-interval polling with exponential-backoff setTimeout loop; stable callback via useRef; pause polling when document.hidden; cleanup clears pending timeouts.
Web3 provider connector and transport configuration
examples/CRISP/client/src/providers/Web3Provider.tsx
Rewrote provider to use manual createConfig; include mainnet with throwing viem transport to suppress ENS/network calls; configure connectors to injected() and optional walletConnect() when configured.
E3 program deployment validation removal
examples/CRISP/server/src/cli/commands.rs
Removed ensure_e3_program_deployed() call from initialize_crisp_round, skipping a pre-check that the configured E3 program address contains deployed code.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • gnosisguild/enclave#1522: Updates the same Ciphernode Operators documentation and running config contract address/deploy-block values for Sepolia.
  • gnosisguild/enclave#1341: Refreshes Sepolia contract addresses and blockNumbers in docs and deployed contract JSON artifacts.
  • gnosisguild/enclave#1551: Related CRISP UI navigation and test changes that overlap with the Historic → All Polls refactor.

Suggested labels

documentation

Suggested reviewers

  • hmzakhalid
  • cedoor

Poem

🐰 I hopped through docs and code today,
Sepolia addresses fresh and gay.
All Polls now march where Historic stood,
Backoff timers hum — polite and good,
Web3 trimmed, versions bumped — hooray!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title 'chore: new deployment contracts' directly and accurately reflects the primary objective of the changeset: updating deployment contract addresses and related configuration across multiple files.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/new-deployment

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.

@coderabbitai

coderabbitai Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

Actionable comments posted: 0

@coderabbitai

coderabbitai Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

Actionable comments posted: 0

0xjei
0xjei previously approved these changes May 28, 2026

@0xjei 0xjei left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@coderabbitai

coderabbitai Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

Actionable comments posted: 0

@coderabbitai

coderabbitai Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

Actionable comments posted: 0

@ctrlc03 ctrlc03 changed the title chore: new deployment contracts chore: new deployment contracts [skip-line-limit] May 28, 2026

@0xjei 0xjei left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@ctrlc03 ctrlc03 merged commit 21b7bae into main May 28, 2026
34 checks passed
@ctrlc03 ctrlc03 deleted the chore/new-deployment branch May 28, 2026 20:49
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.

2 participants