From bee0c342266f8dad32ef5106c2a78d12572dd4a6 Mon Sep 17 00:00:00 2001 From: Bogdan Kovtun Date: Tue, 24 Dec 2024 04:43:46 +0400 Subject: [PATCH] Add SPDX-FileCopyrightText comment to contracts --- contracts/DualGovernance.sol | 1 + contracts/EmergencyProtectedTimelock.sol | 1 + contracts/Escrow.sol | 1 + contracts/Executor.sol | 1 + contracts/ImmutableDualGovernanceConfigProvider.sol | 1 + contracts/ResealManager.sol | 1 + contracts/TimelockedGovernance.sol | 1 + contracts/committees/HashConsensus.sol | 1 + contracts/committees/ProposalsList.sol | 1 + contracts/committees/TiebreakerCoreCommittee.sol | 1 + contracts/committees/TiebreakerSubCommittee.sol | 1 + contracts/interfaces/IDualGovernance.sol | 1 + contracts/interfaces/IDualGovernanceConfigProvider.sol | 1 + contracts/interfaces/IEmergencyProtectedTimelock.sol | 1 + contracts/interfaces/IEscrowBase.sol | 1 + contracts/interfaces/IExternalExecutor.sol | 1 + contracts/interfaces/IGovernance.sol | 1 + contracts/interfaces/IOwnable.sol | 1 + contracts/interfaces/IRageQuitEscrow.sol | 1 + contracts/interfaces/IResealManager.sol | 1 + contracts/interfaces/ISealable.sol | 1 + contracts/interfaces/ISignallingEscrow.sol | 1 + contracts/interfaces/IStETH.sol | 1 + contracts/interfaces/ITiebreaker.sol | 1 + contracts/interfaces/ITiebreakerCoreCommittee.sol | 1 + contracts/interfaces/ITimelock.sol | 1 + contracts/interfaces/IWithdrawalQueue.sol | 1 + contracts/interfaces/IWstETH.sol | 1 + contracts/libraries/AssetsAccounting.sol | 1 + contracts/libraries/DualGovernanceConfig.sol | 1 + contracts/libraries/DualGovernanceStateMachine.sol | 1 + contracts/libraries/DualGovernanceStateTransitions.sol | 1 + contracts/libraries/EmergencyProtection.sol | 1 + contracts/libraries/EnumerableProposals.sol | 1 + contracts/libraries/EscrowState.sol | 1 + contracts/libraries/ExecutableProposals.sol | 1 + contracts/libraries/ExternalCalls.sol | 1 + contracts/libraries/Proposers.sol | 1 + contracts/libraries/Resealer.sol | 1 + contracts/libraries/SealableCalls.sol | 1 + contracts/libraries/Tiebreaker.sol | 1 + contracts/libraries/TimelockState.sol | 1 + contracts/libraries/WithdrawalsBatchesQueue.sol | 1 + contracts/types/Duration.sol | 1 + contracts/types/ETHValue.sol | 1 + contracts/types/IndexOneBased.sol | 1 + contracts/types/PercentD16.sol | 1 + contracts/types/SharesValue.sol | 1 + contracts/types/Timestamp.sol | 1 + test/utils/time-constraints.sol | 1 + 50 files changed, 50 insertions(+) diff --git a/contracts/DualGovernance.sol b/contracts/DualGovernance.sol index 12a73b7b..47da94f4 100644 --- a/contracts/DualGovernance.sol +++ b/contracts/DualGovernance.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/EmergencyProtectedTimelock.sol b/contracts/EmergencyProtectedTimelock.sol index 2861c658..291fd6e5 100644 --- a/contracts/EmergencyProtectedTimelock.sol +++ b/contracts/EmergencyProtectedTimelock.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/Escrow.sol b/contracts/Escrow.sol index 12d044e7..6b38b75a 100644 --- a/contracts/Escrow.sol +++ b/contracts/Escrow.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/Executor.sol b/contracts/Executor.sol index dd649fc5..fee9e178 100644 --- a/contracts/Executor.sol +++ b/contracts/Executor.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/ImmutableDualGovernanceConfigProvider.sol b/contracts/ImmutableDualGovernanceConfigProvider.sol index 13cb5876..179e3ccb 100644 --- a/contracts/ImmutableDualGovernanceConfigProvider.sol +++ b/contracts/ImmutableDualGovernanceConfigProvider.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/ResealManager.sol b/contracts/ResealManager.sol index 88f407b9..cb10ada5 100644 --- a/contracts/ResealManager.sol +++ b/contracts/ResealManager.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/TimelockedGovernance.sol b/contracts/TimelockedGovernance.sol index 348d927e..64744417 100644 --- a/contracts/TimelockedGovernance.sol +++ b/contracts/TimelockedGovernance.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/committees/HashConsensus.sol b/contracts/committees/HashConsensus.sol index 387616d7..8d8ddc08 100644 --- a/contracts/committees/HashConsensus.sol +++ b/contracts/committees/HashConsensus.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/committees/ProposalsList.sol b/contracts/committees/ProposalsList.sol index 2a01b0b3..bb69983a 100644 --- a/contracts/committees/ProposalsList.sol +++ b/contracts/committees/ProposalsList.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/committees/TiebreakerCoreCommittee.sol b/contracts/committees/TiebreakerCoreCommittee.sol index 9fb873cd..6013f481 100644 --- a/contracts/committees/TiebreakerCoreCommittee.sol +++ b/contracts/committees/TiebreakerCoreCommittee.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/committees/TiebreakerSubCommittee.sol b/contracts/committees/TiebreakerSubCommittee.sol index 00fe623f..9cde60a1 100644 --- a/contracts/committees/TiebreakerSubCommittee.sol +++ b/contracts/committees/TiebreakerSubCommittee.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/interfaces/IDualGovernance.sol b/contracts/interfaces/IDualGovernance.sol index 336b1d82..d1a6cc09 100644 --- a/contracts/interfaces/IDualGovernance.sol +++ b/contracts/interfaces/IDualGovernance.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/interfaces/IDualGovernanceConfigProvider.sol b/contracts/interfaces/IDualGovernanceConfigProvider.sol index e9c6988c..8531f03f 100644 --- a/contracts/interfaces/IDualGovernanceConfigProvider.sol +++ b/contracts/interfaces/IDualGovernanceConfigProvider.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/interfaces/IEmergencyProtectedTimelock.sol b/contracts/interfaces/IEmergencyProtectedTimelock.sol index 6b0b47fa..e45daba6 100644 --- a/contracts/interfaces/IEmergencyProtectedTimelock.sol +++ b/contracts/interfaces/IEmergencyProtectedTimelock.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/interfaces/IEscrowBase.sol b/contracts/interfaces/IEscrowBase.sol index c1e8f22e..6a696766 100644 --- a/contracts/interfaces/IEscrowBase.sol +++ b/contracts/interfaces/IEscrowBase.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/interfaces/IExternalExecutor.sol b/contracts/interfaces/IExternalExecutor.sol index 466c927c..2f51ea5d 100644 --- a/contracts/interfaces/IExternalExecutor.sol +++ b/contracts/interfaces/IExternalExecutor.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/interfaces/IGovernance.sol b/contracts/interfaces/IGovernance.sol index ebf31d6d..4a6a83f2 100644 --- a/contracts/interfaces/IGovernance.sol +++ b/contracts/interfaces/IGovernance.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/interfaces/IOwnable.sol b/contracts/interfaces/IOwnable.sol index 8ef5a4fa..dbf17574 100644 --- a/contracts/interfaces/IOwnable.sol +++ b/contracts/interfaces/IOwnable.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/interfaces/IRageQuitEscrow.sol b/contracts/interfaces/IRageQuitEscrow.sol index 6649db93..5e4259a8 100644 --- a/contracts/interfaces/IRageQuitEscrow.sol +++ b/contracts/interfaces/IRageQuitEscrow.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/interfaces/IResealManager.sol b/contracts/interfaces/IResealManager.sol index 844bd8e1..16a14fa5 100644 --- a/contracts/interfaces/IResealManager.sol +++ b/contracts/interfaces/IResealManager.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/interfaces/ISealable.sol b/contracts/interfaces/ISealable.sol index 263a29ec..ea933655 100644 --- a/contracts/interfaces/ISealable.sol +++ b/contracts/interfaces/ISealable.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/interfaces/ISignallingEscrow.sol b/contracts/interfaces/ISignallingEscrow.sol index fcdfcc43..c3540ab2 100644 --- a/contracts/interfaces/ISignallingEscrow.sol +++ b/contracts/interfaces/ISignallingEscrow.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/interfaces/IStETH.sol b/contracts/interfaces/IStETH.sol index 6b6719e7..6164995c 100644 --- a/contracts/interfaces/IStETH.sol +++ b/contracts/interfaces/IStETH.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/interfaces/ITiebreaker.sol b/contracts/interfaces/ITiebreaker.sol index 9d4e89fa..05ef3dec 100644 --- a/contracts/interfaces/ITiebreaker.sol +++ b/contracts/interfaces/ITiebreaker.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/interfaces/ITiebreakerCoreCommittee.sol b/contracts/interfaces/ITiebreakerCoreCommittee.sol index 6bcd1fba..079e9f0f 100644 --- a/contracts/interfaces/ITiebreakerCoreCommittee.sol +++ b/contracts/interfaces/ITiebreakerCoreCommittee.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/interfaces/ITimelock.sol b/contracts/interfaces/ITimelock.sol index 234a000d..c2bdfc37 100644 --- a/contracts/interfaces/ITimelock.sol +++ b/contracts/interfaces/ITimelock.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/interfaces/IWithdrawalQueue.sol b/contracts/interfaces/IWithdrawalQueue.sol index 8d54ba2d..009033f3 100644 --- a/contracts/interfaces/IWithdrawalQueue.sol +++ b/contracts/interfaces/IWithdrawalQueue.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/interfaces/IWstETH.sol b/contracts/interfaces/IWstETH.sol index 557553ad..1e53ed67 100644 --- a/contracts/interfaces/IWstETH.sol +++ b/contracts/interfaces/IWstETH.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/libraries/AssetsAccounting.sol b/contracts/libraries/AssetsAccounting.sol index 214430a4..a7a647d4 100644 --- a/contracts/libraries/AssetsAccounting.sol +++ b/contracts/libraries/AssetsAccounting.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/libraries/DualGovernanceConfig.sol b/contracts/libraries/DualGovernanceConfig.sol index f4f95f5c..552090ae 100644 --- a/contracts/libraries/DualGovernanceConfig.sol +++ b/contracts/libraries/DualGovernanceConfig.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/libraries/DualGovernanceStateMachine.sol b/contracts/libraries/DualGovernanceStateMachine.sol index d384fc22..bd957577 100644 --- a/contracts/libraries/DualGovernanceStateMachine.sol +++ b/contracts/libraries/DualGovernanceStateMachine.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/libraries/DualGovernanceStateTransitions.sol b/contracts/libraries/DualGovernanceStateTransitions.sol index b7b78dc5..f4af2c51 100644 --- a/contracts/libraries/DualGovernanceStateTransitions.sol +++ b/contracts/libraries/DualGovernanceStateTransitions.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/libraries/EmergencyProtection.sol b/contracts/libraries/EmergencyProtection.sol index 4543a79a..f6e1f302 100644 --- a/contracts/libraries/EmergencyProtection.sol +++ b/contracts/libraries/EmergencyProtection.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/libraries/EnumerableProposals.sol b/contracts/libraries/EnumerableProposals.sol index 18d9ce0f..b356ccf7 100644 --- a/contracts/libraries/EnumerableProposals.sol +++ b/contracts/libraries/EnumerableProposals.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/libraries/EscrowState.sol b/contracts/libraries/EscrowState.sol index 45fa5be4..c3b4707e 100644 --- a/contracts/libraries/EscrowState.sol +++ b/contracts/libraries/EscrowState.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/libraries/ExecutableProposals.sol b/contracts/libraries/ExecutableProposals.sol index e385f667..f34ba52c 100644 --- a/contracts/libraries/ExecutableProposals.sol +++ b/contracts/libraries/ExecutableProposals.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/libraries/ExternalCalls.sol b/contracts/libraries/ExternalCalls.sol index ace806b4..7848a09d 100644 --- a/contracts/libraries/ExternalCalls.sol +++ b/contracts/libraries/ExternalCalls.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/libraries/Proposers.sol b/contracts/libraries/Proposers.sol index a8fb4b17..07ae5278 100644 --- a/contracts/libraries/Proposers.sol +++ b/contracts/libraries/Proposers.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/libraries/Resealer.sol b/contracts/libraries/Resealer.sol index 4b176512..0f21c1c3 100644 --- a/contracts/libraries/Resealer.sol +++ b/contracts/libraries/Resealer.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/libraries/SealableCalls.sol b/contracts/libraries/SealableCalls.sol index 8df707a6..e488d79c 100644 --- a/contracts/libraries/SealableCalls.sol +++ b/contracts/libraries/SealableCalls.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/libraries/Tiebreaker.sol b/contracts/libraries/Tiebreaker.sol index 6c9772fd..a53c65d5 100644 --- a/contracts/libraries/Tiebreaker.sol +++ b/contracts/libraries/Tiebreaker.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/libraries/TimelockState.sol b/contracts/libraries/TimelockState.sol index 8abbbf35..9de8fa2e 100644 --- a/contracts/libraries/TimelockState.sol +++ b/contracts/libraries/TimelockState.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/libraries/WithdrawalsBatchesQueue.sol b/contracts/libraries/WithdrawalsBatchesQueue.sol index a84339d1..8f1c03a5 100644 --- a/contracts/libraries/WithdrawalsBatchesQueue.sol +++ b/contracts/libraries/WithdrawalsBatchesQueue.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/types/Duration.sol b/contracts/types/Duration.sol index 768f6698..1048f93d 100644 --- a/contracts/types/Duration.sol +++ b/contracts/types/Duration.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/types/ETHValue.sol b/contracts/types/ETHValue.sol index 9cf8f30b..ebed2a7e 100644 --- a/contracts/types/ETHValue.sol +++ b/contracts/types/ETHValue.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/types/IndexOneBased.sol b/contracts/types/IndexOneBased.sol index 538c0b90..36c98074 100644 --- a/contracts/types/IndexOneBased.sol +++ b/contracts/types/IndexOneBased.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/types/PercentD16.sol b/contracts/types/PercentD16.sol index 162ca6e6..5390443a 100644 --- a/contracts/types/PercentD16.sol +++ b/contracts/types/PercentD16.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/types/SharesValue.sol b/contracts/types/SharesValue.sol index a5aa466b..ac823403 100644 --- a/contracts/types/SharesValue.sol +++ b/contracts/types/SharesValue.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/contracts/types/Timestamp.sol b/contracts/types/Timestamp.sol index 7da52292..dad0c24d 100644 --- a/contracts/types/Timestamp.sol +++ b/contracts/types/Timestamp.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26; diff --git a/test/utils/time-constraints.sol b/test/utils/time-constraints.sol index c8cd6203..3ab503e4 100644 --- a/test/utils/time-constraints.sol +++ b/test/utils/time-constraints.sol @@ -1,3 +1,4 @@ +// SPDX-FileCopyrightText: 2024 Lido // SPDX-License-Identifier: MIT pragma solidity 0.8.26;