# Smart Contracts

ZNS consists of nine (9) smart contracts, eight (8) of which are upgradeable UUPS proxies. The system is modular where each contract is responsible for logic related to its role in the system. This upgradeability helps evolve the ZNS system over time, based on protocol needs and user feedback.

You can read more about upgradeability here: [Contract Upgradeability](/zns/smart-contracts/contract-upgradeability.md).

For detailed information about ZNS smart contracts, check out the links below:

[Access Control](/zns/smart-contracts/access-control.md)

[Registry](/zns/smart-contracts/registry.md)

[Domain Token](/zns/smart-contracts/domain-token.md)

[Registrars](/zns/smart-contracts/registrars.md)

[Treasury](/zns/smart-contracts/treasury.md)

[Pricers](/zns/smart-contracts/pricers.md)

[Resolvers](/zns/smart-contracts/resolvers.md)


---

# 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://zer0-1.gitbook.io/zns/smart-contracts.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.
