Skip to content

Conversation

8sunyuan
Copy link
Contributor

@8sunyuan 8sunyuan commented Jun 5, 2025

Motivation:

Testing for #1429
Updates Integration test framework for testing the BN254OperatorTableCalculator

Modifications:
Contracts

  • Updated BN254TableCalculator to have LOOKAHEAD_BLOCKS be immutable

Tests

  • Updated Users (AVS.t.sol, User.t.sol)
  • IntegrationBase
    • _newRandomAVS_WithBN254
    • _newRandomAVS_WithECDSA
  • IntegrationDeployer, added multichain contracts although some are missing pending feat PRs to be merged.
  • ExistingDeploymentParser, added contract addresses

Result:

  • Updated Integration test framework for testing the BN254OperatorTableCalculator and other multichain flows
  • fuzz tests for BN254OperatorTableCalculator in BN254OperatorSet_CalculateWeights.t.sol

Copy link
Collaborator

@ypatil12 ypatil12 left a comment

Choose a reason for hiding this comment

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

One non-blocking comment. Tests LGTM

keyRegistrar.BN254_KEY_REGISTRATION_TYPEHASH(), address(this), operatorSet.avs, operatorSet.id, keccak256(bn254KeyBytes)
)
);
bytes32 messageHash = SignatureUtilsMixin(address(keyRegistrar)).domainSeparator();
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can use the view function on keyRegistrar to get this?

@8sunyuan 8sunyuan merged commit c757a4f into feat/operator-table-calculator Jun 5, 2025
10 of 14 checks passed
@8sunyuan 8sunyuan deleted the test/integration-table-calc branch June 5, 2025 20:43
8sunyuan added a commit that referenced this pull request Jun 5, 2025
<!-- 
    🚨 ATTENTION! 🚨 
    
This PR template is REQUIRED. PRs not following this format will be
closed without review.
    
    Requirements:
- PR title must follow commit conventions:
https://www.conventionalcommits.org/en/v1.0.0/
- Label your PR with the correct type (e.g., 🐛 Bug, ✨ Enhancement, 🧪
Test, etc.)
    - Provide clear and specific details in each section
-->

**Motivation:**

Testing for #1429 
Updates Integration test framework for testing the
BN254OperatorTableCalculator

**Modifications:**
Contracts
- Updated `BN254TableCalculator` to have LOOKAHEAD_BLOCKS be immutable

Tests
- Updated Users (AVS.t.sol, User.t.sol)
- IntegrationBase
    - `_newRandomAVS_WithBN254`
    - `_newRandomAVS_WithECDSA`
- IntegrationDeployer, added multichain contracts although some are
missing pending feat PRs to be merged.
- ExistingDeploymentParser, added contract addresses

**Result:**

- Updated Integration test framework for testing the
BN254OperatorTableCalculator and other multichain flows
- fuzz tests for BN254OperatorTableCalculator in
`BN254OperatorSet_CalculateWeights.t.sol`
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