From d4b53b2000b37f8a9a14086ba5f381eb5bafd08d Mon Sep 17 00:00:00 2001 From: Mike-CZ Date: Thu, 24 Oct 2024 12:01:30 +0200 Subject: [PATCH] Remove obsolete errors --- contracts/IErrors.sol | 92 ------------------------------------------- 1 file changed, 92 deletions(-) delete mode 100644 contracts/IErrors.sol diff --git a/contracts/IErrors.sol b/contracts/IErrors.sol deleted file mode 100644 index 03d43a2..0000000 --- a/contracts/IErrors.sol +++ /dev/null @@ -1,92 +0,0 @@ -// SPDX-License-Identifier: UNLICENSED -pragma solidity ^0.8.9; - -interface IErrors { - // auth - error NotOwner(); - error NotBackend(); - error NotNode(); - error NotSFC(); - error NotDriver(); - error NotDriverAuth(); - error NotContract(); - error NotAuthorized(); - - // initialization - error ContractInitialized(); - - // reentrancy - error ReentrantCall(); - - // addresses - error ZeroAddress(); - error SameAddress(); - error RecipientNotSFC(); - - // values - error ZeroAmount(); - error ZeroRewards(); - - // pubkeys - error PubkeyExists(); - error MalformedPubkey(); - error SamePubkey(); - error EmptyPubkey(); - error PubkeyAllowedOnlyOnce(); - - // redirections - error SameRedirectionAuthorizer(); - error Redirected(); - - // validators - error ValidatorNotExists(); - error ValidatorExists(); - error ValidatorNotActive(); - error ValidatorDelegationLimitExceeded(); - error WrongValidatorStatus(); - - // requests - error RequestedCompleted(); - error RequestExists(); - error RequestNotExists(); - - // transfers - error TransfersNotAllowed(); - error TransferFailed(); - - // updater - error SFCAlreadyUpdated(); - error SFCWrongVersion(); - error SFCGovAlreadyUpdated(); - error SFCWrongGovVersion(); - - // node driver - error SelfCodeHashMismatch(); - error DriverCodeHashMismatch(); - - // governance - error GovVotesRecountFailed(); - - // staking - error LockedStakeGreaterThanTotalStake(); - error InsufficientSelfStake(); - error NotEnoughUnlockedStake(); - error NotEnoughLockedStake(); - error NotEnoughTimePassed(); - error NotEnoughEpochsPassed(); - error StakeIsFullySlashed(); - error IncorrectDuration(); - error ValidatorLockupTooShort(); - error TooManyReLocks(); - error TooFrequentReLocks(); - error LockupDurationDecreased(); - error AlreadyLockedUp(); - error NotLockedUp(); - - // stashing - error NothingToStash(); - - // slashing - error ValidatorNotSlashed(); - error RefundRatioTooHigh(); -}