You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/flow_test/flow_ideas.md
+12-19Lines changed: 12 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
# Flow Ideas
2
-
## `get_current_staker_info` (name is WIP)
2
+
## Views
3
3
- Get staker info while staker has zero balance.
4
+
- staker change balance and test with view of current epoch balance
5
+
- member change balance and test with view of current epoch balance
4
6
5
7
## `update_rewards`
6
8
- staker with only btc pool.
@@ -15,23 +17,15 @@
15
17
- with member from previous versions.
16
18
17
19
## k=1 -> k=2 balances
18
-
- staker with stake, upgrade, increase stake - before upgrade after 1 epoch, after 2 epochs (check also total stake)
19
-
- delegator delegate, upgrade, add delegation - same
20
20
- delegator claim rewards when last change is in epoch + 2, then advance epochs and claim again to see no missing rewards
21
21
- same as above, also when there is change in epoch + 1
22
-
- delegate, advance epoch and get rewards for the pool, claim - zero rewards for the delegate
22
+
- delegate, advance epoch and get rewards for the pool, claim - zero rewards for the delegate
23
23
- delegate, advance epoch, delegate, advance epoch, claim rewards - only for the first delegation, advance epoch, claim rewards - for all
24
-
- delegator claim after claim
24
+
- delegator claim after claim
25
25
- delegator claim after claim when exists checkpoint with the current epoch of the first claim
26
26
- staker change balance in each epoch (increase, intent, delegate increase, delegate intent, delegate exit) and attest in each epoch - test rewards (also some epochs with no balance change and some epochs with no attest)
27
27
- staker has multiple pool with multiple delegator each, change balance (staker, strk delegate, btc delegate) and attest in many epochs and test rewards both staker and members
28
-
- staker change balance and test with view of current epoch balance
29
-
- mamber change balance and test with view of current epoch balance
30
-
- staker increase stake, attest same epoch, advance epoch, attest, advance epoch, attest, test rewards
31
-
- delegator increase delegate, attest same epoch, advance epoch, attest, advance epoch, attest, test rewards
32
28
- test staker claim rewards with more than one balance change in an epoch.
33
-
- test delegator claim rewards with V3 rewards?
34
-
- test staker rewards with v3 rewards?
35
29
- member enter, in the same epoch or one epoch after claim (balance is zero).
36
30
37
31
## k=1 -> k=2 Migration Member
@@ -56,7 +50,7 @@
56
50
- member from V1(+V2), pool gets rewards at V1, pool gets rewards at V1, update balance at V1, update balance at V3, test rewards (IDX=LEN)
57
51
- member from V1(+V2), pool gets_rewards at V1, pool gets rewards at V1, update balance at V1, pool gets rewards at V3, update balance at V3, test rewards. (REGULAR CASE)
58
52
- member from V1(+V2), pool gets_rewards at V1, pool gets rewards at V1, update balance at V1, pool gets rewards at V1 same epoch, pool gets rewards at V3, update balance at V3, test rewards. (REGULAR CASE)
59
-
- V0->V1->V3:
53
+
- V0->V1->V3:
60
54
- enter in V0, pool gets rewards in V1, change balance at V1, pool gets rewards in V1, pool gets rewards in V3, update balance at V3, pool gets rewards in V3, test rewards.
61
55
more ideas:
62
56
- member from V1, pool gets rewards at V1, update balance at V1, update balance at V3, pool gets rewards at V3, test rewards.
@@ -71,20 +65,19 @@ more ideas:
71
65
- staker enter in V2, advance epoch, advance epoch, upgrade to V3, attest, update balance,advance epoch, attest, advance epoch, attest, test rewards
72
66
- staker enter in V2, advance epoch, update balance, upgrade to V3, attest, advance epoch, attest, advance epoch, attest, test rewards
73
67
- staker enter in V2, advance epoch, upgrade to V3, advance epoch, attest,
74
-
- staker enter in V0, upgrade to V3, attest
68
+
- staker enter in V0, upgrade to V3, attest
75
69
- staker enter in V0, advance epoch, update balance, upgrade to V3, attest, update balance, advance epoch, attest
76
70
- staker enter in V1, advance epoch, update balance, upgrade to V3, attest, update balance, advance epoch, attest
77
-
- staker enter in V0, advance epoch, update balance, advance epoch, update balance, upgrade to V3, attest
78
-
- staker enter in V1, advance epoch, update balance, advance epoch, update balance, upgrade to V3, attest
71
+
- staker enter in V0, advance epoch, update balance, advance epoch, update balance, upgrade to V3, attest
72
+
- staker enter in V1, advance epoch, update balance, advance epoch, update balance, upgrade to V3, attest
79
73
- staker in V2, update balance staker+update balance pool, upgrade, attest in current epoch, attest in next epoch, attest in next next epoch
80
74
- staker in V2, 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
81
75
- 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
82
76
83
77
## pool member balance at curr epoch migration
84
-
- Member from V0, no actions in V1 or V2, test curr balance
85
-
- Member from V1, no actions in V2, test curr balance
86
-
- Member from V0, change balance at V1, no action at V2, test curr balance
87
-
- Member from V0, no action at V1, change balance at V2, test curr balance
78
+
- Member from V0, no actions in V1 or V2, test curr balance
79
+
- Member from V1, no actions in V2, test curr balance
80
+
- Member from V0, change balance at V1, no action at V2, test curr balance
88
81
- Member from V2, change balance, upgrade, test curr balance
0 commit comments