11// SPDX-License-Identifier: MIT
22pragma solidity 0.8.26 ;
33
4- import { IDistributionConfig } from "../types/IDistributionConfig.sol " ;
5- import { PaymentConfig } from "../treasury/IZNSTreasury.sol " ;
6- import { IZNSPricer } from "../types/IZNSPricer.sol " ;
7-
4+ import {IDistributionConfig} from "../types/IDistributionConfig.sol " ;
5+ import {PaymentConfig} from "../treasury/IZNSTreasury.sol " ;
6+ import {IZNSPricer} from "../types/IZNSPricer.sol " ;
87
98/**
109 * @title IZNSSubRegistrar.sol - Interface for the ZNSSubRegistrar contract responsible for registering subdomains.
11- */
10+ */
1211interface IZNSSubRegistrar is IDistributionConfig {
1312 /**
14- * @notice Reverted when someone other than parent owner is trying to buy a subdomain under the parent that is locked\
13+ * @notice Reverted when someone other than parent owner is trying to buy
14+ a subdomain under the parent that is locked\
1515 * or when the parent provided does not exist.
1616 */
1717 error ParentLockedOrDoesntExist (bytes32 parentHash );
@@ -23,22 +23,25 @@ interface IZNSSubRegistrar is IDistributionConfig {
2323
2424 /**
2525 * @notice Emitted when a new `DistributionConfig.pricerContract` is set for a domain.
26- */
27- event PricerContractSet (bytes32 indexed domainHash , address indexed pricerContract );
26+ */
27+ event PricerContractSet (
28+ bytes32 indexed domainHash ,
29+ address indexed pricerContract
30+ );
2831
2932 /**
3033 * @notice Emitted when a new `DistributionConfig.paymentType` is set for a domain.
31- */
34+ */
3235 event PaymentTypeSet (bytes32 indexed domainHash , PaymentType paymentType );
3336
3437 /**
3538 * @notice Emitted when a new `DistributionConfig.accessType` is set for a domain.
36- */
39+ */
3740 event AccessTypeSet (bytes32 indexed domainHash , AccessType accessType );
3841
3942 /**
4043 * @notice Emitted when a new full `DistributionConfig` is set for a domain at once.
41- */
44+ */
4245 event DistributionConfigSet (
4346 bytes32 indexed domainHash ,
4447 IZNSPricer pricerContract ,
@@ -48,7 +51,7 @@ interface IZNSSubRegistrar is IDistributionConfig {
4851
4952 /**
5053 * @notice Emitted when a `mintlist` is updated for a domain.
51- */
54+ */
5255 event MintlistUpdated (
5356 bytes32 indexed domainHash ,
5457 uint256 indexed ownerIndex ,
@@ -64,16 +67,19 @@ interface IZNSSubRegistrar is IDistributionConfig {
6467
6568 /**
6669 * @notice Emitted when the ZNSRootRegistrar address is set in state.
67- */
70+ */
6871 event RootRegistrarSet (address registrar );
6972
7073 function distrConfigs (
7174 bytes32 domainHash
72- ) external view returns (
73- IZNSPricer pricerContract ,
74- PaymentType paymentType ,
75- AccessType accessType
76- );
75+ )
76+ external
77+ view
78+ returns (
79+ IZNSPricer pricerContract ,
80+ PaymentType paymentType ,
81+ AccessType accessType
82+ );
7783
7884 function isMintlistedForDomain (
7985 bytes32 domainHash ,
0 commit comments