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
/// @title KlerosGovernor for V2. Note that appeal functionality and evidence submission will be handled by the court.
9
+
/// @title KlerosGovernor for V2.
10
+
/// @dev Appeal and evidence submission is handled by the court.
10
11
contractKlerosGovernorisIArbitrableV2 {
11
12
using SafeSendforaddress payable;
12
13
@@ -89,7 +90,7 @@ contract KlerosGovernor is IArbitrableV2 {
89
90
// * Events * //
90
91
// ************************************* //
91
92
92
-
/// @dev Emitted when a new list is submitted.
93
+
/// @notice Emitted when a new list is submitted.
93
94
/// @param _listID The index of the transaction list in the array of lists.
94
95
/// @param _submitter The address that submitted the list.
95
96
/// @param _session The number of the current session.
@@ -106,7 +107,7 @@ contract KlerosGovernor is IArbitrableV2 {
106
107
// * Constructor * //
107
108
// ************************************* //
108
109
109
-
/// @dev Constructor.
110
+
/// @notice Constructor.
110
111
/// @param _arbitrator The arbitrator of the contract.
111
112
/// @param _arbitratorExtraData Extra data for the arbitrator.
112
113
/// @param _templateData The dispute template data.
@@ -145,32 +146,34 @@ contract KlerosGovernor is IArbitrableV2 {
145
146
// * Governance * //
146
147
// ************************************* //
147
148
148
-
/// @dev Changes the value of the base deposit required for submitting a list.
149
+
/// @notice Changes the value of the base deposit required for submitting a list.
149
150
/// @param _submissionBaseDeposit The new value of the base deposit, in wei.
150
151
function changeSubmissionDeposit(uint256_submissionBaseDeposit) external onlyByOwner {
151
152
submissionBaseDeposit = _submissionBaseDeposit;
152
153
}
153
154
154
-
/// @dev Changes the time allocated for submission. Note that it can't be changed during approval period because there can be an active dispute in the old arbitrator contract
155
+
/// @notice Changes the time allocated for submission.
156
+
/// @dev It cannot be changed during approval period because there can be an active dispute in the old arbitrator contract
155
157
/// and prolonging submission timeout might switch it back to submission period.
156
158
/// @param _submissionTimeout The new duration of the submission period, in seconds.
157
159
function changeSubmissionTimeout(uint256_submissionTimeout) external onlyByOwner duringSubmissionPeriod {
158
160
submissionTimeout = _submissionTimeout;
159
161
}
160
162
161
-
/// @dev Changes the time allocated for list's execution.
163
+
/// @notice Changes the time allocated for list's execution.
162
164
/// @param _executionTimeout The new duration of the execution timeout, in seconds.
163
165
function changeExecutionTimeout(uint256_executionTimeout) external onlyByOwner {
164
166
executionTimeout = _executionTimeout;
165
167
}
166
168
167
-
/// @dev Changes list withdrawal timeout. Note that withdrawals are only possible in the first half of the submission period.
169
+
/// @notice Changes list withdrawal timeout. Note that withdrawals are only possible in the first half of the submission period.
168
170
/// @param _withdrawTimeout The new duration of withdraw period, in seconds.
169
171
function changeWithdrawTimeout(uint256_withdrawTimeout) external onlyByOwner {
170
172
withdrawTimeout = _withdrawTimeout;
171
173
}
172
174
173
-
/// @dev Changes the arbitrator of the contract. Note that it can't be changed during approval period because there can be an active dispute in the old arbitrator contract.
175
+
/// @notice Changes the arbitrator of the contract.
176
+
/// @dev It cannot be changed during approval period because there can be an active dispute in the old arbitrator contract.
174
177
/// @param _arbitrator The new trusted arbitrator.
175
178
/// @param _arbitratorExtraData The extra data used by the new arbitrator.
176
179
function changeArbitrator(
@@ -181,7 +184,7 @@ contract KlerosGovernor is IArbitrableV2 {
181
184
arbitratorExtraData = _arbitratorExtraData;
182
185
}
183
186
184
-
/// @dev Update the dispute template data.
187
+
/// @notice Update the dispute template data.
185
188
/// @param _templateData The new dispute template data.
186
189
/// @param _templateDataMappings The new dispute template data mappings.
187
190
function changeDisputeTemplate(
@@ -195,7 +198,7 @@ contract KlerosGovernor is IArbitrableV2 {
195
198
// * State Modifiers * //
196
199
// ************************************* //
197
200
198
-
/// @dev Creates transaction list based on input parameters and submits it for potential approval and execution.
201
+
/// @notice Creates transaction list based on input parameters and submits it for potential approval and execution.
199
202
/// @param _target List of addresses to call.
200
203
/// @param _value List of values required for respective addresses.
201
204
/// @param _data Concatenated calldata of all transactions of this list.
@@ -249,8 +252,8 @@ contract KlerosGovernor is IArbitrableV2 {
/// @dev Gets the array of submitted lists in the session.
383
-
/// Note that this function is O(n), where n is the number of submissions in the session. This could exceed the gas limit, therefore this function should only be used for interface display and not by other contracts.
386
+
/// @notice Gets the array of submitted lists in the session.
387
+
///
388
+
/// @dev This function is O(n), where `n` is the number of submissions in the session.
389
+
/// This could exceed the gas limit, therefore this function should only be used for interface display and not by other contracts.
390
+
///
384
391
/// @param _session The ID of the session.
385
392
/// @return submittedLists Indexes of lists that were submitted during the session.
386
393
function getSubmittedLists(uint256_session) externalviewreturns (uint256[] memorysubmittedLists) {
387
394
Session storage session = sessions[_session];
388
395
submittedLists = session.submittedLists;
389
396
}
390
397
391
-
/// @dev Gets the number of transactions in the list.
398
+
/// @notice Gets the number of transactions in the list.
392
399
/// @param _listID The index of the transaction list in the array of lists.
393
400
/// @return txCount The number of transactions in the list.
394
401
function getNumberOfTransactions(uint256_listID) externalviewreturns (uint256txCount) {
0 commit comments