Skip to content

Add FixDescriptor engine module integration#357

Draft
swapnilraj wants to merge 8 commits intoCMTA:masterfrom
NethermindEth:feat/FixEngine
Draft

Add FixDescriptor engine module integration#357
swapnilraj wants to merge 8 commits intoCMTA:masterfrom
NethermindEth:feat/FixEngine

Conversation

@swapnilraj
Copy link

Summary

  • add a dedicated FixDescriptorEngineModule with storage, setter/getter APIs, and role-gated engine configuration
  • introduce FIX descriptor interfaces/mocks and wire integration into the v3.2 module stack via CMTATBaseAccessControl
  • add standard/proxy FixDescriptor test suites and negative coverage for invalid engine-token binding

Test plan

  • HARDHAT_CONFIG=.hardhat.nosize.config.js npx hardhat test test/standard/modules/FixDescriptorModule/FixDescriptorModule.test.js test/standard/modules/FixDescriptorModule/FixDescriptorModuleConstructor.test.js test/proxy/modules/FixDescriptorModule/FixDescriptorModule.test.js test/proxy/modules/FixDescriptorModule/FixDescriptorModuleConstructor.test.js test/standard/modules/CMTATIntegration.test.js test/proxy/modules/CMTATIntegration.test.js

Made with Cursor

dhruv035 and others added 8 commits February 13, 2026 14:53
Propagate the new four-field ICMTATConstructor.Engine shape across deployment helpers and proxy/deployment tests so all initialization paths pass the FixDescriptor engine position explicitly.

Co-authored-by: Cursor <cursoragent@cursor.com>
Expose token() on the engine interface and add a dedicated invalid-binding error, then guard setFixDescriptorEngine so only engines bound to the current CMTAT instance can be configured.

Co-authored-by: Cursor <cursoragent@cursor.com>
Remove token-level assertions for engine-only read APIs, bind mock engines to the active token in valid paths, add zero-address setter coverage, and assert wrong-token engine binding reverts.

Co-authored-by: Cursor <cursoragent@cursor.com>
Rebase the FixEngine work onto the upstream v3.2.0 module layout, keep FixDescriptor engine module integration and access control hooks intact, and adapt deployment/tests to the updated constructor engine shape.

Co-authored-by: Cursor <cursoragent@cursor.com>
Remove explicit zero-address snapshot/document/fix engine init calls from CMTATBaseAccessControl so initialization flow matches CMTA v3.2 patterns while preserving role-gated FixDescriptor engine wiring.

Co-authored-by: Cursor <cursoragent@cursor.com>
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