Skip to content

Conversation

@huyhuynh3103
Copy link
Collaborator

Description

This pull request introduces a new upgradeable contract for managing unordered nonces using a bitmap approach, along with comprehensive tests and a test harness. It also updates the Solidity compiler version to support the new features. The main focus is on enabling efficient tracking and invalidation of nonces for replay protection, with robust testing for various scenarios and edge cases.

New Unordered Nonce Bitmap Implementation:

  • Added UnorderedNonceBitMapUpgradeable contract for efficient unordered nonce management, supporting marking, checking, and invalidating nonces using bitmaps, and emitting relevant events.

Build Configuration:

  • Updated Solidity compiler version in foundry.toml from 0.8.23 to 0.8.29 to enable new language features required by the contract.

Checklist

  • I have clearly commented on all the main functions following the NatSpec Format
  • The box that allows repo maintainers to update this PR is checked
  • I tested locally to make sure this feature/fix works

@huyhuynh3103 huyhuynh3103 merged commit ecc1c3d into mainnet Aug 7, 2025
1 check passed
@iamquang95 iamquang95 deleted the feature/unordered-nonce branch August 7, 2025 10:04
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.

3 participants