mirror of
https://github.com/lens-protocol/core.git
synced 2026-01-06 21:03:57 -05:00
Merge pull request #171 from lens-protocol/misc/local-network
misc: Local Network setup
This commit is contained in:
@@ -248,6 +248,30 @@
|
||||
"ProfileCreationProxy": "0x8de25afc4B37e0AdBb58caf3dF06fAf419455404",
|
||||
"Treasury": "0x648Ddb72d51B5f1849586f6Fd2a95E70754A126A"
|
||||
},
|
||||
"local": {
|
||||
"testnet": true,
|
||||
"chainId": 31337,
|
||||
"network": "local",
|
||||
"LensProfilesGuardianTimelock": 300,
|
||||
"LensHandlesGuardianTimelock": 300,
|
||||
"Currencies": [],
|
||||
"Modules": {
|
||||
"v1": {
|
||||
"collect": [],
|
||||
"follow": [],
|
||||
"reference": []
|
||||
},
|
||||
"v2": {
|
||||
"follow": [],
|
||||
"act": [],
|
||||
"collect": [],
|
||||
"reference": []
|
||||
}
|
||||
},
|
||||
"TreasuryFee": 500,
|
||||
"ProfileRoyaltyFee": 500,
|
||||
"HandleRoyaltyFee": 500
|
||||
},
|
||||
"example": {
|
||||
"testnet": true,
|
||||
"chainId": 69,
|
||||
|
||||
@@ -45,6 +45,7 @@ via_ir = true
|
||||
polygon = "${POLYGON_RPC_URL}"
|
||||
mumbai = "${MUMBAI_RPC_URL}"
|
||||
amoy = "${AMOY_RPC_URL}"
|
||||
local = "${LOCAL_RPC_URL}"
|
||||
|
||||
[fuzz]
|
||||
runs = 50
|
||||
|
||||
@@ -404,19 +404,6 @@ contract DeployFreshLensV2 is Script, ForkManagement, ArrayHelpers {
|
||||
|
||||
publicActProxy = new PublicActProxy({lensHub: address(hub)});
|
||||
_logDeployedAddress(address(publicActProxy), 'PublicActProxy');
|
||||
|
||||
if (isTestnet) {
|
||||
// Add PublicActProxy as a delegatedExecutor of anonymousProfileId
|
||||
hub.changeDelegatedExecutorsConfig(
|
||||
anonymousProfileId,
|
||||
_toAddressArray(address(publicActProxy)),
|
||||
_toBoolArray(true)
|
||||
);
|
||||
console.log('PublicActProxy added as DelegatedExecutor of AnonymousProfileId: %s', address(publicActProxy));
|
||||
} else {
|
||||
console.log('Skipping governance actions for mainnet');
|
||||
console.log('Add PublicActProxy as DelegatedExecutor of AnonymousProfileId manually!');
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Use from test/ContractAddresses?
|
||||
@@ -549,6 +536,22 @@ contract DeployFreshLensV2 is Script, ForkManagement, ArrayHelpers {
|
||||
|
||||
vm.startBroadcast(deployer.ownerPk);
|
||||
{
|
||||
if (isTestnet) {
|
||||
// Add PublicActProxy as a delegatedExecutor of anonymousProfileId
|
||||
hub.changeDelegatedExecutorsConfig(
|
||||
anonymousProfileId,
|
||||
_toAddressArray(address(publicActProxy)),
|
||||
_toBoolArray(true)
|
||||
);
|
||||
console.log(
|
||||
'PublicActProxy added as DelegatedExecutor of AnonymousProfileId: %s',
|
||||
address(publicActProxy)
|
||||
);
|
||||
} else {
|
||||
console.log('Skipping governance actions for mainnet');
|
||||
console.log('Add PublicActProxy as DelegatedExecutor of AnonymousProfileId manually!');
|
||||
}
|
||||
|
||||
// Deploy governance and proxy-admin controllable-by-contract contracts, and transfer ownership.
|
||||
governanceContract = new Governance(address(hub), governance.owner);
|
||||
_logDeployedAddress(address(governanceContract), 'GovernanceContract');
|
||||
|
||||
@@ -86,7 +86,9 @@ if [[ "$CONFIRMATION" == "y" || "$CONFIRMATION" == "Y" ]]
|
||||
catapulta script script/$SCRIPT_NAME.s.sol --chain $NETWORK --sig $CALLDATA --legacy --skip test --ffi --slow --skip-git
|
||||
exit 0
|
||||
else
|
||||
forge script script/$SCRIPT_NAME.s.sol:$SCRIPT_NAME --sig $CALLDATA --rpc-url $NETWORK -vv --skip test --ffi --slow --broadcast --verify
|
||||
forge script script/$SCRIPT_NAME.s.sol:$SCRIPT_NAME --sig $CALLDATA --rpc-url $NETWORK -vv --skip test --ffi --slow --broadcast
|
||||
# `--verify` temporarily removed because of Foundry issues. You can add it back or verify manually later.
|
||||
# forge script script/$SCRIPT_NAME.s.sol:$SCRIPT_NAME --sig $CALLDATA --rpc-url $NETWORK -vv --skip test --ffi --slow --broadcast --verify
|
||||
fi
|
||||
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user