|
46 | 46 | // // emitted when an operator's index in the orderd operator list for the quorum with number `quorumNumber` is updated
|
47 | 47 | // event QuorumIndexUpdate(bytes32 indexed operatorId, uint8 quorumNumber, uint32 newIndex);
|
48 | 48 |
|
49 |
| -// event OperatorSetParamsUpdated(uint8 indexed quorumNumber, ISlashingRegistryCoordinator.OperatorSetParam operatorSetParams); |
| 49 | +// event OperatorSetParamsUpdated(uint8 indexed quorumNumber, IRegistryCoordinatorTypes.OperatorSetParam operatorSetParams); |
50 | 50 |
|
51 | 51 | // event ChurnApproverUpdated(address prevChurnApprover, address newChurnApprover);
|
52 | 52 |
|
|
203 | 203 | // }
|
204 | 204 |
|
205 | 205 | // function test_createQuorum_revert_notOwner() public {
|
206 |
| -// ISlashingRegistryCoordinator.OperatorSetParam memory operatorSetParams; |
| 206 | +// IRegistryCoordinatorTypes.OperatorSetParam memory operatorSetParams; |
207 | 207 | // uint96 minimumStake;
|
208 |
| -// IStakeRegistry.StrategyParams[] memory strategyParams; |
| 208 | +// IStakeRegistryTypes.StrategyParams[] memory strategyParams; |
209 | 209 |
|
210 | 210 | // cheats.expectRevert("Ownable: caller is not the owner");
|
211 | 211 | // cheats.prank(defaultOperator);
|
|
217 | 217 | // // this is necessary since the default setup already configures the max number of quorums, preventing adding more
|
218 | 218 | // _deployMockEigenLayerAndAVS(0);
|
219 | 219 |
|
220 |
| -// ISlashingRegistryCoordinator.OperatorSetParam memory operatorSetParams = |
221 |
| -// ISlashingRegistryCoordinator.OperatorSetParam({ |
| 220 | +// IRegistryCoordinatorTypes.OperatorSetParam memory operatorSetParams = |
| 221 | +// IRegistryCoordinatorTypes.OperatorSetParam({ |
222 | 222 | // maxOperatorCount: defaultMaxOperatorCount,
|
223 | 223 | // kickBIPsOfOperatorStake: defaultKickBIPsOfOperatorStake,
|
224 | 224 | // kickBIPsOfTotalStake: defaultKickBIPsOfTotalStake
|
225 | 225 | // });
|
226 | 226 | // uint96 minimumStake = 1;
|
227 |
| -// IStakeRegistry.StrategyParams[] memory strategyParams = new IStakeRegistry.StrategyParams[](1); |
| 227 | +// IStakeRegistryTypes.StrategyParams[] memory strategyParams = new IStakeRegistryTypes.StrategyParams[](1); |
228 | 228 | // strategyParams[0] =
|
229 |
| -// IStakeRegistry.StrategyParams({ |
| 229 | +// IStakeRegistryTypes.StrategyParams({ |
230 | 230 | // strategy: IStrategy(address(1000)),
|
231 | 231 | // multiplier: 1e16
|
232 | 232 | // });
|
|
1902 | 1902 | // function test_CreateTotalDelegatedStakeQuorum() public {
|
1903 | 1903 | // _deployMockEigenLayerAndAVS(0);
|
1904 | 1904 | // // Set up test params
|
1905 |
| -// ISlashingRegistryCoordinator.OperatorSetParam memory operatorSetParams = ISlashingRegistryCoordinator.OperatorSetParam({ |
| 1905 | +// IRegistryCoordinatorTypes.OperatorSetParam memory operatorSetParams = IRegistryCoordinatorTypes.OperatorSetParam({ |
1906 | 1906 | // maxOperatorCount: 10,
|
1907 | 1907 | // kickBIPsOfOperatorStake: 0,
|
1908 | 1908 | // kickBIPsOfTotalStake: 0
|
1909 | 1909 | // });
|
1910 | 1910 | // uint96 minimumStake = 100;
|
1911 |
| -// IStakeRegistry.StrategyParams[] memory strategyParams = new IStakeRegistry.StrategyParams[](1); |
1912 |
| -// strategyParams[0] = IStakeRegistry.StrategyParams({ |
| 1911 | +// IStakeRegistryTypes.StrategyParams[] memory strategyParams = new IStakeRegistryTypes.StrategyParams[](1); |
| 1912 | +// strategyParams[0] = IStakeRegistryTypes.StrategyParams({ |
1913 | 1913 | // strategy: IStrategy(address(0x1)),
|
1914 | 1914 | // multiplier: 1000
|
1915 | 1915 | // });
|
|
1929 | 1929 | // assertEq(registryCoordinator.quorumCount(), initialQuorumCount + 1);
|
1930 | 1930 |
|
1931 | 1931 | // // Verify quorum params were set correctly
|
1932 |
| -// ISlashingRegistryCoordinator.OperatorSetParam memory storedParams = registryCoordinator.getOperatorSetParams(initialQuorumCount); |
| 1932 | +// IRegistryCoordinatorTypes.OperatorSetParam memory storedParams = registryCoordinator.getOperatorSetParams(initialQuorumCount); |
1933 | 1933 | // assertEq(storedParams.maxOperatorCount, operatorSetParams.maxOperatorCount);
|
1934 | 1934 | // assertEq(storedParams.kickBIPsOfOperatorStake, operatorSetParams.kickBIPsOfOperatorStake);
|
1935 | 1935 | // assertEq(storedParams.kickBIPsOfTotalStake, operatorSetParams.kickBIPsOfTotalStake);
|
1936 | 1936 | // }
|
1937 | 1937 |
|
1938 | 1938 | // function test_CreateSlashableStakeQuorum_Reverts() public {
|
1939 | 1939 | // _deployMockEigenLayerAndAVS(0);
|
1940 |
| -// ISlashingRegistryCoordinator.OperatorSetParam memory operatorSetParams = ISlashingRegistryCoordinator.OperatorSetParam({ |
| 1940 | +// IRegistryCoordinatorTypes.OperatorSetParam memory operatorSetParams = IRegistryCoordinatorTypes.OperatorSetParam({ |
1941 | 1941 | // maxOperatorCount: 10,
|
1942 | 1942 | // kickBIPsOfOperatorStake: 0,
|
1943 | 1943 | // kickBIPsOfTotalStake: 0
|
1944 | 1944 | // });
|
1945 | 1945 | // uint96 minimumStake = 100;
|
1946 |
| -// IStakeRegistry.StrategyParams[] memory strategyParams = new IStakeRegistry.StrategyParams[](1); |
1947 |
| -// strategyParams[0] = IStakeRegistry.StrategyParams({ |
| 1946 | +// IStakeRegistryTypes.StrategyParams[] memory strategyParams = new IStakeRegistryTypes.StrategyParams[](1); |
| 1947 | +// strategyParams[0] = IStakeRegistryTypes.StrategyParams({ |
1948 | 1948 | // strategy: IStrategy(address(0x1)),
|
1949 | 1949 | // multiplier: 1000
|
1950 | 1950 | // });
|
|
2059 | 2059 | // registryCoordinator.enableOperatorSets();
|
2060 | 2060 |
|
2061 | 2061 | // // Create quorum params
|
2062 |
| -// ISlashingRegistryCoordinator.OperatorSetParam memory operatorSetParams = ISlashingRegistryCoordinator.OperatorSetParam({ |
| 2062 | +// IRegistryCoordinatorTypes.OperatorSetParam memory operatorSetParams = IRegistryCoordinatorTypes.OperatorSetParam({ |
2063 | 2063 | // maxOperatorCount: 10,
|
2064 | 2064 | // kickBIPsOfOperatorStake: 1000,
|
2065 | 2065 | // kickBIPsOfTotalStake: 100
|
2066 | 2066 | // });
|
2067 | 2067 | // uint96 minimumStake = 100;
|
2068 |
| -// IStakeRegistry.StrategyParams[] memory strategyParams = new IStakeRegistry.StrategyParams[](1); |
2069 |
| -// strategyParams[0] = IStakeRegistry.StrategyParams({ |
| 2068 | +// IStakeRegistryTypes.StrategyParams[] memory strategyParams = new IStakeRegistryTypes.StrategyParams[](1); |
| 2069 | +// strategyParams[0] = IStakeRegistryTypes.StrategyParams({ |
2070 | 2070 | // strategy: IStrategy(address(1)),
|
2071 | 2071 | // multiplier: 1
|
2072 | 2072 | // });
|
|
2091 | 2091 | // registryCoordinator.enableOperatorSets();
|
2092 | 2092 |
|
2093 | 2093 | // // Create quorum params
|
2094 |
| -// ISlashingRegistryCoordinator.OperatorSetParam memory operatorSetParams = ISlashingRegistryCoordinator.OperatorSetParam({ |
| 2094 | +// IRegistryCoordinatorTypes.OperatorSetParam memory operatorSetParams = IRegistryCoordinatorTypes.OperatorSetParam({ |
2095 | 2095 | // maxOperatorCount: 10,
|
2096 | 2096 | // kickBIPsOfOperatorStake: 1000,
|
2097 | 2097 | // kickBIPsOfTotalStake: 100
|
2098 | 2098 | // });
|
2099 | 2099 | // uint96 minimumStake = 100;
|
2100 |
| -// IStakeRegistry.StrategyParams[] memory strategyParams = new IStakeRegistry.StrategyParams[](1); |
2101 |
| -// strategyParams[0] = IStakeRegistry.StrategyParams({ |
| 2100 | +// IStakeRegistryTypes.StrategyParams[] memory strategyParams = new IStakeRegistryTypes.StrategyParams[](1); |
| 2101 | +// strategyParams[0] = IStakeRegistryTypes.StrategyParams({ |
2102 | 2102 | // strategy: IStrategy(address(1)),
|
2103 | 2103 | // multiplier: 10000
|
2104 | 2104 | // });
|
|
2121 | 2121 | // registryCoordinator.enableOperatorSets();
|
2122 | 2122 |
|
2123 | 2123 | // // Create quorum params
|
2124 |
| -// ISlashingRegistryCoordinator.OperatorSetParam memory operatorSetParams = ISlashingRegistryCoordinator.OperatorSetParam({ |
| 2124 | +// IRegistryCoordinatorTypes.OperatorSetParam memory operatorSetParams = IRegistryCoordinatorTypes.OperatorSetParam({ |
2125 | 2125 | // maxOperatorCount: 10,
|
2126 | 2126 | // kickBIPsOfOperatorStake: 1000,
|
2127 | 2127 | // kickBIPsOfTotalStake: 100
|
2128 | 2128 | // });
|
2129 | 2129 |
|
2130 | 2130 | // uint96 minimumStake = 100;
|
2131 |
| -// IStakeRegistry.StrategyParams[] memory strategyParams = new IStakeRegistry.StrategyParams[](1); |
2132 |
| -// strategyParams[0] = IStakeRegistry.StrategyParams({ |
| 2131 | +// IStakeRegistryTypes.StrategyParams[] memory strategyParams = new IStakeRegistryTypes.StrategyParams[](1); |
| 2132 | +// strategyParams[0] = IStakeRegistryTypes.StrategyParams({ |
2133 | 2133 | // strategy: IStrategy(address(1)),
|
2134 | 2134 | // multiplier: 10000
|
2135 | 2135 | // });
|
|
2167 | 2167 | // registryCoordinator.enableOperatorSets();
|
2168 | 2168 |
|
2169 | 2169 | // // Create quorum params
|
2170 |
| -// ISlashingRegistryCoordinator.OperatorSetParam memory operatorSetParams = ISlashingRegistryCoordinator.OperatorSetParam({ |
| 2170 | +// IRegistryCoordinatorTypes.OperatorSetParam memory operatorSetParams = IRegistryCoordinatorTypes.OperatorSetParam({ |
2171 | 2171 | // maxOperatorCount: 10,
|
2172 | 2172 | // kickBIPsOfOperatorStake: 1000,
|
2173 | 2173 | // kickBIPsOfTotalStake: 100
|
2174 | 2174 | // });
|
2175 | 2175 |
|
2176 | 2176 | // uint96 minimumStake = 100;
|
2177 |
| -// IStakeRegistry.StrategyParams[] memory strategyParams = new IStakeRegistry.StrategyParams[](1); |
2178 |
| -// strategyParams[0] = IStakeRegistry.StrategyParams({ |
| 2177 | +// IStakeRegistryTypes.StrategyParams[] memory strategyParams = new IStakeRegistryTypes.StrategyParams[](1); |
| 2178 | +// strategyParams[0] = IStakeRegistryTypes.StrategyParams({ |
2179 | 2179 | // strategy: IStrategy(address(1)),
|
2180 | 2180 | // multiplier: 10000
|
2181 | 2181 | // });
|
|
2226 | 2226 | // vm.skip(true);
|
2227 | 2227 | // _deployMockEigenLayerAndAVS(0);
|
2228 | 2228 |
|
2229 |
| -// ISlashingRegistryCoordinator.OperatorSetParam memory operatorSetParams = ISlashingRegistryCoordinator.OperatorSetParam({ |
| 2229 | +// IRegistryCoordinatorTypes.OperatorSetParam memory operatorSetParams = IRegistryCoordinatorTypes.OperatorSetParam({ |
2230 | 2230 | // maxOperatorCount: defaultMaxOperatorCount,
|
2231 | 2231 | // kickBIPsOfOperatorStake: defaultKickBIPsOfOperatorStake,
|
2232 | 2232 | // kickBIPsOfTotalStake: defaultKickBIPsOfTotalStake
|
2233 | 2233 | // });
|
2234 | 2234 |
|
2235 | 2235 | // uint96 minimumStake = 100;
|
2236 |
| -// IStakeRegistry.StrategyParams[] memory strategyParams = new IStakeRegistry.StrategyParams[](1); |
2237 |
| -// strategyParams[0] = IStakeRegistry.StrategyParams({ |
| 2236 | +// IStakeRegistryTypes.StrategyParams[] memory strategyParams = new IStakeRegistryTypes.StrategyParams[](1); |
| 2237 | +// strategyParams[0] = IStakeRegistryTypes.StrategyParams({ |
2238 | 2238 | // strategy: IStrategy(address(1)),
|
2239 | 2239 | // multiplier: 10000
|
2240 | 2240 | // });
|
|
2259 | 2259 | // registryCoordinator.enableOperatorSets();
|
2260 | 2260 |
|
2261 | 2261 | // // Create quorum params
|
2262 |
| -// ISlashingRegistryCoordinator.OperatorSetParam memory operatorSetParams = ISlashingRegistryCoordinator.OperatorSetParam({ |
| 2262 | +// IRegistryCoordinatorTypes.OperatorSetParam memory operatorSetParams = IRegistryCoordinatorTypes.OperatorSetParam({ |
2263 | 2263 | // maxOperatorCount: 10,
|
2264 | 2264 | // kickBIPsOfOperatorStake: 1000,
|
2265 | 2265 | // kickBIPsOfTotalStake: 100
|
2266 | 2266 | // });
|
2267 | 2267 |
|
2268 | 2268 | // uint96 minimumStake = 100;
|
2269 |
| -// IStakeRegistry.StrategyParams[] memory strategyParams = new IStakeRegistry.StrategyParams[](1); |
2270 |
| -// strategyParams[0] = IStakeRegistry.StrategyParams({ |
| 2269 | +// IStakeRegistryTypes.StrategyParams[] memory strategyParams = new IStakeRegistryTypes.StrategyParams[](1); |
| 2270 | +// strategyParams[0] = IStakeRegistryTypes.StrategyParams({ |
2271 | 2271 | // strategy: IStrategy(address(1)),
|
2272 | 2272 | // multiplier: 10000
|
2273 | 2273 | // });
|
|
2311 | 2311 | // registryCoordinator.enableOperatorSets();
|
2312 | 2312 |
|
2313 | 2313 | // // Create quorum params
|
2314 |
| -// ISlashingRegistryCoordinator.OperatorSetParam memory operatorSetParams = ISlashingRegistryCoordinator.OperatorSetParam({ |
| 2314 | +// IRegistryCoordinatorTypes.OperatorSetParam memory operatorSetParams = IRegistryCoordinatorTypes.OperatorSetParam({ |
2315 | 2315 | // maxOperatorCount: 10,
|
2316 | 2316 | // kickBIPsOfOperatorStake: 1000,
|
2317 | 2317 | // kickBIPsOfTotalStake: 100
|
2318 | 2318 | // });
|
2319 | 2319 |
|
2320 | 2320 | // uint96 minimumStake = 100;
|
2321 |
| -// IStakeRegistry.StrategyParams[] memory strategyParams = new IStakeRegistry.StrategyParams[](1); |
2322 |
| -// strategyParams[0] = IStakeRegistry.StrategyParams({ |
| 2321 | +// IStakeRegistryTypes.StrategyParams[] memory strategyParams = new IStakeRegistryTypes.StrategyParams[](1); |
| 2322 | +// strategyParams[0] = IStakeRegistryTypes.StrategyParams({ |
2323 | 2323 | // strategy: IStrategy(address(1)),
|
2324 | 2324 | // multiplier: 10000
|
2325 | 2325 | // });
|
|
2358 | 2358 | // registryCoordinator.enableOperatorSets();
|
2359 | 2359 |
|
2360 | 2360 | // // Create quorum params
|
2361 |
| -// ISlashingRegistryCoordinator.OperatorSetParam memory operatorSetParams = ISlashingRegistryCoordinator.OperatorSetParam({ |
| 2361 | +// IRegistryCoordinatorTypes.OperatorSetParam memory operatorSetParams = IRegistryCoordinatorTypes.OperatorSetParam({ |
2362 | 2362 | // maxOperatorCount: 10,
|
2363 | 2363 | // kickBIPsOfOperatorStake: 1000,
|
2364 | 2364 | // kickBIPsOfTotalStake: 100
|
2365 | 2365 | // });
|
2366 | 2366 |
|
2367 | 2367 | // uint96 minimumStake = 100;
|
2368 |
| -// IStakeRegistry.StrategyParams[] memory strategyParams = new IStakeRegistry.StrategyParams[](1); |
2369 |
| -// strategyParams[0] = IStakeRegistry.StrategyParams({ |
| 2368 | +// IStakeRegistryTypes.StrategyParams[] memory strategyParams = new IStakeRegistryTypes.StrategyParams[](1); |
| 2369 | +// strategyParams[0] = IStakeRegistryTypes.StrategyParams({ |
2370 | 2370 | // strategy: IStrategy(address(1)),
|
2371 | 2371 | // multiplier: 10000
|
2372 | 2372 | // });
|
|
0 commit comments