# DcnManager

*Address:* [*0xFDAF7D6912056Ff79dcAf16051D14652c49f9957*](https://polygonscan.com/address/0xFDAF7D6912056Ff79dcAf16051D14652c49f9957)

The `DcnManager` contract serves as a comprehensive management hub for the DCN system. It facilitates various functions essential for the creation, ownership, renewal, and extension of DCN names, providing a seamless user experience within the DCN ecosystem.

### Set Disallowed Labels

The `setDisallowedLabels` function allows administrators to disable the minting of specific names by marking them as disallowed labels. This capability ensures control over the types of names that can be minted, preventing the creation of names that may conflict with existing manufacturer names or other reserved labels.

### Mint Top-Level Domain (TLD)

As a vital feature, the `DcnManager` enables the minting of Top-Level Domains (TLDs), such as "dimo." Only administrators possess the authority to mint TLDs, allowing for the creation of distinct namespaces under which DCN names can be registered. While currently limited to "dimo," this functionality paves the way for future expansion to accommodate additional TLDs, such as manufacturer names.

### Minting

Users can leverage the `mint` function to mint their own unique DCN names. This process involves the creation of a new name under the chosen TLD and associating it with a specific vehicle ID (optional). Additionally, the function charges the user based on the selected ownership period. To ensure smooth execution, users must pre-approve the contract to spend DIMO tokens on their behalf.

### Renewal

The `renew` function empowers users to renew the ownership of their DCN names, effectively extending the period of ownership. By calling this function, users can ensure the continued association of their name with their vehicle ID, maintaining their presence within the DCN system.

### Claiming Expired Names

In cases where the ownership period of a DCN name has expired, the `claim` function allows another user to claim the name by paying for an extension under the same pricing strategy. This mechanism ensures that names with expired ownership are made available for reuse while maintaining fairness and adherence to the established pricing structure.

### Label Validation

During the minting process, the `DcnManager` enforces strict validation rules for the labels of DCN names. Labels must adhere to the following criteria:

* They must be between 3 and 15 characters in length.
* Only characters from the set \[A-Z]\[a-z]\[0-9], and lowercase alphabets are permitted.

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dimo.org/protocol/device-canonical-name/contracts/dcnmanager.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
