Skip to content

Commit b37679f

Browse files
test: add balances delay (more balance changes) flow (#84)
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/starkware-libs/starknet-staking/84) <!-- Reviewable:end --> <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Adds new balance-delay upgrade/attest test flows (incl. 2-pool trace entries), renames the existing flow, and wires up corresponding fork tests; minor ideas doc cleanup. > > - **Flows/Tests**: > - Add `BalancesDelayUpgradeAttestFlow` to verify staking power and rewards across epochs around an upgrade and attestations. > - Add `BalancesDelay2PoolTraceEntriesFlow` to cover multi-epoch, multi-increment scenarios (STRK+BTC) pre/post-upgrade. > - Rename and refactor `BalancesDelayFlow` -> `BalancesDelay1PoolTraceEntryFlow` (setup/test updated accordingly). > - **Fork Tests**: > - Add `balances_delay_2_pool_trace_entries_flow_test` and `balances_delay_upgrade_attest_flow_test`. > - Replace `balances_delay_flow_test` with `balances_delay_1_pool_trace_entry_flow_test`. > - **Docs**: > - Trim obsolete migration notes from `src/flow_test/flow_ideas.md`. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 91fd529. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent bd3cec8 commit b37679f

File tree

3 files changed

+539
-10
lines changed

3 files changed

+539
-10
lines changed

src/flow_test/flow_ideas.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
- staker change balance, attest, change balance, attest, set_v3, change balance, update_rewards, change_balance, update_rewards, test rewards.
1616
- with member from previous versions.
1717

18-
## k=1 -> k=2 Migration Staker
19-
- staker in V2, update balance staker+update balance pool, upgrade, attest in current epoch, attest in next epoch, attest in next next epoch
20-
- staker in V2, advance epoch, update balance staker+update balance pool, advance epoch, update balance staker+update balance pool, upgrade, update balance staker+update balance pool, attest in current epoch, attest in next epoch, attest in next next epoch
21-
2218
## pool member balance at curr epoch migration
2319
- Member from V0, no actions in V1 or V2, test curr balance
2420
- Member from V1, no actions in V2, test curr balance

0 commit comments

Comments
 (0)