Skip to content

Commit

Permalink
Update solidity
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaStebaev committed Oct 4, 2024
1 parent ba06a79 commit 1b21e11
Show file tree
Hide file tree
Showing 33 changed files with 53 additions and 53 deletions.
2 changes: 1 addition & 1 deletion .solhint.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "solhint:all",
"rules": {
"compiler-version": ["error","^0.6.10"],
"compiler-version": ["error","^0.8.8"],
"state-visibility": "error",
"no-empty-blocks": "error",
"check-send-result": "error",
Expand Down
4 changes: 2 additions & 2 deletions contracts/IBountyV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
along with SKALE Manager Interfaces. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

interface IBountyV2 {

Expand All @@ -44,4 +44,4 @@ interface IBountyV2 {
function estimateBounty(uint nodeIndex) external view returns (uint);
function getNextRewardTimestamp(uint nodeIndex) external view returns (uint);
function getEffectiveDelegatedSum() external view returns (uint[] memory);
}
}
2 changes: 1 addition & 1 deletion contracts/IConstantsHolder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
along with SKALE Manager Interfaces. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

interface IConstantsHolder {

Expand Down
2 changes: 1 addition & 1 deletion contracts/IContractManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
along with SKALE Manager Interfaces. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

interface IContractManager {
/**
Expand Down
2 changes: 1 addition & 1 deletion contracts/IDecryption.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
along with SKALE Manager. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

interface IDecryption {
function encrypt(uint256 secretNumber, bytes32 key) external pure returns (bytes32);
Expand Down
4 changes: 2 additions & 2 deletions contracts/IKeyStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
along with SKALE Manager. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

import "./ISkaleDKG.sol";

Expand All @@ -29,7 +29,7 @@ interface IKeyStorage {
bytes32[2] publicKey;
bytes32 share;
}

function deleteKey(bytes32 schainHash) external;
function initPublicKeyInProgress(bytes32 schainHash) external;
function adding(bytes32 schainHash, ISkaleDKG.G2Point memory value) external;
Expand Down
4 changes: 2 additions & 2 deletions contracts/IMintableToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
along with SKALE Manager. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

interface IMintableToken {
function mint(
Expand All @@ -30,4 +30,4 @@ interface IMintableToken {
)
external
returns (bool);
}
}
2 changes: 1 addition & 1 deletion contracts/INodeRotation.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
along with SKALE Manager. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

interface INodeRotation {
/**
Expand Down
2 changes: 1 addition & 1 deletion contracts/INodes.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
along with SKALE Manager. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

import "./utils/IRandom.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/IPaymasterController.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
along with SKALE Manager. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

interface IPaymasterController {
function addSchain(string calldata name) external;
Expand Down
2 changes: 1 addition & 1 deletion contracts/IPermissions.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
along with SKALE Manager. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

interface IPermissions {
function initialize(address contractManagerAddress) external;
Expand Down
2 changes: 1 addition & 1 deletion contracts/IPricing.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
along with SKALE Manager. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

interface IPricing {
function initNodes() external;
Expand Down
4 changes: 2 additions & 2 deletions contracts/ISchains.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
along with SKALE Manager Interfaces. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

interface ISchains {

struct SchainOption {
string name;
bytes value;
}

/**
* @dev Emitted when an schain is created.
*/
Expand Down
2 changes: 1 addition & 1 deletion contracts/ISchainsInternal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
along with SKALE Manager Interfaces. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

import "./INodes.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/ISkaleDKG.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
along with SKALE Manager. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

interface ISkaleDKG {

Expand Down
4 changes: 2 additions & 2 deletions contracts/ISkaleManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
along with SKALE Manager. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

interface ISkaleManager {
/**
Expand All @@ -38,7 +38,7 @@ interface ISkaleManager {
uint bounty,
uint previousBlockEvent
);

function createNode(
uint16 port,
uint16 nonce,
Expand Down
2 changes: 1 addition & 1 deletion contracts/ISkaleVerifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
along with SKALE Manager. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

import "./ISkaleDKG.sol";

Expand Down
4 changes: 2 additions & 2 deletions contracts/ISlashingTable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
along with SKALE Manager. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

interface ISlashingTable {
/**
* @dev Emitted when penalty was added
*/
event PenaltyAdded(uint indexed offenseHash, string offense, uint penalty);

function setPenalty(string calldata offense, uint penalty) external;
function getPenalty(string calldata offense) external view returns (uint);
}
2 changes: 1 addition & 1 deletion contracts/ISyncManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
along with SKALE Manager. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

interface ISyncManager {
struct IPRange {
Expand Down
2 changes: 1 addition & 1 deletion contracts/IWallets.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
along with SKALE Manager Interfaces. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

interface IWallets {
receive() external payable;
Expand Down
10 changes: 5 additions & 5 deletions contracts/delegation/IDelegatableToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,25 @@
along with SKALE Manager. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

/**
* @dev Interface of the SkaleToken contract.
*/
interface IDelegatableToken {

/**
* @dev Returns and updates the amount of locked tokens of a given account `wallet`.
*/
function getAndUpdateLockedAmount(address wallet) external returns (uint);

/**
* @dev Returns and updates the amount of delegated tokens of a given account `wallet`.
*/
function getAndUpdateDelegatedAmount(address wallet) external returns (uint);

/**
* @dev Returns and updates the amount of slashed tokens of a given account `wallet`.
*/
function getAndUpdateSlashedAmount(address wallet) external returns (uint);
}
}
4 changes: 2 additions & 2 deletions contracts/delegation/IDelegationController.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
along with SKALE Manager. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

interface IDelegationController {
enum State {
Expand Down Expand Up @@ -86,7 +86,7 @@ interface IDelegationController {
event UndelegationRequested(
uint delegationId
);

function getAndUpdateDelegatedToValidatorNow(uint validatorId) external returns (uint);
function getAndUpdateDelegatedAmount(address holder) external returns (uint);
function getAndUpdateEffectiveDelegatedByHolderToValidator(address holder, uint validatorId, uint month)
Expand Down
4 changes: 2 additions & 2 deletions contracts/delegation/IDelegationPeriodManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
along with SKALE Manager. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

interface IDelegationPeriodManager {
/**
Expand All @@ -29,7 +29,7 @@ interface IDelegationPeriodManager {
uint length,
uint stakeMultiplier
);

function setDelegationPeriod(uint monthsCount, uint stakeMultiplier) external;
function stakeMultipliers(uint monthsCount) external view returns (uint);
function isDelegationPeriodAllowed(uint monthsCount) external view returns (bool);
Expand Down
4 changes: 2 additions & 2 deletions contracts/delegation/IDistributor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
along with SKALE Manager. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

interface IDistributor {
/**
Expand Down Expand Up @@ -48,7 +48,7 @@ interface IDistributor {
uint validatorId,
uint amount
);

function getAndUpdateEarnedBountyAmount(uint validatorId) external returns (uint earned, uint endMonth);
function withdrawBounty(uint validatorId, address to) external;
function withdrawFee(address to) external;
Expand Down
4 changes: 2 additions & 2 deletions contracts/delegation/ILocker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
along with SKALE Manager. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

/**
* @dev Interface of the Locker functions.
*/
interface ILocker {
/**
* @dev Returns and updates the total amount of locked tokens of a given
* @dev Returns and updates the total amount of locked tokens of a given
* `holder`.
*/
function getAndUpdateLockedAmount(address wallet) external returns (uint);
Expand Down
4 changes: 2 additions & 2 deletions contracts/delegation/IPunisher.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
along with SKALE Manager. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

interface IPunisher {
/**
Expand All @@ -37,7 +37,7 @@ interface IPunisher {
address wallet,
uint amount
);

function slash(uint validatorId, uint amount) external;
function forgive(address holder, uint amount) external;
function handleSlash(address holder, uint amount) external;
Expand Down
2 changes: 1 addition & 1 deletion contracts/delegation/ITimeHelpers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
along with SKALE Manager. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

interface ITimeHelpers {
function calculateProofOfUseLockEndTime(uint month, uint lockUpPeriodDays) external view returns (uint timestamp);
Expand Down
4 changes: 2 additions & 2 deletions contracts/delegation/ITokenState.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
along with SKALE Manager. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity >=0.6.10 <0.9.0;
pragma solidity >=0.8.8 <0.9.0;

interface ITokenState {
/**
Expand All @@ -35,7 +35,7 @@ interface ITokenState {
event LockerWasRemoved(
string locker
);

function removeLocker(string calldata locker) external;
function addLocker(string memory locker) external;
}
Loading

0 comments on commit 1b21e11

Please sign in to comment.