Skip to content

Commit

Permalink
anvil save state complete
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimalmadhur committed Dec 9, 2024
1 parent ca5e0b2 commit 5706253
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion contracts/anvil/contracts-deployed-anvil-state.json

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions contracts/script/DeployTokensStrategiesCreateQuorums.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {StrategyBaseTVLLimits} from "eigenlayer-contracts/src/contracts/strategi

import "eigenlayer-middleware/src/interfaces/IStakeRegistry.sol";
import "eigenlayer-middleware/src/RegistryCoordinator.sol" as regcoord;
import {StakeType} from "eigenlayer-middleware/src/interfaces/IStakeRegistry.sol";

import {MockERC20, IERC20} from "../src/MockERC20.sol";
import "./parsers/EigenlayerContractsParser.sol";
Expand Down Expand Up @@ -90,8 +91,7 @@ contract DeployTokensStrategiesCreateQuorums is
bool[] memory thirdPartyTransfersForbiddenValues = new bool[](1);
thirdPartyTransfersForbiddenValues[0] = false;
strategyManager.addStrategiesToDepositWhitelist(
strats,
thirdPartyTransfersForbiddenValues
strats
);

// WRITE JSON DATA
Expand Down Expand Up @@ -147,10 +147,12 @@ contract DeployTokensStrategiesCreateQuorums is
multiplier: 1 ether
});

regcoord.RegistryCoordinator(address(mockAvsRegCoord)).createQuorum(
quorumOperatorSetParams,
quorumMinimumStake,
quorumStrategyParams
);
// regcoord.RegistryCoordinator(address(mockAvsRegCoord))._createQuorum(
// quorumOperatorSetParams,
// quorumMinimumStake,
// quorumStrategyParams,
// StakeType.TOTAL_SLASHABLE,
// uint32(0)
// );
}
}
8 changes: 3 additions & 5 deletions contracts/script/RegisterOperatorsWithEigenlayer.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ contract RegisterOperators is
// Register operators with EigenLayer
for (uint256 i = 0; i < numberOfOperators; i++) {
address delegationApprover = address(0); // anyone can delegate to this operator
uint32 allocationDelay = 2; // 2 blocks
uint32 stakerOptOutWindowBlocks = 100;
string memory metadataURI = string.concat(
"https://coolstuff.com/operator/",
Expand All @@ -75,11 +76,8 @@ contract RegisterOperators is
(, uint256 privateKey) = deriveRememberKey(mnemonic, uint32(i));
vm.startBroadcast(privateKey);
eigenlayerContracts.delegationManager.registerAsOperator(
IDelegationManager.OperatorDetails(
operators[i],
delegationApprover,
stakerOptOutWindowBlocks
),
delegationApprover,
allocationDelay,
metadataURI
);
eigenlayerContracts.strategyManager.depositIntoStrategy(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"addresses": {
"erc20mock": "0x2bdCC0de6bE1f7D2ee689a0342D76F52E8EFABa3",
"erc20mockstrategy": "0x7bc06c482DEAd17c0e297aFbC32f6e63d3846650"
"erc20mock": "0x7bc06c482DEAd17c0e297aFbC32f6e63d3846650",
"erc20mockstrategy": "0xFD471836031dc5108809D173A067e8486B9047A3"
}
}

0 comments on commit 5706253

Please sign in to comment.