-
Notifications
You must be signed in to change notification settings - Fork 41
test: add get_stakers enable disable tokens flow #31
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
test: add get_stakers enable disable tokens flow #31
Conversation
ee75727 to
ef727cc
Compare
ca15f24 to
6f0f17d
Compare
ef727cc to
daaced7
Compare
6f0f17d to
32dbbd3
Compare
daaced7 to
5df2adb
Compare
32dbbd3 to
b4e51a1
Compare
5df2adb to
544506f
Compare
b4e51a1 to
6b110ac
Compare
noa-starkware
left a comment
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.
@noa-starkware reviewed 1 of 2 files at r1.
Reviewable status: 1 of 2 files reviewed, 4 unresolved discussions (waiting on @arad-starkware)
workspace/apps/staking/contracts/src/flow_test/test.cairo line 2280 at r1 (raw file):
assert!(stakers == expected_stakers); // Disable btc 8 decimals
test here its the same
workspace/apps/staking/contracts/src/flow_test/test.cairo line 2299 at r1 (raw file):
// Enable btc 8 decimals and disable btc 18 decimals system.staking.enable_token(token_address: btc_8d.contract_address()); system.staking.disable_token(token_address: btc_18d.contract_address());
test here its the same
workspace/apps/staking/contracts/src/flow_test/test.cairo line 2316 at r1 (raw file):
// Disable both btc tokens system.staking.disable_token(token_address: btc_8d.contract_address());
tese here its the same
workspace/apps/staking/contracts/src/flow_test/test.cairo line 2330 at r1 (raw file):
// Enable both btc tokens system.staking.enable_token(token_address: btc_8d.contract_address()); system.staking.enable_token(token_address: btc_18d.contract_address());
test here the same
6b110ac to
3a4dc96
Compare
arad-starkware
left a comment
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.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @arad-starkware and @noa-starkware)
workspace/apps/staking/contracts/src/flow_test/test.cairo line 2280 at r1 (raw file):
Previously, noa-starkware wrote…
test here its the same
Done
workspace/apps/staking/contracts/src/flow_test/test.cairo line 2299 at r1 (raw file):
Previously, noa-starkware wrote…
test here its the same
Done
workspace/apps/staking/contracts/src/flow_test/test.cairo line 2316 at r1 (raw file):
Previously, noa-starkware wrote…
tese here its the same
Done
workspace/apps/staking/contracts/src/flow_test/test.cairo line 2330 at r1 (raw file):
Previously, noa-starkware wrote…
test here the same
Done
3a4dc96 to
7e21e0d
Compare
544506f to
5569d00
Compare
noa-starkware
left a comment
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.
Reviewable status: 0 of 2 files reviewed, all discussions resolved (waiting on @arad-starkware)
d3893e2 to
6165b21
Compare
9ef4317 to
edc0883
Compare
6165b21 to
a9d619f
Compare
edc0883 to
2278ae9
Compare
a9d619f to
53d30f3
Compare
4346593 to
8c8ba72
Compare
1542855 to
14bd004
Compare
42dc49f to
c246f17
Compare
14bd004 to
317aefb
Compare
c246f17 to
5609a0f
Compare
317aefb to
c460717
Compare
c460717 to
d17c1e1
Compare
5609a0f to
cb8e7e1
Compare
cb8e7e1 to
26ceb20
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #31 +/- ##
==========================================
+ Coverage 95.43% 95.50% +0.06%
==========================================
Files 45 45
Lines 9446 9583 +137
==========================================
+ Hits 9015 9152 +137
Misses 431 431 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Merge activity
|

This change is
Note
Introduce a new flow test validating get_stakers weighting across epochs when BTC tokens (8d/18d) are enabled/disabled and re-enabled.
get_stakers_enable_disable_btc_tokens_flow_testinworkspace/apps/staking/contracts/src/flow_test/test.cairo:get_stakersweights.flow_ideas.mdunderget_stakerslist.Written by Cursor Bugbot for commit 26ceb20. This will update automatically on new commits. Configure here.