@@ -31,7 +31,7 @@ library Voting {
31
31
}
32
32
33
33
/// @notice Assigns the highest rank to a proposed implementation.
34
- /// @param data The voting data containing the proposed upgrades .
34
+ /// @param data The voting data containing the ballots and ranking of proposed implementations .
35
35
/// @param proposedImpl The proposed implementation to assign the highest rank to.
36
36
function assignWorstRank (Data storage data , address proposedImpl ) internal {
37
37
Ballot storage ballot = data.ballots[proposedImpl];
@@ -44,7 +44,7 @@ library Voting {
44
44
}
45
45
46
46
/// @notice Bubble the proposed implementation up in the ranking.
47
- /// @param data The voting data containing the ballots for proposed upgrades.
47
+ /// @param data The voting data containing the ballots and ranking of proposed upgrades.
48
48
/// @param proposedImpl The proposed implementation.
49
49
function bubbleUp (Data storage data , address proposedImpl ) internal {
50
50
Ballot storage ballot = data.ballots[proposedImpl];
@@ -71,7 +71,7 @@ library Voting {
71
71
}
72
72
73
73
/// @notice Bubble the proposed implementation down in the ranking.
74
- /// @param data The voting data containing the ballots for proposed upgrades.
74
+ /// @param data The voting data containing the ballots and ranking of proposed upgrades.
75
75
/// @param proposedImpl The proposed implementation.
76
76
function bubbleDown (Data storage data , address proposedImpl ) internal {
77
77
Ballot storage ballot = data.ballots[proposedImpl];
@@ -99,6 +99,7 @@ library Voting {
99
99
}
100
100
101
101
/// @notice Returns the implementation with the respective rank or `address(0)` if the rank does not exist.
102
+ /// @param data The storage containing the implementation ranking and count.
102
103
/// @param rank The rank to return the implementation for.
103
104
/// @return impl The proposed implementation with the respective rank or `address(0)` if the rank does not exist.
104
105
function implementationByRank (Data storage data , uint48 rank ) internal view returns (address impl ) {
@@ -112,13 +113,14 @@ library Voting {
112
113
}
113
114
114
115
/// @notice Returns the number of implementations.
116
+ /// @param data The storage containing the number of implementations being ranked.
115
117
/// @return count implementation count.
116
118
function implementationsCount (Data storage data ) internal view returns (uint48 count ) {
117
119
count = data.implCount;
118
120
}
119
121
120
122
/// @notice Swaps the rank of two implementations A and B.
121
- /// @param data The storage containing the ballots for proposed upgrades .
123
+ /// @param data The storage containing the implementation ranking .
122
124
/// @param implA Implementation A.
123
125
/// @param rankA The rank of implementation A before the swap.
124
126
/// @param implB Implementation B.
0 commit comments