test: add get_stakers increase stake flow#32
Conversation
noa-starkware
left a comment
There was a problem hiding this comment.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @arad-starkware)
workspace/apps/staking/contracts/src/flow_test/test.cairo line 2378 at r1 (raw file):
// Staker 1 increase stake. system.increase_stake(staker: staker_1, amount: stake_amount);
test here its the same
8c2a594 to
73eaa21
Compare
arad-starkware
left a comment
There was a problem hiding this comment.
Reviewable status: 0 of 2 files reviewed, all discussions resolved (waiting on @arad-starkware)
workspace/apps/staking/contracts/src/flow_test/test.cairo line 2378 at r1 (raw file):
Previously, noa-starkware wrote…
test here its the same
Done
986b446 to
494b83c
Compare
3a4dc96 to
7e21e0d
Compare
494b83c to
7b1c4df
Compare
7e21e0d to
9ef4317
Compare
7b1c4df to
1ee509f
Compare
9ef4317 to
edc0883
Compare
1ee509f to
c409301
Compare
noa-starkware
left a comment
There was a problem hiding this comment.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @arad-starkware)
workspace/apps/staking/contracts/src/flow_test/test.cairo line 2396 at r2 (raw file):
(staker_1.staker.address, STRK_WEIGHT_FACTOR / 2, Option::None), (staker_2.staker.address, STRK_WEIGHT_FACTOR / 2, Option::None), ]
same as above
Code quote:
let expected_stakers = array![
(staker_1.staker.address, STRK_WEIGHT_FACTOR / 2, Option::None),
(staker_2.staker.address, STRK_WEIGHT_FACTOR / 2, Option::None),
]c409301 to
c265e2e
Compare
2278ae9 to
4346593
Compare
1908dd3 to
c428848
Compare
4346593 to
8c8ba72
Compare
c428848 to
93ede53
Compare
8c8ba72 to
42dc49f
Compare
arad-starkware
left a comment
There was a problem hiding this comment.
Reviewable status: 0 of 2 files reviewed, all discussions resolved (waiting on @arad-starkware)
workspace/apps/staking/contracts/src/flow_test/test.cairo line 2396 at r2 (raw file):
Previously, noa-starkware wrote…
same as above
Done
93ede53 to
cc0c679
Compare
42dc49f to
c246f17
Compare
920d336 to
9a7c1ae
Compare
c246f17 to
5609a0f
Compare
noa-starkware
left a comment
There was a problem hiding this comment.
Reviewable status: 0 of 2 files reviewed, all discussions resolved (waiting on @arad-starkware)
cb8e7e1 to
26ceb20
Compare
9a7c1ae to
280e737
Compare
280e737 to
323336e
Compare
26ceb20 to
d66aac8
Compare
323336e to
72468ce
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #32 +/- ##
==========================================
+ Coverage 95.43% 95.51% +0.07%
==========================================
Files 45 45
Lines 9446 9607 +161
==========================================
+ Hits 9015 9176 +161
Misses 431 431 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Merge activity
|

This change is
Note
Adds a test validating
get_stakersbefore/after a staker increases stake and removes the corresponding idea fromflow_ideas.md.get_stakers_increase_stake_flow_testinworkspace/apps/staking/contracts/src/flow_test/test.cairoto verifyget_stakersresults in the same epoch and after K epochs when a staker increases stake.workspace/apps/staking/contracts/src/flow_test/flow_ideas.mdunderget_stakers.Written by Cursor Bugbot for commit 72468ce. This will update automatically on new commits. Configure here.