mirror of
https://github.com/lens-protocol/core.git
synced 2026-01-08 05:43:57 -05:00
fix: Self dependency removed
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -10,6 +10,3 @@
|
||||
[submodule "lib/openzeppelin-contracts"]
|
||||
path = lib/openzeppelin-contracts
|
||||
url = https://github.com/OpenZeppelin/openzeppelin-contracts
|
||||
[submodule "lib/core-private"]
|
||||
path = lib/core-private
|
||||
url = https://github.com/lens-protocol/core-private
|
||||
|
||||
Submodule lib/core-private deleted from c6731df7d9
@@ -14,4 +14,3 @@ utility-contracts/=lib/seadrop/lib/utility-contracts/src/
|
||||
create2-scripts/=lib/seadrop/lib/create2-helpers/script/
|
||||
|
||||
solady/=lib/solady/src/
|
||||
@lens-v1/=lib/core-private/
|
||||
|
||||
@@ -3,8 +3,7 @@ pragma solidity ^0.8.13;
|
||||
|
||||
import {ForkManagement} from 'script/helpers/ForkManagement.sol';
|
||||
import 'forge-std/Script.sol';
|
||||
import {LensHub as LegacyLensHub} from '@lens-v1/contracts/core/LensHub.sol';
|
||||
import {ModuleGlobals} from '@lens-v1/contracts/core/modules/ModuleGlobals.sol';
|
||||
import {ILensGovernable} from 'contracts/interfaces/ILensGovernable.sol';
|
||||
import {LensHubInitializable} from 'contracts/misc/LensHubInitializable.sol';
|
||||
import {LensV2UpgradeContract} from 'contracts/misc/LensV2UpgradeContract.sol';
|
||||
import {FollowNFT} from 'contracts/FollowNFT.sol';
|
||||
@@ -45,11 +44,11 @@ contract A_DeployLensV2Upgrade is Script, ForkManagement, ArrayHelpers {
|
||||
}
|
||||
|
||||
address lensHub;
|
||||
LegacyLensHub legacyLensHub;
|
||||
ILensGovernable legacyLensHub; // We just need the `getGovernance` function
|
||||
address legacyLensHubImpl;
|
||||
address lensHubV2Impl;
|
||||
|
||||
ModuleGlobals moduleGlobals;
|
||||
ILensGovernable moduleGlobals; // We use `getTreasury` and `getTreasuryFee` functions
|
||||
|
||||
address followNFTImpl;
|
||||
address legacyCollectNFTImpl;
|
||||
@@ -80,7 +79,7 @@ contract A_DeployLensV2Upgrade is Script, ForkManagement, ArrayHelpers {
|
||||
|
||||
function loadBaseAddresses() internal override {
|
||||
lensHub = json.readAddress(string(abi.encodePacked('.', targetEnv, '.LensHubProxy')));
|
||||
legacyLensHub = LegacyLensHub(lensHub);
|
||||
legacyLensHub = ILensGovernable(lensHub);
|
||||
vm.label(lensHub, 'LensHub');
|
||||
console.log('Lens Hub Proxy: %s', address(legacyLensHub));
|
||||
|
||||
@@ -88,7 +87,7 @@ contract A_DeployLensV2Upgrade is Script, ForkManagement, ArrayHelpers {
|
||||
vm.label(legacyLensHubImpl, 'LensHubImplementation');
|
||||
console.log('Legacy Lens Hub Impl: %s', address(legacyLensHubImpl));
|
||||
|
||||
moduleGlobals = ModuleGlobals(json.readAddress(string(abi.encodePacked('.', targetEnv, '.ModuleGlobals'))));
|
||||
moduleGlobals = ILensGovernable(json.readAddress(string(abi.encodePacked('.', targetEnv, '.ModuleGlobals'))));
|
||||
vm.label(address(moduleGlobals), 'ModuleGlobals');
|
||||
console.log('ModuleGlobals: %s', address(moduleGlobals));
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ pragma solidity ^0.8.13;
|
||||
|
||||
import {ForkManagement} from 'script/helpers/ForkManagement.sol';
|
||||
import 'forge-std/Script.sol';
|
||||
import {LensHub as LegacyLensHub} from '@lens-v1/contracts/core/LensHub.sol';
|
||||
import {ILensGovernable} from 'contracts/interfaces/ILensGovernable.sol';
|
||||
import {Governance} from 'contracts/misc/access/Governance.sol';
|
||||
import {LensV2UpgradeContract} from 'contracts/misc/LensV2UpgradeContract.sol';
|
||||
import {ProxyAdmin} from 'contracts/misc/access/ProxyAdmin.sol';
|
||||
@@ -17,7 +17,7 @@ contract C_ChangeLensV1Admins is Script, ForkManagement {
|
||||
|
||||
bytes32 constant ADMIN_SLOT = bytes32(uint256(keccak256('eip1967.proxy.admin')) - 1);
|
||||
|
||||
LegacyLensHub legacyLensHub;
|
||||
ILensGovernable legacyLensHub; // We just need the `getGovernance` function
|
||||
TransparentUpgradeableProxy lensHubAsProxy;
|
||||
Governance governanceContract;
|
||||
address proxyAdmin;
|
||||
@@ -26,7 +26,7 @@ contract C_ChangeLensV1Admins is Script, ForkManagement {
|
||||
|
||||
function loadBaseAddresses() internal override {
|
||||
address lensHubProxyAddress = json.readAddress(string(abi.encodePacked('.', targetEnv, '.LensHubProxy')));
|
||||
legacyLensHub = LegacyLensHub(lensHubProxyAddress);
|
||||
legacyLensHub = ILensGovernable(lensHubProxyAddress);
|
||||
vm.label(lensHubProxyAddress, 'LensHub');
|
||||
console.log('Legacy Lens Hub: %s', address(legacyLensHub));
|
||||
lensHubAsProxy = TransparentUpgradeableProxy(payable(lensHubProxyAddress));
|
||||
|
||||
@@ -3,7 +3,7 @@ pragma solidity ^0.8.13;
|
||||
|
||||
import {ForkManagement} from 'script/helpers/ForkManagement.sol';
|
||||
import 'forge-std/Script.sol';
|
||||
import {LensHub as LegacyLensHub} from '@lens-v1/contracts/core/LensHub.sol';
|
||||
import {ILensGovernable} from 'contracts/interfaces/ILensGovernable.sol';
|
||||
import {Governance} from 'contracts/misc/access/Governance.sol';
|
||||
import {LensV2UpgradeContract} from 'contracts/misc/LensV2UpgradeContract.sol';
|
||||
import {ProxyAdmin} from 'contracts/misc/access/ProxyAdmin.sol';
|
||||
@@ -29,7 +29,7 @@ contract D_PerformV2Upgrade is Script, ForkManagement {
|
||||
LensAccount _governance;
|
||||
LensAccount _proxyAdmin;
|
||||
|
||||
LegacyLensHub legacyLensHub;
|
||||
ILensGovernable legacyLensHub; // We just need the `getGovernance` function
|
||||
TransparentUpgradeableProxy lensHubAsProxy;
|
||||
LensV2UpgradeContract lensV2UpgradeContract;
|
||||
Governance governanceContract;
|
||||
@@ -38,7 +38,7 @@ contract D_PerformV2Upgrade is Script, ForkManagement {
|
||||
|
||||
function loadBaseAddresses() internal override {
|
||||
address lensHubProxyAddress = json.readAddress(string(abi.encodePacked('.', targetEnv, '.LensHubProxy')));
|
||||
legacyLensHub = LegacyLensHub(lensHubProxyAddress);
|
||||
legacyLensHub = ILensGovernable(lensHubProxyAddress);
|
||||
vm.label(lensHubProxyAddress, 'LensHub');
|
||||
console.log('Lens Hub Proxy: %s', address(legacyLensHub));
|
||||
lensHubAsProxy = TransparentUpgradeableProxy(payable(lensHubProxyAddress));
|
||||
|
||||
@@ -25,7 +25,7 @@ import {TokenHandleRegistry} from 'contracts/namespaces/TokenHandleRegistry.sol'
|
||||
import {MockActionModule} from 'test/mocks/MockActionModule.sol';
|
||||
import {MockReferenceModule} from 'test/mocks/MockReferenceModule.sol';
|
||||
import {ModuleRegistry} from 'contracts/misc/ModuleRegistry.sol';
|
||||
import {ModuleGlobals} from '@lens-v1/contracts/core/modules/ModuleGlobals.sol';
|
||||
import {ILensGovernable} from 'contracts/interfaces/ILensGovernable.sol';
|
||||
|
||||
// TODO: Move these to Interface file in test folder.
|
||||
struct OldCreateProfileParams {
|
||||
@@ -146,7 +146,7 @@ contract TestSetup is Test, ContractAddressesLoaderDeployer, ArrayHelpers {
|
||||
|
||||
TREASURY_FEE_BPS = hub.getTreasuryFee();
|
||||
} else {
|
||||
ModuleGlobals moduleGlobals = ModuleGlobals(
|
||||
ILensGovernable moduleGlobals = ILensGovernable(
|
||||
json.readAddress(string(abi.encodePacked('.', targetEnv, '.ModuleGlobals')))
|
||||
);
|
||||
vm.label(address(moduleGlobals), 'ModuleGlobals');
|
||||
|
||||
Reference in New Issue
Block a user