1
1
// SPDX-License-Identifier: MIT
2
2
pragma solidity 0.8.26 ;
3
3
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
+
7
8
8
9
/**
9
10
* @title IZNSSubRegistrar.sol - Interface for the ZNSSubRegistrar contract responsible for registering subdomains.
10
- */
11
+ */
11
12
interface IZNSSubRegistrar is IDistributionConfig {
12
13
/**
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\
15
15
* or when the parent provided does not exist.
16
16
*/
17
17
error ParentLockedOrDoesntExist (bytes32 parentHash );
@@ -23,25 +23,22 @@ interface IZNSSubRegistrar is IDistributionConfig {
23
23
24
24
/**
25
25
* @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 );
31
28
32
29
/**
33
30
* @notice Emitted when a new `DistributionConfig.paymentType` is set for a domain.
34
- */
31
+ */
35
32
event PaymentTypeSet (bytes32 indexed domainHash , PaymentType paymentType );
36
33
37
34
/**
38
35
* @notice Emitted when a new `DistributionConfig.accessType` is set for a domain.
39
- */
36
+ */
40
37
event AccessTypeSet (bytes32 indexed domainHash , AccessType accessType );
41
38
42
39
/**
43
40
* @notice Emitted when a new full `DistributionConfig` is set for a domain at once.
44
- */
41
+ */
45
42
event DistributionConfigSet (
46
43
bytes32 indexed domainHash ,
47
44
IZNSPricer pricerContract ,
@@ -51,7 +48,7 @@ interface IZNSSubRegistrar is IDistributionConfig {
51
48
52
49
/**
53
50
* @notice Emitted when a `mintlist` is updated for a domain.
54
- */
51
+ */
55
52
event MintlistUpdated (
56
53
bytes32 indexed domainHash ,
57
54
uint256 indexed ownerIndex ,
@@ -67,19 +64,16 @@ interface IZNSSubRegistrar is IDistributionConfig {
67
64
68
65
/**
69
66
* @notice Emitted when the ZNSRootRegistrar address is set in state.
70
- */
67
+ */
71
68
event RootRegistrarSet (address registrar );
72
69
73
70
function distrConfigs (
74
71
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
+ );
83
77
84
78
function isMintlistedForDomain (
85
79
bytes32 domainHash ,
0 commit comments