-
Notifications
You must be signed in to change notification settings - Fork 16
Feat/coupon interest rates #708
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
Draft
AlbertoMolinaIoBuilders
wants to merge
66
commits into
develop
Choose a base branch
from
feat/CouponInterestRates
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
…pdated Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
…unponInterestRates Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
…stRates Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
…stRates Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
…stRates Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Fixed critical configuration ID bug where deployBondFixedRateFromFactory was using
BOND_CONFIG_ID (0x00...02) instead of the correct BOND_FIXED_RATE_CONFIG_ID (0x00...03).
This caused FunctionNotFound("0xd51e10d5") errors during BondFixedRate deployments.
Updated checkpoint utilities to account for the new BondFixedRate configuration:
- Updated totalConfigurations from 2 to 3
- Added "Bond Fixed Rate Configuration" as step 6 for newBlr, step 5 for existingBlr
- Updated getTotalSteps expectations: newBlr 7→8, existingBlr 6→7
Updated test fixtures and assertions:
- Added bondFixedRate configuration to checkpoint test fixture
- Updated configuration count assertions in all relevant tests
- Updated step sequence expectations in getStepName tests
- Removed .only decorator from fixedRate.test.ts to enable parallel test execution
- Fixed linting issues: prefixed unused variables with underscore
- Applied formatting fixes throughout modified files
Signed-off-by: Miguel_LZPF <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Root Cause: Addition of Bond Fixed Rate configuration added 3 new facets to the bond
configuration, increasing the facet count from 44 to 47 and adding a new workflow step
in the deployment process. This caused cascading failures in tests that validated
facet counts and deployment step numbers.
Fixes Applied:
1. test/fixtures/infrastructure.fixture.ts (line 105)
- Fixed method call from getBondFacets() to getBondFixedRateFacets()
- Ensures fixture uses correct facet list for bond fixed rate configuration
2. test/scripts/unit/checkpoint/utils.test.ts
- Line 138: Updated expected bond fixed rate facet count from 44 to 47
- Line 391: Updated workflow step from "3/7" to "3/8" (new checkpoint write step added)
- Line 459: Updated workflow step from "2/6" to "2/7" (new checkpoint write step added)
3. test/contracts/unit/resolver/diamondCutManager.test.ts
- Lines 19-21: Shifted TEST_CONFIG_IDS to avoid conflict with BOND_FIXED_RATE_CONFIG_ID (0x03)
* PAUSE_TEST: 0x03 → 0x04
* PAUSE_BATCH_TEST: 0x04 → 0x05
* BLACKLIST_TEST: 0x05 → 0x06
- Lines 64-69: Added all test config IDs to cleanup array to ensure proper teardown
Results: All 948 tests now passing (all 7 failures resolved)
Test Coverage:
- Checkpoint utils validation: facet counts and workflow progression
- Infrastructure fixture: bond fixed rate facet initialization
- Diamond cut manager: config ID isolation and cleanup
Signed-off-by: Miguel_LZPF <[email protected]>
Integrates 4 commits from develop: - Export utilities and deployment tracking enhancements - TotalBalanceStorageWrapper base implementation (BBND-1224) - Storage layout breaking change fix - Scripts DEVELOPER_GUIDE documentation update Combines coupon interest rate functionality with recent storage layer improvements and documentation updates. Resolved conflicts: - BondStorageWrapper.sol: Kept coupon interest rate field (counponsOrderedListByIds) - TotalBalancesStorageWrapper.sol: Used FixedRateStorageWrapper inheritance (includes PauseStorageWrapper via KpiLinkedRateStorageWrapper) with abstract _getTotalBalance method Signed-off-by: Miguel_LZPF <[email protected]>
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
…tRates Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
…tRates Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
…tRates Signed-off-by: Alberto Molina <[email protected]>
…tRates Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
…tRates Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Signed-off-by: Alberto Molina <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Type of change
Testing
Node version:
Checklist