Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
128 changes: 0 additions & 128 deletions contracts/script/upgrade/AlignedLayerPauserUpgrader.s.sol

This file was deleted.

114 changes: 0 additions & 114 deletions contracts/script/upgrade/AlignedLayerUpgradeAddAggregator.s.sol

This file was deleted.

Large diffs are not rendered by default.

38 changes: 0 additions & 38 deletions contracts/scripts/upgrade_add_aggregator_to_service_manager.sh

This file was deleted.

32 changes: 0 additions & 32 deletions contracts/scripts/upgrade_add_pausable_to_service_manager.sh

This file was deleted.

37 changes: 20 additions & 17 deletions contracts/src/core/AlignedLayerServiceManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -84,23 +84,26 @@ contract AlignedLayerServiceManager is
_initializePauser(_pauserRegistry, _initialPausedStatus);
}

// This function is to be run only on upgrade
// If a new contract is deployed, this function should be removed
// Because this new value is also added in the initializer
function initializeAggregator(
address _alignedAggregator
) public reinitializer(2) {
setAggregator(_alignedAggregator);
}

// Just to be used to upgrade contracts without the pausable functionality
// Once the contract is pausable this method is not needed anymore
function initializePauser(
IPauserRegistry _pauserRegistry,
uint256 _initialPausedStatus
) public reinitializer(3) {
_initializePauser(_pauserRegistry, _initialPausedStatus);
}
// Reinitializers:
// Notice Testnet had more upgrades than Mainnet.
// In Testnet, we executed the reinitializer(2) and reinitializer(3)

// These are not needed in Mainnet.
// In the future, in case of needing to add a reinitializer,
// either add it as reinitializer(4) or redeploy Testnet from scratch

// function initializeAggregator( // applied on Testnet
// address _alignedAggregator
// ) public reinitializer(2) {
// setAggregator(_alignedAggregator);
// }

// function initializePauser( // applied on Testnet
// IPauserRegistry _pauserRegistry,
// uint256 _initialPausedStatus
// ) public reinitializer(3) {
// _initializePauser(_pauserRegistry, _initialPausedStatus);
// }

function createNewTask(
bytes32 batchMerkleRoot,
Expand Down
Loading