> For the complete documentation index, see [llms.txt](https://clarity-7.gitbook.io/clarity-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://clarity-7.gitbook.io/clarity-docs/clarity-moniversive-invariant-static-mis/education-learn-the-language-.mis/06-types-and-data.md).

# 6 — Types & data

> Generated 2026-07-29T03:15:30Z

MIS uses a small set of scalar types in education modules. Match surrounding files when you extend framework code.

| Type                 | Typical use                                  |
| -------------------- | -------------------------------------------- |
| `Bytes`              | Opaque payload buffers (`payload: Bytes`)    |
| `u32`, `u64`, `u128` | Counts, amounts, identifiers                 |
| `Account`            | Identity-like token; compare to `@0`         |
| `bool`               | Flags in constraints (`transfer_ok == true`) |

## `Bytes` payloads

Most framework outcomes take `payload: Bytes` as the first teaching parameter. Gates almost always include:

```mis
require payload != @0;
```

Treat `Bytes` as “there is a buffer reference” rather than studying byte layout in the language track — encoding belongs in module-specific docs.

## `@0`

`@0` is the zero account sentinel. It is **not** a general null for every type, but education modules use `account != @0` consistently for account parameters.

## Arithmetic in constraints

Constraints may express updates:

```mis
constraint counter == counter + n;
constraint total_minted == total_minted + amount;
```

Relations are declarative. You are stating the intended end relation, not writing an assignment statement — the MIS-ML layer interprets these as equations to satisfy.

## Imports

Syntax reference shows optional stdlib imports:

```mis
use std::token;
```

Use imports when the module participates in a typed stdlib surface; education scratch files often omit imports until needed.

Next: [Worked examples](/clarity-docs/clarity-moniversive-invariant-static-mis/education-learn-the-language-.mis/07-worked-examples.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://clarity-7.gitbook.io/clarity-docs/clarity-moniversive-invariant-static-mis/education-learn-the-language-.mis/06-types-and-data.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
