-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathIConstantsHolder.sol
More file actions
72 lines (64 loc) · 3.3 KB
/
Copy pathIConstantsHolder.sol
File metadata and controls
72 lines (64 loc) · 3.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// SPDX-License-Identifier: AGPL-3.0-only
/*
IConstantsHolder.sol - SKALE Manager Interfaces
Copyright (C) 2021-Present SKALE Labs
@author Artem Payvin
SKALE Manager Interfaces is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
SKALE Manager Interfaces is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with SKALE Manager Interfaces. If not, see <https://www.gnu.org/licenses/>.
*/
pragma solidity >=0.6.10 <0.9.0;
interface IConstantsHolder {
/**
* @dev Emitted when constants updated.
*/
event ConstantUpdated(
bytes32 indexed constantHash,
uint previousValue,
uint newValue
);
function setPeriods(uint32 newRewardPeriod, uint32 newDeltaPeriod) external;
function setCheckTime(uint newCheckTime) external;
function setLatency(uint32 newAllowableLatency) external;
function setMSR(uint newMSR) external;
function setLaunchTimestamp(uint timestamp) external;
function setRotationDelay(uint newDelay) external;
function setProofOfUseLockUpPeriod(uint periodDays) external;
function setProofOfUseDelegationPercentage(uint percentage) external;
function setLimitValidatorsPerDelegator(uint newLimit) external;
function setSchainCreationTimeStamp(uint timestamp) external;
function setMinimalSchainLifetime(uint lifetime) external;
function setComplaintTimeLimit(uint timeLimit) external;
function setMinNodeBalance(uint newMinNodeBalance) external;
// Corresponds to the public field
// solhint-disable func-name-mixedcase
// slither-disable-start naming-convention
function ALRIGHT_DELTA() external view returns (uint256);
function BROADCAST_DELTA() external view returns (uint256);
function COMPLAINT_BAD_DATA_DELTA() external view returns (uint256);
function PRE_RESPONSE_DELTA() external view returns (uint256);
function COMPLAINT_DELTA() external view returns (uint256);
function RESPONSE_DELTA() external view returns (uint256);
function BOUNTY_LOCKUP_MONTHS() external view returns (uint256);
function NODE_DEPOSIT() external view returns (uint256);
function SECONDS_TO_YEAR() external view returns (uint32);
function SMALL_DIVISOR() external view returns (uint8);
function TOTAL_SPACE_ON_NODE() external view returns (uint8);
// solhint-enable func-name-mixedcase
// slither-disable-end naming-convention
function msr() external view returns (uint);
function launchTimestamp() external view returns (uint);
function rotationDelay() external view returns (uint);
function limitValidatorsPerDelegator() external view returns (uint);
function schainCreationTimeStamp() external view returns (uint);
function minimalSchainLifetime() external view returns (uint);
function complaintTimeLimit() external view returns (uint);
function minNodeBalance() external view returns (uint);
}