Skip to content

chore: getting ready for v3.2.0#395

Merged
gzeoneth merged 17 commits intodevelopfrom
release-3.2.0
Jan 12, 2026
Merged

chore: getting ready for v3.2.0#395
gzeoneth merged 17 commits intodevelopfrom
release-3.2.0

Conversation

@gzeoneth
Copy link
Member

@gzeoneth gzeoneth commented Nov 18, 2025

What's Changed

setting base to main for review

chore: merge develop with 3.1.0 to main
chore: merge develop with v3.1.1 to main
@gzeoneth gzeoneth changed the base branch from develop to main November 18, 2025 09:33
@gzeoneth gzeoneth requested a review from Copilot November 18, 2025 09:34
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This release (v3.2.0) introduces several significant enhancements to the nitro-contracts repository, focusing on improved deployment processes, custom data availability support, and resource management capabilities.

Key changes:

  • Added CustomDA proof validation interface and implementation for alternative data availability solutions
  • Introduced ResourceConstraintManager for gas pricing constraint management
  • Implemented base stake adjustment mechanisms (increase/decrease) with safety checks for permissioned chains
  • Migrated to deterministic CREATE2 deployments for all factory contracts
  • Enhanced rollup initialization with optional data cost estimation

Reviewed Changes

Copilot reviewed 69 out of 71 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/osp/OneStepProverHostIo.sol Added CustomDA validator support with certificate validation and preimage reading
src/osp/ICustomDAProofValidator.sol New interface for custom data availability proof validators
src/rollup/RollupAdminLogic.sol Split setBaseStake into increaseBaseStake and decreaseBaseStake with additional safety checks
src/rollup/RollupCreator.sol Added constructor with initial setup and customOsp parameter support
src/rollup/BridgeCreator.sol Removed Ownable inheritance and update functions
src/rollup/ValidatorWalletCreator.sol Simplified to immutable template without owner management
src/chain/ResourceConstraintManager.sol New contract for managing gas pricing constraints with time-based expiry
scripts/deploymentUtils.ts Enhanced with CREATE2 support and consolidated OneStepProof deployment
test/foundry/Rollup.t.sol Updated tests for new base stake adjustment functions
test/foundry/OneStepProverHostIo.t.sol Comprehensive tests for CustomDA proof validation
Comments suppressed due to low confidence (1)

scripts/deploymentUtils.ts:1

  • [nitpick] This complex string manipulation for address extraction should be extracted into a helper function with a descriptive name to improve readability and reusability.
import { ethers } from 'hardhat'

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gzeoneth gzeoneth changed the base branch from main to develop January 7, 2026 16:37
@gzeoneth gzeoneth marked this pull request as ready for review January 10, 2026 06:23
Tristan-Wilson and others added 3 commits January 10, 2026 14:24
* Fix executeValidatePreimage to match Rust prover validation

The Solidity executeValidatePreimage function was missing validations
present in the equivalent Rust ValidateCertificate opcode handler.

- Add check for preimageType > 255, setting ERRORED status
- Add check for preimageType 4-255, returning 0 without memory access
- Add ptr validation using isValidLeaf() before memory proof
- Reorder operations to validate preimageType before memory access

* Fix ValidateCertificate preimageType > 255 handling to revert instead of ERRORED

When preimageType exceeds 255 (can't fit in u8), the Rust execution code
uses the ? operator to propagate an error from step_n(), rather than
calling error!() which would set MachineStatus::Errored. The Solidity
one-step prover should match this behavior by reverting (proof is invalid)
rather than setting ERRORED (valid machine state transition).

* fix: ci audit

* chore: update slither db

---------

Co-authored-by: gzeon <hng@offchainlabs.com>
Co-authored-by: gzeon <im@gzeon.dev>
@gzeoneth gzeoneth changed the title release: v3.2.0 chore: getting ready for v3.2.0 Jan 12, 2026
@gzeoneth gzeoneth merged commit 2c26a00 into develop Jan 12, 2026
11 of 12 checks passed
@gzeoneth gzeoneth deleted the release-3.2.0 branch January 12, 2026 13:01
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.

7 participants