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 " ;
4+ import { IDistributionConfig } from "../types/IDistributionConfig.sol " ;
5+ import { PaymentConfig } from "../treasury/IZNSTreasury.sol " ;
6+ import { IZNSPricer } from "../types/IZNSPricer.sol " ;
7+
78
89/**
910 * @title IZNSSubRegistrar.sol - Interface for the ZNSSubRegistrar contract responsible for registering subdomains.
10- */
11+ */
1112interface IZNSSubRegistrar is IDistributionConfig {
1213 /**
13- * @notice Reverted when someone other than parent owner is trying to buy
14- a subdomain under the parent that is locked\
14+ * @notice Reverted when someone other than parent owner is trying to buy a subdomain under the parent that is locked\
1515 * or when the parent provided does not exist.
1616 */
1717 error ParentLockedOrDoesntExist (bytes32 parentHash );
@@ -23,25 +23,22 @@ interface IZNSSubRegistrar is IDistributionConfig {
2323
2424 /**
2525 * @notice Emitted when a new `DistributionConfig.pricerContract` is set for a domain.
26- */
27- event PricerContractSet (
28- bytes32 indexed domainHash ,
29- address indexed pricerContract
30- );
26+ */
27+ event PricerContractSet (bytes32 indexed domainHash , address indexed pricerContract );
3128
3229 /**
3330 * @notice Emitted when a new `DistributionConfig.paymentType` is set for a domain.
34- */
31+ */
3532 event PaymentTypeSet (bytes32 indexed domainHash , PaymentType paymentType );
3633
3734 /**
3835 * @notice Emitted when a new `DistributionConfig.accessType` is set for a domain.
39- */
36+ */
4037 event AccessTypeSet (bytes32 indexed domainHash , AccessType accessType );
4138
4239 /**
4340 * @notice Emitted when a new full `DistributionConfig` is set for a domain at once.
44- */
41+ */
4542 event DistributionConfigSet (
4643 bytes32 indexed domainHash ,
4744 IZNSPricer pricerContract ,
@@ -51,7 +48,7 @@ interface IZNSSubRegistrar is IDistributionConfig {
5148
5249 /**
5350 * @notice Emitted when a `mintlist` is updated for a domain.
54- */
51+ */
5552 event MintlistUpdated (
5653 bytes32 indexed domainHash ,
5754 uint256 indexed ownerIndex ,
@@ -67,19 +64,16 @@ interface IZNSSubRegistrar is IDistributionConfig {
6764
6865 /**
6966 * @notice Emitted when the ZNSRootRegistrar address is set in state.
70- */
67+ */
7168 event RootRegistrarSet (address registrar );
7269
7370 function distrConfigs (
7471 bytes32 domainHash
75- )
76- external
77- view
78- returns (
79- IZNSPricer pricerContract ,
80- PaymentType paymentType ,
81- AccessType accessType
82- );
72+ ) external view returns (
73+ IZNSPricer pricerContract ,
74+ PaymentType paymentType ,
75+ AccessType accessType
76+ );
8377
8478 function isMintlistedForDomain (
8579 bytes32 domainHash ,
0 commit comments