-
Notifications
You must be signed in to change notification settings - Fork 15
NoOpFeeManager interface compatibility #337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
✅ API Diff Results - No breaking changes |
Add constructor parameters and getters required for integration compatibility with official Chainlink Data Streams pattern: - i_linkAddress, i_nativeAddress, i_rewardManager - s_nativeSurcharge() returning 0 Update tests and regenerate geth bindings.
There was a problem hiding this 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 PR updates the NoOpFeeManager contract in v0.5.1 to improve interface compatibility with the real FeeManager by adding constructor parameters for link address, native address, and reward manager. This allows integrators to query these addresses before calling getFeeAndReward(), matching the real-world integration pattern.
Changes:
- Added constructor parameters to NoOpFeeManager for storing link, native, and reward manager addresses
- Updated version string from "0.5.0" to "0.5.1"
- Added new test coverage for constructor parameters, native surcharge getter, and integration workflow compatibility
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| contracts/src/v0.8/llo-feeds/v0.5.1/NoOpFeeManager.sol | Added constructor with three address parameters and s_nativeSurcharge() getter for interface compatibility |
| contracts/src/v0.8/llo-feeds/v0.5.1/test/fee-manager/NoOpFeeManager.t.sol | Updated tests to use new constructor and added test coverage for constructor parameters and native surcharge |
| contracts/src/v0.8/llo-feeds/v0.5.1/test/fee-manager/NoOpFeeManager.integration.t.sol | Added comprehensive integration test verifying workflow compatibility between FeeManager and NoOpFeeManager |
| contracts/gas-snapshots/llo-feeds.gas-snapshot | Updated gas consumption measurements for modified tests |
| gethwrappers/llo-feeds/generation/generated-wrapper-dependency-versions-do-not-edit.txt | Updated hash for v0.5.1 NoOpFeeManager wrapper reflecting contract changes |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Introduce publicly visible parameters to be compatible with existing integration patterns