-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #538 from lidofinance/feature/lido-locator-tests
lidoLocator update tests
- Loading branch information
Showing
26 changed files
with
1,855 additions
and
1,702 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
// SPDX-FileCopyrightText: 2023 Lido <[email protected]> | ||
|
||
// SPDX-License-Identifier: GPL-3.0 | ||
|
||
// See contracts/COMPILERS.md | ||
pragma solidity 0.8.9; | ||
|
||
contract LidoLocatorMock { | ||
struct ContractAddresses { | ||
address lido; | ||
address depositSecurityModule; | ||
address elRewardsVault; | ||
address accountingOracle; | ||
address legacyOracle; | ||
address safetyNetsRegistry; | ||
address selfOwnedStEthBurner; | ||
address validatorExitBus; | ||
address stakingRouter; | ||
address treasury; | ||
address withdrawalQueue; | ||
address withdrawalVault; | ||
address rebaseReceiver; | ||
} | ||
|
||
address public immutable lido; | ||
address public immutable depositSecurityModule; | ||
address public immutable elRewardsVault; | ||
address public immutable accountingOracle; | ||
address public immutable legacyOracle; | ||
address public immutable safetyNetsRegistry; | ||
address public immutable selfOwnedStEthBurner; | ||
address public immutable validatorExitBus; | ||
address public immutable stakingRouter; | ||
address public immutable treasury; | ||
address public immutable withdrawalQueue; | ||
address public immutable withdrawalVault; | ||
address public immutable rebaseReceiver; | ||
|
||
constructor ( | ||
ContractAddresses memory addrs | ||
) { | ||
lido = addrs.lido; | ||
depositSecurityModule = addrs.depositSecurityModule; | ||
elRewardsVault = addrs.elRewardsVault; | ||
accountingOracle = addrs.accountingOracle; | ||
legacyOracle = addrs.legacyOracle; | ||
safetyNetsRegistry = addrs.safetyNetsRegistry; | ||
selfOwnedStEthBurner = addrs.selfOwnedStEthBurner; | ||
validatorExitBus = addrs.validatorExitBus; | ||
stakingRouter = addrs.stakingRouter; | ||
treasury = addrs.treasury; | ||
withdrawalQueue = addrs.withdrawalQueue; | ||
withdrawalVault = addrs.withdrawalVault; | ||
rebaseReceiver = addrs.rebaseReceiver; | ||
} | ||
|
||
function coreComponents() external view returns(address,address,address,address,address,address) { | ||
return ( | ||
elRewardsVault, | ||
address(0), | ||
address(0), | ||
address(0), | ||
withdrawalQueue, | ||
withdrawalVault | ||
); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.